Oliver Bleutgen  <[EMAIL PROTECTED]> wrote:
> def return_vars(self, var=None, **kw):
>    return "var: %s, kw: %s" % (var,kw)
> Is it correct that any passed form variable besides "var" will get lost, 
> i.e. that ZPublisher will _not_ marshall the other variables into the 
> method call?

Very often, to allow calling of some scripts from a form or from another
script, I end up using the idiom:

def somescripts(self, foo, bar, REQUEST=None, **kw)
# or:
##parameters=foo, bar, REQUEST=None, **kw

if REQUEST is not None:


Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:[EMAIL PROTECTED]

Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to