page_fits
A with block in which a route's mixture fits (fit_mixture) are made by the website's helper Pythons, when the page has one and the request can be asked again; anywhere else the block changes nothing.
Generated from Plexora 0.0.55View source
from plexora.api import page_fitspage_fits()A fit handed to a helper raises AskAgain; the route answers it with
ask_again(exc), and the website's worker asks the same request again a
moment later, the one Python thread free meanwhile.
Examples
from plexora import api
try:
with api.page_fits():
answer = compute_the_fit()
except api.AskAgain as exc:
return api.ask_again(exc)