diff -r 631451eecefc -r 506e951fd338 bt.py --- a/bt.py Sun May 17 20:40:09 2015 +0300 +++ b/bt.py Sun May 17 20:42:32 2015 +0300 @@ -184,3 +184,8 @@ def post_note (ticket_id, message): btuser, btpassword = credentials() suds_client.service.mc_issue_note_add (btuser, btpassword, ticket_id, { 'text': message }) + +def custom_query (func, args): + btuser, btpassword = credentials() + args = [x.replace ('$user', btuser).replace ('$password', btpassword) for x in args] + return getattr (suds_client.service, func)(*args)