mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-16 11:39:18 +00:00
fixes to home (multiple loading)
This commit is contained in:
25
index.cgi
25
index.cgi
@@ -17,5 +17,26 @@ webnotes.form = cgi.FieldStorage()
|
||||
for key in webnotes.form.keys():
|
||||
webnotes.form_dict[key] = webnotes.form.getvalue(key)
|
||||
|
||||
# pass on to legacy handler
|
||||
import webnotes.handler
|
||||
# url comes with sid, redirect to html, sid set and all
|
||||
if 'sid' in webnotes.form_dict:
|
||||
import webnotes.auth
|
||||
import webnotes.widgets.page_body
|
||||
|
||||
webnotes.auth.HTTPRequest()
|
||||
|
||||
print "Content-Type: text/html"
|
||||
|
||||
# print cookies, if there ar additional cookies defined during the request, add them here
|
||||
if webnotes.cookies or webnotes.add_cookies:
|
||||
for c in webnotes.add_cookies.keys():
|
||||
webnotes.cookies[c] = webnotes.add_cookies[c]
|
||||
|
||||
print webnotes.cookies
|
||||
|
||||
print
|
||||
print webnotes.widgets.page_body.redirect_template % ('Redirecting...', 'index.html')
|
||||
|
||||
else:
|
||||
# pass on to legacy handler
|
||||
import webnotes.handler
|
||||
|
||||
|
||||
Reference in New Issue
Block a user