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