[gnue] r9873 - trunk/gnue-appserver/src

[email protected]
Newsgroups gmane.comp.cms.gnue.cvs
Message-ID <[email protected]>
Author: reinhard
Date: 2008-05-05 08:20:27 -0500 (Mon, 05 May 2008)
New Revision: 9873

Modified:
   trunk/gnue-appserver/src/geasAuthentication.py
Log:
Fix for empty access lists. Thanks to David Ayers.


Modified: trunk/gnue-appserver/src/geasAuthentication.py
===================================================================
--- trunk/gnue-appserver/src/geasAuthentication.py	2008-04-29 10:22:10 UTC (rev 9872)
+++ trunk/gnue-appserver/src/geasAuthentication.py	2008-05-05 13:20:27 UTC (rev 9873)
@@ -114,7 +114,11 @@
 
           assert gDebug (1, "User '%s' logged in." % user)
 
-          session.tablelist = rec.getField (u'gnue_accesslist').split (',')
+          accesslist = rec.getField (u'gnue_accesslist')
+          if accesslist is not None:
+              session.tablelist = accesslist.split (',')
+          else:
+              session.tablelist = []
 
       finally:
         resultSet.close ()
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.