All,
Yes, i realised that a little while ago. Thanks a ton for all of
the responses. My solution was to use deepcopy to make a copy of the
object to use for something else later on, is this appropriate?
Regards,
Kenneth Miller
On Jan 18, 2008, at 3:43 PM, Marius Gedminas wrote:
On T
On Thu, Jan 17, 2008 at 07:08:19PM -0600, Kenneth Miller wrote:
> There error i receive seems to have a problem with my __eq__ method.
>
> Here's the error I get when I do subclass persistent:
>
> ...No handlers could be found for logger "ZODB.Connection"
> E
> =
Kenneth Miller wrote at 2008-1-17 19:08 -0600:
> ...
>Do I always
>need to subclass persistent?
When you assign an instance of your (non "persistent" derived) class
as an attribute to a persistent object,
then your instance will be persisted together with its persistent
container.
However, local
Assuming "u" is a persistent object, try:
for k, u in user_root['userdb'].items():
# write the data to sqlite
u._p_deactivate()
- C
On Jan 17, 2008, at 10:07 AM, Flavio Coelho wrote:
Hi,
I wrote a simple script to move data from a ZODB database to sqlite.
My data is in a OOBTree, I
On Thursday 17 January 2008, Kenneth Miller wrote:
> I'm trying to make one of my classes persistent. The class
> itself has only simple attributes of general types like
> int,string,timestamp, no lists etc. It seems to work just fine without
> subclassing Persistent, but causes an erro
I don't have time to offer specific suggestions or help, other than to
say that while persistence classes are powerful, these are wildly
advanced. I steer clear of them myself.
Jim
On Jan 17, 2008, at 8:08 PM, Kenneth Miller wrote:
All,
Quick question.
I'm trying to make one of