[Zope-CVS] CVS: Products/Ape/apelib/fs - properties.py:1.2
Shane Hathaway
shane@zope.com
Sat, 5 Apr 2003 17:12:04 -0500
Update of /cvs-repository/Products/Ape/apelib/fs
In directory cvs.zope.org:/tmp/cvs-serv32415/apelib/fs
Modified Files:
properties.py
Log Message:
simplified a call to getKeychain()
=== Products/Ape/apelib/fs/properties.py 1.1.1.1 => 1.2 ===
--- Products/Ape/apelib/fs/properties.py:1.1.1.1 Sat Mar 15 18:44:37 2003
+++ Products/Ape/apelib/fs/properties.py Sat Apr 5 17:12:02 2003
@@ -117,7 +117,7 @@
return self.schema
def load(self, event):
- p = event.getKeychain()[-1]
+ p = event.getKey()
state = self.fs_conn.readSection(p, self.section, '').strip()
return state, state
@@ -126,7 +126,7 @@
raise RuntimeError('Not a string: %s' % repr(state))
state = state.strip()
if state:
- p = event.getKeychain()[-1]
+ p = event.getKey()
self.fs_conn.writeSection(p, self.section, state)
return state