demexp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Lyu Abe
Subject: Re: [Demexp-dev] Re: Add response: erreur pyhton
Date: Tue, 11 Mar 2008 20:51:10 +0100
User-agent: Thunderbird 2.0.0.12 (Windows/20080213)

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'])
        
        new_response = args['new_response']

...

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


then I get the server error. I think the "dumps" function I use is not
appropriate.

        Lyu


David MENTRE a écrit :
Hello Lyu,

2008/3/11, Lyu Abe <address@hidden>:
 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 need more details to find what is
happening. Can you provide a self-contained Python code that exhibits
the issue?

Can I add new answers and new questions with the "demo" account?

I think so. But you should use the "test" server
(tuxinette.linux-france.org:50065). I've just checked: you can add new
questions with the account "demo", password "demo".

Yours,
d.







reply via email to

[Prev in Thread] Current Thread [Next in Thread]