[Demexp-dev] Client Web

2007-10-12 Par sujet Lyu ABE
/ qui possede un module javascript xmlrpc (dont je n'ai pas reussi a comprendre comment l'utiliser precisement). Si quelqu'un a d'autres commentaires (utiliser ou pas javascript pour le client, etc)... Voila. Lyu ABE ___ Demexp-dev mailing list

[Demexp-dev] Questions

2007-10-13 Par sujet Lyu ABE
Hello, I'd like to know how I can retrieve questions, answers, votes, etc. I tried to use the question_info method, but I do not understand the server's reply because I only got a int value. My question is not What am I doing wrong?, but rather How to properly do that?. Thanks.

Re: [Demexp-dev] Questions

2007-10-15 Par sujet Lyu Abe
. Should I declare it as an array on the base of the max_question_id_return_t structure? Diogene suggested to me to take a look at Augustin's code under Dupral (link or location?). Lyu ABE struct response_t { response_desc_t r_info_desc; external_link_t r_info_link

Re: [Demexp-dev] Questions

2007-10-16 Par sujet Lyu Abe
Hi David, You can look at function _contact_demexp_server() and other functions that call it. However, from what I've read Augustin is using the xmlrpc() standard call from PHP and not the xmlrpc external module, so the API is probably quite different. I did look at the

Re: [Demexp-dev] Questions

2007-10-17 Par sujet Lyu Abe
Hi David, Thanks for your helpful message! In such a case, please provide the *exact* and *complete* code you are using (like my example above). Otherwise it is quite complicated for me to understand what is the issue. Okay. Do you really want to use PHP? :-) Not necessarily. That's

[Demexp-dev] Web Client Interface [status]

2007-10-18 Par sujet Lyu Abe
Hi, Here's a small report of what I've obtained so far: http://img138.imageshack.us/img138/3824/demexpinterfacev001lj2.png It's just tests, so probably we should not care about small details right now. (maybe you can tell if this presentation is roughly okay to you) I also need to figure out

Re: [Demexp-dev] Questions

2007-10-18 Par sujet Lyu Abe
David, Yep, use [::-1] operator ([:] operator with a negative step): l=[1,2,3,4] for i in l[::-1]: print i 4 3 2 1 Explanation in the Python library doc: http://docs.python.org/lib/typesseq.html The Python doc (http://docs.python.org/) is very useful. Most of the time, the thing you

Re: [Demexp-dev] Web Client Interface [status]

2007-10-18 Par sujet Lyu Abe
I also need to figure out how to retrieve and display correct question tags (Categorie). See chapters 3.3.5 and 3.3.6 starting at page 21 of demexp book. To get tags and their label, use RPC: * max_tag_id() * tag_info() To get the set of tags assigned to a set of questions, use RPC: *

Re: [Demexp-dev] Web Client Interface [status]

