From 4b397b071cce938cefad75d7b56b813bbe7e1c26 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sat, 23 Mar 2024 21:10:35 +0000 Subject: Filter for PascalCase words --- model.py | 5 ----- 1 file changed, 5 deletions(-) (limited to 'model.py') 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) -- cgit v1.2.3