Commit 6fdcb987 authored by Hanno Schlichting's avatar Hanno Schlichting

Avoid a strong dependency

parent ddbe4442
...@@ -66,8 +66,11 @@ webdav_access='WebDAV access' ...@@ -66,8 +66,11 @@ webdav_access='WebDAV access'
webdav_lock_items='WebDAV Lock items' webdav_lock_items='WebDAV Lock items'
webdav_unlock_items='WebDAV Unlock items' webdav_unlock_items='WebDAV Unlock items'
# BBB # BBB - conditional dependency
from DocumentTemplate import permissions try:
from DocumentTemplate import permissions
change_dtml_documents = permissions.change_dtml_documents except ImportError:
change_dtml_methods = permissions.change_dtml_methods pass
else:
change_dtml_documents = permissions.change_dtml_documents
change_dtml_methods = permissions.change_dtml_methods
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment