[Zope-CMF] CMFWiki problem
James Walker
jamesw@vector-tri.co.uk
Wed, 18 Sep 2002 22:34:46 +0100
Okay,
I think that the problem was because I had not set stuff up in the advanced
page 'wikipage_advanced_form', which when I tried to do got the error:
Error Type: AttributeError
Error Value: parents
Traceback (innermost last):
File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 150, in
publish_module
File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 114, in
publish
File C:\PROGRA~1\WebSite\lib\python\Zope\__init__.py, line 159, in
zpublisher_exception_hook
(Object: myWiki2)
File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 98, in
publish
File C:\PROGRA~1\WebSite\lib\python\ZPublisher\mapply.py, line 88, in
mapply
(Object: wikipage_advanced_handler)
File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 39, in
call_object
(Object: wikipage_advanced_handler)
File C:\Program Files\zope\Products\CMFCore\FSPythonScript.py, line 90, in
__call__
(Object: wikipage_advanced_handler)
File C:\PROGRA~1\WebSite\lib\python\Shared\DC\Scripts\Bindings.py, line
252, in __call__
(Object: wikipage_advanced_handler)
File C:\PROGRA~1\WebSite\lib\python\Shared\DC\Scripts\Bindings.py, line
283, in _bindAndExec
(Object: wikipage_advanced_handler)
File C:\Program Files\zope\Products\CMFCore\FSPythonScript.py, line 124,
in _exec
(Object: wikipage_advanced_handler)
(Info: ({'script': <FSPythonScript instance at 025C1150>, 'context':
<CMFWikiPage 'myWiki2' at 0x1f46d60>, 'container': <CMFSite instance at
01B019D0>, 'traverse_subpath': []}, (<h3>form</h3><table><tr valign="top"
align="left"><th>who_owns_subs</th><td>'both'</td></tr><tr valign="top"
align="left"><th>propagate-create</th><td>'on'</td></tr><tr valign="top"
align="left"><th>regulate</th><td>'Set myWiki2 Regulations'</td></tr><tr
valign="top"
align="left"><th>create-category</th><td>'everyone'</td></tr><tr
valign="top" align="left"><th>edit-category</th><td>'everyone'</td></tr><tr
valign="top" align="left"><th>create-usernames</th><td>['']</td></tr><tr
valign="top" align="left"><th>edit-usernames</th><td>['']</td></tr><tr
valign="top"
align="left"><th>comment-category</th><td>'everyone'</td></tr><tr
valign="top" align="left"><th>move-category</th><td>'everyone'</td></tr><tr
valign="top" align="left"><th>propagate-edit</th><td>'on'</td></tr><tr
valign="top" align="left"><th>propagate-move</th><td>'on'</td></tr><tr
valign="top" align="left"><th>move-usernames</th><td>['']</td></tr><tr
valign="top" align="left"><th>comment-usernames</th><td>['']</td></tr><tr
valign="top"
align="left"><th>propagate-comment</th><td>'on'</td></tr></table><h3>cookies
</h3><table><tr valign="top"
align="left"><th>zmi_use_css</th><td>'1'</td></tr><tr valign="top"
align="left"><th>dtpref_rows</th><td>'19'</td></tr><tr valign="top"
align="left"><th>zmi_top_frame</th><td>'1'</td></tr><tr valign="top"
align="left"><th>tree-s</th><td>'eJyLjlZ3hANPW3UdhWiEiK-5AbqIpS9UJCTXsjQq0NZ
WPRYEgEJwNX6Z2Wi6/LKKoepiAVHmHcU'</td></tr><tr valign="top"
align="left"><th>portal_skin</th><td>'Basic'</td></tr><tr valign="top"
align="left"><th>dtpref_cols</th><td>'40'</td></tr></table><h3>lazy
items</h3><table><tr valign="top"
align="left"><th>SESSION</th><td><Python Method object at
01B1D470></td></tr></table><h3>other</h3><table><tr valign="top"
align="left"><th>who_owns_subs</th><td>'both'</td></tr><tr valign="top"
align="left"><th>PUBLISHED</th><td><FSPythonScript instance at
025C1150></td></tr><tr valign="top"
align="left"><th>TraversalRequestNameStack</th><td>[]</td></tr><tr
valign="top" align="left"><th>dtpref_rows</th><td>'19'</td></tr><tr
valign="top" align="left"><th>edit-category</th><td>'everyone'</td></tr><tr
valign="top"
align="left"><th>BASE4</th><td>'http://localhost:8080/cmftest/myWiki2/wikipa
ge_advanced_handler'</td></tr><tr valign="top"
align="left"><th>propagate-edit</th><td>'on'</td></tr><tr valign="top"
align="left"><th>portal_skin</th><td>'Basic'</td></tr><tr valign="top"
align="left"><th>dtpref_cols</th><td>'40'</td></tr><tr valign="top"
align="left"><th>BASE3</th><td>'http://localhost:8080/cmftest/myWiki2'</td><
/tr><tr valign="top"
align="left"><th>URL2</th><td>'http://localhost:8080/cmftest'</td></tr><tr
valign="top"
align="left"><th>BASE1</th><td>'http://localhost:8080'</td></tr><tr
valign="top" align="left"><th>traverse_subpath</th><td>[]</td></tr><tr
valign="top" align="left"><th>zmi_use_css</th><td>'1'</td></tr><tr
valign="top"
align="left"><th>URL0</th><td>'http://localhost:8080/cmftest/myWiki2/wikipag
e_advanced_handler'</td></tr><tr valign="top"
align="left"><th>SERVER_URL</th><td>'http://localhost:8080'</td></tr><tr
valign="top" align="left"><th>zmi_top_frame</th><td>'1'</td></tr><tr
valign="top" align="left"><th>propagate-move</th><td>'on'</td></tr><tr
valign="top" align="left"><th>move-category</th><td>'everyone'</td></tr><tr
valign="top" align="left"><th>comment-usernames</th><td>['']</td></tr><tr
valign="top" align="left"><th>AUTHENTICATION_PATH</th><td>''</td></tr><tr
valign="top" align="left"><th>propagate-create</th><td>'on'</td></tr><tr
valign="top" align="left"><th>regulate</th><td>'Set myWiki2
Regulations'</td></tr><tr valign="top"
align="left"><th>create-usernames</th><td>['']</td></tr><tr valign="top"
align="left"><th>edit-usernames</th><td>['']</td></tr><tr valign="top"
align="left"><th>create-category</th><td>'everyone'</td></tr><tr
valign="top"
align="left"><th>comment-category</th><td>'everyone'</td></tr><tr
valign="top" align="left"><th>move-usernames</th><td>['']</td></tr><tr
valign="top"
align="left"><th>URL3</th><td>'http://localhost:8080'</td></tr><tr
valign="top"
align="left"><th>tree-s</th><td>'eJyLjlZ3hANPW3UdhWiEiK-5AbqIpS9UJCTXsjQq0NZ
WPRYEgEJwNX6Z2Wi6/LKKoepiAVHmHcU'</td></tr><tr valign="top"
align="left"><th>URL</th><td>'http://localhost:8080/cmftest/myWiki2/wikipage
_advanced_handler'</td></tr><tr valign="top"
align="left"><th>BASE2</th><td>'http://localhost:8080/cmftest'</td></tr><tr
valign="top"
align="left"><th>URL1</th><td>'http://localhost:8080/cmftest/myWiki2'</td></
tr><tr valign="top"
align="left"><th>BASE0</th><td>'http://localhost:8080'</td></tr><tr
valign="top" align="left"><th>AUTHENTICATED_USER</th><td>admin</td></tr><tr
valign="top" align="left"><th>propagate-comment</th><td>'on'</td></tr><tr
valign="top"
align="left"><th>URL0</th><td>http://localhost:8080/cmftest/myWiki2/wikipage
_advanced_handler</td></tr><tr valign="top"
align="left"><th>URL1</th><td>http://localhost:8080/cmftest/myWiki2</td></tr
><tr valign="top"
align="left"><th>URL2</th><td>http://localhost:8080/cmftest</td></tr><tr
valign="top"
align="left"><th>URL3</th><td>http://localhost:8080</td></tr><tr
valign="top"
align="left"><th>BASE0</th><td>http://localhost:8080</td></tr><tr
valign="top"
align="left"><th>BASE1</th><td>http://localhost:8080</td></tr><tr
valign="top"
align="left"><th>BASE2</th><td>http://localhost:8080/cmftest</td></tr><tr
valign="top"
align="left"><th>BASE3</th><td>http://localhost:8080/cmftest/myWiki2</td></t
r><tr valign="top"
align="left"><th>BASE4</th><td>http://localhost:8080/cmftest/myWiki2/wikipag
e_advanced_handler</td></tr></table><h3>environ</h3><table><tr valign="top"
align="left"><th>HTTP_ACCEPT_ENCODING</th><td>'gzip, deflate'</td></tr><tr
valign="top" align="left"><th>CONTENT_TYPE</th><td>'multipart/form-data;
boundary=---------------------------7d21f092d2058e'</td></tr><tr
valign="top"
align="left"><th>PATH_TRANSLATED</th><td>'\\cmftest\\myWiki2\\wikipage_advan
ced_handler'</td></tr><tr valign="top"
align="left"><th>HTTP_ACCEPT</th><td>'image/gif, image/x-xbitmap,
image/jpeg, image/pjpeg, */*'</td></tr><tr valign="top"
align="left"><th>HTTP_COOKIE</th><td>'dtpref_rows="19"; dtpref_cols="40";
zmi_use_css="1"; zmi_top_frame="1";
tree-s="eJyLjlZ3hANPW3UdhWiEiK-5AbqIpS9UJCTXsjQq0NZWPRYEgEJwNX6Z2Wi6/LKKoepi
AVHmHcU"; portal_skin="Basic"'</td></tr><tr valign="top"
align="left"><th>HTTP_ACCEPT_LANGUAGE</th><td>'en-us'</td></tr><tr
valign="top"
align="left"><th>GATEWAY_INTERFACE</th><td>'CGI/1.1'</td></tr><tr
valign="top" align="left"><th>SERVER_PORT</th><td>'8080'</td></tr><tr
valign="top" align="left"><th>HTTP_USER_AGENT</th><td>'Mozilla/4.0
(compatible; MSIE 6.0; Windows NT 4.0; .NET CLR 1.0.3705)'</td></tr><tr
valign="top" align="left"><th>CONTENT_LENGTH</th><td>'2091'</td></tr><tr
valign="top" align="left"><th>REMOTE_ADDR</th><td>'127.0.0.1'</td></tr><tr
valign="top"
align="left"><th>channel.creation_time</th><td>1032384789</td></tr><tr
valign="top"
align="left"><th>SERVER_PROTOCOL</th><td>'HTTP/1.1'</td></tr><tr
valign="top"
align="left"><th>PATH_INFO</th><td>'/cmftest/myWiki2/wikipage_advanced_handl
er'</td></tr><tr valign="top"
align="left"><th>HTTP_HOST</th><td>'localhost:8080'</td></tr><tr
valign="top" align="left"><th>REQUEST_METHOD</th><td>'POST'</td></tr><tr
valign="top" align="left"><th>SCRIPT_NAME</th><td>''</td></tr><tr
valign="top" align="left"><th>SERVER_SOFTWARE</th><td>'Zope/(Zope 2.5.1
(binary release, python 2.1, win32-x86), python 2.1.3, win32)
ZServer/1.1b1'</td></tr><tr valign="top"
align="left"><th>HTTP_CACHE_CONTROL</th><td>'no-cache'</td></tr><tr
valign="top"
align="left"><th>CONNECTION_TYPE</th><td>'Keep-Alive'</td></tr><tr
valign="top"
align="left"><th>HTTP_REFERER</th><td>'http://localhost:8080/cmftest/myWiki2
/wikipage_advanced_form'</td></tr><tr valign="top"
align="left"><th>SERVER_NAME</th><td>'mars.office.vector-tri.co.uk'</td></tr
></table>,), {}, None))
File Script (Python), line 1, in wikipage_advanced_handler
File C:\Program Files\zope\Products\CMFWiki\CMFWikiPage.py, line 599, in
setRegulations
(Object: myWiki2)
File C:\Program Files\zope\Products\CMFWiki\CMFWikiPage.py, line 1438, in
__init__
File C:\Program Files\zope\Products\CMFWiki\CMFWikiPage.py, line 1457, in
set_nesting
AttributeError: (see above)
So can anyone help with this?
Cheers
James