Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CaosDB Crawler
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
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
CaosDB Crawler
Commits
365ef46a
Commit
365ef46a
authored
2 years ago
by
Henrik tom Wörden
Browse files
Options
Downloads
Patches
Plain Diff
FIX: class def and function arg
parent
e066c47f
No related branches found
No related tags found
2 merge requests
!91
Release 0.3
,
!8
backref
Pipeline
#30413
failed
2 years ago
Stage: info
Stage: setup
Stage: cert
Stage: style
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/caoscrawler/identifiable_adapters.py
+10
-8
10 additions, 8 deletions
src/caoscrawler/identifiable_adapters.py
with
10 additions
and
8 deletions
src/caoscrawler/identifiable_adapters.py
+
10
−
8
View file @
365ef46a
...
@@ -33,14 +33,17 @@ from .utils import has_parent
...
@@ -33,14 +33,17 @@ from .utils import has_parent
logger
=
logging
.
getLogger
(
__name__
)
logger
=
logging
.
getLogger
(
__name__
)
def
class
Identifiable
():
class
Identifiable
():
def
__init__
(
self
,
record_type
,
name
=
None
,
properties
=
None
,
backrefs
=
None
):
def
__init__
(
self
,
record_type
:
str
,
name
:
str
=
None
,
properties
:
dict
=
None
,
backrefs
:
list
=
None
):
self
.
record_type
=
record_type
self
.
record_type
=
record_type
self
.
name
=
name
self
.
name
=
name
if
properties
is
None
:
self
.
properties
:
dict
=
{}
self
.
properties
=
[]
if
properties
is
not
None
:
if
backrefs
is
None
:
self
.
properties
=
properties
self
.
backrefs
=
[]
self
.
backrefs
:
list
=
[]
if
backrefs
is
not
None
:
self
.
backrefs
=
backrefs
def
convert_value
(
value
):
def
convert_value
(
value
):
...
@@ -249,8 +252,7 @@ class IdentifiableAdapter(metaclass=ABCMeta):
...
@@ -249,8 +252,7 @@ class IdentifiableAdapter(metaclass=ABCMeta):
)
)
@abstractmethod
@abstractmethod
def
retrieve_identified_record_for_identifiable
(
self
,
identifiable
:
db
.
Record
,
def
retrieve_identified_record_for_identifiable
(
self
,
identifiable
:
Identifiable
):
referencing_entities
=
None
):
"""
"""
Retrieve identifiable record for a given identifiable.
Retrieve identifiable record for a given identifiable.
...
...
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