Changeset 12443 for main/waeup.ikoba/trunk
- Timestamp:
- 11 Jan 2015, 16:54:48 (10 years ago)
- Location:
- main/waeup.ikoba/trunk/src/waeup/ikoba
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/documents/utils.py
r12408 r12443 20 20 import grok 21 21 from waeup.ikoba.interfaces import MessageFactory as _ 22 from waeup.ikoba.interfaces import ( 23 CREATED, SUBMITTED, 24 VERIFIED, REJECTED, EXPIRED, PUBLISHED) 22 from waeup.ikoba.interfaces import CREATED, PUBLISHED 25 23 from waeup.ikoba.documents.interfaces import IDocumentsUtils 26 24 -
main/waeup.ikoba/trunk/src/waeup/ikoba/interfaces.py
r12419 r12443 125 125 126 126 #: Regular expressions to check id formats. 127 check_id = re.compile(r"^[a-zA-Z0-9_-]{2, 6}$").match127 check_id = re.compile(r"^[a-zA-Z0-9_-]{2,9}$").match 128 128 check_uuid = re.compile( r"^[a-zA-Z0-9]{32}$").match 129 129 -
main/waeup.ikoba/trunk/src/waeup/ikoba/tests/test_interfaces.py
r12260 r12443 67 67 # No spaces 68 68 self.assertTrue(check_id('abc ABC') is None) 69 # More than 6characters are not allowed70 self.assertTrue(check_id('abcdefg ') is None)69 # More than 9 characters are not allowed 70 self.assertTrue(check_id('abcdefghij') is None) 71 71 # Only underscores and hyphens are allowed 72 72 self.assertTrue(check_id('a+b') is None)
Note: See TracChangeset for help on using the changeset viewer.