i was missing that;
def load_state(self):
if self.state: return self.state
try: s = CrudState.get(identity.current.user.id)
except: return {}
if s:return s.state
return {}
def save_state(self,state):
try: s = CrudState.get(identity.current.user.id)
except: s = None
if s: s.state = state
else: CrudState(id=identity.current.user.id,state=state)
self.state = state
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---