Because the Href data is taken from the req, they don't exist when just
creating an env object from scratch, as the old post-commit scripts did.
Since then things have been updated I think to work with the new dataflow.
-Noah
Greg Dickie wrote:
Hi Matthew,
No, everything from 0.10dev, in fact everything from rev 3592 and I
still got an error (thrown from trac/ticket/notification.py_ about
missing object abs_href. So I hacked a bit and stuck
self.env.abs_href = Href(url)
into trac-post-commit and now it works fine. Unfortunately my python is
not good enough yet to understand all the variable scopes and passing
but this seemed to work for me.
Thanks,
Greg
On Thu, 2006-08-03 at 22:04 -0400, Matthew Good wrote:
On Tue, 2006-08-01 at 10:52 -0400, Greg Dickie wrote:
It seems that this needs to be set but I can't figure out where it
needs to come from. I assume its in trac.ini but it doesn't seem to be
url or base_url. Can anyone give me a hint?
It sounds like you may be trying to use the trac-post-commit script from
the 0.9 source after upgrading to Trac 0.10. "env.abs_href" is
deprecated now and should not be used:
http://trac.edgewall.org/changeset/3409
If that's not the case please explain what you're trying to do with
"env.abs_href".
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac