app/soc/logic/helper/notifications.py
changeset 1508 fd77fd8fab13
parent 1450 688648dfe42c
child 1511 3342ce7a495c
equal deleted inserted replaced
1507:2de05960936b 1508:fd77fd8fab13
   209   site_entity = site_logic.logic.getSingleton()
   209   site_entity = site_logic.logic.getSingleton()
   210   site_name = site_entity.site_name
   210   site_name = site_entity.site_name
   211 
   211 
   212   email = site_entity.noreply_email
   212   email = site_entity.noreply_email
   213   if not email:
   213   if not email:
       
   214     # TODO(Lennard): What if current_user_entity is None?
   214     email = current_user_entity.account.email()
   215     email = current_user_entity.account.email()
   215 
   216 
   216   # TODO(Lennard): change the message sender to some sort of no-reply adress
   217   # TODO(Lennard): change the message sender to some sort of no-reply adress
   217   # that is probably a setting in sitesettings. (adress must be a developer).
   218   # that is probably a setting in sitesettings. (adress must be a developer).
   218   # This is due to a GAE limitation that allows only devs or the current user
   219   # This is due to a GAE limitation that allows only devs or the current user