# HG changeset patch # User k0s # Date 1261856580 18000 # Node ID eab191e0b9b35029bcace877d48c0e52afedc7da # Parent 985b3a7e0e88c76f181c6dd48aae7daec5d510b8 meaningful descriptions from filenames diff -r 985b3a7e0e88 -r eab191e0b9b3 decoupage/formatters.py --- a/decoupage/formatters.py Fri Dec 25 18:57:56 2009 -0500 +++ b/decoupage/formatters.py Sat Dec 26 14:43:00 2009 -0500 @@ -86,8 +86,10 @@ for f in data['files']: if f['description'] is None: description = f['name'] - if 'strip' in self.args: - description = description.rsplit('.', 1)[0] + description = description.rsplit('.', 1)[0] + decription = description.strip('_') + if '_' in description: + description = ' '.join([i.title() for i in description.split('_')]) f['description'] = description diff -r 985b3a7e0e88 -r eab191e0b9b3 setup.py --- a/setup.py Fri Dec 25 18:57:56 2009 -0500 +++ b/setup.py Sat Dec 26 14:43:00 2009 -0500 @@ -6,7 +6,7 @@ except IOError: description = '' -version = '0.4' +version = '0.4.1' setup(name='decoupage', version=version,