Mercurial > kallithea
comparison rhodecode/lib/utils2.py @ 4014:7c0eff86b249
fixed typo
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 18 Jun 2013 16:20:28 +0200 |
parents | 55dbc440878b |
children | ffd45b185016 |
comparison
equal
deleted
inserted
replaced
4013:d9a73bfc4107 | 4014:7c0eff86b249 |
---|---|
643 unique_id = int(unique_id / alphabet_length) | 643 unique_id = int(unique_id / alphabet_length) |
644 return "".join(output)[:truncate_to] | 644 return "".join(output)[:truncate_to] |
645 | 645 |
646 def get_current_rhodecode_user(): | 646 def get_current_rhodecode_user(): |
647 """ | 647 """ |
648 Get's rhodecode user from threadlocal tmpl_context variable if it's | 648 Gets rhodecode user from threadlocal tmpl_context variable if it's |
649 defined, else returns None. | 649 defined, else returns None. |
650 """ | 650 """ |
651 from pylons import tmpl_context | 651 from pylons import tmpl_context |
652 if hasattr(tmpl_context, 'rhodecode_user'): | 652 if hasattr(tmpl_context, 'rhodecode_user'): |
653 return tmpl_context.rhodecode_user | 653 return tmpl_context.rhodecode_user |