[Zope] nested dtml-in with sql method -namespace problem (?)

Bak @ kedai bak@nstp.com.my
Sun, 18 Jun 2000 21:38:00 +0800


hi all,
i have posted this question a while back, but got no replies.  maybe imy
question is a bit off or unclear.  so here it is again.  rephrased.

i have 2 sql methods.  sql1, and sql2.  sql 2 got the parameter for it's query
from sql1.  as follows:
--
<dtml-in "sql1">
<dtml-in "sql2(obj=myobj)">
do stuff
</dtml-in>
</dtml-in>
--

sql1 is just a query that returns myobj that will be used by sql2.  this used
to work on 2.1.6 but not anymore on 2.2

i guess tmyobj is not in the namespace.  even tried passing 
_.None, _,obj=myobj
but resulted the same error.

the traceback
raceback (innermost last):
  File /home/kdie/Zope-2.2.0b1-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module
  File /home/kdie/Zope-2.2.0b1-src/lib/python/ZPublisher/Publish.py, line 187, in publish
  File /home/kdie/Zope-2.2.0b1-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook
    (Object: ElementWithAttributes)
  File /home/kdie/Zope-2.2.0b1-src/lib/python/ZPublisher/Publish.py, line 171, in publish
  File /home/kdie/Zope-2.2.0b1-src/lib/python/ZPublisher/mapply.py, line 160, in mapply
    (Object: index_html)
  File /home/kdie/Zope-2.2.0b1-src/lib/python/ZPublisher/Publish.py, line 112, in call_object
    (Object: index_html)
  File /home/kdie/Zope-2.2.0b1-src/lib/python/OFS/DTMLMethod.py, line 168, in __call__
    (Object: index_html)
  File /home/kdie/Zope-2.2.0b1-src/lib/python/DocumentTemplate/DT_String.py, line 500, in __call__
    (Object: index_html)
  File /home/kdie/Zope-2.2.0b1-src/lib/python/DocumentTemplate/DT_In.py, line 611, in renderwb
    (Object: qry_msgs_by_par_id(par_id=0))
  File /home/kdie/Zope-2.2.0b1-src/lib/python/OFS/DTMLMethod.py, line 164, in __call__
    (Object: show_subtree_index)
  File /home/kdie/Zope-2.2.0b1-src/lib/python/DocumentTemplate/DT_String.py, line 500, in __call__
    (Object: show_subtree_index)
  File /home/kdie/Zope-2.2.0b1-src/lib/python/DocumentTemplate/DT_In.py, line 633, in renderwob
    (Object: qry_msg_thread(par_id=obj_id))
  File /home/kdie/Zope-2.2.0b1-src/lib/python/DocumentTemplate/DT_Util.py, line 339, in eval
    (Object: qry_msg_thread(par_id=obj_id))
    (Info: qry_msg_thread)
  File <string>, line 0, in ?
  File /home/kdie/Zope-2.2.0b1-src/lib/python/Shared/DC/ZRDB/DA.py, line 444, in __call__
    (Object: qry_msg_thread)
  File /home/kdie/Zope-2.2.0b1-src/lib/python/DocumentTemplate/DT_String.py, line 500, in __call__
    (Object: <string>)
  File /home/kdie/Zope-2.2.0b1-src/lib/python/Shared/DC/ZRDB/sqlvar.py, line 168, in render
    (Object: obj_id)
Missing Input: (see above)


any clues, hints are appreciated

thanks
-- 
------------------------------------------------------
http://www.kedai.com.my/kk
Am I Evil?