Changeset - 0c67924f293b
[Not reviewed]
default
0 1 0
Thomas De Schampheleire - 9 years ago 2016-10-08 21:30:38
thomas.de.schampheleire@gmail.com
helpers: remove unused get_error / _GetError

This method/class was introduced in the very first commit of this
repository, but is no longer used.
1 file changed with 0 insertions and 16 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/helpers.py
Show inline comments
 
@@ -135,22 +135,6 @@ def FID(raw_id, path):
 
    return 'C-%s-%s' % (short_id(raw_id), hashlib.md5(safe_str(path)).hexdigest()[:12])
 

	
 

	
 
class _GetError(object):
 
    """Get error from form_errors, and represent it as span wrapped error
 
    message
 

	
 
    :param field_name: field to fetch errors for
 
    :param form_errors: form errors dict
 
    """
 

	
 
    def __call__(self, field_name, form_errors):
 
        tmpl = """<span class="error_msg">%s</span>"""
 
        if form_errors and field_name in form_errors:
 
            return literal(tmpl % form_errors.get(field_name))
 

	
 
get_error = _GetError()
 

	
 

	
 
class _FilesBreadCrumbs(object):
 

	
 
    def __call__(self, repo_name, rev, paths):
0 comments (0 inline, 0 general)