[Twisted-Python] autoincrement in axiom

code prophecy codeprophecy1 at gmail.com
Sun Feb 28 18:31:36 EST 2010


Is there a way to use autoincrement in axiom ? I need a property in my model
that reflects the last  row id after every insert operation. Also, is it
safe to use non-db variables in axiom model ? something like

class test1(Item):
  name = attributes.text()

  surname = "my non db variable"

The interpretor does throw an error but that can be overcome by using
self.__dict__['surname'] = "non db" . Just wanted to know if this is
recommended or not

sorry, if this' already been answered; i did search but couldn't find the

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20100228/24cac92c/attachment.htm 

More information about the Twisted-Python mailing list