aboutsummaryrefslogtreecommitdiffstats
path: root/servo/models/note.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-10-26 20:51:44 +0200
committerFilipp Lepalaan <filipp@mac.com>2015-10-26 20:51:44 +0200
commit47a62a1683eafd323d79a47688a649db186357ae (patch)
tree30b3daf55444ea2461480c25227170180de4cc9c /servo/models/note.py
parentddcdda49cf88a296ba9f6469e833ec540136866c (diff)
downloadServo-47a62a1683eafd323d79a47688a649db186357ae.tar.gz
Servo-47a62a1683eafd323d79a47688a649db186357ae.tar.bz2
Servo-47a62a1683eafd323d79a47688a649db186357ae.zip
Added counter to rules
Diffstat (limited to 'servo/models/note.py')
-rw-r--r--servo/models/note.py5
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]