Added 'oid_access' route
authorThierry Florac <thierry.florac@onf.fr>
Thu, 02 Jun 2016 15:32:09 +0200
changeset 36 69a8e0ec5555
parent 35 7cdbe0f6e5c2
child 37 349fd1600cf9
Added 'oid_access' route
src/pyams_content/include.py
--- a/src/pyams_content/include.py	Thu Jun 02 15:31:37 2016 +0200
+++ b/src/pyams_content/include.py	Thu Jun 02 15:32:09 2016 +0200
@@ -26,6 +26,9 @@
     # add translations
     config.add_translation_dirs('pyams_content:locales')
 
+    # add custom routes
+    config.add_route('oid_access', '/+/{oid}*view')
+
     # load registry components
     try:
         import pyams_zmi