* Added core.Capi.__repr__()
* Fixed core.Call.__repr__() (can't use %x for representing handle) git-svn-id: https://svn.ibp.de/svn/capisuite/trunk/capisuite@424 4ebea2bb-67d4-0310-8558-a5799e421b66
This commit is contained in:
parent
27a6451bc7
commit
9f0c5f72e6
|
@ -40,6 +40,8 @@ class Capi:
|
|||
"""
|
||||
self._handle = handle
|
||||
|
||||
def __repr__(self):
|
||||
return 'Capi(%(_handle)s)' % self.__dict__
|
||||
|
||||
def call_voice(self, controller, call_from, call_to,
|
||||
timeout, clir=0):
|
||||
|
@ -132,7 +134,7 @@ class Call:
|
|||
|
||||
def __repr__(self):
|
||||
# todo: add service, call_from, call_to
|
||||
return ('Call(%(_handle)x, service=%(service)s, '
|
||||
return ('Call(%(_handle)s, service=%(service)s, '
|
||||
'from_nr=%(from_nr)s, to_nr%(to_nr)s)') % self.__dict__
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue