Show More
@@ -922,10 +922,16 b' def server(path, name, templates, addres' | |||
|
922 | 922 | # This is a stopgap |
|
923 | 923 | class hgwebdir: |
|
924 | 924 | def __init__(self, config): |
|
925 | cp = ConfigParser.SafeConfigParser() | |
|
926 |
|
|
|
927 | self.repos = cp.items("paths") | |
|
928 |
self.repos.s |
|
|
925 | if type(config) == type([]): | |
|
926 | self.repos = config | |
|
927 | elif type(config) == type({}): | |
|
928 | self.repos = config.items() | |
|
929 | self.repos.sort() | |
|
930 | else: | |
|
931 | cp = ConfigParser.SafeConfigParser() | |
|
932 | cp.read(config) | |
|
933 | self.repos = cp.items("paths") | |
|
934 | self.repos.sort() | |
|
929 | 935 | |
|
930 | 936 | def run(self): |
|
931 | 937 | def header(**map): |
General Comments 0
You need to be logged in to leave comments.
Login now