durusmail: durus-users: How to start a Durus server
How to start a Durus server
2006-05-30
2006-05-30
How to start a Durus server
Damjan
2006-05-30
Hi all,
I'm just starting to use Durus, so maybe some of my question will be
stupid.

First of all, I decided to use Durus because I needed to store Python
objects with different attributes and while it probably would be possible
to model some SQL db, that would be too strict for my needs.

btw I'm also using twisted in my app, to collect several SNMP values out
of some network equipment.

Now, first question: what's the best way to start the durus server, with the
"durus -s"
script or I should start it programatically?

And second can I store any object in Durus, or I have to make some
special provisions.

The thing is I'd have something like this:

sm = SM(init_params..)
sm.mac = 'aa-bb-cc-dd-ee-ff'
sm.ip = '....'
....etc...
root['sm'] = PersistentDict()
root['sm'][sm.ip] = sm

Can I add random string and integer attributres to the sm instance and
then just store it in the Durus DB? SM is the class that just inits some
attributes out of snmp oids.


--
damjan | дамјан
This is my jabber ID -->         damjan@bagra.net.mk
 -- not my mail address, it's a Jabber ID --^ :)
reply