def dictionaries(self, request, tag): """ """ elements = [] for dictionary in const.dictionaries: name = utils.getDictionaryName(dictionary) url = const.urls["dictionary"].replace( const.urlParams["dictionary"], dictionary) elements.append(tags.li(tags.a(name, href=url))) return tag(elements)
def dictionaries(self, request, tag): """ """ elements = [] for dictionary in const.dictionaries: name = utils.getDictionaryName(dictionary) url = const.urls["dictionary"].replace( const.urlParams["dictionary"], dictionary) elements.append( tags.li(tags.a(name, href=url))) return tag(elements)
def dictionaryData(self, request, tag): """ """ dictId = os.path.basename(request.path) dictName = utils.getDictionaryName(dictId) tag.fillSlots( rootURL=const.urls["root"], breadcrumbDivider=const.breadcrumbDivider, dictionaryName=dictName, dictionariesURL=const.urls["dictionaries"], ) return tag