projects
/
theonering
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c2f933a
)
Adding get_sane_callback to the debug promot
author
Ed Page
<eopage@byu.net>
Sun, 24 Jan 2010 05:03:17 +0000
(23:03 -0600)
committer
Ed Page
<eopage@byu.net>
Sun, 24 Jan 2010 05:03:17 +0000
(23:03 -0600)
src/channel/debug_prompt.py
patch
|
blob
|
history
diff --git
a/src/channel/debug_prompt.py
b/src/channel/debug_prompt.py
index
78aabdf
..
bd9a613
100644
(file)
--- a/
src/channel/debug_prompt.py
+++ b/
src/channel/debug_prompt.py
@@
-8,6
+8,7
@@
import telepathy
import tp
import gtk_toolbox
import tp
import gtk_toolbox
+import gvoice
_moduleLogger = logging.getLogger("channel.text")
_moduleLogger = logging.getLogger("channel.text")
@@
-155,6
+156,20
@@
class DebugPromptChannel(tp.ChannelTypeText, cmd.Cmd):
def help_get_callback_numbers(self):
self._report_new_message("Print a list of all configured callback numbers")
def help_get_callback_numbers(self):
self._report_new_message("Print a list of all configured callback numbers")
+ def do_get_sane_callback_number(self, args):
+ if args:
+ self._report_new_message("No arguments supported")
+ return
+
+ try:
+ number = gvoice.backend.get_sane_callback(self._conn.session.backend)
+ self._report_new_message(number)
+ except Exception, e:
+ self._report_new_message(str(e))
+
+ def help_get_sane_callback_number(self):
+ self._report_new_message("Print the best guess of callback numbers to use")
+
def do_get_callback_number(self, args):
if args:
self._report_new_message("No arguments supported")
def do_get_callback_number(self, args):
if args:
self._report_new_message("No arguments supported")