if an Object has a content attribute, install it into the webserver
so that data can be accessed.. This will give the ability for custom
objects to add their data instead of depending upon the FS...
the url may need to be set after object creation, instead of having
it in Object, as we don't generate the name, the cd does... slight
layering violation, but it works..
[git-p4: depot-paths = "//depot/": change = 801]
@@ -65,11 +65,13 @@ class RootDevice(static.Data):
static.Data.__init__(self, d, 'text/xml')
root = WebServer()
cds = ContentDirectoryServer('My Media Server', klass = FSDirectory, path = 'media', urlbase = urlbase) # This sets up the root to be the media dir so we don't have to enumerate the directory
content = resource.Resource()
cds = ContentDirectoryServer('My Media Server', klass = FSDirectory, path = 'media', urlbase = os.path.join(urlbase, 'content'), webbase = content) # This sets up the root to be the media dir so we don't have to enumerate the directory