Am 09.07.2010 um 17:31 schrieb pipoun:

Hi,

We are using the sqlachemy orm (i.e. the model package) in local stand
alone applications.
That's why we want to relocate the package in a completely different
directory hierarchy.

So I'm wondering if I could simply modify the following
model.__init__.py file to:
from new.path.to.model.package import *

Or is there any other things to watch out? I'm fearing some hardcoded
paths to the model modules. But as many objects and classes are
already imported in the original __init__.py we tought it could be
harmless.

To say it in german - "probieren geht ueber studieren". Roughly translated to "just do it". If it fails, try to find out why.

I guess it should be ok though, all SA & TG care about is that when importing __init__.py, all model classes are eventually added to the metadata, especially once the init-function is called.

Diez

--
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.

Reply via email to