Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
plone.app.iterate.browser.info.BaseInfoViewlet Class Reference
Inheritance diagram for plone.app.iterate.browser.info.BaseInfoViewlet:
Inheritance graph
[legend]
Collaboration diagram for plone.app.iterate.browser.info.BaseInfoViewlet:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def update
def render
def created
def creator
def creator_url
def creator_name
def properties

Public Attributes

 view
 manager

Private Member Functions

def _getReference

Private Attributes

 __parent__

Detailed Description

Definition at line 24 of file info.py.


Constructor & Destructor Documentation

def plone.app.iterate.browser.info.BaseInfoViewlet.__init__ (   self,
  context,
  request,
  view,
  manager 
)

Definition at line 28 of file info.py.

00028 
00029     def __init__( self, context, request, view, manager ):
00030         super( BaseInfoViewlet, self ).__init__( context, request )
00031         self.__parent__ = view
00032         self.view = view
00033         self.manager = manager
        

Here is the caller graph for this function:


Member Function Documentation

Reimplemented in plone.app.iterate.browser.info.CheckoutInfoViewlet, and plone.app.iterate.browser.info.BaselineInfoViewlet.

Definition at line 74 of file info.py.

00074 
00075     def _getReference( self ):
00076         raise NotImplemented
        

Here is the caller graph for this function:

Definition at line 41 of file info.py.

00041 
00042     def created( self ):
00043         time = self.properties.get( keys.checkout_time, DateTime() )
00044         util = getToolByName(self.context, 'translation_service')
00045         return util.ulocalized_time(time, None, self.context, domain='plonelocales')

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 47 of file info.py.

00047 
00048     def creator( self ):
00049         user_id = self.properties.get( keys.checkout_user )
00050         membership = getToolByName(self.context, 'portal_membership')
00051         if not user_id:
00052             return membership.getAuthenticatedMember()
00053         return membership.getMemberById( user_id )
        

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 61 of file info.py.

00061 
00062     def creator_name( self ):
00063         creator = self.creator()
00064         return creator.getProperty('fullname') or creator.getId()

Here is the call graph for this function:

Definition at line 55 of file info.py.

00055 
00056     def creator_url( self ):
00057         creator = self.creator()
00058         portal_url = getToolByName(self.context, 'portal_url')
00059         return "%s/author/%s" % ( portal_url(), creator.getId() )
        

Here is the call graph for this function:

Definition at line 67 of file info.py.

00067 
00068     def properties( self ):
00069         wc_ref = self._getReference()
00070         if wc_ref is not None:
00071             return get_storage( wc_ref )
00072         else:
00073             return {}

Here is the call graph for this function:

Reimplemented in plone.app.iterate.browser.info.CheckoutInfoViewlet, and plone.app.iterate.browser.info.BaselineInfoViewlet.

Definition at line 37 of file info.py.

00037 
00038     def render( self ):
00039         raise NotImplementedError
        

Definition at line 34 of file info.py.

00034 
00035     def update( self ):
00036         pass
    

Here is the caller graph for this function:


Member Data Documentation

Definition at line 30 of file info.py.

Definition at line 32 of file info.py.

Definition at line 31 of file info.py.


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