Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bugzilla::WebService::Bug - where is the datetime_format() sub?

8 views
Skip to first unread message

JA Robson

unread,
May 8, 2009, 3:08:12 PM5/8/09
to devel...@bugzilla.org
Hi, I'm trying out the web services demo script, and I've discovered
something I can't quite figure out.

I tried the following:

./contrib/bz_webservice_demo.pl --uri
http://localhost/bugzilla/xmlrpc.cgi --bug_id=4

and get:

Connecting to a Bugzilla of version 3.5.
Bugzilla's timezone is -0600.
-32000 Can't locate object method "datetime_format" via package
"Bugzilla::WebService::Bug" at Bugzilla/WebService.pm line 39.
in SOAP call near ./contrib/bz_webservice_demo.pl line 272.

I've ack'ed the source, tried to locate a module that this sub is
magically being inherited from, but have found nothing. If you comment
out line 39 below from WebService.pm, things work.

36 sub type {
37 my ($self, $type, $value) = @_;
38 if ($type eq 'dateTime') {
39 $value = $self->datetime_format($value);
40 }
41 return XMLRPC::Data->type($type)->value($value);
42 }

So where is datetime_format()? What am I missing?

Thanks, James
-
To view or change your list settings, click here:
<http://bugzilla.org/cgi-bin/mj_wwwusr?user=dev-apps...@lists.mozilla.org>

Frédéric Buclin

unread,
May 9, 2009, 7:58:01 AM5/9/09
to devel...@bugzilla.org
Le 08. 05. 09 21:08, JA Robson a �crit :

> So where is datetime_format()? What am I missing?

The patch is ready for checkin since April 29. mkanat didn't commit it
yet for some unknown reason. The patch is available from here:

https://bugzilla.mozilla.org/show_bug.cgi?id=490673

The direct link to the patch is:

https://bug490673.bugzilla.mozilla.org/attachment.cgi?id=375083


Max, check in your patch asap, please.

LpSolit

0 new messages