[Zope-Checkins] CVS: Products/AdaptableStorage/gateway_fs - FSUserList.py:1.2
Shane Hathaway
shane@zope.com
Tue, 7 Jan 2003 00:08:07 -0500
Update of /cvs-repository/Products/AdaptableStorage/gateway_fs
In directory cvs.zope.org:/tmp/cvs-serv22801/gateway_fs
Modified Files:
FSUserList.py
Log Message:
- Added SQLUserList. All tests pass again.
- Refactored Zope 2 tests to share a common implementation,
Zope2TestBase.
=== Products/AdaptableStorage/gateway_fs/FSUserList.py 1.1 => 1.2 ===
--- Products/AdaptableStorage/gateway_fs/FSUserList.py:1.1 Mon Jan 6 18:17:41 2003
+++ Products/AdaptableStorage/gateway_fs/FSUserList.py Tue Jan 7 00:07:34 2003
@@ -63,6 +63,8 @@
"Leading and trailing whitespace are not allowed in %s"
% repr(item))
item = item.strip()
+ if not item:
+ raise MappingError("Empty role/domain not allowed")
if ',' in item or ':' in item or '\n' in item:
raise MappingError(
"Commas, colons, and newlines are not allowed in %s"