Re: [Freevo-devel] disc-id

2007-05-28 Thread Frank [Antispam account]
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

Re: [Freevo-devel] disc-id

2007-05-27 Thread Duncan Webb
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

Re: [Freevo-devel] disc-id

2007-05-27 Thread Christian Lyra
> 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

Re: [Freevo-devel] disc-id

2007-05-27 Thread Duncan Webb
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

Re: [Freevo-devel] disc-id

2007-05-27 Thread Christian Lyra
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

Re: [Freevo-devel] disc-id

2007-05-27 Thread Duncan Webb
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

[Freevo-devel] disc-id

2007-05-27 Thread Christian Lyra
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