I tried to move to modules but got the following issues:

This is not possible - e.g. to acces the class directly without a prefix - 
when I have a lot of code if I cannot do that it is a lot of work adding
a prefix.

myclass = MyClass.profile(id)
name = myclass.name

Also if I have several related class definitions in a module - how to 
access them? There is a possibility to put every class in a separate module
but it is not practical - my classes are interconnected. Also they use
Google db.Model so the class definition is like: 

class MyClass(db_google.Model)
          ....

I import Google imports successfully but not sure if every Google Model 
feature is working.

Bottom line - I cannot just copy/paste my working and tested class 
definitions 
in a module(s) without a significant code rewrite, all is already tested 
and I don't 
want to tweak it in order to be accessible from various parts of the code - 
it just
have to be available globally and used like:

myclass = MyClass.profile(id)
name = myclass.name

Otherwise it is not practical - it needs a lot of work.





Reply via email to