Hi Anthony,
On 4/11/06, Anthony Bigbee <[EMAIL PROTECTED]> wrote:
> Although my pyya-agent is being invoked as a cron service, only code within
> .use(self, workitem) is being executed. I.e. code outside that function is
> never invoked when called. A example illustrating this:
>
> def use (self, workitem):
> print '+++ Dequeue_pyya_agent.use()'
> print 'second line in use()'
> dummyFunc('testing function call')
>
> def dummyFunc(some_string):
> print some_string
>
> The first two lines are printed (to the log/console), but not the third.
> It may be that I'm doing something wrong in Python.
The first method is an instance method, the second one is a class
method, Python distinguishes class from static methods IIRC.
You could perhaps try to
> def dummyFunc (self, some_string):
> print some_string
and
> self.dummyFunc('testing function call')
Best regards,
--
John Mettraux -///- http://jmettraux.openwfe.org
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
OpenWFE - Open source WorkFlow Engine
OpenWFE-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openwfe-users