durusmail: durus-users: Re: unable to persist stuff from client.py with 1 character python filename?
README example does not work
2004-07-31
2004-07-31
RELEASED: Durus 1.0
2004-07-31
unable to persist stuff from client.py with 1 character python filename?
2004-07-31
Re: unable to persist stuff from client.py with 1 character python filename?
2004-07-31
Re: unable to persist stuff from client.py with 1 character python filename?
David Binger
2004-07-31
On Jul 31, 2004, at 1:40 PM, Jon Dyte wrote:
> I hope it's not too early to report some strangeness but, given this
> python

No, the sooner the better.

I don't think the number of letters in the filename is the problem.
This looks like what would be seen after a client connection has
caught an exception during a connection operation, which leaves
the conversation with the server in a bad state.

If you are doing a lot of experimenting using the client, you may find
it
more convenient to open the file storage directly, as here:

$ cat >a.py
from durus.persistent import Persistent
class A(Persistent):
     pass
$ python client.py --file foo.durus
Durus (foo.durus)
     connection -> the connection
     root       -> get(0)
     get(oid)   -> get an object
     pp(object) -> pretty-print
 >>> import a
 >>> a0 = a.A()
 >>> root['a0'] = a0
 >>> connection.commit()
 >>>


reply