refactor: decouple — blueprint'ы + CSS/HTML разделение (по шаблону app-autotest)
This commit is contained in:
+1
-7
@@ -37,13 +37,7 @@ def _ue(s):
|
||||
return s
|
||||
|
||||
|
||||
def _pluralize(word):
|
||||
"""Простейшая плюрализация: user→users, database→databases."""
|
||||
if word.endswith("s"):
|
||||
return word
|
||||
if word.endswith("y") and word[-2] not in "aeiou":
|
||||
return word[:-1] + "ies"
|
||||
return word + "s"
|
||||
from utils.pluralize import pluralize as _pluralize
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user