r7071 - bigboard/trunk/bigboard/stocks/people



Author: hp
Date: 2007-12-17 14:48:29 -0600 (Mon, 17 Dec 2007)
New Revision: 7071

Modified:
   bigboard/trunk/bigboard/stocks/people/peoplewidgets.py
Log:
ignore empty status messages

Modified: bigboard/trunk/bigboard/stocks/people/peoplewidgets.py
===================================================================
--- bigboard/trunk/bigboard/stocks/people/peoplewidgets.py	2007-12-17 20:15:54 UTC (rev 7070)
+++ bigboard/trunk/bigboard/stocks/people/peoplewidgets.py	2007-12-17 20:48:29 UTC (rev 7071)
@@ -66,8 +66,10 @@
         except AttributeError:
             pass
         
-        if message and message != '':
-            self.set_property('text', message)
+        if message:
+            message = message.strip()
+            if message != '':
+                self.set_property('text', message)
 
 class PersonItem(PhotoContentItem):
     def __init__(self, person, **kwargs):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]