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

_______________________________________________
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to