You are not logged in Log in Join
You are here: Home » Members » Lalo's page at Zope.org » Local Factory objects

Log in
Name

Password

 
 

Folder icon Local Factory objects

A LocalFactory is really a Factory (not a subclass or a wrapper, it is really a Factory) which can be created anywhere in your hierarchy, cleaning up your namespace/Addbox pollution.

I'd now like to work on Permission pollution, but this has a lower priority. Suggestions accepted.

In your Product where you want to use LocalFactories all you have to do is delete the Factory and the addForm. You must create an addForm in the same folder as the Factory (or somewhere where acquisition will find it). You still need the Permission and Constructor inside the Product.

In your addForm methods, you will have to use code like this for the form action:

<form method=POST action="../../ProductName/constructorName">

due to the strange things the Factory does to the namespace.

 Title   Type   Size   Modified   Status 
 0.1 Edit object Software Release   2000-02-11 published