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