[Archetypes-users] How to modify user properties and how to add an user as an attribute to a class

1 view
Skip to first unread message

peyu

unread,
Aug 31, 2011, 12:45:21 PM8/31/11
to archetyp...@lists.sourceforge.net
Hi everybody, I don't know if the subject is very clear so I will try to
explain...

I'm doing an UML model with argouml, to set up some king of intranet in
plone.
Right now, every class is working ok, archgenxml doesn't claim any errors
and I can install and use the package produced by AGX in plone.

I need some help for 2 points:
- We have a class called "project", which has an attribute called "project
manager", which a user of the intranet. I have look in the forum, the
documentation and google but I haven't found anything...
How can I create this attribute ? does I need to add an attribute with a
type like "user", or to create an aggregation to the user class?

- I want to create also some kind of yellow pages, so we want to add
properties to user, like for examples biography, skills, languages spoken,
etc. How can I do it ? Cand I add directly user attributes, do I need to
create a new UserProfiles class, is there already something done for this ?

Any help will be greatly appreciated.

François

--
View this message in context: http://plone.293351.n2.nabble.com/How-to-modify-user-properties-and-how-to-add-an-user-as-an-attribute-to-a-class-tp6747299p6747299.html
Sent from the Archetypes mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Archetypes-users mailing list
Archetyp...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/archetypes-users

T. Kim Nguyen

unread,
Aug 31, 2011, 1:16:19 PM8/31/11
to peyu, archetyp...@lists.sourceforge.net
François:

On Aug 31, 2011, at 11:45 AM, peyu wrote:

> Hi everybody, I don't know if the subject is very clear so I will try to
> explain...
>
> I'm doing an UML model with argouml, to set up some king of intranet in
> plone.
> Right now, every class is working ok, archgenxml doesn't claim any errors
> and I can install and use the package produced by AGX in plone.

I believe Plone developers have mostly moved away from the ArgoUML/AGX development model.

>
> I need some help for 2 points:
> - We have a class called "project", which has an attribute called "project
> manager", which a user of the intranet. I have look in the forum, the
> documentation and google but I haven't found anything...
> How can I create this attribute ? does I need to add an attribute with a
> type like "user", or to create an aggregation to the user class?

I would use a String field and store the userid in it.

> - I want to create also some kind of yellow pages, so we want to add
> properties to user, like for examples biography, skills, languages spoken,
> etc. How can I do it ? Cand I add directly user attributes, do I need to
> create a new UserProfiles class, is there already something done for this ?

Have a look at WebLion's FacultyStaffDirectory product, or this:

http://plone.org/documentation/kb/add-memberdata

I googled for "how to extend plone user attributes"

Kim

Ian F. Hood

unread,
Aug 31, 2011, 3:51:26 PM8/31/11
to T. Kim Nguyen, archetyp...@lists.sourceforge.net
Alternatively, depending on how long your members list is, you could use a selection field with a vocabulary=methodname that returns a sequence of (id, fullname) tuples.  This gives you a chance to filter the users list if that's helpful.

If the members list is too long for that I've re-tasked a members search form  (as a separate form) to return a member Id and stored that in a string.  If you're really clever it can also be done by stealing the search from @@sharing form.


~ Ian

Ian F. Hood
Office: 1 (360) 450-5900 (US)
Twitter, Skype & FB as: IanFHood
Google+ 103220441876580461422

T. Kim Nguyen

unread,
Aug 31, 2011, 7:25:22 PM8/31/11
to Ian F. Hood, archetyp...@lists.sourceforge.net
Ian - thanks for the ideas on how to enter those userid values. I've been working on a uwosh.meeting content type that is basically a Folderish Event; the attendees LinesField is something I'd like to have use an autocomplete widget of some sort (we have 15,000-20,000 LDAP user records).

http://www.uwosh.edu/ploneprojects/software/uwosh.meeting/

Kim

Francois Perruchas

unread,
Sep 2, 2011, 7:35:18 AM9/2/11
to T. Kim Nguyen, Ian F. Hood, archetyp...@lists.sourceforge.net
Thanks you all for your answer.

I will try the Ian ideas about the userid, but may be I will need some help in the future...

François
________________________________________
De: T. Kim Nguyen [ngu...@uwosh.edu]
Enviado el: jueves, 01 de septiembre de 2011 1:25
Para: Ian F. Hood
CC: Francois Perruchas; archetyp...@lists.sourceforge.net
Asunto: populating userid values [was Re: [Archetypes-users] How to modify user properties and how to add an user as an attribute to a class]

Reply all
Reply to author
Forward
0 new messages