[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[help-GIFT] CFeedbackClient.pm: getting configuration information
From: |
David Squire |
Subject: |
[help-GIFT] CFeedbackClient.pm: getting configuration information |
Date: |
Thu, 12 Jul 2001 18:27:54 +1000 |
Hi,
I've been doing a bit of detective work trying to work out what configuration
information is actually stored when the hand-shake information is parsed after
a collection is made. I've just done this:
my $FeedbackClient = new CFeedbackClient();
$FeedbackClient->setAddress($Host);
$FeedbackClient->startSession($UserID);
# see if we can print a list of the available collections
foreach my $Collection (@{$FeedbackClient->{collection}}) {
foreach my $Element (keys %$Collection) {
print "$Element: $Collection->{$Element}<BR>\n";
}
}
which resulted in (when connecting to the demo server in Geneva):
query-paradigm-list: ARRAY(0x820d410)<BR>
collection-id: TSR500<BR>
query-paradigm-list: ARRAY(0x820d524)<BR>
collection-id: c-1-Lausanne<BR>
query-paradigm-list: ARRAY(0x820d56c)<BR>
collection-id: c-48-15-15-23-1-100-3-53-0<BR>
query-paradigm-list: ARRAY(0x820d5b4)<BR>
collection-id: c-corel<BR>
query-paradigm-list: ARRAY(0x820d5fc)<BR>
collection-id: c-such<BR>
query-paradigm-list: ARRAY(0x820d644)<BR>
collection-id: c-such-2<BR>
query-paradigm-list: ARRAY(0x820d68c)<BR>
collection-id: c-w<BR>
So I discover that the actual collection name is apparently not stored
anywhere. It must come across in the hand-shake MRML, so I guess that the
parser is just ignoring it. I suspect that what I have to do is to dive into
the operation handleStart and make changes to something like:
if($lPath=~m:collection-list/collection$:){
$self->addCollection($inAttributes{"collection-id"},$inAttributes{"collection-name"});
}
with appropriate changes to addCollection too. Am I on the right track? I
imagine that I'll have to do the same for algorithms etc. too.
Thanks,
David
--
Dr. David McG. Squire
Computer Science and Software Engineering, Monash University, Australia
http://www.csse.monash.edu.au/~davids/ http://viper.unige.ch/
Do/Don't want HTML mail? Let me know.
- [help-GIFT] CFeedbackClient.pm: getting configuration information,
David Squire <=
- [help-GIFT] CGI MRML client in Perl using CFeedbackClient.pm: some success!, David Squire, 2001/07/17
- Re: [help-GIFT] CFeedbackClient.pm: getting configuration information, Wolfgang Mueller, 2001/07/18
- [help-GIFT] Avoiding "localhost" in URLs generated by gift-add-collection.pl, David Squire, 2001/07/18
- Re: [help-GIFT] Avoiding "localhost" in URLs generated by gift-add-collection.pl, Wolfgang Mueller, 2001/07/18
- Re: [help-GIFT] Avoiding "localhost" in URLs generated bygift-add-collection.pl, David Squire, 2001/07/18
- Re: [help-GIFT] Avoiding "localhost" in URLs generated bygift-add-collection.pl, David Squire, 2001/07/18
- Re: [help-GIFT] Avoiding "localhost" in URLs generated bygift-add-collection.pl, Wolfgang Mueller, 2001/07/18
- Re: [help-GIFT] Avoiding "localhost" in URLs generatedbygift-add-collection.pl, David Squire, 2001/07/18
- Re: [help-GIFT] Avoiding "localhost" in URLs generatedbygift-add-collection.pl, Wolfgang Mueller, 2001/07/18