Commit a5289c12 authored by Roland Koller's avatar Roland Koller
Browse files

Workaround and warn message for pages without internal name

parent 4d474cd9
......@@ -16,4 +16,10 @@ client = Client(hostname='localhost', port=4000, appname='test', username='root'
asobjdef = objdef.load_object_definition(client)
for cabinet in asobjdef.cabinets:
print(cabinet)
```
\ No newline at end of file
```
## Changes
### Version `0.0.3`
- Workaround and warn message for pages without internal name
\ No newline at end of file
......@@ -85,11 +85,16 @@ class ObjectDefinition():
else:
raw_pages = [ raw_field['page'] ]
for raw_page in raw_pages:
if '@internal' in raw_page:
page = raw_page['@internal']
else:
page = raw_page['@page_id']
warn(f'Page "{raw_page["@page_id"]}" has no internal name.')
fields.update(
__parse_fields__(
raw_page['fields']['field'],
page_control=field,
page=raw_page['@internal']
page=page
)
)
......
......@@ -5,7 +5,7 @@ with open('README.md', 'r') as fh:
setuptools.setup(
name='ecmind_blue_client_objdef',
version='0.0.2',
version='0.0.3',
author='Roland Koller',
author_email='info@ecmind.ch',
description='Helper modules for the `ecmind_blue_client` to ease the work with object definition APIs.',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment