Mercurial > public > src > rhodecode
comparison pylons_app/lib/helpers.py @ 265:0e5455fda8fd
Implemented basic repository managment. Implemented repo2db mappings, model, helpers updates and code cleanups
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 07 Jun 2010 00:18:33 +0200 |
parents | 6ada8c223374 |
children | ed7abf925696 |
comparison
equal
deleted
inserted
replaced
264:0d68a749db33 | 265:0e5455fda8fd |
---|---|
112 def repo_name_slug(value): | 112 def repo_name_slug(value): |
113 """ | 113 """ |
114 Return slug of name of repository | 114 Return slug of name of repository |
115 """ | 115 """ |
116 slug = urlify(value) | 116 slug = urlify(value) |
117 for c in """=[]\;',/~!@#$%^&*()+{}|:""": | 117 for c in """=[]\;'"<>,/~!@#$%^&*()+{}|:""": |
118 slug = slug.replace(c, '-') | 118 slug = slug.replace(c, '-') |
119 print slug | |
120 slug = recursive_replace(slug, '-') | 119 slug = recursive_replace(slug, '-') |
121 print slug | |
122 return slug | 120 return slug |
123 | 121 |
124 files_breadcrumbs = _FilesBreadCrumbs() | 122 files_breadcrumbs = _FilesBreadCrumbs() |
125 link = _Link() | 123 link = _Link() |
126 flash = _Flash() | 124 flash = _Flash() |