equal
deleted
inserted
replaced
1067 if os.path.isfile(mapfile): |
1067 if os.path.isfile(mapfile): |
1068 return style, mapfile |
1068 return style, mapfile |
1069 |
1069 |
1070 raise RuntimeError("No hgweb templates found in %r" % paths) |
1070 raise RuntimeError("No hgweb templates found in %r" % paths) |
1071 |
1071 |
|
1072 def loadfunction(ui, extname, registrarobj): |
|
1073 """Load template function from specified registrarobj |
|
1074 """ |
|
1075 for name, func in registrarobj._table.iteritems(): |
|
1076 funcs[name] = func |
|
1077 |
1072 # tell hggettext to extract docstrings from these functions: |
1078 # tell hggettext to extract docstrings from these functions: |
1073 i18nfunctions = funcs.values() |
1079 i18nfunctions = funcs.values() |