Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
synnefo
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
itminedu
synnefo
Commits
51c20a90
Commit
51c20a90
authored
12 years ago
by
Giorgos Korfiatis
Browse files
Options
Downloads
Patches
Plain Diff
Rename set_full_holding to init_holding
parent
fb699baa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
snf-common/synnefo/lib/quotaholder/api/quotaholder.py
+4
-4
4 additions, 4 deletions
snf-common/synnefo/lib/quotaholder/api/quotaholder.py
snf-quotaholder-app/quotaholder_django/quotaholder_app/callpoint.py
+4
-4
4 additions, 4 deletions
...older-app/quotaholder_django/quotaholder_app/callpoint.py
with
8 additions
and
8 deletions
snf-common/synnefo/lib/quotaholder/api/quotaholder.py
+
4
−
4
View file @
51c20a90
...
...
@@ -159,12 +159,12 @@ class QuotaholderAPI(Specificator):
rejected
=
ListOf
(
Entity
,
Resource
,
Policy
)
return
rejected
def
set_full
_holding
(
def
init
_holding
(
self
,
context
=
Context
,
set_full
_holding
=
ListOf
(
Entity
,
Resource
,
Key
,
Policy
,
Imported
,
Exported
,
Returned
,
Released
,
Flags
)
init
_holding
=
ListOf
(
Entity
,
Resource
,
Key
,
Policy
,
Imported
,
Exported
,
Returned
,
Released
,
Flags
)
):
"""
set_full_holding description
"""
rejected
=
ListOf
(
Index
)
...
...
This diff is collapsed.
Click to expand it.
snf-quotaholder-app/quotaholder_django/quotaholder_app/callpoint.py
+
4
−
4
View file @
51c20a90
...
...
@@ -241,7 +241,7 @@ class QuotaholderDjangoDBCallpoint(Callpoint):
return
rejected
def
_
set_full
_holding
(
self
,
entity
,
resource
,
policy
,
def
_
init
_holding
(
self
,
entity
,
resource
,
policy
,
imported
,
exported
,
returned
,
released
,
flags
):
try
:
...
...
@@ -261,11 +261,11 @@ class QuotaholderDjangoDBCallpoint(Callpoint):
h
.
releasing
=
released
h
.
save
()
def
set_full
_holding
(
self
,
context
=
{},
set_full
_holding
=
()):
def
init
_holding
(
self
,
context
=
{},
init
_holding
=
()):
rejected
=
[]
append
=
rejected
.
append
for
idx
,
sfh
in
enumerate
(
set_full
_holding
):
for
idx
,
sfh
in
enumerate
(
init
_holding
):
(
entity
,
resource
,
key
,
policy
,
imported
,
exported
,
returned
,
released
,
flags
)
=
sfh
...
...
@@ -285,7 +285,7 @@ class QuotaholderDjangoDBCallpoint(Callpoint):
append
(
idx
)
continue
self
.
_
set_full
_holding
(
e
,
resource
,
p
,
self
.
_
init
_holding
(
e
,
resource
,
p
,
imported
,
exported
,
returned
,
released
,
flags
)
...
...
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