[Erp5-dev] broken Account_getGap* scripts
Jérôme Perrin
jerome at nexedi.com
Mon Jan 9 18:23:04 CET 2006
Le Lundi 9 Janvier 2006 17:55, Bartek Gorny a écrit :
> Hello
>
> Scripts Account_getGapItemList and Account_getGapId are broken because
> of a change in behaviour of portal_preferences.
>
> The portal_preferences apparently used to acquire default properties
> from default_site_preference (function
> getPreferredAccountingTransactionGap returned value of
> default_site_preference/preferred_accounting_transaction_gap). Now it
> does not, and you have to explicitly call
> portal_preferences.default_site_preference.getSomething, the result
> being that scripts Account_getGapItemList and Account_getGapId return
> nothing.
Hello,
portal_preference didn't change his behaviour, the only change that have been
done is that now it uses the catalog to search preferences (searchFolder)
instead of using contentValues.
Please make sure that your portal_preference is correctly indexed in the
catalog.
Also, note that you if you have activated user level preferences, they have
precedence over the default site preference, this is the default behaviour of
preference tool, which is described in erp5.org
http://www.erp5.org/workspaces/members/jerome/pub/portal_preferences/view
--
Jérome
More information about the Erp5-dev
mailing list