[storm] Catching errors and LDAP support

Morten Siebuhr sbhr at sbhr.dk
Tue Jul 8 18:39:45 BST 2008


Hey 'yall,

I'm trying to catch some errors from the DB in my application - but I
get the underlying DB's error directly, so I get different errors
depending on what DB I run on. Is there a way to catch these in some
generic way, while I will still be able to return a reasonable message
to the user?

i.e.:
try:
	storm.this()
	storm.that()
	storm.commit()
except SomeGenericStormError, e:
	print "Could not bla bla bla: %s" % e
	storm.rollback()


And while playing around with LDAP/AD, it struck me that Storm actually
fits quite nicely with a lot of common LDAP uses; AFAIK, you usually
have a sub-tree for users, another for groups, then computers, DNS,
etc., and it would be quite nice to package these in Storm classes. Is
this possible at all, or is Storm tied too closely to SQL?

On a related note: does anybody know of *any* Python ORM for LDAP?

KR,
Morten Siebuhr




More information about the storm mailing list