Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Private Attributes
CMFCore.ActionInformation.oai Class Reference

List of all members.

Public Member Functions

def __init__
def __getitem__

Public Attributes

 portal
 isAnonymous
 user_id
 portal_url
 folder_url
 folder
 object
 content
 content_url
 object_url

Static Private Attributes

int __allow_access_to_unprotected_subobjects__ = 1

Detailed Description

Definition at line 495 of file ActionInformation.py.


Constructor & Destructor Documentation

def CMFCore.ActionInformation.oai.__init__ (   self,
  tool,
  folder,
  object = None 
)

Definition at line 502 of file ActionInformation.py.

00502 
00503     def __init__( self, tool, folder, object=None ):
00504         self.portal = portal = aq_parent(aq_inner(tool))
00505         membership = getToolByName(tool, 'portal_membership')
00506         self.isAnonymous = membership.isAnonymousUser()
00507         self.user_id = membership.getAuthenticatedMember().getId()
00508         self.portal_url = portal.absolute_url()
00509         if folder is not None:
00510             self.folder_url = folder.absolute_url()
00511             self.folder = folder
00512         else:
00513             self.folder_url = self.portal_url
00514             self.folder = portal
00515 
00516         # The name "content" is deprecated and will go away in CMF 2.0!
00517         self.object = self.content = object
00518         if object is not None:
00519             self.content_url = self.object_url = object.absolute_url()
00520         else:
00521             self.content_url = self.object_url = None


Member Function Documentation

def CMFCore.ActionInformation.oai.__getitem__ (   self,
  name 
)

Definition at line 522 of file ActionInformation.py.

00522 
00523     def __getitem__(self, name):
00524         # Mapping interface for easy string formatting.
00525         if name[:1] == '_':
00526             raise KeyError, name
00527         if hasattr(self, name):
00528             return getattr(self, name)
00529         raise KeyError, name

Here is the caller graph for this function:


Member Data Documentation

Definition at line 500 of file ActionInformation.py.

Definition at line 516 of file ActionInformation.py.

Definition at line 518 of file ActionInformation.py.

Definition at line 510 of file ActionInformation.py.

Definition at line 509 of file ActionInformation.py.

Definition at line 505 of file ActionInformation.py.

Definition at line 516 of file ActionInformation.py.

Definition at line 518 of file ActionInformation.py.

Definition at line 503 of file ActionInformation.py.

Definition at line 507 of file ActionInformation.py.

Definition at line 506 of file ActionInformation.py.


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