[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

[Demexp-dev] Timestamps (de)compression?

2008-03-11 Par sujet Lyu Abe
Hi, I try to decode compressed timestamps. I tried to use the decompress function from the zlib module in mod python, but it does not seem to give satifactory results (undecipherable strings). Any hint? Regards, Lyu ___ Demexp-dev mailing

Re: [Demexp-dev] Timestamps (de)compression?

2008-03-11 Par sujet David MENTRE
Hello Lyu, 2008/3/11, Lyu Abe [EMAIL PROTECTED]: I try to decode compressed timestamps. I tried to use the decompress function from the zlib module in mod python, but it does not seem to give satifactory results (undecipherable strings). Any hint? Yes. Look at get_timestamps_decoded() in

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,)