[CMF-checkins] CVS: CMF/CMFWorkspaces - References.py:1.2
Shane Hathaway
shane@cvs.zope.org
Mon, 3 Jun 2002 12:07:55 -0400
Update of /cvs-repository/CMF/CMFWorkspaces
In directory cvs.zope.org:/tmp/cvs-serv17655
Modified Files:
References.py
Log Message:
Clarified the intent by renaming _reference_class to _reference_factory.
=== CMF/CMFWorkspaces/References.py 1.1.1.1 => 1.2 ===
security = ClassSecurityInfo()
- _reference_class = PortalRelativeReference
+ _reference_factory = PortalRelativeReference
_next_id = 1
_ignore_dups = 1
@@ -124,7 +124,7 @@
security.declarePrivate('addReference')
def addReference(self, object):
"""Store a reference under a new, unique id."""
- r = self._reference_class(object)
+ r = self._reference_factory(object)
if self._ignore_dups:
for other in self._refs.values():
if other == r: