seitime-frappe/conf/index.cgi
Rushabh Mehta 0abfaf1180 version 2
2011-09-07 17:27:20 +05:30

21 lines
386 B
Python
Executable file

#!/usr/bin/python
# main handler file
import cgi, cgitb, os, sys
cgitb.enable()
# import libs
sys.path.append('lib/py')
sys.path.append('erpnext')
import webnotes
import webnotes.defs
webnotes.form = cgi.FieldStorage()
# make the form_dict
for key in webnotes.form.keys():
webnotes.form_dict[key] = webnotes.form.getvalue(key)
# pass on to legacy handler
import webnotes.handler