before_save and after_save hook in BaseModel
Now, you can overridebefore_saveorafter_savemethod in a BaseModel in order to hook the save (put) method. Ifbefore_savereturns aFalse, the data won't be put in Datastore.
For example,....
class Bar(BaseModel):
.....
def before_save(self):
is_valid = # check the attributes
return is_validflash (dict) object support
You can temporarily put something between actions through theflashobject in a controller. For example:class Foo(BaseController):
....
def create(self):
....
self.flash['message'] = 'Creation Done'
....
def show(self):
msg = self.flash.get('message', '')
...
2009/05/20
0.3 Beta is out
We're glad to announce that GAEO 0.3 has released a beta version (link). In this release, we've fixed some bugs and added some features.
Subscribe to:
Posts (Atom)