Rushabh Mehta | 66ac2b0 | 2011-09-05 18:43:09 +0530 | [diff] [blame^] | 1 | #!/usr/bin/python |
2 | # main handler file | ||||
3 | |||||
4 | import cgi, cgitb, os, sys | ||||
5 | cgitb.enable() | ||||
6 | |||||
7 | # import libs | ||||
8 | sys.path.append('lib/py') | ||||
9 | sys.path.append('erpnext') | ||||
10 | |||||
11 | import webnotes | ||||
12 | import webnotes.defs | ||||
13 | |||||
14 | webnotes.form = cgi.FieldStorage() | ||||
15 | |||||
16 | # make the form_dict | ||||
17 | for key in webnotes.form.keys(): | ||||
18 | webnotes.form_dict[key] = webnotes.form.getvalue(key) | ||||
19 | |||||
20 | # pass on to legacy handler | ||||
21 | import webnotes.handler |