tracd and --auto-reload

18 views
Skip to first unread message

Jani Tiainen

unread,
Jul 20, 2008, 3:40:05 PM7/20/08
to trac...@googlegroups.com
Autoreload works pretty well, except if you change template (.html)
tracd doesn't restart itself. Since templates are pretty essential part
of Trac development, they should affect reloading, right?

Otherwise I've been very happy now to hack Trac with eclipse + pydev.

--

Jani Tiainen

Noah Kantrowitz

unread,
Jul 20, 2008, 3:56:48 PM7/20/08
to trac...@googlegroups.com

[trac]
auto_reload = true

That enables template reloading (well really it just disables the cache
I think).


--Noah

signature.asc

Jani Tiainen

unread,
Jul 21, 2008, 1:01:25 AM7/21/08
to trac...@googlegroups.com
Noah Kantrowitz kirjoitti:

It worked pretty well, thank you very much. But it seems to do more than
just simple disable caching since after I enable that option, I'll lose
pydev debugging abilities.

AFAIK debugging with pydev threaded code doesn't work if you're using
threading classes other than "threading" module. (Trac uses "thread" module)

--
Jani Tiainen

Christopher Lenz

unread,
Jul 21, 2008, 10:48:09 AM7/21/08
to trac...@googlegroups.com

No, it instructs the Genshi template loader to check modification
times on the template files on every template load, and reload them if
they changed. Templates are still cached.

Cheers,
--
Christopher Lenz
cmlenz at gmx.de
http://www.cmlenz.net/

Christopher Lenz

unread,
Jul 21, 2008, 10:49:28 AM7/21/08
to trac...@googlegroups.com

You mean if you use --auto-reload, right? I don't think enabling the
Genshi reloading option (the trac.ini setting Noah describes above)
could cause anything like that.

Reply all
Reply to author
Forward
0 new messages