--- Dirk Meyer <[EMAIL PROTECTED]> escreveu: > Gustavo Sverzut Barbieri
wrote:
> >> I'm not happy with the current way to define what to display. All
> >> this \t and @var@ doesn't look good.
> >
> > Yeah, but there is another cleaner solution?
> 
> I don't know. I can't think of a better way, but there has to be one.
> 

:)


> 
> > Maybe this one could be grouped with the "\t @var@" issue and we
> could
> > create some conditionals... maybe using some kind of PHP in our XML
> :)
> >
> > Like:
> >
> > <?python if not title: print "Filename: %s" % filename>
> >
> > It's dirty IMO, but it's cool :)
> 
> That's better. Maybe not < and > because xml would be confused, but
> something like that would be a good idea. What about:
> 
> $(eval if not title: "Filename: " filename)
> 
> or for the other cases
> 
> $(eval if title: "Title: " title)
>

I vote for $( PYTHON CODE GOES HERE )  ie: $(if title: return "Title:
%s" % title; else: return "")

We could make this a body of a function and execute it.
Also, we could limit that tho the SKIN, disable it for the rest of
XML/FXD (maybe enable it for folder.fxd, no more than that). If we
enable that everywhere we could be listed on security magazines:
"BUG-XXXXX - Freevo
Special crafted string in XML files could lead to execution of
undesired code
" :) 

I know we don't have resources to implement it in a safe way, without
enabling users to specify python comands on the XML....

[3 minutes later]

What about using the way Zope does:
<ifdef filename>
Filename: <getvar filename>
<endif>
 
It's ok IMO, and even it's XML compilant... so no need to know python
code.


> > I was talking about making the bar_area a new area, like View,
> Info,
> > Listing. But handled by the OSD and not any other thing (menu,
> music
> > player, image viewer, etc) So we always have it displayed. We
> should
> > assing a RC key to toggle it on/off and make it default off when
> > viewing images or movies, but be able to toggle it on when that key
> was
> > pressed.
> > (we could use the mplayer's bmovl to do that in movies)
> 
> Nice idea. We would define a position for the bar in <menuset> and if
> there is a position, the bar can draw itself. 
> 

Yes.


Gustavo

_______________________________________________________________________
Busca Yahoo!
O servi�o de busca mais completo da Internet. O que voc� pensar o Yahoo! encontra.
http://br.busca.yahoo.com/


-------------------------------------------------------
This SF.net email is sponsored by: Does your code think in ink? 
You could win a Tablet PC. Get a free Tablet PC hat just for playing. 
What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to