web/views/primary.py
changeset 2652 3753f3a07ca1
parent 2402 321a87654988
child 2655 48cd71bdb5cd
equal deleted inserted replaced
2651:3ad936634d2a 2652:3753f3a07ca1
   223             self.w(u'<div>')
   223             self.w(u'<div>')
   224             self.wview('simplelist', self.rset)
   224             self.wview('simplelist', self.rset)
   225             self.w(u'[<a href="%s">%s</a>]' % (self.build_url(rql=rql),
   225             self.w(u'[<a href="%s">%s</a>]' % (self.build_url(rql=rql),
   226                                                self.req._('see them all')))
   226                                                self.req._('see them all')))
   227             self.w(u'</div>')
   227             self.w(u'</div>')
       
   228 
       
   229 ## default primary ui configuration ###########################################
       
   230 
       
   231 for rtype in ('eid', 'creation_date', 'modification_date', 'cwuri',
       
   232               'is', 'is_instance_of', 'identity',
       
   233               'owned_by', 'created_by',
       
   234               'in_state', 'wf_info_for', 'require_permission',
       
   235               'from_entity', 'to_entity',
       
   236               'see_also'):
       
   237     uicfg.primaryview_section.tag_subject_of(('*', rtype, '*'), 'hidden')
       
   238     uicfg.primaryview_section.tag_object_of(('*', rtype, '*'), 'hidden')
       
   239 uicfg.primaryview_section.tag_subject_of(('*', 'use_email', '*'), 'attributes')
       
   240 uicfg.primaryview_section.tag_subject_of(('*', 'primary_email', '*'), 'hidden')
       
   241 
       
   242 for attr in ('name', 'final'):
       
   243     uicfg.primaryview_section.tag_attribute(('CWEType', attr), 'hidden')
       
   244 for attr in ('name', 'final', 'symetric', 'inlined'):
       
   245     uicfg.primaryview_section.tag_attribute(('CWRType', attr), 'hidden')