Back to index

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

List of all members.

Public Member Functions

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

Public Attributes

 view
 manager

Static Public Attributes

tuple template = ViewPageTemplateFile('info_baseline.pt')

Private Member Functions

def _getReference

Detailed Description

Definition at line 77 of file info.py.


Member Function Documentation

Reimplemented from plone.app.iterate.browser.info.BaseInfoViewlet.

Definition at line 96 of file info.py.

00096 
00097     def _getReference( self ):
00098         refs = self.context.getBackReferenceImpl( WorkingCopyRelation.relationship )
00099         if len( refs ) > 0:
00100             return refs[0]
00101         else:
00102             return None
        

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 from plone.app.iterate.browser.info.BaseInfoViewlet.

Definition at line 81 of file info.py.

00081 
00082     def render(self):
00083         if self.working_copy() is not None and \
00084             getSecurityManager().checkPermission(ModifyPortalContent, self.context):
00085             return self.template()
00086         else:
00087             return ""

Here is the call graph for this function:

Definition at line 34 of file info.py.

00034 
00035     def update( self ):
00036         pass
    

Here is the caller graph for this function:

Definition at line 89 of file info.py.

00089 
00090     def working_copy( self ):
00091         refs = self.context.getBRefs( WorkingCopyRelation.relationship )
00092         if len( refs ) > 0:
00093             return refs[0]
00094         else:
00095             return None

Here is the caller graph for this function:


Member Data Documentation

Definition at line 32 of file info.py.

tuple plone.app.iterate.browser.info.BaselineInfoViewlet.template = ViewPageTemplateFile('info_baseline.pt') [static]

Definition at line 79 of file info.py.

Definition at line 31 of file info.py.


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