web/views/primary.py
changeset 2655 48cd71bdb5cd
parent 2650 18aec79ec3a3
parent 2652 3753f3a07ca1
child 2813 0cf6c8005bf6
child 2920 64322aa83a1d
child 3064 3fbcdf220ce9
--- a/web/views/primary.py	Mon Aug 03 10:50:57 2009 +0200
+++ b/web/views/primary.py	Mon Aug 03 10:53:31 2009 +0200
@@ -224,3 +224,21 @@
             self.w(u'[<a href="%s">%s</a>]' % (self.build_url(rql=rql),
                                                self.req._('see them all')))
             self.w(u'</div>')
+
+## default primary ui configuration ###########################################
+
+for rtype in ('eid', 'creation_date', 'modification_date', 'cwuri',
+              'is', 'is_instance_of', 'identity',
+              'owned_by', 'created_by',
+              'in_state', 'wf_info_for', 'require_permission',
+              'from_entity', 'to_entity',
+              'see_also'):
+    uicfg.primaryview_section.tag_subject_of(('*', rtype, '*'), 'hidden')
+    uicfg.primaryview_section.tag_object_of(('*', rtype, '*'), 'hidden')
+uicfg.primaryview_section.tag_subject_of(('*', 'use_email', '*'), 'attributes')
+uicfg.primaryview_section.tag_subject_of(('*', 'primary_email', '*'), 'hidden')
+
+for attr in ('name', 'final'):
+    uicfg.primaryview_section.tag_attribute(('CWEType', attr), 'hidden')
+for attr in ('name', 'final', 'symetric', 'inlined'):
+    uicfg.primaryview_section.tag_attribute(('CWRType', attr), 'hidden')