7 May 2007 21:23
Aan: freevo-devel@lists.sourceforge.net
Onderwerp: Re: [Freevo-devel] disc-id
> I realised this... :)
>
> from pprint import pformat
> print pformat(item)
> I have done this in a few of the media item modules so a:
> print '%s' % item
> may show you what
Christian Lyra wrote:
>> I realised this... :)
>>
>> from pprint import pformat
>> print pformat(item)
>> I have done this in a few of the media item modules so a:
>> print '%s' % item
>> may show you what you need.
>>
> pformat only shows this:
> >
Looks like the __repr__ function is being printe
> I realised this... :)
>
> from pprint import pformat
> print pformat(item)
> I have done this in a few of the media item modules so a:
> print '%s' % item
> may show you what you need.
>
pformat only shows this:
>
but a if hasattr(item, 'id'): print item['id'] did the trick. Maybe
this is a ele
Christian Lyra wrote:
> Hi,
>
> thanks Duncan, this is useful, but my questions is about "item" inside
> a plugin. The example code of a "item" plugin says that you have to
> define a "action" function. This function get a "item" parameter. What
> kind of attributes this "item" has? what kind of v
Hi,
thanks Duncan, this is useful, but my questions is about "item" inside
a plugin. The example code of a "item" plugin says that you have to
define a "action" function. This function get a "item" parameter. What
kind of attributes this "item" has? what kind of values should I
expect? When select
Christian Lyra wrote:
> Hi there,
>
> Is there a way to get a disc-id of dvd? I use to look inside vfs/disc
> folder to look for disc-ids. Making the question more generic, what
> kind of attributes should I expect of a "Item"?
> http://freevo.sourceforge.net/cgi-bin/doc/DevelopPlugins is a nice
Hi there,
Is there a way to get a disc-id of dvd? I use to look inside vfs/disc
folder to look for disc-ids. Making the question more generic, what
kind of attributes should I expect of a "Item"?
http://freevo.sourceforge.net/cgi-bin/doc/DevelopPlugins is a nice
start point but I missed this kind