Thanks a lot. I've defined classes in separate module and it is working now.

On 8/17/07, Michael Bayer <[EMAIL PROTECTED]> wrote:
>
>
>
>
> On Aug 17, 11:54 am, Vitaliyi <[EMAIL PROTECTED]> wrote:
> >
> > I've tried this :
> >
> >  import psycopg2
> > ...
> > s = curs.fetchone()[0]
> > ls = cPickle.loads(str(s))
> >
> > and it returned :
> > AttributeError: 'module' object has no attribute 'Path'
> >
> > just as django did. it pretends that 'Path' is not defined. Seems it is
> > still the problem of django
> >
> > Thanks.
> >
> > P.S. going to use cPickle without sqlalchemy to load data
>
> the data coming back from your database is just a string.  using
> psycopg2/sqlalchemy or nothing to produce that string before sending
> to pickle.loads() should not affect the equation.  I understand that
> "Path" is not part of django, but i was suggesting that if the module
> where Path resides is *imported* by django using a reloadable
> container of some kind, that could break pickle's ability to re-locate
> the object.  I suggest this because you say it worked *without*
> django.
>
> also i have no idea how django loads modules, but from my own work
> with mod_python as well as Myghty and Mako i know that "reloadable"
> module schemes are important in web frameworks so that changes to
> controller modules show up immediately in the application without
> restarting.
>
>
> >
>

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