[tahoe-lafs-trac-stream] [tahoe-lafs] #1585: Patch/branch to restructure the web ui's handling of static files

tahoe-lafs trac at tahoe-lafs.org
Thu Nov 17 02:11:44 UTC 2011


#1585: Patch/branch to restructure the web ui's handling of static files
-------------------------------+---------------------------
 Reporter:  marcusw            |          Owner:
     Type:  enhancement        |         Status:  new
 Priority:  minor              |      Milestone:  undecided
Component:  code-frontend-web  |        Version:  1.9.0b1
 Keywords:  review-needed      |  Launchpad Bug:
-------------------------------+---------------------------
 This patch improves the handling of static resource files in the web ui in
 these ways:

 * Move static files into separate directory
 * Remove references to no longer used webform_css from root.py and .xhtml
 files
 * Rename tahoe_css to tahoe.css in the .xhtml files
 * Remove references to individual files from root.py

 These changes reduce the code complexity in root.py and make it easier to
 add/remove static resources to the web interface. They are compatible with
 the static directory option in tahoe.cfg. Ticket #1579, my
 [https://github.com/marcuswanner/tahoe-lafs/tree/movebutton movebutton]
 patch, is broken by this patch because of the tahoe_css > tahoe.css
 change.

 With these changes applied, all the files in /src/allmydata/web/static are
 accessible on the web interface with a "GET /filename". Subdirectories are
 correctly handled. Note that the .js and .css files in /src/allmydata/web
 must be moved to the new directory when applying this patch. This should
 be done using your version control system, and is not included in the
 patch (but it is in the git branch).

 These changes are available as a [https://github.com/marcuswanner/tahoe-
 lafs/tree/webui-static-struct branch on github] and as a .diff attachment
 to this ticket.

-- 
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1585>
tahoe-lafs <https://tahoe-lafs.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list