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 @@
##############################################################################
"""Property sheets"""
__version__='$Revision: 1.42 $'[11:-2]
__version__='$Revision: 1.43 $'[11:-2]
import time, string, App.Management, Globals
from ZPublisher.Converters import type_converters
......@@ -607,8 +607,9 @@ class PropertySheets(Implicit, App.Management.Tabs):
result.append(propset)
self.parent.__propsets__=tuple(result)
def __del__(self):
self.parent=None
# Why?
#def __del__(self):
# self.parent=None
def __len__(self):
return len(self.__propsets__())
......
......@@ -89,7 +89,7 @@
in favor of a standard xml package once some issues are
worked out."""
__version__='$Revision: 1.5 $'[11:-2]
__version__='$Revision: 1.6 $'[11:-2]
import sys, os, string, xmllib
from Acquisition import Implicit
......@@ -174,9 +174,9 @@ class Document(Node):
result.append(node.toxml())
return string.join(result, '')
def __del__(self):
self.document=None
print 'bye!'
#def __del__(self):
# self.document=None
# print 'bye!'
class Element(Node):
__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