diff rhodecode/lib/helpers.py @ 999:1951c35483ab beta

fixed following js snipet. It' can be called multiple times now next to each repository added helper method for checking if user is following repository
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 05 Feb 2011 23:58:37 +0100
parents d14723711d17
children eafe5ae429ea
line wrap: on
line diff
--- a/rhodecode/lib/helpers.py	Fri Feb 04 17:47:02 2011 +0100
+++ b/rhodecode/lib/helpers.py	Sat Feb 05 23:58:37 2011 +0100
@@ -387,6 +387,10 @@
     return cs
 
 
+def is_following_repo(repo_name, user_id):
+    from rhodecode.model.scm import ScmModel
+    return ScmModel().is_following_repo(repo_name, user_id)
+
 flash = _Flash()