[Erp5-dev] About categories

Rafael Monnerat rmonnerat at gmail.com
Thu Feb 16 19:11:24 CET 2006


Thanks Jean, another question....

Do categories support multiple references? Example:

One class A has references to many (n or *) classes B. Is it possible?


On 2/16/06, Jean-Paul Smets <jp at nexedi.com> wrote:
> Le Mercredi 15 Février 2006 20:50, Rafael Monnerat a écrit :
> > Could anyone  explain me how works the categories and how can I use? I
> > read the ' Rapid Application Development with ERP5' but I still don't
> > understand how I can use that.
> >
> > I'm trying to create a reference from classe A to class B (for
> > example). What do I need to do?
> >
>
> Just state in the portal_types that portal_type A is based category
> "foocat". (supposing that foocat is an existing base category in
> portal_categories)
>
> You will then get an accessor created for you
>         getFoocatValue()
>         setFoocatValue()
>
> You can set a relation between object a and object b by stating
>         a.setFoocatValue(b)
>
> Then retrieve the relation by
>         a.getFoocatValue()
>
> JPS.
>
> >
> > Waiting for answers... : )
> >
> > --
> > Rafael M. Monnerat
> > http://monnerat.objectis.net
> > _______________________________________________
> > Erp5-dev mailing list
> > Erp5-dev at erp5.org
> > http://erp5.org/mailman/listinfo/erp5-dev
>
> --
> Jean-Paul Smets-Solanes, Nexedi CEO - Tel. +33(0)6 62 05 76 14
> Nexedi: Consulting and Development of Libre / Open Source Software
> http://www.nexedi.com
> ERP5: Libre/ Open Source ERP Software for small and medium companies
> http://www.erp5.org
> Rentalinux: Desktop Linux Server
> http://www.rentalinux.com
> _______________________________________________
> Erp5-dev mailing list
> Erp5-dev at erp5.org
> http://erp5.org/mailman/listinfo/erp5-dev
>


--
Rafael M. Monnerat
http://monnerat.objectis.net



More information about the Erp5-dev mailing list