schemas/base.py
changeset 4003 b9436fe77c9e
parent 3890 d7a270f50f54
child 4139 2718f2fd0576
--- a/schemas/base.py	Thu Dec 03 17:17:43 2009 +0100
+++ b/schemas/base.py	Mon Dec 07 05:09:09 2009 -0800
@@ -135,30 +135,6 @@
     object = 'String'
 
 
-class CWProperty(EntityType):
-    """used for cubicweb configuration. Once a property has been created you
-    can't change the key.
-    """
-    __permissions__ = {
-        'read':   ('managers', 'users', 'guests'),
-        'add':    ('managers', 'users',),
-        'update': ('managers', 'owners',),
-        'delete': ('managers', 'owners',),
-        }
-    # key is a reserved word for mysql
-    pkey = String(required=True, internationalizable=True, maxsize=256,
-                  description=_('defines what\'s the property is applied for. '
-                                'You must select this first to be able to set '
-                                'value'))
-    value = String(internationalizable=True, maxsize=256)
-
-    for_user = SubjectRelation('CWUser', cardinality='?*', composite='object',
-                               description=_('user for which this property is '
-                                             'applying. If this relation is not '
-                                             'set, the property is considered as'
-                                             ' a global property'))
-
-
 # XXX find a better relation name
 class for_user(RelationType):
     """link a property to the user which want this property customization. Unless