Re: dynamically computed roles
Florent Guillaume <[email protected]>
| Newsgroups | gmane.comp.web.zope.cps.devel |
|---|---|
| Message-ID | <[email protected]> |
You would need to patch the getRolesInContext method to provide your own logic. Florent On 13 Nov 2006, at 13:47, Joachim Schmitz wrote: > Hi, > > is there something like a dynamically assigned role in CPS? > > Here is the usecase: > > In our studentregistration portal we have a student-section, which > contains all student-objects (SO). > > A SO contains for example the studycourse (SC) the student takes, > which > contains all courses the student takes. > > The SC contains information about the faculty and department the > student > belongs to. > > Parallel to the student-section there is the academic-section (AS) > The AS contains faculty-objects (FO), which in turn contain > department-objects, which contain beside other things course-objects. > > Now we have for example a course-manager, which we give the local role > section-manager in all course of a department. But in addition we have > to give him the possibility to edit/enter the results in all those > courses in the SC of the student. > > So we would need a kind of computed role CourseManager, which we can > test with the hasRolesInContext. > > > > > -- > Gruß Joachim > > > > _______________________________________________ > cps-devel mailing list > http://lists.nuxeo.com/mailman/listinfo/cps-devel > -- Florent Guillaume, Director of R&D, Nuxeo Open Source Enterprise Content Management (ECM) http://www.nuxeo.com http://www.nuxeo.org +33 1 40 33 79 87 _______________________________________________ cps-devel mailing list http://lists.nuxeo.com/mailman/listinfo/cps-devel