Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Open
ecmind_blue_client_objdef
Commits
a5289c12
Commit
a5289c12
authored
Jan 05, 2022
by
Roland Koller
Browse files
Workaround and warn message for pages without internal name
parent
4d474cd9
Changes
3
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
a5289c12
...
...
@@ -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
ecmind_blue_client_objdef/object_definition.py
View file @
a5289c12
...
...
@@ -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
)
)
...
...
setup.py
View file @
a5289c12
...
...
@@ -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.'
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment