|
@ -146,7 +146,15 @@ def get_conteudo_dtml_method(doc): |
|
|
def enumerate_by_key_list(folder, key_list, type_key): |
|
|
def enumerate_by_key_list(folder, key_list, type_key): |
|
|
for entry in folder.get(key_list, []): |
|
|
for entry in folder.get(key_list, []): |
|
|
id, meta_type = entry['id'], entry[type_key] |
|
|
id, meta_type = entry['id'], entry[type_key] |
|
|
|
|
|
try: |
|
|
obj = br(folder.get(id, None)) |
|
|
obj = br(folder.get(id, None)) |
|
|
|
|
|
except POSKeyError: |
|
|
|
|
|
print('#' * 80) |
|
|
|
|
|
print('#' * 80) |
|
|
|
|
|
print('ATENÇÃO: DIRETÓRIO corrompido: {}'.format(id)) |
|
|
|
|
|
print('#' * 80) |
|
|
|
|
|
print('#' * 80) |
|
|
|
|
|
else: |
|
|
yield id, obj, meta_type |
|
|
yield id, obj, meta_type |
|
|
|
|
|
|
|
|
|
|
|
|
|
|