|
|
@@ -114,7 +114,13 @@ class ContentDirectoryControl(UPnPPublisher, dict): |
|
|
|
'''If the generated object (by klass) has an attribute content, it is installed into the web server.''' |
|
|
|
assert isinstance(self[parent], Container) |
|
|
|
nid = self.getnextID() |
|
|
|
i = klass(self, nid, parent, title, *args, **kwargs) |
|
|
|
try: |
|
|
|
i = klass(self, nid, parent, title, *args, **kwargs) |
|
|
|
except: |
|
|
|
import traceback |
|
|
|
traceback.print_exc() |
|
|
|
return |
|
|
|
|
|
|
|
if hasattr(i, 'content'): |
|
|
|
self.webbase.putChild(nid, i.content) |
|
|
|
#log.msg('children:', `self.children[parent]`, `i`) |
|
|
|