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

Log in
Name

Password

 
 

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.

Latest Release: 0.1
Last Updated: 2000-02-11 20:54:56
Author: ZopeOrgSite
Categories: Helpers
Maturity: Development

Available Releases

Version Maturity Platform Released
0.1 Development   2000-02-11 20:54:56
  LocalFactory-0.1.tar.gz (3 K) All