Maybe somebody else has a better solution to this, but I don't even use
keywords in my args. Rather, I do something like:
def default(self,*args,**kargs)
proj = 'New'
sect = 'Edit'
if len(args) > 0:
proj = args[0]
if len(args) > 1:
sect = args[1]
This works, but I'd like to know a more elegant way of doing this,
which can unpack a tuple of unknown length...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---