equal
deleted
inserted
replaced
30 from google.appengine.ext import db |
30 from google.appengine.ext import db |
31 |
31 |
32 from django import http |
32 from django import http |
33 |
33 |
34 from soc.logic.models.ranker_root import logic as ranker_root_logic |
34 from soc.logic.models.ranker_root import logic as ranker_root_logic |
|
35 from soc.logic import accounts |
35 from soc.models import student_proposal |
36 from soc.models import student_proposal |
36 from soc.models.document import Document |
37 from soc.models.document import Document |
37 from soc.models.host import Host |
38 from soc.models.host import Host |
38 from soc.models.mentor import Mentor |
39 from soc.models.mentor import Mentor |
39 from soc.models.notification import Notification |
40 from soc.models.notification import Notification |
77 |
78 |
78 site = Site(**site_properties) |
79 site = Site(**site_properties) |
79 site.put() |
80 site.put() |
80 |
81 |
81 |
82 |
82 account = users.get_current_user() |
83 account = accounts.getCurrentAccount() |
83 |
84 |
84 if not account: |
85 if not account: |
85 account = users.User(email='test@example.com') |
86 account = users.User(email='test@example.com') |
86 |
87 |
87 user_properties = { |
88 user_properties = { |