예제 #1
0
 def getSelectableModels(self):
     model_ids = self.context.getAvailableLayouts()
     registry = getModelRegistry()
     result = []
     for model_id, utitle in model_ids:
         model = registry.get(model_id, None)
         if model is None:
             continue
         description = _(model.description_msgid, default=model.description)
         result.append({
             'id': model.id,
             'title': model.Title(),
             'description': description,
             'icon': model.icon,
             })
     return result
예제 #2
0
 def getSelectableModels(self):
     model_ids = self.context.getAvailableLayouts()
     registry = getModelRegistry()
     result = []
     for model_id, utitle in model_ids:
         model = registry.get(model_id, None)
         if model is None:
             continue
         description = _(model.description_msgid, default=model.description)
         result.append({
             'id': model.id,
             'title': model.Title(),
             'description': description,
             'icon': model.icon,
         })
     return result
예제 #3
0
 def Title(self):
     """Return the translated title of this model"""
     return _(self.title_msgid, default=self.title)
예제 #4
0
 def Description(self):
     """Return the translated description"""
     return _(self.description_msgid, default=self.description)
예제 #5
0
 def Description(self):
     """Return the translated description"""
     return _(self.description_msgid, default=self.description)
예제 #6
0
 def Title(self):
     """Return the translated title of this model"""
     return _(self.title_msgid, default=self.title)