Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dynamic-graph-python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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
Guilhem Saurel
dynamic-graph-python
Commits
a0d4d61a
Commit
a0d4d61a
authored
14 years ago
by
Nicolas Mansard
Committed by
Nicolas Mansard
14 years ago
Browse files
Options
Downloads
Patches
Plain Diff
With the doc.
parent
9a7ca644
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
src/dynamic_graph/entity.py
+14
-2
14 additions, 2 deletions
src/dynamic_graph/entity.py
with
14 additions
and
2 deletions
src/dynamic_graph/entity.py
+
14
−
2
View file @
a0d4d61a
...
@@ -77,18 +77,26 @@ class Entity (object) :
...
@@ -77,18 +77,26 @@ class Entity (object) :
def
displaySignals
(
self
)
:
def
displaySignals
(
self
)
:
"""
"""
W
rit
e
the list of signals into standard output: temporary.
P
ri
n
t the list of signals into standard output: temporary.
"""
"""
wrap
.
entity_display_signals
(
self
.
obj
)
wrap
.
entity_display_signals
(
self
.
obj
)
def
signals
(
self
)
:
def
signals
(
self
)
:
"""
Alias of displaySignals to reduce verbosity. To be confirmed.
"""
self
.
displaySignals
()
self
.
displaySignals
()
def
commands
(
self
):
def
commands
(
self
):
"""
Return the list of commands.
"""
return
wrap
.
entity_list_commands
(
self
.
obj
)
return
wrap
.
entity_list_commands
(
self
.
obj
)
def
globalHelp
(
self
):
def
globalHelp
(
self
):
"""
Print a short description of each command.
"""
for
cstr
in
self
.
commands
():
for
cstr
in
self
.
commands
():
ctitle
=
cstr
+
'
:
'
ctitle
=
cstr
+
'
:
'
for
i
in
range
(
len
(
cstr
),
15
):
for
i
in
range
(
len
(
cstr
),
15
):
...
@@ -99,6 +107,10 @@ class Entity (object) :
...
@@ -99,6 +107,10 @@ class Entity (object) :
break
break
def
help
(
self
,
comm
=
None
):
def
help
(
self
,
comm
=
None
):
"""
With no arg, print the global help. With arg the name of
a specific command, print the help associated to the command.
"""
if
comm
is
None
:
if
comm
is
None
:
self
.
globalHelp
()
self
.
globalHelp
()
else
:
else
:
...
...
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