Re: [Zope3-Users] principal associated data in a form

2007-08-09 Thread Stephan Richter
On Tuesday 24 July 2007 12:30, Otto van der Meer wrote:
 The idea is that many residents of a house have a single user account
 (nature of app).
 and that the names of the residents are associated with the account so
 they can be used in the application.

 Therefor the house would be the Principal I think, but what to do with the
 names of the
 residents, put them in the principal metadata or as an attribute of
 Principal?

The way you attach information on a principal is to use principal annotations. 
BTW, the homefoler implementation 
(http://svn.zope.org/zope.app.homefolder/trunk/) is a great example of how to 
associate additional information with a principal.

 To use the names in the form (As a choice), i've learned they have to be
 in vocabulary,
 but how do I get these names in the vocubulary after the Principal is
 authenticted?

You probably want to store the resident names in the principal annotation and 
then create a vocabulary that uses the principal annotation to build terms.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] principal associated data in a form

2007-08-09 Thread Fred Drake
On 7/24/07, Otto van der Meer [EMAIL PROTECTED] wrote:
 The idea is that many residents of a house have a single user account
 (nature of app).
 and that the names of the residents are associated with the account so
 they can be used in the application.

I guess it depends on what you mean by user account.  One approach
(apparently not the first folks think of) would be to use a separate
principal for each resident, and all residents would be associated
with a single shared account.

It really depends on what the account represents (billing, perhaps),
and whether it really mattered if you could really tell the residents
apart for an account, or if the honor system is good enough.


  -Fred

-- 
Fred L. Drake, Jr.fdrake at gmail.com
Chaos is the score upon which reality is written. --Henry Miller
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users