Quelques fioritures
darcs-hash:20071216180012-61eff-fb335a8dc06340f561dad1fcee0f856a5789b639.gz
This commit is contained in:
parent
744e4bf745
commit
0265113025
1 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue