[Zope-CVS] CVS: Products/ExternalEditor - zopeedit.py:1.43
Casey Duncan
casey@zope.com
Fri, 4 Apr 2003 09:31:54 -0500
Update of /cvs-repository/Products/ExternalEditor
In directory cvs.zope.org:/tmp/cvs-serv13702
Modified Files:
zopeedit.py
Log Message:
Add did_lock class attribute to prevent errors in __del__ when
__init__ raises an exception before things are completely setup.
=== Products/ExternalEditor/zopeedit.py 1.42 => 1.43 ===
--- Products/ExternalEditor/zopeedit.py:1.42 Tue Apr 1 12:01:36 2003
+++ Products/ExternalEditor/zopeedit.py Fri Apr 4 09:31:53 2003
@@ -85,6 +85,8 @@
class ExternalEditor:
+ did_lock = 0
+
def __init__(self, input_file):
try:
# Read the configuration file