#2586: Can't override html templates in master's templates directory
---------------------+-----------------------
Reporter: hwoarang | Owner:
Type: defect | Status: new
Priority: major | Milestone: undecided
Version: 0.8.8 | Keywords:
---------------------+-----------------------
Hi,
I am using 0.8.8 and I am not able to override the templates from
/usr/lib64/python2.7/site-packages/buildbot/status/web/templates.
What I did was to copy the root.html file from there to my master's
templates/ directory and do some minor edits. However, the web server
still serves the one from the /usr/lib64/python2.7/site-
packages/buildbot/status/web/templates directory.
The only way to make it load the one from my master's directory was to add
the following in my masters.cfg file
import jinja2
myloaders = [
jinja2.FileSystemLoader(dirname(__file__)+"/templates"),
]
c['status'].append(html.WebStatus(http_port=8010, authz=authz_cfg,
jinja_loaders = myloaders))
Adding this^^^ made buildbot pick the root.html file from my master's
templates/ directory.
If you need more information please let me know
--
Ticket URL: <http://trac.buildbot.net/ticket/2586>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
Buildbot-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/buildbot-commits