Wow. This traceback looks like a serious bug in Zope (both 2.6 and 2.7) that existed for quite a while. The "defined" (read: assumed interface) interface makes "AccessControl.Owned.owner_info()" return a dictionary, but a special owner called "UnownableOwner" is a list. I assume this to be the reason for the traceback below. I'm CC:ing the zope-dev@zope.org list, to see if anybody is against fixing that bug by making UnownableOwner an empty dictionary instead of an empty list. I'll fix that in the 2.6, 2.7 and HEAD branch. Also I'll patch Vendo to apply a monkey patch against this. (Question to zope-dev: What happens to the method definitions like f(unowned=UnownableOwner) if I do this? Until then, you should remember not to create Plone Sites in the Control Panel. Put them in the Root. Maybe this is the problem here in your specific case. Am Di, 2003-11-18 um 15.26 schrieb David Best:
Christian,
Here is a copy of the traceback on the error and one other thing.
Exception traceback Time 2003/11/18 06:22:16.448 US/Pacific User Name (User Id) admin (admin) Request URL http://yoursportspage.zopesites.com/Control_Panel/Products/CMFPlone/vendo2/M... Exception Type TypeError Exception Value sequence index must be integer
Traceback (innermost last): * Module ZPublisher.Publish, line 98, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 39, in call_object * Module Products.CMFCore.PortalContent, line 126, in view * Module Products.CMFCore.PortalContent, line 117, in __call__ * Module Shared.DC.Scripts.Bindings, line 252, in __call__ * Module Shared.DC.Scripts.Bindings, line 283, in _bindAndExec * Module Products.CMFCore.FSPageTemplate, line 169, in _exec * Module Products.PageTemplates.ZopePageTemplate, line 228, in _exec * Module Products.CMFCore.FSPageTemplate, line 141, in pt_render * Module Products.PageTemplates.PageTemplate, line 95, in pt_render <FSPageTemplate at /Control_Panel/Products/CMFPlone/vendo2/vendoorder_view used for /Control_Panel/Products/CMFPlone/vendo2/Members/admin/.vendo/Order-1069165315.57> * Module TAL.TALInterpreter, line 200, in __call__ * Module TAL.TALInterpreter, line 244, in interpret * Module TAL.TALInterpreter, line 703, in do_useMacro * Module TAL.TALInterpreter, line 244, in interpret * Module TAL.TALInterpreter, line 726, in do_defineSlot * Module TAL.TALInterpreter, line 244, in interpret * Module TAL.TALInterpreter, line 414, in do_optTag_tal * Module TAL.TALInterpreter, line 399, in do_optTag * Module TAL.TALInterpreter, line 394, in no_tag * Module TAL.TALInterpreter, line 244, in interpret * Module TAL.TALInterpreter, line 497, in do_insertText_tal * Module Products.PageTemplates.TALES, line 226, in evaluateText * Module Products.PageTemplates.TALES, line 220, in evaluate Line 18, Column 12 Expression: <PythonExpr order.owner_info()['id']> Names: {'container': <PloneSite instance at 94421c0>, 'default': <Products.PageTemplates.TALES.Default instance at 0x88df40c>, 'here': <VendoOrder at /Control_Panel/Products/CMFPlone/vendo2/Members/admin/.vendo/Order-1069165315.57>, 'loop': <SafeMapping instance at a4d3850>, 'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x88cb22c>, 'nothing': None, 'options': {'args': ()}, 'repeat': <SafeMapping instance at a4d3850>, 'request': <HTTPRequest, URL=http://yoursportspage.zopesites.com/Control_Panel/Products/CMFPlone/vendo2/Members/admin/.vendo/Order-1069165315.57/view>, 'root': <Application instance at 93883c0>, 'template': <FSPageTemplate at /Control_Panel/Products/CMFPlone/vendo2/vendoorder_view used for /Control_Panel/Products/CMFPlone/vendo2/Members/admin/.vendo/Order-1069165315.57>, 'traverse_subpath': [], 'user': admin} * Module Products.PageTemplates.ZRPythonExpr, line 48, in __call__ __traceback_info__: order.owner_info()['id'] * Module Python expression "order.owner_info()['id']", line 2, in f * Module AccessControl.ZopeGuards, line 90, in guarded_getitem TypeError: sequence index must be integer
Display traceback as text
REQUEST form cookies _ZopeId '82700749A1EaOGIdEhk' tree-s 'eJyLjlZ3hANXW3UdhWhkEU9b9VggAAC8RAnl' tutorialExamplesURL 'http://yoursportspage.zopesites.com/Control_Panel/Products/ZopeTutorial/zope...' lazy items other AUTHENTICATION_PATH '' TraversalRequestNameStack [] PUBLISHED <bound method VendoOrder.view of <VendoOrder at /Control_Panel/Products/CMFPlone/vendo2/Members/admin/.vendo/Order-1069165315.57>> USER_PREF_LANGUAGES <Products.Localizer.AcceptLanguage.AcceptLanguage instance at 0xa59060c> URL 'http://yoursportspage.zopesites.com/Control_Panel/Products/CMFPlone/vendo2/M...' SERVER_URL 'http://yoursportspage.zopesites.com' SESSION id: 10691649820294860270, token: 82700749A1EaOGIdEhk, contents: [] AUTHENTICATED_USER admin URL0 http://yoursportspage.zopesites.com/Control_Panel/Products/CMFPlone/vendo2/M... URL1 http://yoursportspage.zopesites.com/Control_Panel/Products/CMFPlone/vendo2/M... URL2 http://yoursportspage.zopesites.com/Control_Panel/Products/CMFPlone/vendo2/M... URL3 http://yoursportspage.zopesites.com/Control_Panel/Products/CMFPlone/vendo2/M... URL4 http://yoursportspage.zopesites.com/Control_Panel/Products/CMFPlone/vendo2/M... URL5 http://yoursportspage.zopesites.com/Control_Panel/Products/CMFPlone/vendo2 URL6 http://yoursportspage.zopesites.com/Control_Panel/Products/CMFPlone URL7 http://yoursportspage.zopesites.com/Control_Panel/Products URL8 http://yoursportspage.zopesites.com/Control_Panel URL9 http://yoursportspage.zopesites.com BASE0 http://yoursportspage.zopesites.com BASE1 http://yoursportspage.zopesites.com BASE2 http://yoursportspage.zopesites.com/Control_Panel BASE3 http://yoursportspage.zopesites.com/Control_Panel/Products BASE4 http://yoursportspage.zopesites.com/Control_Panel/Products/CMFPlone BASE5 http://yoursportspage.zopesites.com/Control_Panel/Products/CMFPlone/vendo2 BASE6 http://yoursportspage.zopesites.com/Control_Panel/Products/CMFPlone/vendo2/M... BASE7 http://yoursportspage.zopesites.com/Control_Panel/Products/CMFPlone/vendo2/M... BASE8 http://yoursportspage.zopesites.com/Control_Panel/Products/CMFPlone/vendo2/M... BASE9 http://yoursportspage.zopesites.com/Control_Panel/Products/CMFPlone/vendo2/M... environ HTTP_ACCEPT_ENCODING 'gzip, deflate' SERVER_PORT '9097' PATH_TRANSLATED '/VirtualHostBase/http/yoursportspage.zopesites.com:80/Control_Panel/Products/CMFPlone/vendo2/Members/admin/.vendo/Order-1069165315.57/view' HTTP_ACCEPT 'application/vnd.ms-excel, application/msword, image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/x-shockwave-flash, */*' GATEWAY_INTERFACE 'CGI/1.1' HTTP_COOKIE 'tutorialExamplesURL="http://yoursportspage.zopesites.com/Control_Panel/Products/ZopeTutorial/zope..."; tree-s="eJyLjlZ3hANXW3UdhWhkEU9b9VggAAC8RAnl"; _ZopeId="82700749A1EaOGIdEhk"' HTTP_X_FORWARDED_HOST 'yoursportspage.zopesites.com' HTTP_ACCEPT_LANGUAGE 'en-us' HTTP_X_FORWARDED_FOR '65.29.215.226' REMOTE_ADDR '216.93.187.184' SERVER_NAME 'alpha.zettai.net' HTTP_USER_AGENT 'Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; YComp 5.0.2.6)' CONNECTION_TYPE 'close' channel.creation_time 1069165336 SERVER_PROTOCOL 'HTTP/1.1' PATH_INFO '/VirtualHostBase/http/yoursportspage.zopesites.com:80/Control_Panel/Products/CMFPlone/vendo2/Members/admin/.vendo/Order-1069165315.57/view' HTTP_HOST '216.93.187.184:9097' REQUEST_METHOD 'GET' SCRIPT_NAME '' SERVER_SOFTWARE 'Zope/(Zope 2.6.2 (source release, python 2.1, linux2), python 2.1.3, freebsd4) ZServer/1.1b1' HTTP_REFERER 'http://yoursportspage.zopesites.com/Control_Panel/Products/CMFPlone/vendo2/s...' HTTP_X_FORWARDED_SERVER 'yoursportspage.zopesites.com' -- Christian Theune, gocept gmbh & co. kg http://www.gocept.com - ct@gocept.com fon: 03496 3099112 fax: 03496 3099118 mobile: 0179 7808366