mercurial/templatefilters.py
changeset 28692 6b3b958daf03
parent 28213 93b5c540db69
child 28693 11f623b5668f
equal deleted inserted replaced
28691:a04baf9c063b 28692:6b3b958daf03
   413     if websubtable:
   413     if websubtable:
   414         for regexp, format in websubtable:
   414         for regexp, format in websubtable:
   415             text = regexp.sub(format, text)
   415             text = regexp.sub(format, text)
   416     return text
   416     return text
   417 
   417 
       
   418 def loadfilter(ui, extname, registrarobj):
       
   419     """Load template filter from specified registrarobj
       
   420     """
       
   421     for name, func in registrarobj._table.iteritems():
       
   422         filters[name] = func
       
   423 
   418 # tell hggettext to extract docstrings from these functions:
   424 # tell hggettext to extract docstrings from these functions:
   419 i18nfunctions = filters.values()
   425 i18nfunctions = filters.values()