bt.py

changeset 141
506e951fd338
parent 138
d0184734320e
child 146
c17b82b1f573
equal deleted inserted replaced
140:631451eecefc 141:506e951fd338
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)

mercurial