entities/schemaobjs.py
changeset 5224 34e669b6fd95
parent 5030 5238d9a8dfee
child 5239 471554b842d2
equal deleted inserted replaced
5223:6abd6e3599f4 5224:34e669b6fd95
   160 class RQLExpression(AnyEntity):
   160 class RQLExpression(AnyEntity):
   161     __regid__ = 'RQLExpression'
   161     __regid__ = 'RQLExpression'
   162     fetch_attrs, fetch_order = fetch_config(['exprtype', 'mainvars', 'expression'])
   162     fetch_attrs, fetch_order = fetch_config(['exprtype', 'mainvars', 'expression'])
   163 
   163 
   164     def dc_title(self):
   164     def dc_title(self):
       
   165         return self.expression or u''
       
   166 
       
   167     def dc_long_title(self):
   165         return '%s(%s)' % (self.exprtype, self.expression or u'')
   168         return '%s(%s)' % (self.exprtype, self.expression or u'')
   166 
   169 
   167     @property
   170     @property
   168     def expression_of(self):
   171     def expression_of(self):
   169         for rel in ('read_permission', 'add_permission', 'delete_permission',
   172         for rel in ('read_permission', 'add_permission', 'delete_permission',