I'm currently using an existing database(MySQL) with table Greet, so
my model.py looks like the following:
class Greet(SQLObject):
class sqlmeta:
fromDatabase = true
My controller.py:
class Root(controllers.RootController):
@expose(...)
def index(self):
g = Greet()
return dict(hellos=[])
Each time I reload my main web page, I an empty new entry is populated
in the table Greet. It seems to be coming from the call Greet() in
index(). Does anyone know why this is happening?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---