[demo] New ERPNext Demo

This commit is contained in:
Rushabh Mehta
2013-08-26 16:17:50 +05:30
parent cf343174a4
commit acd3367e33
25 changed files with 203 additions and 22 deletions

View File

@@ -0,0 +1,13 @@
def on_login(self):
from webnotes.utils import validate_email_add
import conf
if hasattr(conf, "demo_notify_url"):
if webnotes.form_dict.lead_email and validate_email_add(webnotes.form_dict.lead_email):
import requests
response = requests.post(conf.demo_notify_url, data={
"cmd":"website.helpers.contact.send_message",
"subject":"Logged into Demo",
"sender": webnotes.form_dict.lead_email,
"message": "via demo.erpnext.com"
})