Re: [Freevo-devel] RFC: remove some config variables

2004-10-21 Thread Rob Shortt
Dirk Meyer wrote:
I'm thinking about removing some config variables. The variables I'm
thinking of are: LOCALE, OVERLAY_DIR and FREEVO_CACHEDIR.
Why? Because I want to make some files in util independ of Freevo so
they can be used outside Freevo. Some modules only depend only Freevo
because of config with the variables above. 
I agree we need some changes here.

LOCALE: The reason we need this is because the Python unicode default
sucks. I don't know why 'ascii' is the default encoding and I'm not
allowed to change that. That's why we need our Unicode and String
wrapper functions. So I suggest a file called encoding.py containing
Unicode and String and they use default settings from the system
locale settings with latin-1 as fallback. So the util modules only
need to depend on this, not the whole Freevo package.
Yes, it makes sence to get LOCALE from the system & environment, that 
would be good.


FREEVO_CACHEDIR: Why should the user change that. I suggest the
default to be /var/cache/freevo with a fallback to ~/.freevo/cache if
the user has no write permissions. The databases should go to
/var/lib/freevo with the fallback being ~/.freevo/lib.
I agree to these defaults.  I run Freevo as root and user 
/var/xxx/freevo/ for most things.  I would still like the ability to 
change these locations from the configuration.


OVERLAY_DIR: Some utils depend on the vfs, so I want a default here,
too. I guess ~/.freevo/vfs sounds good here. If the user doesn't like
it (like I myself), he could use a softlink to a better place. 
I think using a link to override this is bad practice.  I think this is 
one config setting we do need.  How about adding a /var/xxx/ alternative 
to this one as well?

I think it might be worth using Freevo specific environment variables 
for things like FREEVO_CACHEDIR and OVERLAY_DIR.  That way we don't rely 
on importing another module for them and they are still east to get and set.

-Rob
---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel


[Freevo-devel] Re: [Freevo-cvslog] freevo ChangeLog,1.119.2.3,1.119.2.4

2004-10-21 Thread Dirk Meyer
Aubin Paul wrote:
> Is it worth mentioning that AC3 files work with recent versions of
> mplayer now? It was detecting them as VOB and spewing errors.

That remind me I also need to release a new mmpython with the new
ac3info.py. What did you do to better support ac3?


Dischi

-- 
A black cat crossing your path signifies that the animal is going somewhere.
-- Groucho Marx


pgp6DXDbbbtGH.pgp
Description: PGP signature


[Freevo-devel] RFC: remove some config variables

2004-10-21 Thread Dirk Meyer
Hi,

I'm thinking about removing some config variables. The variables I'm
thinking of are: LOCALE, OVERLAY_DIR and FREEVO_CACHEDIR.

Why? Because I want to make some files in util independ of Freevo so
they can be used outside Freevo. Some modules only depend only Freevo
because of config with the variables above. 

LOCALE: The reason we need this is because the Python unicode default
sucks. I don't know why 'ascii' is the default encoding and I'm not
allowed to change that. That's why we need our Unicode and String
wrapper functions. So I suggest a file called encoding.py containing
Unicode and String and they use default settings from the system
locale settings with latin-1 as fallback. So the util modules only
need to depend on this, not the whole Freevo package. 

FREEVO_CACHEDIR: Why should the user change that. I suggest the
default to be /var/cache/freevo with a fallback to ~/.freevo/cache if
the user has no write permissions. The databases should go to
/var/lib/freevo with the fallback being ~/.freevo/lib.

OVERLAY_DIR: Some utils depend on the vfs, so I want a default here,
too. I guess ~/.freevo/vfs sounds good here. If the user doesn't like
it (like I myself), he could use a softlink to a better place. 


Comments please.


Dischi

-- 
Drinking coffee for instant relaxation?  That's like drinking alcohol for
instant motor skills.
-- Marc Price



pgpX1zYTC8ib5.pgp
Description: PGP signature