Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
python-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This project is archived. Its data is
read-only
.
Show more breadcrumbs
nomad-lab
python-common
Commits
1edd0a10
Commit
1edd0a10
authored
Apr 28, 2016
by
Himanen, Lauri (himanel1)
Browse files
Options
Downloads
Patches
Plain Diff
Small change to baseclasses.
parent
f0f11db2
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/python/nomadcore/baseclasses.py
+2
-1
2 additions, 1 deletion
common/python/nomadcore/baseclasses.py
with
2 additions
and
1 deletion
common/python/nomadcore/baseclasses.py
+
2
−
1
View file @
1edd0a10
...
@@ -213,7 +213,7 @@ class FileService(object):
...
@@ -213,7 +213,7 @@ class FileService(object):
logger
.
error
(
"
The id
'
{}
'
has no path associated with it.
"
.
format
(
file_id
))
logger
.
error
(
"
The id
'
{}
'
has no path associated with it.
"
.
format
(
file_id
))
return
None
return
None
else
:
else
:
return
self
.
get_file_by_path
(
path
)
return
path
def
set_file_id
(
self
,
path
,
file_id
):
def
set_file_id
(
self
,
path
,
file_id
):
"""
Used to map a simple identifier string to a file path. When a file
"""
Used to map a simple identifier string to a file path. When a file
...
@@ -257,6 +257,7 @@ class BasicParser(object):
...
@@ -257,6 +257,7 @@ class BasicParser(object):
self
.
parser_context
=
parser_context
self
.
parser_context
=
parser_context
self
.
backend
=
parser_context
.
caching_backend
self
.
backend
=
parser_context
.
caching_backend
self
.
super_backend
=
parser_context
.
super_backend
self
.
super_backend
=
parser_context
.
super_backend
self
.
file_service
=
parser_context
.
file_service
@abstractmethod
@abstractmethod
def
parse
(
self
):
def
parse
(
self
):
...
...
...
...
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
sign in
to comment