Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#31: Migrations directory is now configured in the config file. Also,…
… refactored to separate all configuration in the 'Config' class.
- Loading branch information
1 parent
9e684b1
commit 572860d
Showing
12 changed files
with
135 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
#TODO: there should be something like this somewhere... Gotta find it! | ||
import re | ||
|
||
class Lists(object): | ||
|
||
@classmethod | ||
def subtract(self, list_a, list_b): | ||
return [l for l in list_a if l not in list_b] | ||
return [l for l in list_a if l not in list_b] | ||
|
||
class Utils(object): | ||
|
||
@classmethod | ||
def get_path_without_config_file_name(self, path): | ||
info = re.match(r"^(.*/).*$", path, re.S) | ||
if info is None or info == "": | ||
return "." | ||
return info.group(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.