Back to index

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

List of all members.

Public Member Functions

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

Static Public Attributes

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

Detailed Description

Definition at line 15 of file adding.py.


Member Function Documentation

Add the rule to the context

Definition at line 25 of file adding.py.

00025 
00026     def add(self, content):
00027         """Add the rule to the context
00028         """
00029         context = aq_inner(self.context)
00030         manager = aq_base(context)
00031         
00032         IPortletPermissionChecker(context)()
00033         
00034         chooser = INameChooser(manager)
00035         manager[chooser.chooseName(None, content)] = content
        

Here is the caller graph for this function:

Definition at line 58 of file adding.py.

00058 
00059     def addingInfo():
00060         return None

Definition at line 55 of file adding.py.

00055 
00056     def contentName(self):
00057          return None

Here is the caller graph for this function:

Definition at line 64 of file adding.py.

00064 
00065     def hasCustomAddView():
00066         return 0

Definition at line 61 of file adding.py.

00061 
00062     def isSingleMenuItem():
00063         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 36 of file adding.py.

00036 
00037     def nextURL(self):
00038         referer = self.request.get('referer')
00039         if not referer:
00040             context = aq_parent(aq_inner(self.context))
00041             url = str(getMultiAdapter((context, self.request), name=u"absolute_url"))
00042             referer = url + '/@@manage-portlets'
00043         return referer

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 18 of file adding.py.

Definition at line 23 of file adding.py.

Definition at line 19 of file adding.py.


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