diff rhodecode/lib/auth.py @ 604:5cc96df705b9

fixed @repo into :repo for docs fixed routes descriptions
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 18 Oct 2010 03:04:58 +0200
parents ba7e24cd4786
children 79457e03ef68
line wrap: on
line diff
--- a/rhodecode/lib/auth.py	Mon Oct 18 01:14:40 2010 +0200
+++ b/rhodecode/lib/auth.py	Mon Oct 18 03:04:58 2010 +0200
@@ -66,7 +66,7 @@
     
 def get_crypt_password(password):
     """Cryptographic function used for password hashing based on sha1
-    @param password: password to hash
+    :param password: password to hash
     """    
     return bcrypt.hashpw(password, bcrypt.gensalt(10))
 
@@ -120,7 +120,7 @@
     permission given in db. We don't wannt to check each time from db for new 
     permissions since adding a new permission also requires application restart
     ie. to decorate new views with the newly created permission
-    @param config:
+    :param config:
     """
     log.info('getting information about all available permissions')
     try:
@@ -138,7 +138,7 @@
     """
     Fills user data with those from database and log out user if not present
     in database
-    @param user:
+    :param user:
     """
     sa = meta.Session
     dbuser = sa.query(User).get(user.user_id)
@@ -156,7 +156,7 @@
 def fill_perms(user):
     """
     Fills user permission attribute with permissions taken from database
-    @param user:
+    :param user:
     """
     
     sa = meta.Session
@@ -228,7 +228,7 @@
 def get_user(session):
     """
     Gets user from session, and wraps permissions into user
-    @param session:
+    :param session:
     """
     user = session.get('rhodecode_user', AuthUser())
     if user.is_authenticated: