Thanks, I'll have a good look at Faculty staff. I can't say it looks that easy to me, but then again, this is the first product I'm developing. I won't be able to get it working in the correct way before my first deadline (1st of October) but I'll absolutely incorperate it into a next release!
Kind regards, Bas Roijen Technisch Applicatiebeheerder Mobile +31 (0)6 27 464 235 E-mail [email protected] Cofely Experts BV Location Maastricht-Airport Amerikalaan 35 6199 AE Maastricht-Airport PO Box 305 6199 ZN Maastricht-Airport The Netherlands Alg. +31 (0)43 367 50 00 Fax +31 (0)43 367 59 99 Url www.gti-group.com/experts -----Oorspronkelijk bericht----- Van: [email protected] [mailto:[email protected]] Namens cewing Verzonden: vrijdag 25 september 2009 18:14 Aan: [email protected] Onderwerp: Re: [Product-Developers] AGX and workflows bad_my84 wrote: > > Hi all, > > I'm developing my own product with AGX. > Now I'm trying to design my own workflow, but I'm running into problems: > I have a contenttype called "Employee". > On this type references can be set to other "Employees", so a employee > can have a BackRef called "Manager". > > In my use case only managers can add or view content on the employee. > Can someone give me some pointers on how to accomplish this? > > Thanks in advance! > There is some code in the Products.FacultyStaffDirectory that can point the way to doing this. I seem to remember that it is called something like 'modifyPersonOwnership'. The basic idea is that you want to give the role of 'Owner' of the employee content object to the user designated by the reference to 'manager'. Archetypes has two events you can use to run this code, IObjectModifiedEvent and IObjectInitializedEvent. Create an event handler that delegates the role and then register that handler for the two above events. Every time a new employee is created or an existing one is edited, the role will be re-set to the correct user. easy-peasy, eh? HTH c -- View this message in context: http://n2.nabble.com/AGX-and-workflows-tp3684983p3713272.html Sent from the Product Developers mailing list archive at Nabble.com. _______________________________________________ Product-Developers mailing list [email protected] http://lists.plone.org/mailman/listinfo/product-developers ================================================ De informatie opgenomen in dit bericht kan vertrouwelijk zijn en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onterecht ontvangt, wordt u verzocht de inhoud niet te gebruiken en de afzender direct te informeren door het bericht te retourneren. ================================================ The information contained in this message may be confidential and is intended to be exclusively for the addressee. Should you receive this message unintentionally, please do not use the contents herein and notify the sender immediately by return e-mail. ================================================ ================================================ De informatie opgenomen in dit bericht kan vertrouwelijk zijn en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onterecht ontvangt, wordt u verzocht de inhoud niet te gebruiken en de afzender direct te informeren door het bericht te retourneren. ================================================ The information contained in this message may be confidential and is intended to be exclusively for the addressee. Should you receive this message unintentionally, please do not use the contents herein and notify the sender immediately by return e-mail. ================================================ _______________________________________________ Product-Developers mailing list [email protected] http://lists.plone.org/mailman/listinfo/product-developers
