[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/authentication/groupfolder.py fix bug; groupinfo.description may be None

Benji York benji at zope.com
Fri Jun 24 11:22:31 EDT 2005


Log message for revision 30908:
  fix bug; groupinfo.description may be None
  

Changed:
  U   Zope3/trunk/src/zope/app/authentication/groupfolder.py

-=-
Modified: Zope3/trunk/src/zope/app/authentication/groupfolder.py
===================================================================
--- Zope3/trunk/src/zope/app/authentication/groupfolder.py	2005-06-24 11:28:26 UTC (rev 30907)
+++ Zope3/trunk/src/zope/app/authentication/groupfolder.py	2005-06-24 15:22:30 UTC (rev 30908)
@@ -183,7 +183,8 @@
             search = search.lower()
             for id, groupinfo in self.items():
                 if (search in groupinfo.title.lower() or
-                    search in groupinfo.description.lower()):
+                    (groupinfo.description and 
+                     search in groupinfo.description.lower())):
                     if not ((start is not None and i < start)
                             or
                             (batch_size is not None and n >= batch_size)):



More information about the Zope3-Checkins mailing list