Switch to unified view

a/src/mediaserver/cdplugins/uprcl/uprcl-app.py b/src/mediaserver/cdplugins/uprcl/uprcl-app.py
1
#!/usr/bin/env python2
1
#!/usr/bin/env python3
2
#
2
#
3
# Copyright (C) 2017 J.F.Dockes
3
# Copyright (C) 2017 J.F.Dockes
4
#
4
#
5
# This program is free software: you can redistribute it and/or modify
5
# This program is free software: you can redistribute it and/or modify
6
# it under the terms of the GNU General Public License as published by
6
# it under the terms of the GNU General Public License as published by
...
...
67
def _rootentries():
67
def _rootentries():
68
    # Build up root directory. This is our top internal structure. We
68
    # Build up root directory. This is our top internal structure. We
69
    # let the different modules return their stuff, and we take note
69
    # let the different modules return their stuff, and we take note
70
    # of the objid prefixes for later dispatching
70
    # of the objid prefixes for later dispatching
71
    entries = []
71
    entries = []
72
    for treename in uprclinit.g_trees.keys():
72
    for treename in uprclinit.g_trees_order:
73
        nents = uprclinit.g_trees[treename].rootentries(g_myprefix)
73
        nents = uprclinit.g_trees[treename].rootentries(g_myprefix)
74
        for e in nents:
74
        for e in nents:
75
            rootmap[e['id']] = treename
75
            rootmap[e['id']] = treename
76
        entries += nents
76
        entries += nents
77
    uplog("Browse root: rootmap now %s" % rootmap)
77
    uplog("Browse root: rootmap now %s" % rootmap)