[Zope] worldcookery.com five tutorial ploneconf05 -
AttributeError: DateTime instance has no __call__ method...
Martijn Jacobs
martijn at fourdigits.nl
Tue Apr 1 12:03:18 EDT 2008
What if you change :
<updated tal:content="python:obj.modified().HTML4()">2000-01-01T12:00+00:00</updated>
to :
<updated tal:content="python:obj.modified.HTML4()">2000-01-01T12:00+00:00</updated>
?
(just a guess, because it says that obj.modified already is a DateTime
instance)
> Hi
>
> Been following this turorial at:
>
> http://worldcookery.com/files/ploneconf05-five/index.html
>
> Using Plone 3.0.6. and Zope 2.10.5 and trying to view
> http://localhost:8080/portal/news/atom.xml
>
> leads me to the below error. Plone 3 thing?
>
> Module zope.tales.tales, line 696, in evaluate
> - URL: index
> - Line 22, Column 3
> - Expression: <PythonExpr (obj.modified().HTML4())>
> - Names:
> {'container': <ATBTreeFolder at /portal/news>,
> 'context': <ATBTreeFolder at /portal/news>,
> 'default': <object object at 0x008BB528>,
> 'here': <ATBTreeFolder at /portal/news>,
> 'loop': {u'obj':
> <Products.PageTemplates.Expressions.PathIterator object at
> 0x082FFB10>},
> 'nothing': None,
> 'options': {'args': (<Products.Five.metaclass.SimpleViewClass
> from C:\Enfold\Products\FiveFeeds\atom.pt object at 0x082FFD50>,)},
> 'repeat': <Products.PageTemplates.Expressions.SafeMapping
> object at 0x0864EE68>,
> 'request': <HTTPRequest, URL=http://localhost:8080/portal/news/atom.xml>,
> 'root': <Application at >,
> 'template': <ImplicitAcquirerWrapper object at 0x082FFDD0>,
> 'traverse_subpath': [],
> 'user': <PropertiedUser 'michael'>,
> 'view': <Products.Five.metaclass.SimpleViewClass from
> C:\Enfold\Products\FiveFeeds\atom.pt object at 0x082FFD50>,
> 'views': <zope.app.pagetemplate.viewpagetemplatefile.ViewMapper
> object at 0x082FF990>}
> Module zope.tales.pythonexpr, line 59, in __call__
> - __traceback_info__: (obj.modified().HTML4())
> Module <string>, line 0, in ?
> AttributeError: DateTime instance has no __call__ method
>
>
--
Martijn Jacobs
Four Digits, Internet Solutions
a: Willemsplein 15-1 6811 KB Arnhem NL
kvk: 091621370000 | btw: 8161.22.234.B01
e-mail: martijn at fourdigits.nl | web: http://www.fourdigits.nl
tel: +31 (0)26 44 22 700 | fax: +31 (0)84 22 06 117
More information about the Zope
mailing list