moved directory structure

This commit is contained in:
Rushabh Mehta
2012-09-24 19:13:42 +05:30
parent e47a6779e9
commit 2fa2f7178d
1637 changed files with 47 additions and 11450 deletions

26
website/__init__.py Normal file
View File

@@ -0,0 +1,26 @@
from __future__ import unicode_literals
install_docs = [
{"doctype":"Role", "role_name":"Blogger", "name":"Blogger"},
{"doctype":"Role", "role_name":"Website Manager", "name":"Website Manager"},
]
import webnotes
@webnotes.whitelist(allow_guest=True)
def send_message():
from webnotes.model.doc import Document
args = webnotes.form_dict
d = Document('Support Ticket')
d.subject = webnotes.form_dict.get('subject', 'Website Query')
d.description = webnotes.form_dict.get('message')
d.raised_by = webnotes.form_dict.get('sender')
if not d.description:
webnotes.msgprint('Please write something', raise_exception=True)
if not d.raised_by:
webnotes.msgprint('Please give us your email id so that we can write back to you', raise_exception=True)
d.save()
webnotes.msgprint('Thank you!')