Hello All, I have created a cgi fun doctype ( is Single) in selling module and wrote some code . I have create one cgi. from that cgi i call method in cgi fun doctype. when i call cgi with mozila firefox poster receives following error
Traceback (most recent call last): File “/var/www/sites/mtnadvantage.xbs360.com/public/status.cgi”, line 26, in <module> m=get_obj(‘cgi fun’).cstatus(argjson[‘ponumber’],argjson[‘status’]) File “…/lib/webnotes/model/code.py”, line 161, in get_obj return get_server_obj(doclist[0], doclist) File “…/lib/webnotes/model/code.py”, line 107, in get_server_obj DocType = get_doctype_class(doc.doctype, module) File “…/lib/webnotes/model/code.py”, line 129, in get_doctype_class raise Exception, “Unable to load module for :” + doctype Exception: Unable to load module for :cgi fun
what should i do?
Thank you
–
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
On 23-Apr-2013, at 10:14 AM, gangadhar kadam <em...@gmail.com> wrote:
Hello All, I have created a cgi fun doctype ( is Single) in selling module and wrote some code . I have create one cgi. from that cgi i call method in cgi fun doctype. when i call cgi with mozila firefox poster receives following error
Traceback (most recent call last): File "/var/www/sites/mtnadvantage.xbs360.com/public/status.cgi", line 26, in <module> m=get_obj('cgi fun').cstatus(argjson['ponumber'],argjson['status']) File "../lib/webnotes/model/code.py", line 161, in get_obj return get_server_obj(doclist[0], doclist) File "../lib/webnotes/model/code.py", line 107, in get_server_obj DocType = get_doctype_class(doc.doctype, module) File "../lib/webnotes/model/code.py", line 129, in get_doctype_class raise Exception, "Unable to load module for :" + doctype Exception: Unable to load module for :cgi fun
what should i do?
Thank you
–
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.
On 23-Apr-2013, at 10:14 AM, gangadhar kadam <em...@gmail.com> wrote:
Hello All, I have created a cgi fun doctype ( is Single) in selling module and wrote some code . I have create one cgi. from that cgi i call method in cgi fun doctype. when i call cgi with mozila firefox poster receives following error
Traceback (most recent call last): File "/var/www/sites/mtnadvantage.xbs360.com/public/status.cgi", line 26, in <module>
m=get_obj('cgi fun').cstatus(argjson['ponumber'],argjson['status']) File "../lib/webnotes/model/code.py", line 161, in get_obj return get_server_obj(doclist[0], doclist)
File "../lib/webnotes/model/code.py", line 107, in get_server_obj DocType = get_doctype_class(doc.doctype, module) File "../lib/webnotes/model/code.py", line 129, in get_doctype_class
raise Exception, "Unable to load module for :" + doctype Exception: Unable to load module for :cgi fun
what should i do?
Thank you
–
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
On 23-Apr-2013, at 10:14 AM, gangadhar kadam <em...@gmail.com> wrote:
Hello All, I have created a cgi fun doctype ( is Single) in selling module and wrote some code . I have create one cgi. from that cgi i call method in cgi fun doctype. when i call cgi with mozila firefox poster receives following error
Traceback (most recent call last): File "/var/www/sites/mtnadvantage.xbs360.com/public/status.cgi", line 26, in <module>
m=get_obj('cgi fun').cstatus(argjson['ponumber'],argjson['status']) File "../lib/webnotes/model/code.py", line 161, in get_obj return get_server_obj(doclist[0], doclist)
File "../lib/webnotes/model/code.py", line 107, in get_server_obj DocType = get_doctype_class(doc.doctype, module) File "../lib/webnotes/model/code.py", line 129, in get_doctype_class
raise Exception, "Unable to load module for :" + doctype Exception: Unable to load module for :cgi fun
what should i do?
Thank you
–
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.
I have to synchronize two databases. in one database i call cgi with post parameters in other database, the cgi call the method of same database having code to synchronize status of sales order.
can i create an instance of doctype in cgi like
s=Document('Sales Order',SO00001)
s.status='test'
s.save()
Thank you
On 23 April 2013 11:27, Rushabh Mehta <rm...@gmail.com> wrote:
Why do you need the DocType "cgi fun"? You can add the function in your file itself.
On 23-Apr-2013, at 10:14 AM, gangadhar kadam <em...@gmail.com> wrote:
Hello All, I have created a cgi fun doctype ( is Single) in selling module and wrote some code . I have create one cgi. from that cgi i call method in cgi fun doctype. when i call cgi with mozila firefox poster receives following error
m=get_obj('cgi fun').cstatus(argjson['ponumber'],argjson['status'])<br> File "../lib/webnotes/model/code.py", line 161, in get_obj<br> return get_server_obj(doclist[0], doclist)<br>
File "…/lib/webnotes/model/code.py", line 107, in get_server_obj DocType = get_doctype_class(doc.doctype, module) File "…/lib/webnotes/model/code.py", line 129, in get_doctype_class
raise Exception, "Unable to load module for :" + doctype<br>Exception: Unable to load module for :cgi fun<br><br>what should i do?<br><br>Thank you<br><div><br></div>
–
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
I have to synchronize two databases. in one database i call cgi with post parameters in other database, the cgi call the method of same database having code to synchronize status of sales order.
can i create an instance of doctype in cgi like
Please feel free to try :)
s=Document('Sales Order',SO00001)
s.status='test'
s.save()
better to use the "bean" function
s = webnotes.bean("Sales Order", "SO00001")
s.doc.status = "test"
s.save()
(this will call validate, on_update etc)
Thank you
On 23 April 2013 11:27, Rushabh Mehta <rm...@gmail.com> wrote:
Why do you need the DocType "cgi fun"? You can add the function in your file itself.
On 23-Apr-2013, at 10:14 AM, gangadhar kadam <em...@gmail.com> wrote:
Hello All, I have created a cgi fun doctype ( is Single) in selling module and wrote some code . I have create one cgi. from that cgi i call method in cgi fun doctype. when i call cgi with mozila firefox poster receives following error
m=get_obj(‘cgi fun’).cstatus(argjson[‘ponumber’],argjson[‘status’]) File “…/lib/webnotes/model/code.py”, line 161, in get_obj return get_server_obj(doclist[0], doclist)
File “…/lib/webnotes/model/code.py”, line 107, in get_server_obj DocType = get_doctype_class(doc.doctype, module) File “…/lib/webnotes/model/code.py”, line 129, in get_doctype_class
raise Exception, “Unable to load module for :” + doctype Exception: Unable to load module for :cgi fun
what should i do?
Thank you
–
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.