- more fixes

Mon, 12 Jan 2015 02:44:25 -0500

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Mon, 12 Jan 2015 02:44:25 -0500
changeset 115
2bb5c4578ee1
parent 114
0d1fd111cb22
child 116
9e483447654b

- more fixes

bt.py file | annotate | diff | comparison | revisions
hgpoll.py file | annotate | diff | comparison | revisions
modulecore.py file | annotate | diff | comparison | revisions
--- a/bt.py	Wed Dec 31 15:49:11 2014 -0500
+++ b/bt.py	Mon Jan 12 02:44:25 2015 -0500
@@ -91,7 +91,10 @@
 def get_issue (ticket):
 	global suds_client
 	user, password = credentials()
-	return suds_client.service.mc_issue_get (user, password, ticket)
+	print "get_issue: Retrieving issue data for %s" % ticket
+	result = suds_client.service.mc_issue_get (user, password, ticket)
+	print "Issue data recieved."
+	return result
 
 def poll():
 	global btannounce_timeout
--- a/hgpoll.py	Wed Dec 31 15:49:11 2014 -0500
+++ b/hgpoll.py	Mon Jan 12 02:44:25 2015 -0500
@@ -148,6 +148,8 @@
 	if commit_trackeruser != '':
 		commit_author += ' [%s]' % commit_trackeruser
 
+	commit_message = commit_message.replace ("\n", " ")
+
 	message = 'Issue addressed by commit %s: [b][url=%s/commits/%s]%s[/url][/b]' \
 		% (commit_node, repo_url, commit_node, commit_message)
 	message += "\nCommitted by %s on %s\n\n%s" \
--- a/modulecore.py	Wed Dec 31 15:49:11 2014 -0500
+++ b/modulecore.py	Mon Jan 12 02:44:25 2015 -0500
@@ -146,7 +146,8 @@
 	for argname in cmd['argnames']:
 		args[argname] = match.group (i)
 		i += 1
-	
+
+	print "ModuleCore: %s called by %s" % (cmdname, kvargs['sender'])
 	getattr (cmd['module'], "cmd_%s" % cmdname) (bot=bot, cmdname=cmdname, args=args, reply=response_function, **kvargs)
 
 	# Print the first page of responses.

mercurial