Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sjrpc
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor 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
Mirror
sjrpc
Commits
fadfb156
Commit
fadfb156
authored
14 years ago
by
Seblu
Browse files
Options
Downloads
Patches
Plain Diff
fix bad list of ignoring tags for status display
parent
bcdb297d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cccli/command/command.py
+6
-6
6 additions, 6 deletions
cccli/command/command.py
with
6 additions
and
6 deletions
cccli/command/command.py
+
6
−
6
View file @
fadfb156
...
...
@@ -168,7 +168,7 @@ class TqlCommand(OptionCommand):
if
_options
[
"
callback
"
]
is
not
None
:
_options
[
"
callback
"
](
d
)
if
_options
[
"
status
"
]:
self
.
print_objects
(
d
,
(
"
output
"
)
)
self
.
print_objects
(
d
,
[
"
output
"
]
)
return
d
except
RpcError
as
e
:
if
_options
[
"
exception
"
]:
...
...
@@ -206,7 +206,7 @@ class TqlCommand(OptionCommand):
if
_options
[
"
callback
"
]
is
not
None
:
_options
[
"
callback
"
](
obj
)
if
_options
[
"
status
"
]:
self
.
print_objects
(
d
,
(
"
output
"
)
)
self
.
print_objects
(
d
,
[
"
output
"
]
)
except
RpcError
as
e
:
self
.
printer
.
error
(
"
RPCError: %s
"
%
str
(
e
))
...
...
@@ -220,17 +220,17 @@ class TqlCommand(OptionCommand):
def
print_tags
(
self
,
taglist
,
order
=
None
,
ignore
=
None
):
'''
Display a tag with tagdisplay settings
'''
_
ignore
=
()
if
ignore
is
None
else
ignore
_
order
=
()
if
order
is
None
else
order
ignore
=
()
if
ignore
is
None
else
ignore
order
=
()
if
order
is
None
else
order
# copy dict to show
tl
=
taglist
.
copy
()
# remove ignore tags
for
tn
in
_
ignore
:
for
tn
in
ignore
:
tl
.
pop
(
tn
,
None
)
# list to print
pls
=
[]
# print firstly order tags
for
tn
in
_
order
:
for
tn
in
order
:
tv
=
tl
.
pop
(
tn
,
None
)
if
tv
is
not
None
:
pls
.
append
(
"
%s%s:%s%s
"
%
(
self
.
tdtc
(
tn
),
tn
,
self
.
tdc
(
tn
),
self
.
tdr
(
tn
,
tv
)))
...
...
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