diff --git a/browser/common.py b/browser/common.py index 9cee707..c31c722 100644 --- a/browser/common.py +++ b/browser/common.py @@ -403,6 +403,10 @@ class BaseView(GenericView, I18NView): def globalOptions(self): return IOptions(self.loopsRoot) + @Lazy + def typeOptions(self): + return IOptions(adapted(self.typeProvider)) + # versioning @Lazy diff --git a/browser/configure.zcml b/browser/configure.zcml index b687024..f50054d 100644 --- a/browser/configure.zcml +++ b/browser/configure.zcml @@ -140,9 +140,16 @@ + + + permission="zope.ManageContent" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + Error message + + + + + + + + + Name + Title + Size + Created + Modified + + + + + + + + + + + + + + + + + + + + + + + + + + + foo + + + + Title + + + + + + + + + + + + Pages: + + 1 + ... + 2 + 3 + 3 + ... + 5 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +