Gustavo Sverzut Barbieri wrote:
> Dischi,
>
> Did you changed the way VideoItem works? Before we did have
> videoitem.plot, videoitem.tagline, ... but now we still have these
> attributes, but they're empty. 

No, IIRC this is like that some time now.

> Instead there is a videoitem.info, which is a dictionary and has the
> keys plot, tagline, etc...

Yes, all minor informations should be inside the info dict. Later this
dict will be filled by mmpython which works on a dict base.

> As I'm working on info_area and I have to deal with those
> information, I hacked a workaround and it works ok.

You could use item.getattr(name). I changed this in your skin. I also
prevented your skin from 'eval' everything you don't know. Only 'and',
'or' and 'not' are allowed now to prevent abuse.

> However would be cool if we define a standard so DirItem, VideoItem,
> AudioItem, ... all use the same way.

Yes, getattr(a) is the way to go. It searches for item.a and for
item.info[a]. Every item has this function.


Dischi

-- 
All bombs with electronic timing devices are fitted with large red
readouts so you know exactly when they're going to go off.


-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to