| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 879a8a4 commit 883eda4
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -111,12 +111,13 @@ def __init__(self, id, parent_id, name, children_callback=None): | |||
| 111 | 111 | self.parent_id = parent_id | |
| 112 | 112 | self.name = name | |
| 113 | 113 | self.mimetype = 'directory' | |
| 114 | - self.item = DIDLLite.StorageFolder(id, parent_id,self.name) | ||
| 114 | + self.item = DIDLLite.Container(id, parent_id,self.name) | ||
| 115 | 115 | self.update_id = 0 | |
| 116 | 116 | if children_callback != None: | |
| 117 | 117 | self.children = children_callback | |
| 118 | 118 | else: | |
| 119 | 119 | self.children = [] | |
| 120 | + self.item.childCount = self.get_child_count() | ||
| 120 | 121 | ||
| 121 | 122 | def add_child(self, child): | |
| 122 | 123 | self.children.append(child) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,6 +7,7 @@ | |||
| 7 | 7 | ||
| 8 | 8 | import os | |
| 9 | 9 | import re | |
| 10 | + import traceback | ||
| 10 | 11 | from StringIO import StringIO | |
| 11 | 12 | import urllib | |
| 12 | 13 | ||
@@ -139,10 +140,12 @@ def getChild(self, name, request): | |||
| 139 | 140 | return ch.location | |
| 140 | 141 | try: | |
| 141 | 142 | p = ch.get_path() | |
| 142 | - except: | ||
| 143 | + except Exception, msg: | ||
| 144 | + self.debug("error accessing items path %r" % msg) | ||
| 145 | + self.debug(traceback.format_exc()) | ||
| 143 | 146 | return self.list_content(name, ch, request) | |
| 144 | 147 | if os.path.exists(p): | |
| 145 | - self.info("accessing path", p) | ||
| 148 | + self.info("accessing path %r" % p) | ||
| 146 | 149 | new_id,_,_ = self.server.connection_manager_server.add_connection('', | |
| 147 | 150 | 'Output', | |
| 148 | 151 | -1, | |
@@ -153,6 +156,7 @@ def getChild(self, name, request): | |||
| 153 | 156 | d.addErrback(self.requestFinished, new_id) | |
| 154 | 157 | ch = StaticFile(p.encode('utf-8')) | |
| 155 | 158 | else: | |
| 159 | + self.debug("accessing path %r failed" % p) | ||
| 156 | 160 | return self.list_content(name, ch, request) | |
| 157 | 161 | ||
| 158 | 162 | if ch is None: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,7 +14,7 @@ controlpoint = yes # if set to yes coherence will activat | |||
| 14 | 14 | web-ui = no # set this to yes to enable some interactive | |
| 15 | 15 | # Web-UI | |
| 16 | 16 | ||
| 17 | - use_dbus = yes # set this to yes to let Coherence signal | ||
| 17 | + #use_dbus = yes # set this to yes to let Coherence signal | ||
| 18 | 18 | # devices and services via dbus and provide | |
| 19 | 19 | # access to them | |
| 20 | 20 | # only useful when controlpoint is enabled too | |
| Back | FazBrowse Home | New Git URL |
0 commit comments