Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-pylib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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-pylib
Commits
53ffa88a
Commit
53ffa88a
authored
1 year ago
by
Henrik tom Wörden
Browse files
Options
Downloads
Patches
Plain Diff
MAINT: rename CaosDBPythonEntity -> LinkAheadPythonEntity
parent
37ff81c6
No related branches found
No related tags found
1 merge request
!111
MAINT: LinkAhead rename
Pipeline
#40648
passed with warnings
1 year ago
Stage: code_style
Stage: linting
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/linkahead/high_level_api.py
+5
-5
5 additions, 5 deletions
src/linkahead/high_level_api.py
with
5 additions
and
5 deletions
src/linkahead/high_level_api.py
+
5
−
5
View file @
53ffa88a
...
@@ -264,7 +264,7 @@ class LinkAheadPythonEntity(object):
...
@@ -264,7 +264,7 @@ class LinkAheadPythonEntity(object):
def
_set_property_from_entity
(
self
,
ent
:
db
.
Entity
,
importance
:
str
,
def
_set_property_from_entity
(
self
,
ent
:
db
.
Entity
,
importance
:
str
,
references
:
Optional
[
db
.
Container
],
references
:
Optional
[
db
.
Container
],
visited
:
Dict
[
int
,
"
CaosDB
PythonEntity
"
]):
visited
:
Dict
[
int
,
"
LinkAhead
PythonEntity
"
]):
"""
"""
Set a new property using an entity from the normal python API.
Set a new property using an entity from the normal python API.
...
@@ -382,7 +382,7 @@ class LinkAheadPythonEntity(object):
...
@@ -382,7 +382,7 @@ class LinkAheadPythonEntity(object):
val
:
List
,
val
:
List
,
pr
:
str
,
pr
:
str
,
references
:
Optional
[
db
.
Container
],
references
:
Optional
[
db
.
Container
],
visited
:
Dict
[
int
,
"
CaosDB
PythonEntity
"
]):
visited
:
Dict
[
int
,
"
LinkAhead
PythonEntity
"
]):
"""
"""
Convert a list to a python list of the correct type.
Convert a list to a python list of the correct type.
...
@@ -403,7 +403,7 @@ class LinkAheadPythonEntity(object):
...
@@ -403,7 +403,7 @@ class LinkAheadPythonEntity(object):
val
:
Any
,
val
:
Any
,
pr
:
str
,
pr
:
str
,
references
:
Optional
[
db
.
Container
],
references
:
Optional
[
db
.
Container
],
visited
:
Dict
[
int
,
"
CaosDB
PythonEntity
"
]):
visited
:
Dict
[
int
,
"
LinkAhead
PythonEntity
"
]):
"""
"""
Convert val to the correct type which is indicated by the database
Convert val to the correct type which is indicated by the database
type string in pr.
type string in pr.
...
@@ -810,7 +810,7 @@ def _single_convert_to_python_object(robj: LinkAheadPythonEntity,
...
@@ -810,7 +810,7 @@ def _single_convert_to_python_object(robj: LinkAheadPythonEntity,
entity
:
db
.
Entity
,
entity
:
db
.
Entity
,
references
:
Optional
[
db
.
Container
]
=
None
,
references
:
Optional
[
db
.
Container
]
=
None
,
visited
:
Optional
[
Dict
[
int
,
visited
:
Optional
[
Dict
[
int
,
"
CaosDB
PythonEntity
"
]]
=
None
):
"
LinkAhead
PythonEntity
"
]]
=
None
):
"""
"""
Convert a db.Entity from the standard API to a (previously created)
Convert a db.Entity from the standard API to a (previously created)
LinkAheadPythonEntity from the high level API.
LinkAheadPythonEntity from the high level API.
...
@@ -941,7 +941,7 @@ def convert_to_entity(python_object):
...
@@ -941,7 +941,7 @@ def convert_to_entity(python_object):
def
convert_to_python_object
(
entity
:
Union
[
db
.
Container
,
db
.
Entity
],
def
convert_to_python_object
(
entity
:
Union
[
db
.
Container
,
db
.
Entity
],
references
:
Optional
[
db
.
Container
]
=
None
,
references
:
Optional
[
db
.
Container
]
=
None
,
visited
:
Optional
[
Dict
[
int
,
visited
:
Optional
[
Dict
[
int
,
"
CaosDB
PythonEntity
"
]]
=
None
):
"
LinkAhead
PythonEntity
"
]]
=
None
):
"""
"""
Convert either a container of LinkAhead entities or a single LinkAhead entity
Convert either a container of LinkAhead entities or a single LinkAhead entity
into the high level representation.
into the high level representation.
...
...
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