--On 12. September 2007 12:07:54 +0530 mrajasekhar <[EMAIL PROTECTED]> wrote:

def fun1(self):
      return fun2(self,REQUEST=REQUEST)

what is the meaning of REQUEST=self.REQUEST

The REQUEST is always available as part of the "current" object - usually referenced as 'context' in PythonScripts, 'context' or 'here' in ZPTs
or when using 'self' within the implemetation of a Zope class. There is
nothing specific about CMF here.

in the above function.what
is it doing and iam returning fun2 to the browser
please explain me in detail

If the method expects a REQUEST object (for whatever reason)
you have to pass it in. A method of a persistent object could also
take the REQUEST from 'self'....


Attachment: pgpgEqdLt0Zdk.pgp
Description: PGP signature

Zope-CMF maillist  -  Zope-CMF@lists.zope.org

See http://collector.zope.org/CMF for bug reports and feature requests

Reply via email to