It works now! I just quoted every syntax starting with $ symbol. Thank you.
SF On Thursday, May 18, 2017 at 2:45:34 PM UTC+2, Ethan Jucovy wrote: > > On Thu, May 18, 2017 at 8:23 AM, toto200891 <[email protected] > <javascript:>> wrote: > >> It produced the following error: >> Syntax error in notify_reporter_when_accepted.body >> Hi $ticket.reporter, '$ticket.summary' has been accepted by >> $change.author. Its >> status is now $ticket.status.\n\n{% if change.comment %}$change.author >> said:\n\n >> $change.comment{% end %}-----\nTicket URL: $link\n$project.name >> <${project.url o >> r abs_href()}>\n$project.descr >> TemplateSyntaxError: unexpected EOF while parsing (, line 1) (<string>, >> line 1) >> > > Aha -- I think you need to use the curly brace variable style whenever > you're accessing attributes with dots. (I think it's a good idea to do it > always, just to be on the safe side.) Try this: > > notify_reporter_when_accepted.body = Hi ${ticket.reporter}, > '${ticket.summary}' has been accepted by ${change.author}. Its status is > now ${ticket.status}.\n\n{% if change.comment %}${change.author} > said:\n\n${change.comment}{% end %}-----\nTicket URL: ${link}\n${ > project.name} <${project.url or abs_href()}>\n${project.descr} > -- 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 https://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.
