[Zope] Iterating over items in a folder.
Jérôme Loisel
jloisel@excite.com
Mon, 31 Jan 2000 17:26:49 -0800 (PST)
Hello everyone!
This time, I do not have a bug to report, either real or imagined. :-) I am
just stumped with regards to how I should do something.
It is actually quite simple: I am trying to do what the tree tag is doing.
But the tag is smarter than me, and I cannot find its source... :-( Quite
the coder I am, eh? :-)
I have a folder called DWSujets and want to iterate in it with <dtml-in
DWSujets>. DWSujets contains folders (the sections) which can contain other
folders (none do currently). But I get a TypeError whenever I try to do
that... (The traceback follows.)
I hope someone can tell me in what way I am being an idiot. Thank you very
much for your time. Cheers!
Jérôme Loisel
PS: Has anyone figured out what my "restarting Zope" problems were all
about? They seem to have vanished now, but I was curious still...
"""
Traceback (innermost last):
File /home/zope/Zope-2.1.3-linux2-x86/lib/python/ZPublisher/Publish.py,
line 214, in publish_module
File /home/zope/Zope-2.1.3-linux2-x86/lib/python/ZPublisher/Publish.py,
line 179, in publish
File /home/zope/Zope-2.1.3-linux2-x86/lib/python/Zope/__init__.py, line
202, in zpublisher_exception_hook
(Object: ElementWithAttributes)
File /home/zope/Zope-2.1.3-linux2-x86/lib/python/ZPublisher/Publish.py,
line 165, in publish
File /home/zope/Zope-2.1.3-linux2-x86/lib/python/ZPublisher/mapply.py,
line 160, in mapply
(Object: index_html)
File /home/zope/Zope-2.1.3-linux2-x86/lib/python/ZPublisher/Publish.py,
line 102, in call_object
(Object: index_html)
File /home/zope/Zope-2.1.3-linux2-x86/lib/python/OFS/DTMLDocument.py,
line 166, in __call__
(Object: index_html)
File
/home/zope/Zope-2.1.3-linux2-x86/lib/python/DocumentTemplate/DT_String.py,
line 502, in __call__
(Object: index_html)
File /home/zope/Zope-2.1.3-linux2-x86/lib/python/OFS/DTMLMethod.py,
line 141, in __call__
(Object: standard_html_header)
File
/home/zope/Zope-2.1.3-linux2-x86/lib/python/DocumentTemplate/DT_String.py,
line 502, in __call__
(Object: standard_html_header)
File /home/zope/Zope-2.1.3-linux2-x86/lib/python/OFS/DTMLMethod.py,
line 141, in __call__
(Object: standard_navbar)
File
/home/zope/Zope-2.1.3-linux2-x86/lib/python/DocumentTemplate/DT_String.py,
line 502, in __call__
(Object: standard_navbar)
File
/home/zope/Zope-2.1.3-linux2-x86/lib/python/DocumentTemplate/DT_In.py, line
672, in renderwob
(Object: DWSujets)
File /home/zope/Zope-2.1.3-linux2-x86/lib/python/OFS/ObjectManager.py,
line 540, in __getitem__
(Object: ElementWithAttributes)
File /home/zope/Zope-2.1.3-linux2-x86/lib/python/OFS/ObjectManager.py,
line 218, in _getOb
(Object: ElementWithAttributes)
TypeError: hasattr, argument 2: expected string, int found
"""
_______________________________________________________
Get 100% FREE Internet Access powered by Excite
Visit http://freeworld.excite.com