Exemplo n.º 1
0
    def get(self, keyname=None):
        ''' show the edit page for a category '''
        self.context_vars = {
            }
        if keyname:
            category = models.get_by_key_name(keyname)
            self.context_vars['category'] = category

        return self.render('admin_category_form.html')
Exemplo n.º 2
0
    def get(self, keyname=None):
        ''' show the edit page for a tag '''
        self.context_vars = {
            }
        if keyname:
            tag = models.get_by_key_name(keyname)
            self.context_vars['tag'] = tag

        return self.render('admin_tag_form.html')