mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-03 21:48:27 +00:00
first cut for lazy loading framework
This commit is contained in:
21
handler.cgi
Executable file
21
handler.cgi
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user