SVN: Zope/trunk/src/OFS/Application.py Remove strange persistent Expired class

Hanno Schlichting <[email protected]>
Newsgroups gmane.comp.web.zope.cvs
Message-ID <20110703162711.338EE940C9__1328.92278857089$1309710439$gmane$org@cvs.zope.org>
Log message for revision 122099:
  Remove strange persistent Expired class
  

Changed:
  U   Zope/trunk/src/OFS/Application.py

-=-
Modified: Zope/trunk/src/OFS/Application.py
===================================================================
--- Zope/trunk/src/OFS/Application.py	2011-07-03 16:24:42 UTC (rev 122098)
+++ Zope/trunk/src/OFS/Application.py	2011-07-03 16:27:10 UTC (rev 122099)
@@ -28,7 +28,6 @@
 from OFS.metaconfigure import get_packages_to_initialize
 from OFS.metaconfigure import package_initialized
 from OFS.userfolder import UserFolder
-from Persistence import Persistent
 from webdav.NullResource import NullResource
 from zExceptions import Redirect as RedirectException, Forbidden
 
@@ -188,22 +187,6 @@
 InitializeClass(Application)
 
 
-class Expired(Persistent):
-
-    def __setstate__(self, s={}):
-        dict=self.__dict__
-        if s.has_key('id'):
-            dict['id']=s['id']
-        elif s.has_key('__name__'):
-            dict['id']=s['__name__']
-        else: dict['id']='Unknown'
-        dict['title']='** Expired **'
-
-    def __save__(self):
-        pass
-
-    __inform_commit__=__save__
-
 def initialize(app):
     initializer = AppInitializer(app)
     initializer.initialize()

_______________________________________________
Zope-Checkins maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-checkins
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.