from sqlobject import *
sqlhub.processConnection = connectionForURI('sqlite:///:memory:')
class Adventurer(SQLObject):
...     name = StringCol()
...


I enter the above into a Python shell.  What I want to do is redefine
my Adventurer class, for example:
class Adventurer(SQLObject):
...     name = StringCol()
...     level = IntCol()

I don't know how to delete the old definition though.  If I try to just
type in the new class definition I get a ValueError that says,
expectedly, 'class Adventurer is already in the registry'.  How do I
delete the previous definition so I can define a new class with the
same name?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to