Changeset - eec4defdf2b8
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 14 years ago 2011-06-04 00:14:32
marcin@python-works.com
Make rhodecode use author/username filter from vcs instead of mercurial
1 file changed with 5 insertions and 9 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/helpers.py
Show inline comments
 
@@ -317,21 +317,17 @@ def is_following_repo(repo_name, user_id
 

	
 
flash = _Flash()
 

	
 

	
 
#==============================================================================
 
# MERCURIAL FILTERS available via h.
 
# SCM FILTERS available via h.
 
#==============================================================================
 
from mercurial import util
 
from mercurial.templatefilters import person as _person
 
from vcs.utils import author_name, author_email
 
from rhodecode.lib import credentials_hidder, age as _age
 

	
 

	
 

	
 
age = lambda  x:_age(x)
 
capitalize = lambda x: x.capitalize()
 
email = util.email
 
email_or_none = lambda x: util.email(x) if util.email(x) != x else None
 
person = lambda x: _person(x)
 
email = author_email
 
email_or_none = lambda x: email(x) if email(x) != x else None
 
person = lambda x: author_name(x)
 
short_id = lambda x: x[:12]
 
hide_credentials = lambda x: ''.join(credentials_hidder(x))
 

	
0 comments (0 inline, 0 general)