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