From: <bla...@us...> - 2007-05-25 08:52:51
|
Author: blackbird Date: 2007-05-25 10:52:35 +0200 (Fri, 25 May 2007) New Revision: 5139 Modified: trunk/sandbox/py-rest-doc/sphinx/web/userdb.py Log: fixed empty privilege name bug Modified: trunk/sandbox/py-rest-doc/sphinx/web/userdb.py =================================================================== --- trunk/sandbox/py-rest-doc/sphinx/web/userdb.py 2007-05-25 08:45:15 UTC (rev 5138) +++ trunk/sandbox/py-rest-doc/sphinx/web/userdb.py 2007-05-25 08:52:35 UTC (rev 5139) @@ -64,7 +64,9 @@ if line and line[0] != '#': parts = line.split(':') self.users[parts[0]] = parts[1] - self.privileges[parts[0]].update(parts[2].split(',')) + self.privileges[parts[0]].update(x for x in + parts[2].split(',') + if x) def set_password(self, user, password): """Encode the password for a user (also adds users).""" |