Exemple #1
0
	def show(self, page):
		c.page = self._fetchPage(page)
		if c.page == None:
			c.page = EmptyPage(page)
		c.links = [('edit/%s' % page, 'edit')]
		c.text = help.literal(markdown2.markdown(c.page.text))
		return render('page.mako')
Exemple #2
0
	def edit(self, page):
		c.page = self._fetchPageRaw(page)
		if c.page == None:
			c.page = EmptyPage(page, True)
		c.links = []
		return render('edit.mako')