From 569fdbba8b711b7cbd13effc825265220d5a53c5 Mon Sep 17 00:00:00 2001 From: Thorsten Schöning Date: Tue, 20 Nov 2012 17:50:17 +0100 Subject: Bug 385283: bz_webservice_demo.pl --product-name fails (Product.get_product no longer exists) r/a=LpSolit --- contrib/bz_webservice_demo.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/bz_webservice_demo.pl b/contrib/bz_webservice_demo.pl index 104151d85..3ef81489b 100755 --- a/contrib/bz_webservice_demo.pl +++ b/contrib/bz_webservice_demo.pl @@ -287,20 +287,20 @@ if ($bug_id) { =head2 Retrieving Product Information -Call C with the name of the product you want to know more -of. +Call C with the name of the product you want to know more of. The call will return a C object. =cut if ($product_name) { - $soapresult = $proxy->call('Product.get_product', $product_name); + $soapresult = $proxy->call('Product.get', {'names' => [$product_name]}); _die_on_fault($soapresult); $result = $soapresult->result; if (ref($result) eq 'HASH') { + $result = $result->{'products'}->[0]; foreach (keys(%$result)) { - print "$_: $$result{$_}\n"; + print "$_: $result->{$_}\n"; } } else { -- cgit v1.2.3-24-g4f1b From 649b1d6be2eeaf6586fec4bf58f09324bfd06b3a Mon Sep 17 00:00:00 2001 From: Dave Miller Date: Tue, 20 Nov 2012 14:07:13 -0500 Subject: Bug 640756 - Make the documentation clearer that attachments created with Bug.add_attachment must by of type 'base64' when non-ASCII . r=LpSolit, a=LpSolit --- Bugzilla/WebService/Bug.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm index 5d5f49b26..578c06ec5 100644 --- a/Bugzilla/WebService/Bug.pm +++ b/Bugzilla/WebService/Bug.pm @@ -2392,7 +2392,9 @@ these bugs. =item C -B C The content of the attachment. +B C or C The content of the attachment. +If the content of the attachment is not ASCII text, you must encode +it in base64 and declare it as the C type. =item C -- cgit v1.2.3-24-g4f1b From 7353bc8fce1eaed8fa0bba03dcef157eafaf8a42 Mon Sep 17 00:00:00 2001 From: Thorsten Schöning Date: Fri, 23 Nov 2012 00:39:37 +0100 Subject: Bug 385283: bz_webservice_demo.pl --product-name fails (Product.get_product no longer exists) Part 2: correctly display components, milestones and versions r/a=LpSolit --- contrib/bz_webservice_demo.pl | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/contrib/bz_webservice_demo.pl b/contrib/bz_webservice_demo.pl index 3ef81489b..72ec58a88 100755 --- a/contrib/bz_webservice_demo.pl +++ b/contrib/bz_webservice_demo.pl @@ -295,16 +295,24 @@ The call will return a C object. if ($product_name) { $soapresult = $proxy->call('Product.get', {'names' => [$product_name]}); _die_on_fault($soapresult); - $result = $soapresult->result; - - if (ref($result) eq 'HASH') { - $result = $result->{'products'}->[0]; - foreach (keys(%$result)) { - print "$_: $result->{$_}\n"; + $result = $soapresult->result()->{'products'}->[0]; + + # Iterate all entries, the values may be scalars or array refs with hash refs. + foreach my $key (sort(keys %$result)) { + my $value = $result->{$key}; + + if (ref($value)) { + my $counter = 0; + foreach my $hash (@$value) { + while (my ($innerKey, $innerValue) = each %$hash) { + print "$key.$counter.$innerKey: $innerValue\n"; + } + ++$counter; } - } - else { - print "$result\n"; + } + else { + print "$key: $value\n" + } } } -- cgit v1.2.3-24-g4f1b From d8b74774531bf854695f6b1497a405bc78b54559 Mon Sep 17 00:00:00 2001 From: Hugo Date: Thu, 29 Nov 2012 14:12:21 -0500 Subject: Bug 579189 - New methods added to Bugzilla/User.pm by bug 24896 have no POD r=dkl, a=LpSolit --- Bugzilla/User.pm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index 713de3649..1bd101a92 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -2201,6 +2201,35 @@ Returns a hashref with tag IDs as key, and a hashref with tag 'id', =back +=head2 Saved Recent Bug Lists + +=over + +=item C + +Returns an arrayref of L objects +containing the user's recent searches. + +=item C + +Returns a L object that contains the most recent +search by the user for the specified bug id. Retuns undef if no match is found. + +=item C + +Returns a L object that contains a search by the +user. Uses the list_id of the current loaded page, or the referrer page, and +the bug id if that fails. Finally it will check the BUGLIST cookie, and create +an object based on that, or undef if it does not exist. + +=item C + +Saves the users most recent search in the database if logged in, or in the +BUGLIST cookie if not logged in. Parameters are bug_ids, order, vars and +list_id. + +=back + =head2 Account Lockout =over -- cgit v1.2.3-24-g4f1b