|
a/src/mediaserver/cdplugins/uprcl/uprcl-app.py |
|
b/src/mediaserver/cdplugins/uprcl/uprcl-app.py |
|
... |
|
... |
94 |
def _rootentries():
|
94 |
def _rootentries():
|
95 |
# Build up root directory. This is our top internal structure. We
|
95 |
# Build up root directory. This is our top internal structure. We
|
96 |
# let the different modules return their stuff, and we take note
|
96 |
# let the different modules return their stuff, and we take note
|
97 |
# of the objid prefixes for later dispatching
|
97 |
# of the objid prefixes for later dispatching
|
98 |
entries = []
|
98 |
entries = []
|
|
|
99 |
|
|
|
100 |
nents = uprcltags.rootentries(g_myprefix)
|
|
|
101 |
for e in nents:
|
|
|
102 |
rootmap[e['id']] = 'tags'
|
|
|
103 |
entries += nents
|
|
|
104 |
|
99 |
nents = uprclfolders.rootentries(g_myprefix)
|
105 |
nents = uprclfolders.rootentries(g_myprefix)
|
100 |
for e in nents:
|
106 |
for e in nents:
|
101 |
rootmap[e['id']] = 'folders'
|
107 |
rootmap[e['id']] = 'folders'
|
102 |
entries += nents
|
108 |
entries += nents
|
103 |
|
109 |
|
104 |
nents = uprcltags.rootentries(g_myprefix)
|
|
|
105 |
for e in nents:
|
|
|
106 |
rootmap[e['id']] = 'tags'
|
|
|
107 |
entries += nents
|
|
|
108 |
uplog("Browse root: rootmap now %s" % rootmap)
|
110 |
uplog("Browse root: rootmap now %s" % rootmap)
|
109 |
return entries
|
111 |
return entries
|
110 |
|
112 |
|
111 |
def _browsedispatch(objid, bflg, httphp, pathprefix):
|
113 |
def _browsedispatch(objid, bflg, httphp, pathprefix):
|
112 |
for id,mod in rootmap.iteritems():
|
114 |
for id,mod in rootmap.iteritems():
|