changeset 1528:1d7a621d396f beta

fixed action logger
author Marcin Kuzminski <marcin@python-works.com>
date Fri, 07 Oct 2011 22:50:20 +0200
parents 4cd5ea766480
children 0b268dd369ec
files rhodecode/lib/utils.py
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/lib/utils.py	Fri Oct 07 20:01:13 2011 +0200
+++ b/rhodecode/lib/utils.py	Fri Oct 07 22:50:20 2011 +0200
@@ -112,7 +112,7 @@
         if hasattr(user, 'user_id'):
             user_obj = user
         elif isinstance(user, basestring):
-            user_obj = User.by_username(user, cache=False)
+            user_obj = User.by_username(user)
         else:
             raise Exception('You have to provide user object or username')
 
@@ -189,7 +189,7 @@
     :return True: if given path is a valid repository
     """
     full_path = os.path.join(base_path, repo_name)
-    
+
     try:
         get_scm(full_path)
         return True
@@ -204,17 +204,17 @@
     :param base_path:
     """
     full_path = os.path.join(base_path, repos_group_name)
-    
+
     # check if it's not a repo
     if is_valid_repo(repos_group_name, base_path):
         return False
-    
+
     # check if it's a valid path
     if os.path.isdir(full_path):
         return True
-    
+
     return False
-    
+
 def ask_ok(prompt, retries=4, complaint='Yes or no, please!'):
     while True:
         ok = raw_input(prompt)