diff pylons_app/lib/filters.py @ 260:6ada8c223374

made global funcion to clean repo names, and remove all special chars from the name. Switched message slug into webhelpers function
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 06 Jun 2010 21:54:54 +0200
parents 3782a6d698af
children
line wrap: on
line diff
--- a/pylons_app/lib/filters.py	Sun Jun 06 10:57:49 2010 +0200
+++ b/pylons_app/lib/filters.py	Sun Jun 06 21:54:54 2010 +0200
@@ -26,14 +26,6 @@
 
 from mercurial import util
 from mercurial.templatefilters import age as _age, person as _person
-from string import punctuation
-
-def clean_repo(repo_name):
-    for x in punctuation:
-        if x != '_':
-            repo_name = repo_name.replace(x, '')
-    repo_name = repo_name.lower().strip()
-    return repo_name.replace(' ', '_')
 
 age = lambda  x:_age(x)
 capitalize = lambda x: x.capitalize()