[COREblog-en] Comment reply handling

Yusuke NAKAI nyusuke at nagosui.org
Fri Dec 22 18:11:34 CET 2006


Hi,

> I only have one small problem left, with this aproach the commentator 
> gets a notification mail even when he makes the comment himself

Email address being posted is got by 'REQUEST.form[email]' (if entered). 
So you can check if it's included in 'addr_list' before sending 
notification email.

For example:
--------------------------------------------------
for addr in addr_list:
     if addr == REQUEST.form[email]:
         continue
     else:
         to_addr = addr
         from_addr = context.getNotify_from()
         ...
--------------------------------------------------

Regards,

-- 
Yusuke NAKAI

mail: nyusuke at nagosui.org
web : http://nagosui.org



More information about the COREblog-en mailing list