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 tags assigned to each question
with id in 0 to 272.

use tag_info() to get the label of a group of tags, in the same way
as question_info()


Ok, that was actually my original idea (to use sets)... but I was not 
sure I was correctly understanding the way it worked.



If you have some persistent state on your web server side (e.g. a
database), you might store the retrieved tags or tags assigned to a
given question from your local state. That might improve
performance. But in that case you need maintain coherence with the
server in case of changes with timetsamps. We might see this at a later
time. ;-)

Yes ok.



Many thanks for the time you invest in demexp,

I'm trying to do the maximum as long as I'm motivated(!) :D

Lyu


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


Re: [Demexp-dev] Retrieving Tag List

2007-10-20 Par sujet David MENTRE
Hi Lyu,

Lyu Abe [EMAIL PROTECTED] writes:

 I'm trying to do the maximum as long as I'm motivated(!) :D

:-D

Don't forget the old Free Software motto Release Early, Release Often.
You can put your code somewhere with a suitable Free Software license
(demexp is using currently GNU GPLv2), even if your code is not suitable
yet for general use.

Best wishes,
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