Hello zope, how do i pass arguments to methods called by ZPublisher.Zope? i want to debug a function which accepts a tuple as parameter... how do i publish it? ZPublisher.Zope('/path/to/method',d=1, ???? thanks! k -- don't believe everything you think
3205 5361 1215 9784 writes:
how do i pass arguments to methods called by ZPublisher.Zope?
i want to debug a function which accepts a tuple as parameter...
how do i publish it?
ZPublisher.Zope('/path/to/method',d=1, ???? You can pass them via the "query_string" of your URL.
ZPublisher.Zope('/...?arg1=val1&arg2=val2&...') You may need to "url_quote_plus" (from "urlib import quote_plus") the values. Dieter
Hello Dieter, Sunday, August 4, 2002, 11:45:52 PM, you wrote: DM> > how do i pass arguments to methods called by ZPublisher.Zope? DM> > i want to debug a function which accepts a tuple as parameter... DM> > how do i publish it? DM> > ZPublisher.Zope('/path/to/method',d=1, ???? DM> You can pass them via the "query_string" of your URL. DM> ZPublisher.Zope('/...?arg1=val1&arg2=val2&...') how do you pass tuples, or other kinds of objects? that would be the interesting part... DM> Dieter thanks, k. -- don't believe everything you think
3205 5361 1215 9784 writes:
DM> > how do i pass arguments to methods called by ZPublisher.Zope? DM> > i want to debug a function which accepts a tuple as parameter... DM> > how do i publish it? DM> > ZPublisher.Zope('/path/to/method',d=1, ???? DM> You can pass them via the "query_string" of your URL. DM> ZPublisher.Zope('/...?arg1=val1&arg2=val2&...')
how do you pass tuples, or other kinds of objects? that would be the interesting part... Please read the "ZPublisher" section of
<http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html> especially, subsection 2.6.3. Dieter
participants (2)
-
3205 5361 1215 9784 -
Dieter Maurer