diff options
author | Filipp Lepalaan <filipp@mac.com> | 2015-10-26 20:51:44 +0200 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2015-10-26 20:51:44 +0200 |
commit | 47a62a1683eafd323d79a47688a649db186357ae (patch) | |
tree | 30b3daf55444ea2461480c25227170180de4cc9c /servo/models | |
parent | ddcdda49cf88a296ba9f6469e833ec540136866c (diff) | |
download | Servo-47a62a1683eafd323d79a47688a649db186357ae.tar.gz Servo-47a62a1683eafd323d79a47688a649db186357ae.tar.bz2 Servo-47a62a1683eafd323d79a47688a649db186357ae.zip |
Added counter to rules
Diffstat (limited to 'servo/models')
-rw-r--r-- | servo/models/note.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/servo/models/note.py b/servo/models/note.py index 5db054b..ad92f7e 100644 --- a/servo/models/note.py +++ b/servo/models/note.py @@ -231,6 +231,7 @@ class Note(MPTTModel): return ' '.join(classes) def find_parent(self, txt): + """Finds the parent of this note""" cookie = re.search(r'\(SRO#([\w/]+)\)', txt) if not cookie: @@ -249,9 +250,7 @@ class Note(MPTTModel): @classmethod def from_email(cls, msg, user): - """ - Creates a new Note from an email message - """ + """Creates a new Note from an email message""" sender = decode_header(msg['From']) detected = chardet.detect(sender[0][0]).get('encoding') sender = [i[0].decode(i[1] or detected) for i in sender] |