# HG changeset patch # User Sylvain Thénault # Date 1274777757 -7200 # Node ID 4e3ca117c275dde4128dcf0ca0084a1c1fa93910 # Parent b9a8e7109370a12f52b9028a997a3607fd7d934b [schema] fix same_as cardinality and bump Bookmark.path max length to approximative max url size diff -r b9a8e7109370 -r 4e3ca117c275 misc/migration/3.8.3_Any.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/misc/migration/3.8.3_Any.py Tue May 25 10:55:57 2010 +0200 @@ -0,0 +1,2 @@ +sync_schema_props_perms('same_as', syncperms=False) +sync_schema_props_perms('Bookmark', syncperms=False) diff -r b9a8e7109370 -r 4e3ca117c275 schemas/Bookmark.py --- a/schemas/Bookmark.py Fri May 21 08:45:25 2010 +0200 +++ b/schemas/Bookmark.py Tue May 25 10:55:57 2010 +0200 @@ -34,7 +34,7 @@ } title = String(required=True, maxsize=128, internationalizable=True) - path = String(maxsize=512, required=True, + path = String(maxsize=2048, required=True, description=_("relative url of the bookmarked page")) bookmarked_by = SubjectRelation('CWUser', diff -r b9a8e7109370 -r 4e3ca117c275 schemas/base.py --- a/schemas/base.py Fri May 21 08:45:25 2010 +0200 +++ b/schemas/base.py Tue May 25 10:55:57 2010 +0200 @@ -176,7 +176,8 @@ name = String(required=True, indexed=True, internationalizable=True, maxsize=100, description=_('name or identifier of the permission')) label = String(required=True, internationalizable=True, maxsize=100, - description=_('distinct label to distinguate between other permission entity of the same name')) + description=_('distinct label to distinguate between other ' + 'permission entity of the same name')) require_group = SubjectRelation('CWGroup', description=_('groups to which the permission is granted')) @@ -210,7 +211,7 @@ 'add': ('managers', 'users'), 'delete': ('managers', 'owners'), } - cardinality = '*1' + cardinality = '**' symmetric = True # NOTE: the 'object = ExternalUri' declaration will still be mandatory # in the cube's schema.