[schema] fix same_as cardinality and bump Bookmark.path max length to approximative max url size stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 25 May 2010 10:55:57 +0200
branchstable
changeset 5577 4e3ca117c275
parent 5560 b9a8e7109370
child 5579 297b2002a083
[schema] fix same_as cardinality and bump Bookmark.path max length to approximative max url size
misc/migration/3.8.3_Any.py
schemas/Bookmark.py
schemas/base.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)
--- 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',
--- 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.