Merge branch 'master' of github.com:webnotes/erpnext

This commit is contained in:
Rushabh Mehta 2012-12-07 15:23:41 +01:00
commit 880e26d9c2
2 changed files with 3 additions and 2 deletions

View File

@ -95,7 +95,7 @@ def notify(arg=None):
fn = webnotes.user.name
url = get_url()
message = '''You have a message by <b>%s</b>:
message = '''You have a message from <b>%s</b>:
%s
@ -106,7 +106,7 @@ def notify(arg=None):
sender = webnotes.user.name!='Administrator' and webnotes.user.name or 'support+admin_post@erpnext.com'
from webnotes.utils.email_lib import sendmail
sendmail([arg['contact']], sender, message, fn + ' has posted a new comment')
sendmail([arg['contact']], sender, message, "You have a message from %s" % (fn,))
def get_url():
from webnotes.utils import get_request_site_address

View File

@ -3,6 +3,7 @@
from __future__ import unicode_literals
import webnotes
import website.utils
@webnotes.whitelist(allow_guest=True)
def get_blog_list(args=None):