I have installed WSGI setup on local machine. I have to implement a WSGI, which will perform following operations,
1. It will accept posted parameters to it and pass to one function in doctype.
2. The function will take parameter values and process it and create/update records (transaction doctype).
I have done same thing in CGI setup writing .cgi for it but in WSGI it don't work.
Please guide me or provide reference to implement this.
Thanks and Regards,
Gangadhar kadam
–
Note:
If you are posting an issue,
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
Write a whitelisted method and call it via ?cmd=[module.method]
On Friday, February 21, 2014 10:26:42 AM UTC+5:30, gangadhar kadam wrote:
Hello All,
I have installed WSGI setup on local machine. I have to implement a WSGI, which will perform following operations,
1. It will accept posted parameters to it and pass to one function in doctype.
2. The function will take parameter values and process it and create/update records (transaction doctype).
I have done same thing in CGI setup writing .cgi for it but in WSGI it don't work.
Please guide me or provide reference to implement this.
Thanks and Regards,
Gangadhar kadam
–
Note:
If you are posting an issue,
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
{"exc":"[\"Traceback (innermost last):\\n File \\\"lib/webnotes/handler.py\\\", line 78, in handle\\n execute_cmd(cmd)\\n File \\\"lib/webnotes/handler.py\\\", line 105, in execute_cmd\\n method = get_method(cmd)\\n File \\\"lib/webnotes/handler.py\\\", line 145, in get_method\\n method = webnotes.get_method(cmd)\\n File \\\"lib/webnotes/__init__.py\\\", line 470, in get_method\\n return getattr(get_module(modulename), methodname)\\n AttributeError: 'module' object has no attribute 'get_info'\\n\"]"}
Please suggest.
Thank you.
Gangadhar Kadam
On Friday, 21 February 2014 10:26:42 UTC+5:30, gangadhar kadam wrote:
Hello All,
I have installed WSGI setup on local machine. I have to implement a WSGI, which will perform following operations,
1. It will accept posted parameters to it and pass to one function in doctype.
2. The function will take parameter values and process it and create/update records (transaction doctype).
I have done same thing in CGI setup writing .cgi for it but in WSGI it don't work.
Please guide me or provide reference to implement this.
Thanks and Regards,
Gangadhar kadam
–
Note:
If you are posting an issue,
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
{"exc":"[\"Traceback (innermost last):\\n File \\\"lib/webnotes/handler.py\\\", line 78, in handle\\n execute_cmd(cmd)\\n File \\\"lib/webnotes/handler.py\\\", line 105, in execute_cmd\\n method = get_method(cmd)\\n File \\\"lib/webnotes/handler.py\\\", line 145, in get_method\\n method = webnotes.get_method(cmd)\\n File \\\"lib/webnotes/__init__.py\\\", line 470, in get_method\\n return getattr(get_module(modulename), methodname)\\n AttributeError: 'module' object has no attribute 'get_info'\\n\"]"}
Please suggest.
Thank you.
Gangadhar Kadam
On Friday, 21 February 2014 10:26:42 UTC+5:30, gangadhar kadam wrote:
Hello All,
I have installed WSGI setup on local machine. I have to implement a WSGI, which will perform following operations,
1. It will accept posted parameters to it and pass to one function in doctype.
2. The function will take parameter values and process it and create/update records (transaction doctype).
I have done same thing in CGI setup writing .cgi for it but in WSGI it don't work.
Please guide me or provide reference to implement this.
Thanks and Regards,
Gangadhar kadam
–
Note:
If you are posting an issue,
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
res=webnotes.conn.sql("select count(name) from tabAccount")
return cstr(res)+"--"+username+"--"+password
I get response if this url called from browser.
I have following queries,
1. These methods need authentication or session. (if i removed webbrowser.open line. it does not work.) . can I use these methods without authentication?
2. I have used this as get (calling from webborwer.) .How can i implement this to post json as request.
Thanks and regards,
Gangadhar kadam
On Friday, 21 February 2014 10:26:42 UTC+5:30, gangadhar kadam wrote:
Hello All,
I have installed WSGI setup on local machine. I have to implement a WSGI, which will perform following operations,
1. It will accept posted parameters to it and pass to one function in doctype.
2. The function will take parameter values and process it and create/update records (transaction doctype).
I have done same thing in CGI setup writing .cgi for it but in WSGI it don't work.
Please guide me or provide reference to implement this.
Thanks and Regards,
Gangadhar kadam
–
Note:
If you are posting an issue,
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.