Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
plone.app.iterate.archiver.ContentArchiver Class Reference

List of all members.

Public Member Functions

def __init__
def save
def isVersionable
def isVersioned
def isModified

Public Attributes

 context
 repository

Detailed Description

Definition at line 33 of file archiver.py.


Constructor & Destructor Documentation

Definition at line 38 of file archiver.py.

00038 
00039     def __init__( self, context ):
00040         self.context = context
00041         self.repository = getToolByName(context, 'portal_repository')

Here is the caller graph for this function:


Member Function Documentation

Definition at line 55 of file archiver.py.

00055 
00056     def isModified( self ):
00057         try:
00058             return not self.repository.isUpToDate( self.context )
00059         except:
00060             return False

Definition at line 45 of file archiver.py.

00045 
00046     def isVersionable( self ):
00047         if not self.repository.isVersionable( self.context ):
00048             return False
00049         return True

Definition at line 50 of file archiver.py.

00050 
00051     def isVersioned( self ):
00052         archivist = getToolByName(self.context, 'portal_archivist')
00053         version_count = len( archivist.queryHistory( self.context ) )
00054         return bool( version_count )

Here is the call graph for this function:

def plone.app.iterate.archiver.ContentArchiver.save (   self,
  checkin_message 
)

Definition at line 42 of file archiver.py.

00042 
00043     def save( self, checkin_message ):
00044         self.repository.save( self.context, checkin_message )

Here is the caller graph for this function:


Member Data Documentation

Definition at line 39 of file archiver.py.

Definition at line 40 of file archiver.py.


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