<sigh> Getting there. Note to the wise - when using PCGI and Apache, sometimes Zope won't notice that you've edited an internal method source file... The cache in Data.fs gets out-of-date. Ok. So, I have this working: def callSQLmethod(self, REQUEST): s=self.sqlMethod(self, REQUEST) y = [] for x in s: y.append(x) return str(y) Called over XMLRPC, this gives me: [<r instance at 853ee30>, <r instance at 84f2810>, <r instance at 84f29f0>, <r instance at 84b1528>] Fine, I can extract the result data later... How can I pass paramters to the method without overwriting the REQUEST value - I need access to that, so I can get environment variables, namely the SSL certificate subject name. Regards, Phil +----------------------------------+ | Phil Mayers, Network Support | | Centre for Computing Services | | Imperial College | +----------------------------------+ -----Original Message----- From: Mayers, Philip J [mailto:p.mayers@ic.ac.uk] Sent: 08 November 2000 10:29 To: 'zope@zope.org' Subject: RE: [Zope] XMLRPC accessing Zope DTML/SQL methods Ok, so this works: def extmethod(self, REQUEST): return str(REQUEST)
From the web that prints the string Representation of REQUEST. But, over XMLRPC, this:
s=xmlrpblib.Server("http://server.name/Zope/path/") s.path.extmethod() Returns the string representation of REQUEST, but *this* s.path.extmethod('rrr') return 'rrr'. What's happening? Regards, Phil +----------------------------------+ | Phil Mayers, Network Support | | Centre for Computing Services | | Imperial College | +----------------------------------+ -----Original Message----- From: Dieter Maurer [mailto:dieter@handshake.de] Sent: 07 November 2000 21:35 To: Mayers, Philip J Cc: 'zope@zope.org' Subject: Re: [Zope] XMLRPC accessing Zope DTML/SQL methods <snip helpful replies> _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )