Discussion:
[Erp5-dev] "category doesn't exists" during bt installation in test
Jacek Medrzycki
2008-04-10 15:35:23 UTC
Permalink
When running test environment, I install a set of business templates.
Upon installation of some_bt, I got the following error:

File "/data/zope/unit_test/Products/ERP5Type/ERP5Type.py", line 586,
in updateLocalRolesOnSecurityGroups
<...>
File "Script (Python)", line 66, in ERP5Type_asSecurityGroupId
SecurityRoleDefinitionError: Category 'group/xxxx/yyyy' doesn't exist


However, some_bt DOES DEFINE such categories. In "Categories" text area
I have:
group
(as some property of group base category is redefined by this bt,
expecially AcquisitionBaseCategories),

and in "Paths" text area I have:
portal_categories/function/**
portal_categories/group/**

Moreover, I had double-checked and those definitions were commited and
proper files and dirs are in CategoryTemplateItem and PathTemplateItem
on filesystem in directory from which bts are installed during test.
PathTemplateItem contains dir structure for group and there are files
and dirs corresponding to group/xxxx/yyyy.

I have removed everything from some_bt, so it contains ONLY "Categories"
and "Path" definition and nothing more. It still refuses to install
saying that there is no category, which apparently is defined by this bt.

What can be the reason for such behaviour? Any hints would be appreciated.

Regards
Jacek
Ivan Tyagov
2008-04-10 15:52:04 UTC
Permalink
Post by Jacek Medrzycki
When running test environment, I install a set of business templates.
File "/data/zope/unit_test/Products/ERP5Type/ERP5Type.py", line 586,
in updateLocalRolesOnSecurityGroups
<...>
File "Script (Python)", line 66, in ERP5Type_asSecurityGroupId
SecurityRoleDefinitionError: Category 'group/xxxx/yyyy' doesn't exist
The system will try to update local roles on the respective object being
installed/created. Probably you do not have such a category and you do
have on some portal types roles definitions that uses this category.
You have to create this category otherwise you'll not be able to install
bt5.
Regards
Ivan
Post by Jacek Medrzycki
However, some_bt DOES DEFINE such categories. In "Categories" text area
group
(as some property of group base category is redefined by this bt,
expecially AcquisitionBaseCategories),
portal_categories/function/**
portal_categories/group/**
Moreover, I had double-checked and those definitions were commited and
proper files and dirs are in CategoryTemplateItem and PathTemplateItem
on filesystem in directory from which bts are installed during test.
PathTemplateItem contains dir structure for group and there are files
and dirs corresponding to group/xxxx/yyyy.
I have removed everything from some_bt, so it contains ONLY "Categories"
and "Path" definition and nothing more. It still refuses to install
saying that there is no category, which apparently is defined by this bt.
What can be the reason for such behaviour? Any hints would be appreciated.
Regards
Jacek
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
http://mail.nexedi.com/mailman/listinfo/erp5-dev
--
Ivan Tyagov
ERP5 Enterprise: Free / Open Source ERP for Critical Applications
http://www.erp5.com
ERP5 Express: Hosted Open Source ERP for small companies
http://www.myerp5.com
Nexedi: Consulting and Development of Free / Open Source Software
http://www.nexedi.com
Jacek Medrzycki
2008-04-11 06:44:49 UTC
Permalink
Post by Ivan Tyagov
The system will try to update local roles on the respective object being
installed/created. Probably you do not have such a category and you do
have on some portal types roles definitions that uses this category.
You have to create this category otherwise you'll not be able to install
bt5.
Regards
Ivan
As I stated in my previous post, I DO HAVE this category, and IT IS
included in apropriate files and dirs on filesystem after checkouting bt
from SVN.

The key point is, that group category is redefined by one of earliers
bts. If I remove this bt from the list of bts to load in test, my bt
then installs (of course, the tests then fails as removed bt is required).

The situatiton:
bt A
bt B
bt C (redefines group!)
bt D (has group in Categories and portal_categories/group/** and
portal_categories/function/** in Paths - fails to install)

If I load only A,B,D, then D installs.

PS.
The "Path" list box of D bt contained:
portal_categories/group/**
portal_categories/function/**

If I swap the order, ie. change it to:
portal_categories/function/**
portal_categories/group/**

Then D fails to install saying there is no category function/foo/shmoo,
which, of course, IS also DEFINED by this bt. Strange to me.


Regards J.

Loading...