Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes
plone.app.contentrules.browser.adding.RuleAdding Class Reference
Inheritance diagram for plone.app.contentrules.browser.adding.RuleAdding:
Inheritance graph
[legend]
Collaboration diagram for plone.app.contentrules.browser.adding.RuleAdding:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def add
def nextURL
def renderAddButton
def namesAccepted
def nameAllowed
def isSingleMenuItem
def addingInfo
def hasCustomAddView

Static Public Attributes

 context = None
 request = None
 contentName = None
string id = '+rule'

Detailed Description

Definition at line 17 of file adding.py.


Constructor & Destructor Documentation

def plone.app.contentrules.browser.adding.RuleAdding.__init__ (   self,
  context,
  request 
)

Definition at line 29 of file adding.py.

00029 
00030     def __init__(self, context, request):
00031         self.context = context
00032         self.request = request

Here is the caller graph for this function:


Member Function Documentation

Add the rule to the context

Definition at line 33 of file adding.py.

00033 
00034     def add(self, content):
00035         """Add the rule to the context
00036         """
00037         storage = getUtility(IRuleStorage)
00038         chooser = INameChooser(storage)
00039         storage[chooser.chooseName(None, content)] = content

Here is the caller graph for this function:

Definition at line 57 of file adding.py.

00057 
00058     def addingInfo(self):
00059         return []

Definition at line 60 of file adding.py.

00060 
00061     def hasCustomAddView(self):
00062         return None
00063 

Definition at line 54 of file adding.py.

00054 
00055     def isSingleMenuItem(self):
00056         return False

Definition at line 51 of file adding.py.

00051 
00052     def nameAllowed(self):
00053         return False

Definition at line 48 of file adding.py.

00048 
00049     def namesAccepted(self):
00050         return False

Definition at line 40 of file adding.py.

00040 
00041     def nextURL(self):
00042         url = str(getMultiAdapter((self.context, self.request), name=u"absolute_url"))
00043         return url + "/@@rules-controlpanel"

Here is the caller graph for this function:

Definition at line 44 of file adding.py.

00044 
00045     def renderAddButton(self):
00046         warn("The renderAddButton method is deprecated, use nameAllowed",
00047             DeprecationWarning, 2)

Here is the call graph for this function:


Member Data Documentation

Definition at line 23 of file adding.py.

Definition at line 21 of file adding.py.

Definition at line 27 of file adding.py.

Definition at line 22 of file adding.py.


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