Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix arguments of SpacesToUnderscores' and SpacesToDashes' constructor…

…s. Reported in #90.
  • Loading branch information...
commit efdb01cbdfae619a781bc6ed24154abd1953c51a 1 parent 54a154c
@wimleers authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 code/processors/filename.py
View
6 code/processors/filename.py
@@ -44,12 +44,13 @@ def run(self):
class SpacesToUnderscores(Base):
"""replaces spaces in the filename with underscores ("_")"""
- def __init__(self, input_file, working_dir="/tmp"):
+ def __init__(self, input_file, original_file, document_root, base_path, process_for_server, parent_logger, working_dir="/tmp", search=[], replace=[]):
Base.__init__(self,
input_file,
original_file,
document_root,
base_path,
+ process_for_server,
parent_logger,
working_dir,
[" "],
@@ -60,12 +61,13 @@ def __init__(self, input_file, working_dir="/tmp"):
class SpacesToDashes(Base):
"""replaces spaces in the filename with dashes ("-")"""
- def __init__(self, input_file, working_dir="/tmp"):
+ def __init__(self, input_file, original_file, document_root, base_path, process_for_server, parent_logger, working_dir="/tmp", search=[], replace=[]):
Base.__init__(self,
input_file,
original_file,
document_root,
base_path,
+ process_for_server,
parent_logger,
working_dir,
[" "],

0 comments on commit efdb01c

Please sign in to comment.
Something went wrong with that request. Please try again.