Browse Source

Especifica melhor o objeto sapl dentro do zodb

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

9
sapl/legacy/scripts/exporta_zope/exporta_zope.py

@ -126,11 +126,12 @@ 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']
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['sapl'])
sapl = br(cm_zzz.get('sapl', None))
if sapl and 'sapl_documentos' in sapl and 'acl_users' in sapl:
return sapl

Loading…
Cancel
Save