aboutsummaryrefslogtreecommitdiff
path: root/model.py
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2024-03-23 21:10:35 +0000
committerJuan J. Martinez <jjm@usebox.net>2024-03-23 21:10:35 +0000
commit4b397b071cce938cefad75d7b56b813bbe7e1c26 (patch)
treee748f1f1c492b6dae5049288d75abc70af02bd1f /model.py
parent31683ac7edb636c970f236148b10858b8da14392 (diff)
downloadpersonal-wiki-pybottle-4b397b071cce938cefad75d7b56b813bbe7e1c26.tar.gz
personal-wiki-pybottle-4b397b071cce938cefad75d7b56b813bbe7e1c26.zip
Filter for PascalCase words
Diffstat (limited to 'model.py')
-rw-r--r--model.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/model.py b/model.py
index a69ed99..b4147e1 100644
--- a/model.py
+++ b/model.py
@@ -1,6 +1,5 @@
import sqlite3
from datetime import datetime
-import re
import inflection
import markdown
@@ -41,10 +40,6 @@ class Page(object):
def render(self):
return markdown.markdown(self.content)
- def validate(self):
- if self.name != inflection.camelize(self.name):
- raise ValueError("Invalid page name, must be CamelCase")
-
@property
def title(self):
pretty = inflection.titleize(self.name)