154 class InitializableDict(dict): |
154 class InitializableDict(dict): |
155 def __init__(self, *args, **kwargs): |
155 def __init__(self, *args, **kwargs): |
156 super(InitializableDict, self).__init__(*args, **kwargs) |
156 super(InitializableDict, self).__init__(*args, **kwargs) |
157 register_rtag(self) |
157 register_rtag(self) |
158 |
158 |
159 def init(schema, check=True): |
159 def init(self, schema, check=True): |
160 for eschema in schema.entities(): |
160 for eschema in schema.entities(): |
161 if eschema.schema_entity(): |
161 if eschema.schema_entity(): |
162 uicfg.indexview_etype_section.setdefault(eschema, 'schema') |
162 self.setdefault(eschema, 'schema') |
163 elif eschema.is_subobject(strict=True): |
163 elif eschema.is_subobject(strict=True): |
164 uicfg.indexview_etype_section.setdefault(eschema, 'subobject') |
164 self.setdefault(eschema, 'subobject') |
165 else: |
165 else: |
166 uicfg.indexview_etype_section.setdefault(eschema, 'application') |
166 self.setdefault(eschema, 'application') |
167 |
167 |
168 indexview_etype_section = InitializableDict(EmailAddress='subobject', |
168 indexview_etype_section = InitializableDict(EmailAddress='subobject', |
169 CWUser='system', |
169 CWUser='system', |
170 CWGroup='system', |
170 CWGroup='system', |
171 CWPermission='system', |
171 CWPermission='system', |