comparison messages/utils.py @ 581:ee87ea74d46b

For Django 1.4, rearranged project structure for new manage.py.
author Brian Neal <bgneal@gmail.com>
date Sat, 05 May 2012 17:10:48 -0500
parents gpp/messages/utils.py@4b9970ad0edb
children
comparison
equal deleted inserted replaced
580:c525f3e0b5d0 581:ee87ea74d46b
1 """
2 This file contains various helper utility functions for the messages
3 application.
4
5 """
6
7
8 def reply_subject(subject):
9 """
10 Builds a subject line for a reply.
11 If the subject already starts with Re: then return the subject.
12 Otherwise, prepend Re: to the subject and return it.
13 """
14 if subject.startswith('Re: '):
15 return subject
16 return 'Re: ' + subject