taskapp/utilities/user.py
branchbuildout
changeset 227 3c8f3b0e5b00
parent 214 679c7e237052
child 228 81994e525e69
--- a/taskapp/utilities/user.py	Tue Mar 09 11:39:34 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,17 +0,0 @@
-"""
-A collection of utility functions for user.
-"""
-
-def get_user(user):
-    """ get the no of unread requests and notifications and add them as properties for user.
-    """
-
-    unread_notifications = user.notification_sent_to.filter(is_read=False,is_deleted=False)
-    unread_requests = user.request_sent_to.filter(is_valid=True,is_replied=False,is_read=False)
-
-    user.unread_notifications = unread_notifications
-    user.unread_requests = unread_requests
-
-    return user
-
-