Commit cb312cca authored by Jim Fulton's avatar Jim Fulton

Fixed bug that made factory editing impossible.

parent 613f3172
......@@ -84,8 +84,8 @@
##############################################################################
__doc__='''Principia Factories
$Id: Factory.py,v 1.4 1998/12/04 20:15:25 jim Exp $'''
__version__='$Revision: 1.4 $'[11:-2]
$Id: Factory.py,v 1.5 1999/02/22 21:48:46 jim Exp $'''
__version__='$Revision: 1.5 $'[11:-2]
import OFS.SimpleItem, Acquisition, Globals
......@@ -141,3 +141,14 @@ class Factory(OFS.SimpleItem.Item, Acquisition.Implicit):
def index_html(self, REQUEST):
" "
return getattr(self, self.initial)(self.aq_parent, REQUEST)
def objectIds(self):
return filter(
lambda id, myid=self.id: id != myid,
self.aq_parent.objectIds()
)
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