Forum OpenACS Development: Is Organizations pkg a singleton pkg?

reading about and after a few installations of organizations pkg, I realised it's actually a singleton pkg.

Singleton packages can have at most one instance; attempts to create more instances of the singleton will return the currently created instance. Singleton packages are appropriate for services that should not have multiple instances, such as the ACS Kernel.

How to make it non-singleton?? Is it possible?

I need to install two or more instances of organization pkg and they must be diferent, independent from each other such as edit-this-page, forums, etc

Is there a best approach on this situation?

Collapse
Posted by Malte Sussdorff on
Yes, it is a singleton. You can "unsingleton" it by using the fact that organizations are parties, are objects and therefore store a package_id with them. Then you "only" need to drop the unique constraint on the name of the organization and change the code to read and safe an organization to pass along the package_id.
Collapse
Posted by Orzenil Silva Junior on
Iuri,

you could try this patch and see if it works for you

http://www.openacs.org/bugtracker/openacs/patch?patch_number=844

if you want to try it first backup your data, apply the patch and upgrade organizations from apm.