Thanks for the suggestion Wolodja but I dont think that would work.
The self object is not defined at the time of class loading in python:

>>> class Test:
...     qq = self.__class__.__name__
...     def fu(self):
...             print "fu"
...
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 2, in Test
NameError: name 'self' is not defined

I will post the solution here if I find any.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" 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/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to