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!
V
--- Begin Message ---
Salut Lyu!
C'est vrai que l'ergonomie sera à revoir , pour le moment pour annuler
son vote (et donc recommencer) il faut recliquer sur la question (ce qui
fait disparaitre la sélection en cours) et recommencer ...je vais
étudier ta proposition qui semble en effet plus s
Un dernier point: comment ca se passe le Login/Pwd?? (je n'ai pas
compris quel login/pwd entrer)
A+. Lyu
Fauché Jean-Marc a écrit :
Bonsoir, voici après correction de 2 bugs un nouveau fichier demexp.zip
Jean-Marc
--
Salut Jean-Marc!
Je viens d'installer Web2Py et fait fonctionne le client (contrairement
a mes attentes, Web2Py est TRES LEGER a installer).
Super travail! Ma premiere impression est tres positive, meme si j'ai
quelques remarques:
-lorsqu'on vote, il faudrait rajouter la possibilite de retire
Ok bien recu,
Merci! Lyu
David MENTRE a écrit :
Re-salut Lyu,
2009/3/6 David MENTRE :
2009/3/6 Lyu Abe :
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?
Il y a clairement quelque chose en
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 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
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 :
est-ce que les serveurs
http://www.linux-france.org/cgi-bin/demexp-xmlrpc-demo
http://www.
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
http://lists.nongnu.org/ma
e returns error codes is any (for
example 'rt_bad_login' if I enter the wrong login/pwd).
See you, Lyu.
David MENTRE a écrit :
Hi Lyu,
On Sun, Oct 12, 2008 at 22:09, Lyu Abe <[EMAIL PROTECTED]> wrote:
Actually no: I am using a C code (xmlrpc-c) to call the methods on
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
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 eit
, args)
File "C:\Program Files\Python25\Lib\xmlrpclib.py", line 1437, in
__request
verbose=self.__verbose
File "C:\Program Files\Python25\Lib\xmlrpclib.py", line 1191, in request
headers
ProtocolError: www.linux-france.org/cgi-bin/demexp-xmlrpc-test: 500 Internal Server
Salut,
Tout est dans le titre :)
Lyu ABE
___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev
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 = s.get_time
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
http://lists.no
Lyu
___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev
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 category
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
Hi Felix,
thanks for your message.
I've noticed a couple of bugs when trying the web client:
-On the pages displaying the list of question, when one clicks on the
tags above a question, this generates an error witht the following log
(see [1])
Yes, this feature is not implemented. I should r
David,
how is the "new question proposal" working in the GTK client? Are new
questions are marked with a "private" status, and thus not displayed on
the users' interface? (or is it something else?)
Lyu
David MENTRE a écrit :
Hi Lyu,
Lyu Abe <[EMAIL PROT
Hi again,
How should I register a "limit date" for a new question? (is such a
function implemented yet?)
Thanks. Lyu
___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev
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 talki
Well, this means I can add new questions, but I cannot display them
(error) because they have no tags associated.
You cannot display them with the GTK client?
Err, nope, I mean, I do not use the GTK client right now. I was talking
about the Web Client: if I create a new question, I cannot
Hi again,
Could someone explain how to manage timestamps to retrieve the following
information:
-new questions
-updated questions
>new answers added
>winning answer changed
>delegate changed the vote
Thanks. Lyu
___
Demexp-dev mailing
Hi David,
David MENTRE a écrit :
Lyu Abe <[EMAIL PROTECTED]> writes:
I cannot create or add tags with the demo/demo test server
(http://www.linux-france.org/cgi-bin/demexp-xmlrpc-test)
Yes, the tag handling methods are not available.
You can see it in the code of the XML RPC
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? (i.
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
D
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 23
"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
AddHandler mod_python .py
PythonHandler mod_python.publisher
Pytho
raise Fault(**self._stack[0])
Fault:
and the same error for new_question:
Fault:
I am using the demo/demo account.
Lyu
David MENTRE a écrit :
Hello Lyu,
2008/3/11, Lyu Abe <[EMAIL PROTECTED]>:
this_question
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.
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()
sp,"")
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 <[EMAIL PROTECTED]>:
I succeeded in using the "marshal" module so that I don't get the error
bel
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
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
add
This is a test.
___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev
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 j
Hello,
I'll be testing voting and adding new questions, and things like these.
So I'd like to know if I can do "anything" on the demo server? (for
example, when adding questions or answers, does an admin need to
validate them before we can effectively see them on the server?)
Thanks.
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
__
Hi David,
2007/11/14, Lyu Abe <[EMAIL PROTECTED]>:
What do you mean by "store tags"? Does it mean "storing the tags locally"?
Yes. For example, you could store in the tags in a Python data
structure in memory.
However, in a first prototype, this is not mandatory.
or the next IRC meeting (according to my possible
schedule):
http://www.doodle.ch/participation.html?pollId=civp7izx7yzaytf2
The agenda will be announced later.
Lyu ABE
___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.non
Hi David,
quickly before going to bed:
So, when you store tags, you store the corresponding timestamp.
Latter, when you reconnect to the server, you get the new timestamps
(and only them). If for one tag the timestamp is different, you need
to get the new tag label (because it has been modified
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
tim
Hello,
I'm considering using Python classes for my code. Maybe it could solve
some of the issues I encountered before (like declaring variables as
global).
Any comment on that?
Lyu
___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://
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:
question_info(co
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,
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
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
Demexp-dev@nongnu
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 in
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 f
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
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 (availa
tag_labels.sort(lambda x,y:cmp(x['var1'],['var1']))
Well, it should be:
tag_labels.sort(lambda x,y:cmp(x['var1'],y['var1']))
The second 'y' was missing.
Yes, I figured that out ;) . And yes, Python is very convenient for
that. Actually, I know Python and other similar languages have been
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
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 = []
Hi,
Here is a link to the VERY PRELIMINARY VERSION of a web interface for
Demexp. It can be used on a LAMP/WAMP server with Mod Python installed
(python 2.5, Mod Python 3.3.1). Put archive content in the WAMP/LAMP
"www" directory.
http://www.snapdrive.net/files/493994/Demexp.zip
This code o
Hi,
Does anyone know how I can retrieve variables from HTML "combobox"
( in HTML) and use them in my Python code?
Thanks... Lyu
for i,rep in enumerate(question_list[index]['q_info_responses']):
unicode_data = rep['r_info_desc']
req.write('')
req.write('\
%s'
%(unicode_data.encode('utf8')))
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
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
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 exam
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 uni
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
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 tags
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
(http://t
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 si
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 s
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
que
David,
Of course, table should be used to present data available in tabular
form. So, regarding the listing of questions, presenting them in a
table might be natural.
What I wanted to say is that you should not use a table to position
elements on the page, e.g. make a two column presentation.
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, I
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 ...
It works fine now...
Thanks. ABE Lyu
___
Demexp-dev m
Hi David,
But apart from this probably nicer visual effect, we have to
think about its overall "readability".
Think also at the ability to read the page by a simple web browser, in
text mode, without javascript (blind people).
Unfortunately, I'm not fully aware on how text browser work and h
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 know
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:
* t
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
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 ou
Hi David,
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 script), or either you use
mod_python and your code runs on a Python interpreter /within/ Apache.
In both ca
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 why
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 _contact_demexp_server
my $xmlrpc_res value has no particular type. 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
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?".
Thank
Hi Diogene,
I dont know what youre up to, but if you want we can try to coordonate
our efforts to build the server dialog. Unless you want to build your
own client : just let me know..
Basically, I want to know how the server can generate the proper HTML
layout dynamically to send to the clien
soin de code
comme ca:...?
http://jsolait.net/
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
__
82 matches
Mail list logo