[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Security - LocalSecurityMap.py:1.1.2.3

Anthony Baxter anthony@interlink.com.au
Fri, 8 Feb 2002 14:23:41 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/Security
In directory cvs.zope.org:/tmp/cvs-serv18762

Modified Files:
      Tag: Zope-3x-branch
	LocalSecurityMap.py 
Log Message:
oops. forgot to make sure it always returns a list for getRow/getCol


=== Zope3/lib/python/Zope/App/Security/LocalSecurityMap.py 1.1.2.2 => 1.1.2.3 ===
         row = self._byrow.get(rowentry)
         if row: return row.get(colentry, default)
+	else: return default
 
     def getRow(self, rowentry):
         " return a list of (colentry, value) tuples from a row "
         row = self._byrow.get(rowentry)
         if row:
             return row.items()
+	else: return []
 
     def getCol(self, colentry):
         " return a list of (rowentry, value) tuples from a col "
         col = self._bycol.get(colentry)
         if col:
             return col.items()
+	else: return []