Browse Source

Adiciona meta_type a exportação de docs do SDE

pull/1847/head
Marcio Mazza 7 years ago
parent
commit
92637104b9
  1. 5
      sapl/legacy/scripts/exporta_zope/exporta_zope.py

5
sapl/legacy/scripts/exporta_zope/exporta_zope.py

@ -14,7 +14,6 @@ from functools import partial
import magic import magic
import yaml import yaml
import ZODB.DB import ZODB.DB
import ZODB.FileStorage import ZODB.FileStorage
from ZODB.broken import Broken from ZODB.broken import Broken
@ -191,7 +190,9 @@ def read_sde(element):
] ]
if meta_type != 'Script (Python)': if meta_type != 'Script (Python)':
# ignoramos os scrips python de eventos dos templates # ignoramos os scrips python de eventos dos templates
yield id, read_sde(obj) yield {'id': id,
'meta_type': meta_type,
'dados': read_sde(obj)}
data = dict(read_properties()) data = dict(read_properties())
children = list(read_children()) children = list(read_children())

Loading…
Cancel
Save