Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
backend_common_py
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Package registry
Container registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
videoag
backend_common_py
Commits
62f02fbc
Commit
62f02fbc
authored
8 months ago
by
Dorian Koch
Browse files
Options
Downloads
Patches
Plain Diff
Fix object serialization
parent
1ffe9749
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/videoag_common/api_object/object_class.py
+4
-4
4 additions, 4 deletions
src/videoag_common/api_object/object_class.py
with
4 additions
and
4 deletions
src/videoag_common/api_object/object_class.py
+
4
−
4
View file @
62f02fbc
...
@@ -333,10 +333,10 @@ class ApiObjectClass:
...
@@ -333,10 +333,10 @@ class ApiObjectClass:
context
=
getattr
(
args
,
context_name
)
context
=
getattr
(
args
,
context_name
)
if
not
isinstance
(
context
,
dict
):
if
not
isinstance
(
context
,
dict
):
raise
Exception
(
f
"
serialization argument
'
{
context_name
}
'
must be a dict
"
)
raise
Exception
(
f
"
serialization argument
'
{
context_name
}
'
must be a dict
"
)
if
str
(
self
.
id
)
not
in
context
:
if
str
(
obj
.
id
)
not
in
context
:
context
[
str
(
self
.
id
)]
=
None
# Indicate that object is being serialized. Prevent loops
context
[
str
(
obj
.
id
)]
=
None
# Indicate that object is being serialized. Prevent loops
context
[
str
(
self
.
id
)]
=
self
.
serialize_object_args
(
obj
,
args
,
to_context
=
False
)
context
[
str
(
obj
.
id
)]
=
self
.
serialize_object_args
(
obj
,
args
,
to_context
=
False
)
return
self
.
id
return
obj
.
id
def
get_creation_config
(
self
)
->
JsonTypes
or
None
:
def
get_creation_config
(
self
)
->
JsonTypes
or
None
:
if
not
self
.
enable_config
:
if
not
self
.
enable_config
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment