# HG changeset patch
# User nishanth
# Date 1267546491 -19800
# Node ID c088c79a225cfa835f57b2f7a27c62beed6fbca9
# Parent 1b4253350a3c9a1e04e2a8a218aea5cbe8f0ea2d
now there is also a notification sent to a new created user in seed_db.
diff -r 1b4253350a3c -r c088c79a225c taskapp/management/commands/seed_db.py
--- a/taskapp/management/commands/seed_db.py Tue Mar 02 17:12:47 2010 +0530
+++ b/taskapp/management/commands/seed_db.py Tue Mar 02 21:44:51 2010 +0530
@@ -8,6 +8,7 @@
from pytask.taskapp.events import user as userEvents
from pytask.taskapp.utilities.request import create_request
+from pytask.taskapp.utilities.notification import create_notification
def seed_db():
@@ -25,6 +26,7 @@
dob = datetime.now()
gender = "M"
user = userEvents.createUser(username,email,password,dob,gender)
+ create_notification("NU", user)
if i%4==0:
create_request(defaultMentor, "MG", user)
diff -r 1b4253350a3c -r c088c79a225c taskapp/utilities/notification.py
--- a/taskapp/utilities/notification.py Tue Mar 02 17:12:47 2010 +0530
+++ b/taskapp/utilities/notification.py Tue Mar 02 21:44:51 2010 +0530
@@ -118,10 +118,10 @@
elif role == "NU":
- start_here_url = 'start here'
+ start_here_url = 'click here'
notification.sub = "Welcome %s"%sent_to.username
notification.message = "Welcome to PyTasks %s.
"%sent_to.username
- notification.message += "If you are lost and have no clue, %s"%start_here_url
+ notification.message += "%s to know more."%start_here_url
elif role in ["ND", "NG", "NA"]: