EOX GitLab Instance
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Data Handling
core
Commits
0186e0d3
Commit
0186e0d3
authored
2 years ago
by
Fabian Schindler
Browse files
Options
Downloads
Patches
Plain Diff
Make EOxServer ItemBackend conformant to the new ABC
parent
0346d6fc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!15
Registration routes
Pipeline
#26255
passed
2 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
registrar/backend/eoxserver.py
+8
-3
8 additions, 3 deletions
registrar/backend/eoxserver.py
with
8 additions
and
3 deletions
registrar/backend/eoxserver.py
+
8
−
3
View file @
0186e0d3
...
...
@@ -60,7 +60,7 @@ class ItemToProductTypeMapping(TypedDict):
collections
:
List
[
str
]
class
EOxServer
Backend
(
Backend
[
"
Item
"
]):
class
Item
Backend
(
Backend
[
"
Item
"
]):
"""
EOxServer backend allows registration to be performed on a running
EOxServer instance
...
...
@@ -337,7 +337,7 @@ class EOxServerBackend(Backend["Item"]):
return
product
@transaction.atomic
def
register
_item
(
self
,
source
:
Optional
[
Source
],
item
:
"
Item
"
,
replace
:
bool
):
def
register
(
self
,
source
:
Optional
[
Source
],
item
:
"
Item
"
,
replace
:
bool
):
"""
Registers the item to the endpoint
Args:
...
...
@@ -396,8 +396,13 @@ class EOxServerBackend(Backend["Item"]):
else
:
raise
RegistrationError
(
f
"
{
item
}
not matched to any product_type
"
)
def
deregister
(
self
,
source
:
Optional
[
Source
],
item
:
"
Item
"
):
"""
Defers to ``deregister_identifier`` with the items identifier
"""
return
self
.
deregister_identifier
(
item
.
id
)
@transaction.atomic
def
deregister_identifier
(
self
,
identifier
:
str
)
->
Optional
[
str
]
:
def
deregister_identifier
(
self
,
identifier
:
str
):
"""
Attempts to deregister item
Args:
...
...
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