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.
  1. before_save and after_save hook in BaseModel

    Now, you can override before_save or after_save method in a BaseModel in order to hook the save (put) method. If before_save returns a False, the data won't be put in Datastore.
    For example,
    ....
    class Bar(BaseModel):
    .....
    def before_save(self):
    is_valid = # check the attributes
    return is_valid

  2. flash (dict) object support

    You can temporarily put something between actions through the flash object in a controller. For example:
    class Foo(BaseController):
    ....
    def create(self):
    ....
    self.flash['message'] = 'Creation Done'
    ....

    def show(self):
    msg = self.flash.get('message', '')
    ...
The 0.3 will be soon released, please wait a moment :-)