tsume wrote:
> What is your take on kwargs, do you like them?
> 
> turbogears.scheduler.add_interval_task(action=do_something,
> taskname='do_something', initialdelay=0, interval=10)
> 
> vs.
> 
> scheduler.addPeriodicAction(time(), 5, PageGenerator('static.html'),
> 'PageGenerator')

I'm not sure what you're driving at exactly.

In this case, the action and the interval are required anyway. One thing 
that TurboGears does better is that it has reasonable default values for 
the start time (now) and seems to allow unnamed tasks. But I think this 
is just a flaw of addPeriodicAction and not something Webware specific.

-- Chris

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to