Пример #1
0
 def _fill_customfield(self):
     self.new_tab(_("Custom field"))
     img = XferCompImage('imgField')
     img.set_value(get_icon_path('lucterios.contacts/images/fields.png'))
     img.set_location(0, 0)
     self.add_component(img)
     img = XferCompLabelForm('titleField')
     img.set_value_as_title(_('custom field list'))
     img.set_location(1, 0)
     self.add_component(img)
     self.fill_grid(0, CustomField, "custom_field", CustomField.get_filter(AbstractContact))
Пример #2
0
 def _fill_structuretype(self):
     self.new_tab(_("Structure type"))
     img = XferCompImage('imgType')
     img.set_value(get_icon_path('lucterios.contacts/images/category.png'))
     img.set_location(0, 0)
     self.add_component(img)
     img = XferCompLabelForm('titleType')
     img.set_value_as_title(_('Structure types list'))
     img.set_location(1, 0)
     self.add_component(img)
     self.fill_grid(0, StructureType, "structure_type", StructureType.objects.all())
Пример #3
0
 def _fill_functions(self):
     self.new_tab(_("Functions and responsabilities"))
     img = XferCompImage('imgFunction')
     img.set_value(get_icon_path('lucterios.contacts/images/function.png'))
     img.set_location(0, 0)
     self.add_component(img)
     img = XferCompLabelForm('titleFunction')
     img.set_value_as_title(_("Functions list"))
     img.set_location(1, 0)
     self.add_component(img)
     self.fill_grid(0, Function, "function", Function.objects.all())
Пример #4
0
 def _fill_functions(self):
     self.new_tab(_("Functions and responsabilities"))
     img = XferCompImage('imgFunction')
     img.set_value(get_icon_path('lucterios.contacts/images/function.png'))
     img.set_location(0, 0)
     self.add_component(img)
     img = XferCompLabelForm('titleFunction')
     img.set_value_as_title(_("Functions list"))
     img.set_location(1, 0)
     self.add_component(img)
     self.fill_grid(0, Function, "function", Function.objects.all())
Пример #5
0
 def _fill_customfield(self):
     self.new_tab(_("Custom field"))
     img = XferCompImage('imgField')
     img.set_value(get_icon_path('lucterios.contacts/images/fields.png'))
     img.set_location(0, 0)
     self.add_component(img)
     img = XferCompLabelForm('titleField')
     img.set_value_as_title(_('custom field list'))
     img.set_location(1, 0)
     self.add_component(img)
     self.fill_grid(0, CustomField, "custom_field",
                    CustomField.get_filter(AbstractContact))
Пример #6
0
 def _fill_structuretype(self):
     self.new_tab(_("Structure type"))
     img = XferCompImage('imgType')
     img.set_value(get_icon_path('lucterios.contacts/images/category.png'))
     img.set_location(0, 0)
     self.add_component(img)
     img = XferCompLabelForm('titleType')
     img.set_value_as_title(_('Structure types list'))
     img.set_location(1, 0)
     self.add_component(img)
     self.fill_grid(0, StructureType, "structure_type",
                    StructureType.objects.all())