On Saturday 10 February 2007, Dirk Meyer wrote:
> Harm Geerts wrote:
> > Things that jump out so far:
> >
> > during install:
> > both freevo-core and freevo-ui install /usr/share/freevo/mbus.conf
>
> Fixed
>
> > during setup:
> > `freevo setup` must first be run as root in order to
> > create /var/lib/freevo/freevo_config.py
> > Only when /var/lib/freevo/freevo_config.py exists are regular users able
> > to run `freevo setup`
>
> Or you have write access to that dir :)
> Again, fixed in svn. /var/lib/freevo is now no longer needed when
> running freevo as user.
>
> > Running freevo:
> > directory items with a '.' are getting stripped like file extensions
>
> Not fixed, I added it to the bugs list.
Had some time to dive into freevo's inner workings and made a patch for this.
Index: src/item.py
===================================================================
--- src/item.py (revision 2488)
+++ src/item.py (working copy)
@@ -130,7 +130,7 @@
t = self._beacon_data.get('title')
if t:
return t
- return str_to_unicode(get_title(self._beacon_data['name']))
+ return str_to_unicode(get_title(self._beacon_data['name'], self.isfile()))
if request and not self._beacon_id:
log.info('requesting data for %s', self)
Index: src/utils.py
===================================================================
--- src/utils.py (revision 2488)
+++ src/utils.py (working copy)
@@ -55,14 +55,14 @@
return result
-def get_title(name):
+def get_title(name, strip=True):
"""
Convert name into a nice title
"""
if len(name) < 2:
return name
- if name.find('.') > 0 and not name.endswith('.'):
+ if strip and name.find('.') > 0 and not name.endswith('.'):
name = name[:name.rfind('.')]
# TODO: take more hints
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users