def get(self, ident=None): if ident: source = Page.fetch_by_name_or_key(ident) if not ident or not source: source = Page() self.render_template('source.html', source=source)
def get(self, ident): source = Page.fetch_by_name_or_key(ident) self.check(source)