Launchpad logo and name.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index ][Thread Index ]

Re: [Launchpad-users] The 'changes_file_url' property becomes a method



Kees Cook wrote:
> Hi Muharem,
> 
> On Mon, Dec 21, 2009 at 04:18:23PM +0100, Muharem Hrnjadovic wrote:
>> Quick info: the branch with the changes announced below just landed on
>> db-devel (revno: 8815)
> 
> Thanks for the heads-up!  Just for reference, I think this is a portable
> way to handle either interface to the API:
> 
>     import types
>     if type(item.changes_file_url) == types.MethodType:
>         src_changes = item.changes_file_url()
Hello Kees,

cool idea, please note that the method name is changesFileUrl().

>     else:
>         src_changes = item.changes_file_url

Best regards

-- 
Muharem Hrnjadovic <muharem@xxxxxxxxxx>
Public key id   : B2BBFCFC
Key fingerprint : A5A3 CC67 2B87 D641 103F  5602 219F 6B60 B2BB FCFC

Attachment: signature.asc
Description: OpenPGP digital signature



This is the launchpad-users mailing list archive — see also the general help for Launchpad.net mailing lists.

(Formatted by MHonArc.)