On Tue, Jul 8, 2008 at 9:06 AM, Noah Kantrowitz <[EMAIL PROTECTED]> wrote:
>
> Can this API please be changed before merging to trunk. It is ugly and
> adds a lot of duplicate functions, etc.
>
> Something a bit nicer (assuming 0.12 won't support 2.3):
>
> @transaction
> def do_stuff(self, env, id, db=None):
>     pass
>
> The only major change would be requiring the argument names like "env"
> and "db" to be standardized, which people should really be doing anyway.
>

+1 on this, please.  Much, much nicer than having to write:
def _foo(self, env, db=None):
    ...
def foo(self, env, db=None):
    transaction(env, db, self._foo)

over and over and over again...

Erik

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Development" 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/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to