thanks for the advice i will check it out!

cheers

Markus


Am Do., 27. Apr. 2023 um 09:12 Uhr schrieb Jun Omae <[email protected]>:

> Hi,
>
> On Tue, Apr 25, 2023 at 10:34 PM Markus Rosjat <[email protected]>
> wrote:
> >
> > hi all,
> >
> > Is it possible to change the content of a comment on submit? I know I
> can hook in to ticket changed event but how do I pass the changes along ?
> Do I need to hook into some other method (from an interface) or do it by
> "hand" accessing the database?
> >
> > cheers
> >
> > Markus
>
> It is able to validate the comment using
> ITicketManipulator.validate_comment() at
> https://trac.edgewall.org/browser/tags/trac-1.4.3/trac/ticket/api.py#L178.
> However, it is unable to change the comment using the
> ITicketManipulator.
>
> Instead, try to replace req.args['comment'] using
> IRequestFilter.pre_process_request() when receiveing POST.
>
> --
> Jun Omae <[email protected]> (大前 潤)
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/trac-users/CAEVLMahGywNOMMLW-mTWvm86jjYAFywFFr59TqkyLyLZK4GrMA%40mail.gmail.com
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/CAJ4osOn%2B_nbrM1MVQQGDNOQFjpmJqgj_0omifuJ%3DL%2BNe1Q4xdw%40mail.gmail.com.

Reply via email to