2008-10-02 09:09:32,561 Trac[web_ui] ERROR: Failure sending
notification on change to ticket #3: "title" not defined
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/trac/ticket/web_ui.py", line
992, in _do_save
tn.notify(ticket, newticket=False, modtime=now)
File "/usr/lib/python2.4/site-packages/trac/ticket/notification.py",
line 136, in notify
subject = self.format_subj(summary)
File "/usr/lib/python2.4/site-packages/trac/ticket/notification.py",
line 222, in format_subj
/notification
for event in stream:
File "/usr/lib/python2.4/site-packages/genshi/template/base.py",
line 520, in _eval
result = _eval_expr(data, ctxt, **vars)
File "/usr/lib/python2.4/site-packages/genshi/template/base.py",
line 286, in _eval_expr
retval = expr.evaluate(ctxt)
File "/usr/lib/python2.4/site-packages/genshi/template/eval.py",
line 180, in evaluate
return eval(self.code, _globals, {'__data__': data})
File "<string>", line 1, in <Expression u'title'>
File "/usr/lib/python2.4/site-packages/genshi/template/eval.py",
line 306, in lookup_name
val = cls.undefined(name)
File "/usr/lib/python2.4/site-packages/genshi/template/eval.py",
line 405, in undefined
raise UndefinedError(key, owner=owner)
UndefinedError: "title" not defined
I get the above error in the trac.log file !
after i made the change :
ticket_subject_template = $prefix #$ticket.id: $title
On Oct 2, 1:01 pm, "Erik Bray" <[EMAIL PROTECTED]> wrote:
> On Thu, Oct 2, 2008 at 12:51 PM, Nishanthi <[EMAIL PROTECTED]> wrote:
>
> > Like you had rightly pointed out .. It was some configuration file
> > problem ! Sorry for the trouble !
> > But there's another problem now :
>
> > My subject line for the email always remains "Re: #id:"
> > Am I supposed to add a 'phrase' of any kind in the
> > ticket_subject_template ?
> > the configuration is more or less the same as the previous file ..
> > except for the email ids .. which should not be much of a relevance
> > now !
> > My requirement is that the ticket subject/heading comes in the email
> > header :
>
> > Many thanks !
>
> > On Oct 1, 5:54 pm, "Emmanuel Blot" <[EMAIL PROTECTED]> wrote:
> >> > 'SMTP Notification Error')
> >> > my configuration file :
>
> >> [notification]
> >> smtp_from = [email-id]
> >> smtp_replyto = [email id]
> >> smtp_server = [server name]
> >> ticket_subject_template = #.id:
>
> Not sure what you're trying to achieve with ticket_subject_template,
> but what you have there isn't going to do anything. It should look
> something like this:
>
> $prefix #$ticket.id: $title
>
> Which happens to be the default. This will display something like
> "[Project Name] #123: Ticket subject"
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac
Users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---