first cut for lazy loading framework

This commit is contained in:
Rushabh Mehta
2011-09-05 18:43:09 +05:30
parent 09938bda69
commit 66ac2b018a
1512 changed files with 832 additions and 0 deletions

21
handler.cgi Executable file
View 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