Discussion:
[Erp5-dev] to Role or Not to Role - this is a question
Tomasz Brzezina
2008-03-08 11:32:41 UTC
Permalink
I wonder if I should use Role property or should I make definitely new role.

for now persons in my database can have such roles: staff, merchant and
customer. But one person can be (staff AND customer) OR (merchant AND
customer) OR staff OR merchant OR customer. So i made multilistfield and
it works perfectly. But I'm afraid, that erp5 use role property for some
processes so maybe better is to make new property and leave role alone
(not use it at all)
--
T.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3327 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20080308/c84c1b6c/attachment.bin>
Jean-Paul Smets
2008-03-08 14:08:28 UTC
Permalink
Post by Tomasz Brzezina
I wonder if I should use Role property or should I make definitely new role.
for now persons in my database can have such roles: staff, merchant
and customer. But one person can be (staff AND customer) OR (merchant
AND customer) OR staff OR merchant OR customer. So i made
multilistfield and it works perfectly. But I'm afraid, that erp5 use
role property for some processes so maybe better is to make new
property and leave role alone (not use it at all)
You should use ERP5Security. There is some intro in the wiki.
Never create new Zope roles (this is a major principle in ERP5). Only
use the 5As.
Regards,
JPS.
Post by Tomasz Brzezina
------------------------------------------------------------------------
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
http://mail.nexedi.com/mailman/listinfo/erp5-dev
--
Jean-Paul Smets-Solanes, Nexedi CEO - Tel. +33(0)6 62 05 76 14
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
Jean-Paul Smets
2008-03-08 14:09:55 UTC
Permalink
Post by Tomasz Brzezina
I wonder if I should use Role property or should I make definitely new role.
for now persons in my database can have such roles: staff, merchant
and customer. But one person can be (staff AND customer) OR (merchant
AND customer) OR staff OR merchant OR customer. So i made
multilistfield and it works perfectly. But I'm afraid, that erp5 use
role property for some processes so maybe better is to make new
property and leave role alone (not use it at all)
Sorry, I misunderstood the question.
About role category:
- one can have multiple roles
- consider using function too (ex. merchant sounds like a function,
not a role).

Regards,

JPS.
Post by Tomasz Brzezina
------------------------------------------------------------------------
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
http://mail.nexedi.com/mailman/listinfo/erp5-dev
--
Jean-Paul Smets-Solanes, Nexedi CEO - Tel. +33(0)6 62 05 76 14
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
Loading...