Ejemplo n.º 1
0
 def get_schema(self):
     class EditTranslationsSchema(colander.Schema):
         translations = colander.Schema(title = edit_translations_title)
     schema = EditTranslationsSchema()        
     for (k, v) in get_registered_ttwt(self.request).items():
         schema['translations'].add(colander.SchemaNode(colander.String(),
                                                        name = k,
                                                        title = v and v or k,
                                                        description = "ID: %s" % k,
                                                        missing = ""))
     return schema
Ejemplo n.º 2
0
 def current_keys(self):
     return frozenset(get_registered_ttwt(self.request).keys())