| | |
| | | callable(*args, **kw) |
| | | |
| | | else: |
| | | info = self.info |
| | | info = self.info # usually a ZCML action if self.info has data |
| | | if not info: |
| | | # Try to provide more accurate info for conflict reports by |
| | | # wrapping the context in a decorator and attaching caller info |
| | | # to it, unless the context already has info (if it already has |
| | | # info, it's likely a context generated by a ZCML directive). |
| | | # Try to provide more accurate info for conflict reports |
| | | if self._ainfo: |
| | | info = self._ainfo[0] |
| | | else: |
| | |
| | | old_route_prefix.rstrip('/'), |
| | | route_prefix.lstrip('/') |
| | | ) |
| | | route_prefix = route_prefix.lstrip('/').rstrip('/') |
| | | route_prefix = route_prefix.strip('/') |
| | | if not route_prefix: |
| | | route_prefix = None |
| | | |