|
a/Allura/allura/lib/helpers.py |
|
b/Allura/allura/lib/helpers.py |
|
... |
|
... |
26 |
from webhelpers import date, feedgenerator, html, number, misc, text
|
26 |
from webhelpers import date, feedgenerator, html, number, misc, text
|
27 |
|
27 |
|
28 |
from allura.lib import exceptions as exc
|
28 |
from allura.lib import exceptions as exc
|
29 |
# Reimport to make available to templates
|
29 |
# Reimport to make available to templates
|
30 |
from allura.lib.decorators import exceptionless
|
30 |
from allura.lib.decorators import exceptionless
|
31 |
from .security import has_neighborhood_access, has_project_access, has_artifact_access
|
31 |
from .security import has_access
|
32 |
|
32 |
|
33 |
re_path_portion = re.compile(r'^[a-z][-a-z0-9]{2,}$')
|
33 |
re_path_portion = re.compile(r'^[a-z][-a-z0-9]{2,}$')
|
34 |
re_clean_vardec_key = re.compile(r'''\A
|
34 |
re_clean_vardec_key = re.compile(r'''\A
|
35 |
( # first part
|
35 |
( # first part
|
36 |
\w+# name...
|
36 |
\w+# name...
|