Hey,

Laurence Rowe wrote:
See pypi or the readme for details, but briefly usage is something like:

    >>> engine = create_engine('sqlite:///')
    >>> Session = scoped_session(sessionmaker(
    ... bind=engine, transactional=True, autoflush=True,
    ... extension=ZopeTransactionExtension()))
    >>> session = Session()
    >>> session.save(User(name='bob'))
    >>> transaction.commit()

One thing I understood from Christian Theune is that with scoped sessions, explicit session.save() is not always necessary. Since I see it being used here, could you perhaps comment on this?

This is great news, also for megrok.rdb, which we started to develop at the Grokkerdam sprint.

Regards,

Martijn

_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )

Reply via email to