182 suds_client.service.mc_issue_update (btuser, btpassword, ticket_id, ticket_data) |
182 suds_client.service.mc_issue_update (btuser, btpassword, ticket_id, ticket_data) |
183 |
183 |
184 def post_note (ticket_id, message): |
184 def post_note (ticket_id, message): |
185 btuser, btpassword = credentials() |
185 btuser, btpassword = credentials() |
186 suds_client.service.mc_issue_note_add (btuser, btpassword, ticket_id, { 'text': message }) |
186 suds_client.service.mc_issue_note_add (btuser, btpassword, ticket_id, { 'text': message }) |
|
187 |
|
188 def custom_query (func, args): |
|
189 btuser, btpassword = credentials() |
|
190 args = [x.replace ('$user', btuser).replace ('$password', btpassword) for x in args] |
|
191 return getattr (suds_client.service, func)(*args) |