git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
479df23
)
use returncodes
author
Felix Domke
<tmbinc@elitedvb.net>
Mon, 14 Nov 2005 21:46:48 +0000
(21:46 +0000)
committer
Felix Domke
<tmbinc@elitedvb.net>
Mon, 14 Nov 2005 21:46:48 +0000
(21:46 +0000)
data/menu.xml
patch
|
blob
|
history
mytest.py
patch
|
blob
|
history
diff --git
a/data/menu.xml
b/data/menu.xml
index cd09b06c01a5ab1c2d8fa62dc9b37f95385e305d..d5b950a45831534c3fcd3048e4f3c7713f311ed1 100644
(file)
--- a/
data/menu.xml
+++ b/
data/menu.xml
@@
-13,7
+13,7
@@
<code> .. code .. </code>
"exec"s code
-->
<code> .. code .. </code>
"exec"s code
-->
- <!--<item text="Standby debug">quitMainloop()</item>
+ <!--<item text="Standby debug">quitMainloop(
0
)</item>
<item text="Networksetup">self.openSetup("network")</item>-->
<!--<item text="CI"><screen module="Ci" screen="CiSelection" /></item>-->
<!--<item text="Radio"><code>print "radio mode"</code></item>-->
<item text="Networksetup">self.openSetup("network")</item>-->
<!--<item text="CI"><screen module="Ci" screen="CiSelection" /></item>-->
<!--<item text="Radio"><code>print "radio mode"</code></item>-->
@@
-57,8
+57,8
@@
</menu>
<!--<item text="Unser Setup">self.openSetup("Blaselfasel")</item>-->
<menu text="Standby / Restart">
</menu>
<!--<item text="Unser Setup">self.openSetup("Blaselfasel")</item>-->
<menu text="Standby / Restart">
- <item text="Standby"><code>quitMainloop()</code></item>
- <item text="Restart"><code>quitMainloop()</code></item>
- <item text="Deep Standby"><code>quitMainloop()</code></item>
+ <item text="Standby"><code>quitMainloop(
0
)</code></item>
+ <item text="Restart"><code>quitMainloop(
2
)</code></item>
+ <item text="Deep Standby"><code>quitMainloop(
1
)</code></item>
</menu>
</menu>
</menu>
</menu>
diff --git
a/mytest.py
b/mytest.py
index 9e9971899765456069c6014250b95df2d62d774d..2a7eb9a1fc5c6db26de8dbcb92b56f063b0099bb 100644
(file)
--- a/
mytest.py
+++ b/
mytest.py
@@
-99,7
+99,7
@@
class Session:
print 'EXCEPTION IN DIALOG INIT CODE, ABORTING:'
print '-'*60
traceback.print_exc(file=sys.stdout)
print 'EXCEPTION IN DIALOG INIT CODE, ABORTING:'
print '-'*60
traceback.print_exc(file=sys.stdout)
- quitMainloop()
+ quitMainloop(
5
)
print '-'*60
# read skin data
print '-'*60
# read skin data
@@
-199,7
+199,7
@@
except:
print 'EXCEPTION IN PYTHON STARTUP CODE:'
print '-'*60
traceback.print_exc(file=sys.stdout)
print 'EXCEPTION IN PYTHON STARTUP CODE:'
print '-'*60
traceback.print_exc(file=sys.stdout)
- quitMainloop()
+ quitMainloop(
5
)
print '-'*60
# now, run the mainloop
print '-'*60
# now, run the mainloop