mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-24 07:06:41 +00:00
Remove all nevow from introweb.
These were the last references to it, and I think it's still working fine without. I'm not _entirely_ positive but I think t.w.Static's File has caught up to the features that were added to nevow's File.
This commit is contained in:
parent
be735208a3
commit
b6d9d58449
@ -1,11 +1,9 @@
|
||||
|
||||
import time, os
|
||||
from nevow import rend
|
||||
from nevow.static import File as nevow_File
|
||||
from nevow.util import resource_filename
|
||||
from pkg_resources import resource_filename
|
||||
from twisted.web.template import Element, renderer, renderElement, XMLFile
|
||||
from twisted.python.filepath import FilePath
|
||||
from twisted.web import resource
|
||||
from twisted.web import resource, static
|
||||
import allmydata
|
||||
import json
|
||||
from allmydata.version_checks import get_package_versions_string
|
||||
@ -27,7 +25,7 @@ class IntroducerRoot(MultiFormatResource):
|
||||
self.putChild('', self)
|
||||
static_dir = resource_filename("allmydata.web", "static")
|
||||
for filen in os.listdir(static_dir):
|
||||
self.putChild(filen, nevow_File(os.path.join(static_dir, filen)))
|
||||
self.putChild(filen, static.File(os.path.join(static_dir, filen)))
|
||||
|
||||
def render_HTML(self, req):
|
||||
return renderElement(req, IntroducerRootElement(
|
||||
|
Loading…
Reference in New Issue
Block a user