Projet

Général

Profil

0001-misc-convert-old-roles-module-location-when-unpickli.patch

Frédéric Péters, 11 octobre 2019 16:08

Télécharger (917 octets)

Voir les différences:

Subject: [PATCH] misc: convert old roles module location when unpickling
 (#36860)

 wcs/publisher.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
wcs/publisher.py
55 55
    def find_class(self, module, name):
56 56
        if module == 'qommon.form':
57 57
            module = 'wcs.qommon.form'
58
        elif module in ('formdata', 'formdef', 'users', 'workflows'):
58
        elif module in ('formdata', 'formdef', 'roles', 'users', 'workflows'):
59 59
            module = 'wcs.%s' % module
60 60
        __import__(module)
61 61
        mod = sys.modules[module]
62
-