[Grok-dev] megrok.rdb updated

Sebastian Ware sebastian at urbantalk.se
Wed Jun 25 09:28:01 EDT 2008


25 jun 2008 kl. 14.46 skrev Martijn Faassen:
>
> I also updated the rdbexample to make use of the new code, though  
> it's rather hard to play with it as it has the horrible text-only  
> screens instead of proper page templates:
>
> http://svn.zope.org/grokapps/rdbexample/trunk

FWIW I find your sample application excellent because of it's  
simplicity!

This looks a bit verbose, is it really necessary to both add the  
object AND set it?

    session = rdb.Session()
    session.add(department)
    self.context.set(department)

Is there a reason for this?

Mvh Sebastian


More information about the Grok-dev mailing list