Added fixes, displaying templates still needs to be fixed.

This commit is contained in:
Nicholas Staples
2016-01-22 11:14:56 +00:00
parent 64af225d2d
commit bb853ee95a
4 changed files with 22 additions and 12 deletions

View File

@@ -33,6 +33,10 @@ class TemplatesBrowsableItem(BrowsableItem):
def title(self):
return self._item['name']
@property
def type(self):
return self._item['template_type']
@property
def link(self):
return url_for(
@@ -47,3 +51,6 @@ class TemplatesBrowsableItem(BrowsableItem):
@property
def hint(self):
return "Some service template hint here"
def get_field(self, field):
return self._item.get(field, None)