Re: [Zope] Passing Parameters to External Methods

2005-11-17 Thread Paul Winkler
On Thu, Nov 17, 2005 at 10:02:12AM -0500, Asad Habib wrote: > Actually, I not receiving an error anymore but a pdf is not being > generated either. When I test my External Method directly through the > ZMI the only thing that is returned is the following line: > > <__builtin__.html2pdf instance

Re: [Zope] Passing Parameters to External Methods

2005-11-17 Thread Asad Habib
Actually, I not receiving an error anymore but a pdf is not being generated either. When I test my External Method directly through the ZMI the only thing that is returned is the following line: <__builtin__.html2pdf instance at 0x4a1e8f0> I have tried passing in the parameters using the reque

Re: [Zope] Passing Parameters to External Methods

2005-11-16 Thread J Cameron Cooper
Paul Winkler wrote: On Wed, Nov 16, 2005 at 11:26:10AM -0600, J Cameron Cooper wrote: Asad Habib wrote: Hi Cameron. You are right but the self parameter is implicitly passed. It is implicitly passed, but must be explicitly defined:: def createHtmlToPdf(self, in_htmlFile, in_domain, in_pdfF

Re: [Zope] Passing Parameters to External Methods

2005-11-16 Thread Paul Winkler
On Wed, Nov 16, 2005 at 11:26:10AM -0600, J Cameron Cooper wrote: > Asad Habib wrote: > >Hi Cameron. You are right but the self parameter is implicitly passed. > > It is implicitly passed, but must be explicitly defined:: > > def createHtmlToPdf(self, in_htmlFile, in_domain, in_pdfFile): > r

Re: [Zope] Passing Parameters to External Methods

2005-11-16 Thread J Cameron Cooper
Asad Habib wrote: Hi Cameron. You are right but the self parameter is implicitly passed. It is implicitly passed, but must be explicitly defined:: def createHtmlToPdf(self, in_htmlFile, in_domain, in_pdfFile): return html2pdf(in_htmlFile, in_domain, in_pdfFile) When you say:: context

Re: [Zope] Passing Parameters to External Methods

2005-11-16 Thread Asad Habib
Hi Cameron. You are right but the self parameter is implicitly passed. - Asad On Wed, 16 Nov 2005, J Cameron Cooper wrote: Asad Habib wrote: Hello. I am trying to use the Python version of the PHP script written by Jason Rust called 'HTML_ToPDF.php'. I have represented this script using an

Re: [Zope] Passing Parameters to External Methods

2005-11-16 Thread J Cameron Cooper
Asad Habib wrote: Hello. I am trying to use the Python version of the PHP script written by Jason Rust called 'HTML_ToPDF.php'. I have represented this script using an External Method since it uses functions, such as open, which cannot be used in Zope Python scripts for security reasons. The py

Re: [Zope] Passing Parameters to External Methods

2005-11-16 Thread Paul Winkler
On Wed, Nov 16, 2005 at 09:30:22AM -0500, Asad Habib wrote: > Can parameters > be passed to external methods? Certainly. > Whenever I try to pass parameters to > function 'createHtmlToPdf', Zope returns an error stating that no such > function exists. Can you provide us with the complete tr

[Zope] Passing Parameters to External Methods

2005-11-16 Thread Asad Habib
Hello. I am trying to use the Python version of the PHP script written by Jason Rust called 'HTML_ToPDF.php'. I have represented this script using an External Method since it uses functions, such as open, which cannot be used in Zope Python scripts for security reasons. The python code for the

Re: [Zope] Passing parameters to external methods

2000-09-15 Thread Andreas Pauley
Thanks people, i'll be passing REQUEST from now on. Cheers, Andreas. Andreas Pauley wrote: > > Hi, > I need to pass some parameters to my external methods. > -- In a world without fences, who needs gates? ___ Zope maillist - [EMAIL PROTECTED] h

Re: [Zope] Passing parameters to external methods

2000-09-15 Thread Tony McDonald
At 10:18 pm +0200 14/9/00, Dieter Maurer wrote: >Andreas Pauley writes: > > I need to pass some parameters to my external methods. > > > > I have an external method that looks (somewhat) like this: > > > > def extAccess(self, accttype_cde): > > return accttype_cde > > > > > > >

Re: [Zope] Passing parameters to external methods

2000-09-14 Thread Dieter Maurer
Andreas Pauley writes: > I need to pass some parameters to my external methods. > > I have an external method that looks (somewhat) like this: > > def extAccess(self, accttype_cde): > return accttype_cde > > > > > The external method returned true > > > I get the fol

[Zope] Passing parameters to external methods is broken...

2000-09-14 Thread Chris Withers
Andreas Pauley wrote: > I have an external method that looks (somewhat) like this: > > def extAccess(self, accttype_cde): > return accttype_cde > > The external method returned true > > > I get the following error for the above statement: > Error Type: TypeError > Error Value: not enoug

Re: [Zope] Passing parameters to external methods

2000-09-14 Thread Dominic Mitchell
On Wed, Sep 13, 2000 at 11:49:03PM +0200, Andreas Pauley wrote: > Hi, > I need to pass some parameters to my external methods. > > I have an external method that looks (somewhat) like this: > > def extAccess(self, accttype_cde): > return accttype_cde > > In the following dtml code, the foll

Re: [Zope] Passing parameters to external methods

2000-09-13 Thread Andy McKay
Ive always sent through the REQUEST with no problem, if you can do that. - Original Message - From: "Andreas Pauley" <[EMAIL PROTECTED]> To: "Zope" <[EMAIL PROTECTED]> Sent: Wednesday, September 13, 2000 2:49 PM Subject: [Zope] Passing parameters to exte

[Zope] Passing parameters to external methods

2000-09-13 Thread Andreas Pauley
Hi, I need to pass some parameters to my external methods. I have an external method that looks (somewhat) like this: def extAccess(self, accttype_cde): return accttype_cde In the following dtml code, the following statement (with the SQL method) works fine: sqlAccess returned something