W liście Jan Koprowski z dnia środa 21 stycznia 2009:

> def __new__(cls, *args, **kwargs):
>         if 'username' in kwargs.keys():
>             uid = getpwnam(kwargs.get('username')).pw_uid
>         if 'uid' in kwargs.keys():
>             uid = kwargs.get('uid')
>         # @todo - poprawic czytelnosc
>         if uid:
>             if meta.Session.query(Informations).get(uid) == None:
>                 return object.__new__(cls, *args, **kwargs)
>             else:
>                 return meta.Session.query(Informations).get(uid)
>         else:
>             return object.__new__(cls, *args, **kwargs)
>

What exactly are you trying to achieve?

-- 
Paweł Stradomski

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

Reply via email to