Commit b6228498 authored by Jim Fulton's avatar Jim Fulton

Got rid of destructor. What's the point of a destructor that changes

an attribute?
parent d1acdb6e
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
############################################################################## ##############################################################################
"""Property sheets""" """Property sheets"""
__version__='$Revision: 1.42 $'[11:-2] __version__='$Revision: 1.43 $'[11:-2]
import time, string, App.Management, Globals import time, string, App.Management, Globals
from ZPublisher.Converters import type_converters from ZPublisher.Converters import type_converters
...@@ -607,8 +607,9 @@ class PropertySheets(Implicit, App.Management.Tabs): ...@@ -607,8 +607,9 @@ class PropertySheets(Implicit, App.Management.Tabs):
result.append(propset) result.append(propset)
self.parent.__propsets__=tuple(result) self.parent.__propsets__=tuple(result)
def __del__(self): # Why?
self.parent=None #def __del__(self):
# self.parent=None
def __len__(self): def __len__(self):
return len(self.__propsets__()) return len(self.__propsets__())
......
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
in favor of a standard xml package once some issues are in favor of a standard xml package once some issues are
worked out.""" worked out."""
__version__='$Revision: 1.5 $'[11:-2] __version__='$Revision: 1.6 $'[11:-2]
import sys, os, string, xmllib import sys, os, string, xmllib
from Acquisition import Implicit from Acquisition import Implicit
...@@ -174,9 +174,9 @@ class Document(Node): ...@@ -174,9 +174,9 @@ class Document(Node):
result.append(node.toxml()) result.append(node.toxml())
return string.join(result, '') return string.join(result, '')
def __del__(self): #def __del__(self):
self.document=None # self.document=None
print 'bye!' # print 'bye!'
class Element(Node): class Element(Node):
__type__=type_element __type__=type_element
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment