Changeset - 7c0eff86b249
[Not reviewed]
default
0 1 0
Marcin Kuzminski - 12 years ago 2013-06-18 16:20:28
marcin@python-works.com
fixed typo
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/utils2.py
Show inline comments
 
@@ -636,20 +636,20 @@ def suuid(url=None, truncate_to=22, alph
 
        unique_id = uuid.uuid3(uuid.NAMESPACE_URL, url).int
 

	
 
    alphabet_length = len(_ALPHABET)
 
    output = []
 
    while unique_id > 0:
 
        digit = unique_id % alphabet_length
 
        output.append(_ALPHABET[digit])
 
        unique_id = int(unique_id / alphabet_length)
 
    return "".join(output)[:truncate_to]
 

	
 
def get_current_rhodecode_user():
 
    """
 
    Get's rhodecode user from threadlocal tmpl_context variable if it's
 
    Gets rhodecode user from threadlocal tmpl_context variable if it's
 
    defined, else returns None.
 
    """
 
    from pylons import tmpl_context
 
    if hasattr(tmpl_context, 'rhodecode_user'):
 
        return tmpl_context.rhodecode_user
 

	
 
    return None
0 comments (0 inline, 0 general)