equal
deleted
inserted
replaced
95 |
95 |
96 # get the current user |
96 # get the current user |
97 properties = {'account': users.get_current_user()} |
97 properties = {'account': users.get_current_user()} |
98 current_user_entity = user_logic.logic.getForFields(properties, unique=True) |
98 current_user_entity = user_logic.logic.getForFields(properties, unique=True) |
99 |
99 |
100 # TODO(Lennard): change the message sender to some sort of no-reply adress that is |
100 # TODO(Lennard): change the message sender to some sort of no-reply adress |
101 # probably a setting in sitesettings. (adress must be a developer). This is due |
101 # that is probably a setting in sitesettings. (adress must be a developer). |
102 # to a GAE limitation that allows only devs or the current user to send an email. |
102 # This is due to a GAE limitation that allows only devs or the current user |
103 # Currently this results in a user receiving the same email twice. |
103 # to send an email. Currently this results in a user receiving the same |
|
104 # email twice. |
104 |
105 |
105 # create the message contents |
106 # create the message contents |
106 messageProperties = { |
107 messageProperties = { |
107 'to_name': user_entity.name, |
108 'to_name': user_entity.name, |
108 'sender_name': current_user_entity.name, |
109 'sender_name': current_user_entity.name, |