projects
/
dbuscron
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67bac02
)
Commands class is iteratable now
author
Konstantin Stepanov
<kstep@p-nut.info>
Fri, 10 Dec 2010 22:30:43 +0000
(
00:30
+0200)
committer
Konstantin Stepanov
<kstep@p-nut.info>
Fri, 10 Dec 2010 22:30:43 +0000
(
00:30
+0200)
dbuscron/command.py
patch
|
blob
|
history
diff --git
a/dbuscron/command.py
b/dbuscron/command.py
index
e05a948
..
776d474
100644
(file)
--- a/
dbuscron/command.py
+++ b/
dbuscron/command.py
@@
-49,6
+49,10
@@
class Commands(object):
__commands = {}
__environ = {}
+ def __iter__(self):
+ for m, c in self.__commands.iteritems():
+ yield m, c
+
def _get_environ(self):
return self.__environ