Commit 32f563b7 authored by 's avatar

Added delete handler to make sure Factories unregister from the add list.

parent cf20463d
......@@ -84,8 +84,8 @@
##############################################################################
__doc__='''Principia Factories
$Id: Factory.py,v 1.9 1999/05/25 20:18:30 brian Exp $'''
__version__='$Revision: 1.9 $'[11:-2]
$Id: Factory.py,v 1.10 1999/06/16 14:15:27 brian Exp $'''
__version__='$Revision: 1.10 $'[11:-2]
import OFS.SimpleItem, Acquisition, Globals
......@@ -136,7 +136,7 @@ class Factory(Globals.Persistent, Acquisition.Implicit, OFS.SimpleItem.Item):
product=self.aq_parent
product.aq_acquire('_manage_remove_product_meta_type')(
product, self.id, self.object_type)
manage_main=Globals.HTMLFile('editFactory',globals())
......
......@@ -211,10 +211,10 @@ class Product(Folder):
if REQUEST is not None:
return self.manage_main(self,REQUEST,update_menu=1)
def _delObject(self,id):
def _delObject(self,id, dp=1):
o=getattr(self, id)
if o.meta_type==Factory.meta_type: o._unregister()
Product.inheritedAttribute('_delObject')(self, id)
Product.inheritedAttribute('_delObject')(self, id, dp=1)
def __init__(self, id, title):
self.id=id
......
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