Back to index

plone3  3.1.7
Public Member Functions
plone.app.contentrules.browser.info.ContentRulesInfo Class Reference
Inheritance diagram for plone.app.contentrules.browser.info.ContentRulesInfo:
Inheritance graph
[legend]
Collaboration diagram for plone.app.contentrules.browser.info.ContentRulesInfo:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def show_rules_tab

Detailed Description

Definition at line 8 of file info.py.


Member Function Documentation

Whether or not the rules tab should be shown

Definition at line 10 of file info.py.

00010 
00011     def show_rules_tab(self):
00012         """Whether or not the rules tab should be shown
00013         """
00014         
00015         if not IRuleAssignable.providedBy(self.context):
00016             return False
00017             
00018         if not getSecurityManager().checkPermission('Content rules: Manage rules', self.context):
00019             return False
00020             
00021         storage = queryUtility(IRuleStorage)
00022         if storage is None:
00023             return False
00024             
        return storage.active

Here is the call graph for this function:


The documentation for this class was generated from the following file: