[Zope3-dev] RE: [Zope3-Users] page uses foreignview:contextchanged

Florian Lindner mailinglists at xgm.de
Sat Apr 16 04:28:04 EDT 2005


Am Samstag, 16. April 2005 01:55 schrieb Roger Ineichen:
> > That works now, but I get a error with instruction:
> >
> > htmlcode += view.index["childInfo"] <--
> >
> > traceback:
> >
> >   File
> > "/home/florian/Desktop/zope/lib/python/CS/centershock/browser/
> > skin/views.py",
> > line 41, in getHTML
> >     htmlcode += view.index["childInfo"]
> > TypeError: unsubscriptable object
> >
> > The macro is existing. See also my previous posting.
>
> I'm not sure if you have a ViewPageTemplate instance
> at the view attribute.
> What do you get if you print out the result of view
> and index like:
>
> print "the view ", view
> print "the view index ", view.index
>
> Can you send me the output?

the view  <zope.app.pagetemplate.simpleviewclass.SimpleViewClass 
from /home/florian/Desktop/zope/lib/python/CS/Linklist/browser/skin/childInfo.pt 
object at 0xb2e1fc6c>

the view index  <BoundPageTemplateFile of 
<zope.app.pagetemplate.simpleviewclass.SimpleViewClass 
from /home/florian/Desktop/zope/lib/python/CS/Linklist/browser/skin/childInfo.pt 
object at 0xb2e1fc6c>>

Here is requested output.

Thanks,

Florian



More information about the Zope3-dev mailing list