On 5/18/05, Titus Brown <[EMAIL PROTECTED]> wrote:
<good arguments to remove the dictionary interface from SessionManager>

I wonder if we can also remove is_dirty. The code says:

        elif session.is_dirty():
            # We have already stored this session, but it's dirty
            # and needs to be stored again.  This will never happen
            # with the default Session class, but it's there for
            # applications using a persistence mechanism that requires
            # repeatedly storing the same object in the same mapping.
            self[session.id] = session

so if I use shelve with "writeback=True" or Zope "PersistentDict" and I
commit the change at the end of the request I don't need it, right?  I found
is_dirty to be one of the most confusing things in the persistency mechanism,
since it feels like a hack to accomodate the simplest usage of shelve and
the ZODB.

           Michele Simionato

             Michele Simionato
_______________________________________________
Quixote-users mailing list
[email protected]
http://mail.mems-exchange.org/mailman/listinfo/quixote-users

Reply via email to