Lines Matching refs:tokens
371 def repo_index(self, *tokens, **params):
415 def default(self, *tokens, **params):
429 if "_themes" in tokens:
431 theme_index = tokens.index("_themes")
433 tokens[theme_index:])
444 return dh.default(*tokens[theme_index:])
446 elif tokens[0] not in repositories:
451 repo_prefix = tokens[0]
493 def manifest(self, *tokens):
547 def __strip_pub(self, tokens, repo):
549 described by 'tokens' looking for the publishers configured
550 in 'repo', returning new tokens."""
552 if len(tokens) <= 0:
553 return tokens
557 new_tokens = [tokens[0]]
558 for t in tokens[1:]:
566 def info(self, *tokens):
570 tokens = self.__strip_pub(tokens, dh.repo)
572 return misc.force_bytes(dh.info_0(*tokens[3:]))
574 def p5i(self, *tokens):
578 tokens = self.__strip_pub(tokens, dh.repo)
581 return dh.p5i_0(*tokens[3:])
583 def search_1(self, *tokens, **params):
588 toks = self.__strip_pub(tokens, dh.repo)
592 def admin(self, *tokens, **params):
620 if len(tokens) <= 2:
622 repo_prefix = tokens[0]
623 pub_prefix = tokens[1]
669 def wait_refresh(self, *tokens, **params):