Exemplo n.º 1
0
 def __setstate__(self, state):
     # Makes sure we have an Entry class now
     self._refreshEntryClass()
     Persistent.__setstate__(self, state)
     self._v_conn = None
     self._v_delete = []
     self._v_openc = 0
Exemplo n.º 2
0
    def __setstate__(self,state):
        #restore object
        Persistent.__setstate__(self, state)
        if not hasattr(self, "_filename"): # backwards compatibility
            self._filename = self.id

        if not hasattr(self, "feed_etag"):
            self.feed_etag = None
        if not hasattr(self, "feed_gone"):
            self.feed_gone = None
        if not hasattr(self, "lastmodified"):
            self.lastmodified = None
        if not hasattr(self, "feed_status"):
            self.feed_status = None
        if not hasattr(self, "feed_version"):
            self.feed_version = None
        if not hasattr(self, "feed_bozo_exception"):
            self.feed_bozo_exception = None
        if not hasattr(self, "feed_encoding"):
            self.feed_encoding = None
        if not hasattr(self, "feed_modified"):
            self.feed_modified = None

        if not hasattr(self, "fetchimage"): # backwards compatibility
            self.fetchimage = "yes"
        self._loadpickles()
Exemplo n.º 3
0
 def __setstate__(self, state):
     # Makes sure we have an Entry class now
     self._refreshEntryClass()
     Persistent.__setstate__(self, state)
Exemplo n.º 4
0
 def __setstate__(self, state):
     # Makes sure we have an Entry class now
     self._refreshEntryClass()
     Persistent.__setstate__(self, state)