Ignore:
Timestamp:
11 Jan 2015, 16:54:48 (10 years ago)
Author:
Henrik Bettermann
Message:

Increase allowed id length.

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  
    2020import grok
    2121from waeup.ikoba.interfaces import MessageFactory as _
    22 from waeup.ikoba.interfaces import (
    23     CREATED, SUBMITTED,
    24     VERIFIED, REJECTED, EXPIRED, PUBLISHED)
     22from waeup.ikoba.interfaces import CREATED, PUBLISHED
    2523from waeup.ikoba.documents.interfaces import IDocumentsUtils
    2624
  • main/waeup.ikoba/trunk/src/waeup/ikoba/interfaces.py

    r12419 r12443  
    125125
    126126#: Regular expressions to check id formats.
    127 check_id = re.compile(r"^[a-zA-Z0-9_-]{2,6}$").match
     127check_id = re.compile(r"^[a-zA-Z0-9_-]{2,9}$").match
    128128check_uuid = re.compile( r"^[a-zA-Z0-9]{32}$").match
    129129
  • main/waeup.ikoba/trunk/src/waeup/ikoba/tests/test_interfaces.py

    r12260 r12443  
    6767        # No spaces
    6868        self.assertTrue(check_id('abc ABC') is None)
    69         # More than 6 characters are not allowed
    70         self.assertTrue(check_id('abcdefg') is None)
     69        # More than 9 characters are not allowed
     70        self.assertTrue(check_id('abcdefghij') is None)
    7171        # Only underscores and hyphens are allowed
    7272        self.assertTrue(check_id('a+b') is None)
Note: See TracChangeset for help on using the changeset viewer.