Browse Source

Especifica melhor o objeto sapl dentro do zodb

pull/1634/head
Marcio Mazza 7 years ago
parent
commit
ffc34c3ed3
  1. 13
      sapl/legacy/scripts/exporta_zope/exporta_zope.py

13
sapl/legacy/scripts/exporta_zope/exporta_zope.py

@ -126,12 +126,13 @@ def get_app(data_fs_path):
def find_sapl(app):
[id] = [e['id'] for e in app['_objects']
if e['id'].startswith('cm_')
and e['meta_type'] == 'Folder']
cm_zzz = br(app[id])
sapl = br(cm_zzz['sapl'])
return sapl
for obj in app['_objects']:
id, meta_type = obj['id'], obj['meta_type']
if id.startswith('cm_') and meta_type == 'Folder':
cm_zzz = br(app[id])
sapl = br(cm_zzz.get('sapl', None))
if sapl and 'sapl_documentos' in sapl and 'acl_users' in sapl:
return sapl
def dump_sapl(data_fs_path):

Loading…
Cancel
Save