[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? (i.e. a question MUST have at least one tag)


Regards, Lyu


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


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

2008-03-22 Par sujet David MENTRE
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 proxy:
  
http://www.linux-france.org/cgi-bin/hgwebdir.cgi/demexp/xmlrpc-proxy?f=2c37f5f19621;file=demexp-xmlrpc-proxy.py
(see method register_functions())

 Therefore I cannot test it for ne added questions.

Do you really need to add new tags? Tag handling (creation, change,
addition to questions) is supposed to be done by classifiers
(i.e. humans). Are you doing the management part of demexp?

 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.e. a question
 MUST have at least one tag)

Err, don't know. Ah, yes! If the question has no tag, you can't see it
with the GTK client. What kind of issue do you have?

Yours,
d.
-- 
GPG/PGP key: A3AD7A2A David MENTRE [EMAIL PROTECTED]
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] [Web Client] Timestamps... again

2008-03-22 Par sujet David MENTRE
Hello Lyu,

Lyu Abe [EMAIL PROTECTED] writes:

 Could someone explain how to manage timestamps to retrieve the following
 information:
 -new questions

You don't need timestamps for this. Just store somewhere the maximum
question id you have seen until now. When you get the new maximum
question id, compare it to the old one. Question ids increase strictly. 


 -updated questions
   new answers added
   winning answer changed

Store in a hash-table the timestamp for each question id. When you get
new question timestamps, check for each question if the new timestamp is
bigger than the old one stored in your hash-table. If this is true,
something has changed. 

However, you cannot currently know *what* has changed for a given
question, except by storing all the question fields and comparing one by
one the old field value with the new one.

Please not that for the test server, the timestamp of a question might
*not* be updated if the winning answer is changed. This was fixed later
in the development version.

   delegate changed the vote

Currently part of delegation is only implemented in the current dev
version and I can't remember what's happening when something change with
delegates. 

Yours,
d.
-- 
GPG/PGP key: A3AD7A2A David MENTRE [EMAIL PROTECTED]
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev