web/views/urlpublishing.py
changeset 3377 dd9d292b6a6d
parent 2890 fdcb8a2bb6eb
child 3720 5376aaadd16b
equal deleted inserted replaced
3376:f5c69485381f 3377:dd9d292b6a6d
    47     on failure. URL evaluators are called according to their `priority`
    47     on failure. URL evaluators are called according to their `priority`
    48     attribute, with 0 as the greatest priority and greater values as
    48     attribute, with 0 as the greatest priority and greater values as
    49     lower priority.  The first evaluator returning a result or raising
    49     lower priority.  The first evaluator returning a result or raising
    50     something else than `PathDontMatch` will stop the handlers chain.
    50     something else than `PathDontMatch` will stop the handlers chain.
    51     """
    51     """
    52     id = 'urlpublisher'
    52     __regid__ = 'urlpublisher'
    53     vreg = None # XXX necessary until property for deprecation warning is on appobject
    53     vreg = None # XXX necessary until property for deprecation warning is on appobject
    54 
    54 
    55     def __init__(self, vreg, default_method='view'):
    55     def __init__(self, vreg, default_method='view'):
    56         super(URLPublisherComponent, self).__init__()
    56         super(URLPublisherComponent, self).__init__()
    57         self.vreg = vreg
    57         self.vreg = vreg
    99         return pmid, rset
    99         return pmid, rset
   100 
   100 
   101 
   101 
   102 class URLPathEvaluator(component.Component):
   102 class URLPathEvaluator(component.Component):
   103     __abstract__ = True
   103     __abstract__ = True
   104     id = 'urlpathevaluator'
   104     __regid__ = 'urlpathevaluator'
   105     vreg = None # XXX necessary until property for deprecation warning is on appobject
   105     vreg = None # XXX necessary until property for deprecation warning is on appobject
   106 
   106 
   107     def __init__(self, urlpublisher):
   107     def __init__(self, urlpublisher):
   108         self.urlpublisher = urlpublisher
   108         self.urlpublisher = urlpublisher
   109         self.vreg = urlpublisher.vreg
   109         self.vreg = urlpublisher.vreg