Quelques fioritures

darcs-hash:20071216180012-61eff-fb335a8dc06340f561dad1fcee0f856a5789b639.gz
This commit is contained in:
Stephane Glondu 2007-12-16 19:00:12 +01:00
parent 744e4bf745
commit 0265113025

View file

@ -80,7 +80,7 @@ def get_patch_properties(hash):
hostname = commands.getoutput('hostname -s')
shortrepo = os.path.basename(cwd)
if os.path.exists(ID_FILE):
id = file(ID_FILE).read()
id = file(ID_FILE).readlines()[0]
else:
id = shortrepo
return { 'author': prop.attrib['author'],
@ -142,7 +142,7 @@ contenir les variables suivantes:
mail['Mail-Followup-To'] = ", ".join(recipient)
mail['Mail-Reply-To'] = from_template % patch_props
mail['X-CVSinfo'] = "CRANS"
mail['X-DarcsInfo'] = "CRANS-%(shortrepo)s" % patch_props
mail['X-DarcsInfo'] = "CRANS-%(id)s" % patch_props
texte = MIMEText(message_template % patch_props, "UTF-8")
texte.set_charset("UTF-8")