__init__.py
branchtls-sprint
changeset 1398 5fe84a5f7035
parent 1263 01152fffd593
child 1498 2c6eec0b46b9
equal deleted inserted replaced
1397:6cbc7bc8ea6d 1398:5fe84a5f7035
   210         """return a tuple (type, sourceuri, extid) for the entity with id <eid>"""
   210         """return a tuple (type, sourceuri, extid) for the entity with id <eid>"""
   211         raise NotImplementedError
   211         raise NotImplementedError
   212         
   212         
   213 
   213 
   214 # XXX 2.45 is allowing nicer entity type names, use this map for bw compat    
   214 # XXX 2.45 is allowing nicer entity type names, use this map for bw compat    
   215 ETYPE_NAME_MAP = {'Eetype': 'EEType',
   215 ETYPE_NAME_MAP = {# 3.2 migration
   216                   'Ertype': 'ERType',
   216                   'ECache': 'CWCache',
   217                   'Efrdef': 'EFRDef',
   217                   'EUser': 'CWUser',
   218                   'Enfrdef': 'ENFRDef',
   218                   'EGroup': 'CWGroup',
   219                   'Econstraint': 'EConstraint',
   219                   'EProperty': 'CWProperty',
   220                   'Econstrainttype': 'EConstraintType',
   220                   'EFRDef': 'CWAttribute',
   221                   'Epermission': 'EPermission',
   221                   'ENFRDef': 'CWRelation',
   222                   'Egroup': 'EGroup',
   222                   'ERType': 'CWRType',
   223                   'Euser': 'EUser',
   223                   'EEType': 'CWEType',
   224                   'Eproperty': 'EProperty',
   224                   'EConstraintType': 'CWConstraintType',
       
   225                   'EConstraint': 'CWConstraint',
       
   226                   'EPermission': 'CWPermission',
       
   227                    # 2.45 migration
       
   228                   'Eetype': 'CWEType',
       
   229                   'Ertype': 'CWRType',
       
   230                   'Efrdef': 'CWAttribute',
       
   231                   'Enfrdef': 'CWRelation',
       
   232                   'Econstraint': 'CWConstraint',
       
   233                   'Econstrainttype': 'CWConstraintType',
       
   234                   'Epermission': 'CWPermission',
       
   235                   'Egroup': 'CWGroup',
       
   236                   'Euser': 'CWUser',
       
   237                   'Eproperty': 'CWProperty',
   225                   'Emailaddress': 'EmailAddress',
   238                   'Emailaddress': 'EmailAddress',
   226                   'Rqlexpression': 'RQLExpression',
   239                   'Rqlexpression': 'RQLExpression',
   227                   'Trinfo': 'TrInfo',
   240                   'Trinfo': 'TrInfo',
   228                   }
   241                   }
   229 
   242 
   267                     'jplrecia': 'jplrecia',
   280                     'jplrecia': 'jplrecia',
   268                     'crm': 'crm',
   281                     'crm': 'crm',
   269                     'agueol': 'agueol',
   282                     'agueol': 'agueol',
   270                     'docaster': 'docaster',
   283                     'docaster': 'docaster',
   271                     'asteretud': 'asteretud',
   284                     'asteretud': 'asteretud',
   272                     
       
   273                     # XXX temp
       
   274                     'keywords': 'keyword',
       
   275                     'folders': 'folder',
       
   276                     'tags': 'tag',
       
   277                     }
   285                     }
   278 
   286 
   279 def neg_role(role):
   287 def neg_role(role):
   280     if role == 'subject':
   288     if role == 'subject':
   281         return 'object'
   289         return 'object'