changeset 20:32a05d7bb214 tip

remove hack around downstream snafu (martINI, ConfigParser)
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 25 Nov 2010 11:55:55 -0800
parents afd11b758da0
children
files contenttransformer/app.py setup.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/contenttransformer/app.py
+++ b/contenttransformer/app.py
@@ -28,17 +28,17 @@ class FileTypeTransformer(object):
             if fnmatch(filename, pattern):
                 content_type, _ = guess_type(filename)
                 content = file(path).read()
 
                 # transform content type
                 # XXX hack: -> refactor
                 if '/' in transformer_name:
                     return ContentTypeChanger(content, content_type, transformer_name)
-                return self.transformers[transformer_name](content, content_type, **self.kwargs.get(transformer_name.lower(), {})) # XXX hack around ini being retarded
+                return self.transformers[transformer_name](content, content_type, **self.kwargs.get(transformer_name, {})) 
         return FileApp(path)
 
 
 def transformers():
     transformers = {} # XXX could cache
     for entry_point in iter_entry_points('content_transformers'):
         try:
             transformers[entry_point.name] = entry_point.load()
--- a/setup.py
+++ b/setup.py
@@ -1,12 +1,12 @@
 from setuptools import setup, find_packages
 import sys, os
 
-version = "0.3.2"
+version = "0.3.3"
 
 setup(name='contenttransformer',
       version=version,
       description="transform e.g. file data based on type to be served TTW",
       long_description="""
 """,
       classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
       author='Jeff Hammel',