[Zope] Zope bug or my stupidity?

Peter Hernberg petehern@yahoo.com
Tue, 15 Aug 2000 07:48:31 -0700 (PDT)


--- Chris Withers <chrisw@nipltd.com> wrote:
> Peter Hernberg wrote:
> > Here's the method that calls that method:
> >         <dtml-var "get_storys">
> 
> Why the quotes?
> 
> try <dtml-var get_storys> instead
> 

But then I get the following weird error:
Traceback (innermost last):
  File /root/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 222, in
publish_module
  File /root/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 187, in
publish
  File /root/Zope-2.2.0-src/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
    (Object: ApplicationDefaultPermissions)
  File /root/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 171, in
publish
  File /root/Zope-2.2.0-src/lib/python/ZPublisher/mapply.py, line 160, in mapply
    (Object: get_stories)
  File /root/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 112, in
call_object
    (Object: get_stories)
  File /root/Zope-2.2.0-src/lib/python/OFS/DTMLMethod.py, line 167, in __call__
    (Object: get_stories)
  File /root/Zope-2.2.0-src/lib/python/DocumentTemplate/DT_String.py, line 502,
in __call__
    (Object: get_stories)
  File /root/Zope-2.2.0-src/lib/python/DocumentTemplate/DT_In.py, line 691, in
renderwob
    (Object: objectValues('Topic'))
  File /root/Zope-2.2.0-src/lib/python/DocumentTemplate/DT_With.py, line 146, in
render
    (Object: sequence-item)
  File /root/Zope-2.2.0-src/lib/python/OFS/DTMLMethod.py, line 163, in __call__
    (Object: get_storys)
  File /root/Zope-2.2.0-src/lib/python/DocumentTemplate/DT_String.py, line 502,
in __call__
    (Object: get_storys)
  File /root/Zope-2.2.0-src/lib/python/DocumentTemplate/DT_In.py, line 691, in
renderwob
    (Object: objectValues('Story'))
  File /root/Zope-2.2.0-src/lib/python/DocumentTemplate/DT_Util.py, line 337, in
eval
    (Object: sequence-index == 0)
    (Info: index)
  File <string>, line 0, in ?
NameError: (see above)

I am fairly new to zope, but this seems pretty weird, especially the method
returning its dtml source.

=====
Peter Hernberg
An all-purpose, antibacterial, lemon-scented geek/nerd

"If there were a nation of Gods,it would govern itself 
democratically. A government so perfect is not suited to 
men."
--Jean-Jacques Rousseau

__________________________________________________
Do You Yahoo!?
Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/