code stringlengths 3 6.57k |
|---|
len(self.source) |
self.write_code(code_line.strip() |
m.start() |
m.end() |
m.groups() |
and (_blk1 or _blk2) |
comment (up to EOL) |
_com.strip() |
endswith(self._tokens[1]) |
keyword (if/for/while/def/try/...) |
keyword (else/elif/except/...) |
keyword (ends a block) |
token (usually '%>') |
self.write_code(code_line.strip() |
flush_text(self) |
join(self.text_buffer) |
self.re_inl.finditer(text) |
m.start() |
m.end() |
parts.append(nl.join(map(repr, prefix.splitlines(True) |
prefix.endswith('\n') |
parts.append(self.process_inline(m.group(1) |
strip() |
len(text) |
prefix.splitlines(True) |
endswith('\\\\\n') |
endswith('\\\\\r\n') |
parts.append(nl.join(map(repr, lines) |
_printlist((%s,) |
join(parts) |
code.count('\n') |
self.write_code(code) |
process_inline(chunk) |
_str(%s) |
_escape(%s) |
write_code(self, line, comment='') |
line.lstrip() |
self.code_buffer.append(code) |
template(*args, **kwargs) |
directly (as keyword arguments) |
kwargs.pop('template_adapter', SimpleTemplate) |
kwargs.pop('template_lookup', TEMPLATE_PATH) |
id(lookup) |
kwargs.pop('template_settings', {}) |
isinstance(tpl, adapter) |
prepare(**settings) |
adapter(source=tpl, lookup=lookup, **settings) |
adapter(name=tpl, lookup=lookup, **settings) |
abort(500, 'Template (%s) |
kwargs.update(dictarg) |
render(kwargs) |
functools.partial(template, template_adapter=MakoTemplate) |
functools.partial(template, template_adapter=CheetahTemplate) |
functools.partial(template, template_adapter=Jinja2Template) |
view(tpl_name, **defaults) |
HTTPResponse(dict) |
decorator(func) |
functools.wraps(func) |
wrapper(*args, **kwargs) |
func(*args, **kwargs) |
isinstance(result, (dict, DictMixin) |
defaults.copy() |
tplvars.update(result) |
template(tpl_name, **tplvars) |
template(tpl_name, defaults) |
functools.partial(view, template_adapter=MakoTemplate) |
functools.partial(view, template_adapter=CheetahTemplate) |
functools.partial(view, template_adapter=Jinja2Template) |
run() |
load_app() |
codes (e.g. 404) |
phrases (e.g. 'Not Found') |
dict((k, '%d %s'%(k,v) |
for (k,v) |
HTTP_CODES.items() |
error() |
repr(request.url) |
repr(e.exception) |
LocalRequest() |
LocalResponse() |
threading.local() |
stack (create first empty Bottle app) |
run() |
AppStack() |
app.push() |
_ImportRedirect('bottle.ext' if __name__ == '__main__' else __name__+".ext", 'bottle_%s') |
_stdout('Bottle %s\n'%__version__) |
sys.exit(0) |
parser.print_help() |
_stderr('\nError: No application entry point specified.\n') |
sys.exit(1) |
sys.path.insert(0, '.') |
sys.modules.setdefault('bottle', sys.modules['__main__']) |
host.rfind(']') |
host.rfind(':') |
host.rsplit(':', 1) |
host.strip('[]') |
run(args[0], host=host, port=int(port) |
DingDongPlugin(WechatyPlugin) |
name(self) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.