Back to index

plone3  3.1.7
Public Member Functions
plone.app.content.browser.foldercontents.FolderContentsView Class Reference
Inheritance diagram for plone.app.content.browser.foldercontents.FolderContentsView:
Inheritance graph
[legend]
Collaboration diagram for plone.app.content.browser.foldercontents.FolderContentsView:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def contents_table
def title
def icon
def parent_url

Detailed Description

Definition at line 22 of file foldercontents.py.


Member Function Documentation

Definition at line 27 of file foldercontents.py.

00027 
00028     def contents_table(self):
00029         table = FolderContentsTable(self.context, self.request)
00030         return table.render()

Here is the call graph for this function:

Definition at line 36 of file foldercontents.py.

00036 
00037     def icon(self):
00038         """
00039         """
00040         ploneview = getMultiAdapter((self.context, self.request), name="plone")
00041         icon = ploneview.getIcon(self.context)
00042         return icon.html_tag()

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 43 of file foldercontents.py.

00043 
00044     def parent_url(self):
00045         """
00046         """
00047         portal_url = getToolByName(self.context, 'portal_url')
00048         plone_utils = getToolByName(self.context, 'plone_utils')
00049         portal_membership = getToolByName(self.context, 'portal_membership')
00050 
00051         obj = self.context
00052 
00053         checkPermission = portal_membership.checkPermission
00054 
00055         # Abort if we are at the root of the portal
00056         if IPloneSiteRoot.providedBy(self.context):
00057             return None
00058         
00059 
00060         # Get the parent. If we can't get it (unauthorized), use the portal
00061         parent = aq_parent(aq_inner(obj))
00062         
00063         # # We may get an unauthorized exception if we're not allowed to access#
00064         # the parent. In this case, return None
00065         try:
00066             if getattr(parent, 'getId', None) is None or \
00067                    parent.getId() == 'talkback':
00068                 # Skip any Z3 views that may be in the acq tree;
00069                 # Skip past the talkback container if that's where we are
00070                 parent = aq_parent(aq_inner(parent))
00071 
00072             if not checkPermission('List folder contents', parent):
00073                 return None
00074     
00075             return parent.absolute_url()
00076 
00077         except Unauthorized:
00078             return None        

Here is the call graph for this function:

Definition at line 31 of file foldercontents.py.

00031 
00032     def title(self):
00033         """
00034         """
00035         return self.context.pretty_title_or_id()

Here is the caller graph for this function:


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