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 is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
nomad-lab
python-common
Commits
4b91efce
Commit
4b91efce
authored
9 years ago
by
Mohamed, Fawzi Roberto (fawzi)
Browse files
Options
Downloads
Patches
Plain Diff
fix access of section from onClose for real
parent
e0f746a9
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/caching_backend.py
+2
-2
2 additions, 2 deletions
common/python/nomadcore/caching_backend.py
with
2 additions
and
2 deletions
common/python/nomadcore/caching_backend.py
+
2
−
2
View file @
4b91efce
...
...
@@ -110,7 +110,7 @@ class CachingSectionManager(object):
self
.
openSections
[
gIndex
]
=
CachingSection
(
gIndex
,
references
,
storeInSuper
=
self
.
storeInSuper
)
def
closeSection
(
self
,
backend
,
gIndex
):
toClose
=
self
.
openSections
[
-
1
]
toClose
=
self
.
openSections
[
gIndex
]
Riello, Massimo (mriello)
@mriello
·
Jan 22, 2016
Thanks!
Thanks!
Please
register
or
sign in
to reply
for
onCloseF
in
self
.
onClose
:
onCloseF
(
backend
,
gIndex
,
toClose
)
if
toClose
.
storeInSuper
:
...
...
@@ -124,7 +124,7 @@ class CachingSectionManager(object):
backend
.
parsingSession
.
addSubsection
(
self
.
metaInfo
,
toClose
)
if
self
.
forwardOpenClose
and
backend
.
superBackend
:
backend
.
superBackend
.
closeSection
(
self
.
metaInfo
.
name
,
gIndex
)
self
.
openSections
.
remove
(
toClose
)
del
self
.
openSections
[
gIndex
]
def
openSectionInfo
(
self
,
gIndex
):
section
=
openSections
.
get
(
gIndex
,
None
)
...
...
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