From 56189de68ab5effc1708ddf65f861842ed48d6ab Mon Sep 17 00:00:00 2001 From: Koosha Khajeh Moogahi Date: Fri, 21 Sep 2012 21:24:16 +0200 Subject: Bug 694755: Add Classification API to WebServices (implement Classification.get()) r/a=LpSolit --- Bugzilla/WebService/Constants.pm | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'Bugzilla/WebService/Constants.pm') diff --git a/Bugzilla/WebService/Constants.pm b/Bugzilla/WebService/Constants.pm index dcd3a9fd7..2ffad430c 100644 --- a/Bugzilla/WebService/Constants.pm +++ b/Bugzilla/WebService/Constants.pm @@ -159,6 +159,9 @@ use constant WS_ERROR_CODE => { empty_group_description => 802, invalid_regexp => 803, + # Classification errors are 900-1000 + auth_classification_not_enabled => 900, + # Errors thrown by the WebService itself. The ones that are negative # conform to http://xmlrpc-epi.sourceforge.net/specs/rfc.fault_codes.php xmlrpc_invalid_value => -32600, @@ -187,11 +190,12 @@ sub WS_DISPATCH { Bugzilla::Hook::process('webservice', { dispatch => \%hook_dispatch }); my $dispatch = { - 'Bugzilla' => 'Bugzilla::WebService::Bugzilla', - 'Bug' => 'Bugzilla::WebService::Bug', - 'User' => 'Bugzilla::WebService::User', - 'Product' => 'Bugzilla::WebService::Product', - 'Group' => 'Bugzilla::WebService::Group', + 'Bugzilla' => 'Bugzilla::WebService::Bugzilla', + 'Bug' => 'Bugzilla::WebService::Bug', + 'Classification' => 'Bugzilla::WebService::Classification', + 'Group' => 'Bugzilla::WebService::Group', + 'Product' => 'Bugzilla::WebService::Product', + 'User' => 'Bugzilla::WebService::User', %hook_dispatch }; return $dispatch; -- cgit v1.2.3-24-g4f1b