Re: [Demexp-dev] Re: Add response: erreur pyhton

2008-03-14 Par sujet Lyu Abe
Hi David, Good evening Dave :-) Everything is going extremely well. Hehe ;) Here is a piece of code that produces the error. In fact, your code works perfectly if you make this little change: --- login.py.orig 2008-03-14 22:53:40.0 +0100 +++ login.py2008-03-14

Re: [Demexp-dev] Re: Add response: erreur pyhton

2008-03-12 Par sujet Lyu Abe
Hi again, I got this error: == File C:\Program Files\wamp\www\Demexp\python\login.py, line 335, in validate_new_response s.add_response(cookie,this_question[0]['q_id'],new_response.encode('utf8'),new_response_link.encode('utf8')) File C:\Program

Re: [Demexp-dev] Re: Add response: erreur pyhton

2008-03-12 Par sujet Lyu Abe
Hi David, Well, I don't really understand why you would need such marshal calls. Because at first I got an error message mentionning Cannot marshal %s objects (see my other mail in the comments) For the new_question and add_response, I will send you a test code by this evening.

Re: [Demexp-dev] Re: Add response: erreur pyhton

2008-03-12 Par sujet Lyu Abe
Good evening Dave Here is a piece of code that produces the error. If you have Mod Pyhton installed, you need to include the following to the httpd.conf file: LoadModule python_module modules/mod_python.so and Directory c:/Program Files/Wamp/www/demexp/python AddHandler mod_python .py

[Demexp-dev] Re: Add response: erreur pyhton

2008-03-11 Par sujet Lyu Abe
Hi there, I succeeded in using the marshal module so that I don't get the error below anymore. However, I get an Internal server error from the request. Can I add new answers and new questions with the demo account? Best Regards. Lyu Bonjour, j'essaye d'appeler la fonction

Re: [Demexp-dev] Re: Add response: erreur pyhton

2008-03-11 Par sujet David MENTRE
Hello Lyu, 2008/3/11, Lyu Abe [EMAIL PROTECTED]: I succeeded in using the marshal module so that I don't get the error below anymore. However, I get an Internal server error from the request. If you get an internal server error, then the fault is on the side of the demexp server. However I

Re: [Demexp-dev] Re: Add response: erreur pyhton

2008-03-11 Par sujet Lyu Abe
My code looks like that: def validate_new_response(req): global question_list global question_tags global tag_labels global cookie global s global login args = req.form index = int(args['qu_num'])

Re: [Demexp-dev] Re: Add response: erreur pyhton

2008-03-11 Par sujet David MENTRE
Hello Lyu, 2008/3/11, Lyu Abe [EMAIL PROTECTED]: this_question = s.question_info(cookie, index, 1) marshalled_qu = marshal.dumps(this_question[0]['q_id']) marshalled_resp = marshal.dumps(new_response) s.add_response(cookie, marshalled_qu,marshalled_resp,)