[Zope] Namespace problems.
Brenton Bills
fud@mail.theinternet.com.au
Mon, 10 Jan 2000 15:30:52 +1000 (EST)
Hi people,
I am having a few problems with namespaces again.
I have some DTML where I do the following,
<dtml-var "ShowDetails(item=item,qty=qty)>
ShowDetails contains,
<dtml-in "sqltofind(item)">
Display the item details
</dtml-in>
Is it wrong to call sql from a method or is this a name space problem?
The error :
Traceback (innermost last):
File /home/zope/Zope/lib/python/ZPublisher/Publish.py, line 214, in
publish_module
File /home/zope/Zope/lib/python/ZPublisher/Publish.py, line 179, in
publish
File /home/zope/Zope/lib/python/Zope/__init__.py, line 202, in
zpublisher_exception_hook
(Object: ElementWithAttributes)
File /home/zope/Zope/lib/python/ZPublisher/Publish.py, line 165, in
publish
File /home/zope/Zope/lib/python/ZPublisher/mapply.py, line 160, in
mapply
(Object: index_html)
File /home/zope/Zope/lib/python/ZPublisher/Publish.py, line 102, in
call_object
(Object: index_html)
File /home/zope/Zope/lib/python/OFS/DTMLDocument.py, line 166, in
__call__
(Object: index_html)
File /home/zope/Zope/lib/python/DocumentTemplate/DT_String.py, line 502,
in __call__
(Object: index_html)
File /home/zope/Zope/lib/python/DocumentTemplate/DT_In.py, line 691, in
renderwob
(Object: GetUsersItems)
File /home/zope/Zope/lib/python/DocumentTemplate/DT_With.py, line 133,
in render
(Object: ShowDetailsOfRoomRC(model=model,qty=qty))
File /home/zope/Zope/lib/python/DocumentTemplate/DT_Util.py, line 335,
in eval
(Object: ShowDetailsOfRoomRC(model=model,qty=qty))
(Info: qty)
File <string>, line 0, in ?
File /home/zope/Zope/lib/python/OFS/DTMLMethod.py, line 141, in __call__
(Object: ShowDetailsOfRoomRC)
File /home/zope/Zope/lib/python/DocumentTemplate/DT_String.py, line 502,
in __call__
(Object: ShowDetailsOfRoomRC)
File /home/zope/Zope/lib/python/DocumentTemplate/DT_In.py, line 633, in
renderwob
(Object: FindDetailsOfRoomRC(_))
File /home/zope/Zope/lib/python/DocumentTemplate/DT_Util.py, line 335,
in eval
(Object: FindDetailsOfRoomRC(_))
(Info: FindDetailsOfRoomRC)
File <string>, line 0, in ?
NameError: (see above)