return Document(self, name = name, text = text)
def put(self, document, author, comment, parent):
return Document(self, name = name, text = text)
def put(self, document, author, comment, parent):
def delete(self, name, author, comment):
self.vstorage.delete_page(name, author, comment)
def delete(self, name, author, comment):
self.vstorage.delete_page(name, author, comment)
k, v = line.split(':', 1)
result[k.strip()] = v.strip()
except ValueError:
k, v = line.split(':', 1)
result[k.strip()] = v.strip()
except ValueError:
+ continue
+
+ if 'gallery' not in result:
+ result['gallery'] = (settings.GALLERY_URL + self.name).replace(' ', '_')
+
+ if 'title' not in result:
+ result['title'] = self.name.title()