|
OpenQuizz
Une application de gestion des contenus pédagogiques
|


Public Member Functions | |
| def | __init__ (self, prefix, rules) |
| def | get_rules (self, map) |
Data Fields | |
| prefix | |
| rules | |
Prefixes all endpoints (which must be strings for this factory) with
another string. This can be useful for sub applications::
url_map = Map([
Rule('/', endpoint='index'),
EndpointPrefix('blog/', [Submount('/blog', [
Rule('/', endpoint='index'),
Rule('/entry/<entry_slug>', endpoint='show')
])])
])
| def __init__ | ( | self, | |
| prefix, | |||
| rules | |||
| ) |
| def get_rules | ( | self, | |
| map | |||
| ) |
Subclasses of `RuleFactory` have to override this method and return an iterable of rules.
Reimplemented from RuleFactory.
| prefix |
| rules |