'msg' : msg})
cmd = [ZWRITE, '-S', sender, '-c', klass, '-i', instance,
'-s', zsig, '-d', '-m', msg]
- subprocess.check_call(cmd)
+ subprocess.check_call([str(p) for p in cmd])
class Application(object):
@cherrypy.expose
instance <tt>commit</tt>. Using this information, zcommit figures out
how to form a useful message which is then sends as a zephyr.
-<h1> Github </h1>
+<h1> Types </h1>
+
+<h2> Github </h2>
Set your POST-back URL to
<tt>http://zcommit.mit.edu/github/class/$classname</tt>, followed by
<ul>
<li> <tt>/instance/$instance</tt> </li>
-<li> <tt>/zsig/$zsig</tt> </li>
+<li> <tt>/zsig/$zsig</tt> (sets the prefix of the zsig; the postfix is always the branch name) </li>
<li> <tt>/sender/$sender</tt> </li>
</ul>
"""
if c.get('modified'):
actions.append('Modified: %s\n' % '\n '.join(c['modified']))
if not actions:
- actions.append('Something weird happened... could not figure out what action to take')
+ actions.append('Did not add/remove/modify any nonempty files.')
info = {'name' : c['author']['name'],
'email' : c['author']['email'],
'message' : c['message'],
'timestamp' : c['timestamp'],
- 'actions' : '--\n'.join(actions)}
+ 'actions' : '--\n'.join(actions),
+ 'url' : c['url']}
msg = """%(name)s <%(email)s> (%(timestamp)s)
+%(url)s
> %(message)s
--
%(actions)s""" % info