-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 anatoly techtonik wrote: > Now I need to store value of my field data if it is added or changed, > and I am puzzled. There is ITicketChangeListener interface that has > ticket_created(self, ticket) and ticket_changed(self, ticket, comment, > author, old_values) methods, but.. when I get notification about > created ticket, how to access request environment to extract my data? > There is no req variable passed to these methods. AFAIK, you'll find `old_values` with historic data, that got replaced by the new values, that you'll read from `ticket`. What else do you need?
Anyway I completely failed to understand, why you re-invent the wheel doing all the stuff, that custom fields would do for you with just a few lines of configuration in trac.ini, not to mention, this is well maintained and supported, in case you get stuck, while you're on your own, if your code fails or is getting incompatible to Trac later on. I recommend to use CustomFieldAdminPlugin [1], if it is too hard for you to study correct syntax for [ticket-custom] section. Yours Steffen Hoffmann (hasienda) [1] http://trac-hacks.org/wiki/CustomFieldAdminPlugin -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkyH3Q8ACgkQ31DJeiZFuHdj9wCfeXE93ozCoKsJvCrPSYDF3ZfC ntkAniVIGNTBkhgqmAW3kf6LHZqJnyA7 =fsTO -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "Trac Development" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/trac-dev?hl=en.
