Merge with @alexk307 added comments save support

Added comments save support
Centralized save
Keep 'w' as key to save post/comment
This commit is contained in:
David Foucher
2016-01-21 01:37:17 +01:00
parent b943154174
commit 74c2008226
5 changed files with 6 additions and 41 deletions

View File

@@ -157,7 +157,7 @@ class Page(object):
@PageController.register('w')
@logged_in
def savepost(self):
def save(self):
data = self.content.get(self.nav.absolute_index)
if 'saved' not in data:
self.term.flash()