2007-10-19 Par sujet Lyu Abe
Hi David, No, you should not do that. Because this approach is aimed to failure: you can't know all the variations of web browsers and how they'll handle your page. You should stick to standard HTML and CSS and then use the known tricks to make it work in IE6. (for example for blind people,

[Demexp-dev] Retrieving Tag List

2007-10-19 Par sujet Lyu Abe
By the way David, I'm not sure I understood what the method max_tag_id(cookie) was for: in the demexp book, it is described as Method max_tag_id returns a structure containing the biggest tag identifier on the server. But I found weird that the function returned exactly the number of

Re: [Demexp-dev] Re: Demexp-dev Digest, Vol 48, Issue 6 : Python or php ?

2007-10-18 Par sujet Lyu Abe
Hi Diogene, First Id like to say that I dont receive the mails of the discussion ?? Just receive the summary at the end, is this normal ? Errr I don't think so. I'll forward copies of the discussion later today (I also guess the mails of this list are archived somewhere, but I don't

[Demexp-dev] [SOLVED] IE6 compatibility problems

2007-10-18 Par sujet Lyu Abe
Hi again, Ok, I solved the problem. FF recognizes custom styles (other than h1, h2, p, etc.) while IE6 does not. The solution is to declare styles as: .mystyle { ... } and to use span class=mystyle.../span It works fine now... Thanks. ABE Lyu

Re: [Demexp-dev] Questions

2007-10-19 Par sujet Lyu Abe
Hi, import cgi form = cgi.FieldStorage() if form.has_key[login] ... But it didn't seem to work. Any suggestions? It can't work because those two mode are incompatible. Either you are running a CGI script (i.e. a Python script that is launch each time Apache handles an URL pointing to this

[Demexp-dev] IE6 compatibility problems

2007-10-20 Par sujet Lyu Abe
Hi, The HTML code I am generating using CSS does not seem to be fully recognized by IE6 (while it is in Firefox). I don't think it's because I'm using unsupported CSS declarations. All my CSS formatting styles are not taken into account, even in the starting index.html page which is VERY

[Demexp-dev] Re: Seperate Python scripts or web framework?

2007-10-20 Par sujet Lyu Abe
Hello, Well, you are reaching the question: should you use a web framework (e.g. Django or TurboGears in Python) or should you write your own Python code to handle the different pages and links between them? [...] Thomas who is on this list has recently used Django to make a web site

Re: [Demexp-dev] Retrieving Tag List

2007-10-20 Par sujet Lyu Abe
David, So, if we consider we have 273 questions on the server, you should do: set1 = tag_set_of_question_group(cookie, 0, 100) set2 = tag_set_of_question_group(cookie, 100, 100) set3 = tag_set_of_question_group(cookie, 200, 73) unpack set1, set2 and set3 to get the

[Demexp-dev] Web Client Draft [status]

2007-10-21 Par sujet Lyu Abe
Hello, I made further advances for the layout and organization of the web client (my version). In order to pass arguments from one page to another (i.e. when you click on a question, it redirects you to a Consulting Question Details and Answers page), I made a very bad thing: I used global

[Demexp-dev] Character encoding

2007-10-21 Par sujet Lyu Abe
David, There's one thing I do not understand in character coding of the server's reply. When I display, for example, tag sets, I can read this: 'a_tag_label': u'citoyennet\xe9' in which u'citoyennet\xe9' corresponds to an unicode encoded text, right? Then I do not understand why we get

Re: [Demexp-dev] Character encoding

2007-10-22 Par sujet Lyu Abe
Hi Thomas and David, Thanks for the clarification! Lyu. Thomas Petazzoni a écrit : Hi, Le Mon, 22 Oct 2007 14:40:46 +0900, Lyu Abe [EMAIL PROTECTED] a écrit : There's one thing I do not understand in character coding of the server's reply. When I display, for example, tag sets, I

[Demexp-dev] Web Client: voting

2007-10-23 Par sujet Lyu Abe
Hi, I've achieved almost all what I wanted to up to now (more or less, but there are details to fix, add, etc). But now I'm wondering how to implement an easy-to-use voting interface (and above all easy-to-understand!). One possibility, of course, is to use the current Demexp method (a

[Demexp-dev] Update of Web Client Screenshots

2007-10-23 Par sujet Lyu Abe
Hi, I put some updates of the web client screenshots with several comments. These are located on the Demexp forum: https://demexp.org/phpbb/viewtopic.php?p=110#110 As I said in my comments, all is not fully functionnal, but this is only a matter of coding. If possible, I'd like to have some

[Demexp-dev] Sorting tag/question lists

2007-10-28 Par sujet Lyu Abe
Hi, I'm currently using this code to sort the question or tags lists... tag_labels = [] for k in range(n_maxtags): tag_labels += s.tag_info(cookie,k*100,100) tag_labels += s.tag_info(cookie,n_maxtags*100,n_maxtags_rem) z = []

Re: [Demexp-dev] Sorting tag/question lists

2007-10-29 Par sujet Lyu Abe
Hi David, thanks for your reply. 2007/10/29, Lyu Abe [EMAIL PROTECTED]: I'm currently using this code to sort the question or tags lists... You want to sort tag list by label name, right? No, I just want to order the questions tags by their 'q_id' (to match the question list sorting

Re: [Demexp-dev] Web Client Source Available

2007-10-31 Par sujet Lyu Abe
Hi David! I have managed to make your code work on my Ubuntu Feisty 7.04 system. Here is the steps I followed: Oh nice! :P (by the way, I have an issue under Ubuntu 7.10 with deadkeys on french keyboard... maybe you can help me) For the lazy ones, :-) Lyu's code can be tested here

[Demexp-dev] Question list by Category

2007-11-01 Par sujet Lyu Abe
Hi, What would be your suggestion concerning the retrieval of questions according to a given tag or set of tags? Thanks. Lyu ___ Demexp-dev mailing list Demexp-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/demexp-dev

Re: [Demexp-dev] Question list by Category

2007-11-01 Par sujet Lyu Abe
Hi David, What would be your suggestion concerning the retrieval of questions according to a given tag or set of tags? Sorry, I don't understand your question. Could you be a bit more explicit? Is your question related to the GUI? No, I am speaking about the way to retrieve the information

[Demexp-dev] Access speed

2007-11-01 Par sujet Lyu Abe
David, can you tell me how fast is the code running, for example when displaying the question list? (because here in japan, the connection is very slow to access the Demexp server) Regards, Lyu ___ Demexp-dev mailing list

Re: [Demexp-dev] Question list by Category

2007-11-01 Par sujet Lyu Abe
Hi David, But I have a question: the question tags are separated from the question structure... is that to avoid to have to retrieve all the questions? (maybe I'm not so clear) You mean: the tag labels are separated from the question structure? Well, the main idea is to reduce the amount of

Re: [Demexp-dev] mod_python and web framework

2007-11-02 Par sujet Lyu Abe
Hello David, But before investing too much time in it, we really must ask ourselves if this is the right path to follow. Shouldn't we reuse an existing framework? Hehe... what do you mean? :D (framework is a word I bearly understand in this context...) Thanks. Lyu

Re: [Demexp-dev] mod_python and web framework

2007-11-06 Par sujet Lyu Abe
Hi David, * Django: http://www.djangoproject.com/ * TurboGears: http://turbogears.org/ After much thought, I don't think that it is that much mandatory. Use the tools that suite you, Lyu. Having a working web interface prototype is more important than the language or tools used. Lately,

Re: [Demexp-dev] Retrieving questions

2007-11-06 Par sujet Lyu Abe
Hi Diogene! Until now I just worked on the 100 first questions so : no problem.. Or near to.. :) Great! I tried even a [100, 101] intervalle but I get the same answer ?? @@@ Im not sure but Lyu, didnt you have the same issue, no ? David just replied, but question_info is:

[Demexp-dev] About timestamps

2007-11-11 Par sujet Lyu Abe
Hello David, I understand the mechanism of timestamps, but I'm not sure I understand how they work in detail. Tell me if this is correct: are timestamps saved independently for each users on the server? Then no problem. * Issue get_timestamp() (or get_timestamp_decoded()) to get all the

[Demexp-dev] Voting

2007-11-16 Par sujet Lyu Abe
Hello, Does the server allow responses to be ordered at the same level? (from the vote method, it doesn't seem so) The response IDs are simply ordered according to the preferred choices and sent to the server... is that correct? Thanks. Lyu

[Demexp-dev] Web Client development status: temporarily suspended

2007-11-27 Par sujet Lyu Abe
Hello all, Just a note to mention that I'm quite busy these days, and I will be absent in the next week (flying abroad). After that, I'll have 10 days left in Japan, so I guess I'll become even more busy! So the web client development is postponed until, probably second half of december or

[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] Re: Add response: erreur pyhton

2008-03-11 Par sujet Lyu Abe
error. I think the dumps function I use is not appropriate. Lyu David MENTRE a écrit : 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

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

2008-03-12 Par sujet Lyu Abe
is not supported' and the same error for new_question: Fault: Fault 1: 'exceptions.Exception:method new_question is not supported' I am using the demo/demo account. Lyu David MENTRE a écrit : Hello Lyu, 2008/3/11, Lyu Abe [EMAIL PROTECTED

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

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

[Demexp-dev] About tags...

2008-03-14 Par sujet Lyu Abe
Hi again, How are tags for new questions managed? Each time a new question is added, should the web client care about creating a corresponding tag set?... or is that a task for question moderators? Thanks. Lyu ___ Demexp-dev mailing list

[Demexp-dev] [Web Client] Tag Creation Error

2008-03-22 Par sujet Lyu Abe
Hi! I cannot create or add tags with the demo/demo test server (http://www.linux-france.org/cgi-bin/demexp-xmlrpc-test) Therefore I cannot test it for ne added questions. By the way, according to my code, there seems to have a problem if a question does not have a tag... could you confirm?

Re: [Demexp-dev] [Web Client] Tag Creation Error

2008-03-23 Par sujet Lyu Abe
Hi David, thanks for the reply, I found the bug in my code (I wasn't reading all the tags properly). Now it's working... Regards, Lyu David MENTRE a écrit : Lyu Abe [EMAIL PROTECTED] writes: Err, nope, I mean, I do not use the GTK client right now. I was talking about the Web

Re: [Demexp-dev] Re: Bugs in web client

2008-03-29 Par sujet Lyu Abe
It works when you put no date, but now it seemes to crash when one does put a limit date! Fixed :D Lyu ___ Demexp-dev mailing list Demexp-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/demexp-dev

[Demexp-dev] List by category

2008-03-29 Par sujet Lyu Abe
Hi again, actually retrieving question by category (when you click on one of the question category) is working, but only works with the current list of questions that are loaded on the question list page. In other words, you have 312 questions, only 100 are displayed at a time, so the

[Demexp-dev] Several fixes done

2008-03-29 Par sujet Lyu Abe
Lyu ___ Demexp-dev mailing list Demexp-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/demexp-dev

[Demexp-dev] Data mining

2008-03-29 Par sujet Lyu Abe
Hallo, I think there are no data mining functions implemented on the Demexp server right now, correct? (like retrieving questions according by tag sets, by date, etc.) Lyu ___ Demexp-dev mailing list Demexp-dev@nongnu.org

[Demexp-dev] goodbye method

2008-03-29 Par sujet Lyu Abe
Hello, There's something I don't understand about the 'goodbye' method. Why is the following code still working after the goodbye method has been invoked? s = ServerProxy(url) cookie = s.login(ch_login, password) s.goodbye(cookie) # why is that still working? timestamps =

[Demexp-dev] Serveur plante?...

2008-07-07 Par sujet Lyu Abe
Salut, Tout est dans le titre :) Lyu ABE ___ Demexp-dev mailing list Demexp-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/demexp-dev

Re: [Demexp-dev] Serveur plante?...

2008-07-08 Par sujet Lyu Abe
: ProtocolError for www.linux-france.org/cgi-bin/demexp-xmlrpc-test: 500 Internal Server Error Cordialement, Lyu David MENTRE a écrit : Salut Lyu, / Hello Lyu, On Mon, Jul 7, 2008 at 08:39, Lyu Abe [EMAIL PROTECTED] wrote: Tout est dans le titre :) Non, le serveur demexp marche

[Demexp-dev] login method and cookie

2008-10-11 Par sujet Lyu Abe
Hello, Is it normal that when using these servers: http://www.linux-france.org/cgi-bin/demexp-xmlrpc-test or http://www.linux-france.org/cgi-bin/demexp-xmlrpc-demo do not need to 'login' to be able to access to all methods on the server? (and the 'goodbye' method doesn't seem to do anything

Re: [Demexp-dev] login method and cookie

2008-10-12 Par sujet Lyu Abe
Hi David, Is it normal that when using these servers: http://www.linux-france.org/cgi-bin/demexp-xmlrpc-test or http://www.linux-france.org/cgi-bin/demexp-xmlrpc-demo do not need to 'login' to be able to access to all methods on the server? (and the 'goodbye' method doesn't seem to do anything

[Demexp-dev] Serveur actif?

2009-03-05 Par sujet Lyu Abe
Salut, est-ce que les serveurs http://www.linux-france.org/cgi-bin/demexp-xmlrpc-demo http://www.linux-france.org/cgi-bin/demexp-xmlrpc-test sont actifs? Merci. Lyu ___ Demexp-dev mailing list Demexp-dev@nongnu.org

Re: [Demexp-dev] Serveur actif?

2009-03-06 Par sujet Lyu Abe
Merci David! Jean-Marc FAUCHE m'a contacte et est en train de se pencher sur le client Web (lui, il connait Python!!) A+. Lyu David MENTRE a écrit : Bonjour Lyu, 2009/3/6 Lyu Abe lyu...@free.fr: est-ce que les serveurs http://www.linux-france.org/cgi-bin/demexp-xmlrpc-demo http

Re: [Demexp-dev] Serveur actif?

2009-03-06 Par sujet Lyu Abe
Oui, il s'en inscrit sur le forum. A+. Lyu David MENTRE a écrit : Lyu, On Fri, Mar 6, 2009 at 10:00, Lyu Abe lyu...@free.fr wrote: Jean-Marc FAUCHE m'a contacte et est en train de se pencher sur le client Web (lui, il connait Python!!) Je ne connais pas Jean-Marc FAUCHE mais c'est une très

Re: [Demexp-dev] Demexp et groupes

2009-10-25 Par sujet Lyu Abe
Salut Jean-Marc, Merci pour cette mise a jour. Par contre, il semble y avoir une erreur: Ticket issued: Demexp/127.0.0.1.2009-10-25.13-09-58.64e43d23-c646-40fa-9f15-4d1faa6ca29b Y aurait-il quelque chose de special a configurer? A+. Lyu Fauché Jean-Marc a écrit : Bonsoir à tous!