[Erp5-dev] Problem with portal_selections tool

Jerome Perrin jerome at nexedi.com
Fri Aug 12 12:43:34 CEST 2005


On Fri, Aug 12, 2005 at 02:09:45PM +0530, Shrenik Bhura wrote:
> Hello,
> 
> On trying to access the portal_selections tool, we encounter this error
> -
> PROBLEM(100) ZPublisher DTML file
> '/var/lib/zope/Products/ERP5Form/dtml/explainCategoryTool.dtml' could
> not be read

Hello,

I've just commited some management screens for portal_selections in CVS. Now
you will be able to see what are your selection parameters from the ZMI.

> I was trying to access the portal_selections tool to check-out the
> selection parameters/keys for the accounting_selection when I
> encountered this error.
> 
> I believe this is the right approach. The other way I found was to
> change the default section category in ERP5Defaults.

In the current implementation of ERP5Defaults, (we also sometimes call them
PortalMethods), you can 'dynamically' override these parameters by setting
properties on the portal (using the ZMI), no need to modify the code for this.
Looking at the code of ERP5Site.py, we can see that to override
getPortalDefaultSectionCategory(), you can set a property named
portal_default_section_category on the site.

Cheers,

-- 
Jérôme




More information about the Erp5-dev mailing list