-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 11.10.2014 01:43, [email protected] wrote: > I need a way to convert usernames to roles everywhere that usernames are > displayed in the application. So, users in my group will be able to see > my name as the ticket reporter/owner, in the change history section, etc > but users in other groups will only see "Developer" (my group name) in > those places. ... > > Does anyone have any ideas of how I might go about accomplishing this > task? Is there some centralized ticket object/class that I can tie into, > perhaps override a getter/setter so I can manipulate this data > everywhere it is shown in the application? Can I accomplish this with > additional fields and permission checks, so one group sees the username > fields and another sees corresponding user role fields?
Have a look at Chrome.format_author() method in trac.web.chrome, that is the canonical place, but especially watch out for plugins that might not respect this convention. Steffen Hoffmann -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iEYEARECAAYFAlQ48rUACgkQ31DJeiZFuHeAqACfc5TDW31jXLdiUJrSoKDRy/6J xs8An1+sDhfpF+RzgyG5PouWpeVjyfS5 =TqBa -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.
