Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes
ZopeVersionControl.ZopeVersion.ZopeVersion Class Reference
Inheritance diagram for ZopeVersionControl.ZopeVersion.ZopeVersion:
Inheritance graph
[legend]
Collaboration diagram for ZopeVersionControl.ZopeVersion.ZopeVersion:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def manage_edit
def getId
def saveState
def copyState
def stateCopy

Public Attributes

 id
 date_created

Static Public Attributes

tuple security = AccessControl.ClassSecurityInfo()
string meta_type = 'Version'
tuple manage_options
string icon = 'misc_/ZopeVersionControl/Version.gif'
tuple manage_main = DTMLFile('dtml/VersionManageMain', globals())
 manage = manage_main
tuple manage_properties_form = DTMLFile('dtml/VersionProperties', globals())
string branch = 'mainline'
 prev = None
tuple next = ()

Detailed Description

The ZopeVersion class builds on the core Version class to provide
   the Zope management interface and other product trappings.

Definition at line 25 of file ZopeVersion.py.


Member Function Documentation

Return an independent deep copy of the state of the version.

Definition at line 99 of file Version.py.

00099 
00100     def copyState(self):
00101         """Return an independent deep copy of the state of the version."""
00102         data = self.__dict__.get('_data')  # Avoid __of__ hooks
00103         return self.stateCopy(data, self)

Here is the call graph for this function:

def ZopeVersionControl.Version.Version.getId (   self) [inherited]

Definition at line 89 of file Version.py.

00089 
00090     def getId(self):
00091         return self.id

def ZopeVersionControl.ZopeVersion.ZopeVersion.manage_edit (   self,
  REQUEST = None 
)
Change object properties.

Definition at line 57 of file ZopeVersion.py.

00057 
00058     def manage_edit(self, REQUEST=None):
00059         """Change object properties."""
00060         if REQUEST is not None:
00061             message="Saved changes."
00062             return self.manage_properties_form(
00063                 self, REQUEST, manage_tabs_message=message
00064 
00065                 )
00066 
00067 InitializeClass(ZopeVersion)

Here is the caller graph for this function:

def ZopeVersionControl.Version.Version.saveState (   self,
  obj 
) [inherited]
Save the state of object as the state for this version of
   a version-controlled resource.

Definition at line 93 of file Version.py.

00093 
00094     def saveState(self, obj):
00095         """Save the state of object as the state for this version of
00096            a version-controlled resource."""
00097         self._data = self.stateCopy(obj, self)

Here is the call graph for this function:

def ZopeVersionControl.Version.Version.stateCopy (   self,
  obj,
  container 
) [inherited]
Get a deep copy of the state of an object.

Breaks any database identity references.

Definition at line 105 of file Version.py.

00105 
00106     def stateCopy(self, obj, container):
00107         """Get a deep copy of the state of an object.
00108 
00109         Breaks any database identity references.
00110         """
00111         ignore = listNonVersionedObjects(obj)
00112         res = cloneByPickle(aq_base(obj), ignore)
00113         removeNonVersionedData(res)
00114         return res
00115 
00116 
00117 InitializeClass(Version)

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

string ZopeVersionControl.Version.Version.branch = 'mainline' [static, inherited]

Definition at line 82 of file Version.py.

Definition at line 74 of file Version.py.

string ZopeVersionControl.ZopeVersion.ZopeVersion.icon = 'misc_/ZopeVersionControl/Version.gif' [static]

Definition at line 44 of file ZopeVersion.py.

Definition at line 73 of file Version.py.

Definition at line 49 of file ZopeVersion.py.

tuple ZopeVersionControl.ZopeVersion.ZopeVersion.manage_main = DTMLFile('dtml/VersionManageMain', globals()) [static]

Definition at line 47 of file ZopeVersion.py.

Initial value:
(
        ( {'label': 'Information',  'action':'manage_main',
           'help': ('ZopeVersionControl', 'Version-Manage.stx')},
          {'label': 'Properties', 'action':'manage_properties_form',
           'help': ('ZopeVersionControl', 'Version-Properties.stx')},
        ) +
        AccessControl.Role.RoleManager.manage_options +
        OFS.SimpleItem.Item.manage_options
        )

Definition at line 34 of file ZopeVersion.py.

tuple ZopeVersionControl.ZopeVersion.ZopeVersion.manage_properties_form = DTMLFile('dtml/VersionProperties', globals()) [static]

Definition at line 54 of file ZopeVersion.py.

Definition at line 32 of file ZopeVersion.py.

tuple ZopeVersionControl.Version.Version.next = () [static, inherited]

Definition at line 84 of file Version.py.

ZopeVersionControl.Version.Version.prev = None [static, inherited]

Definition at line 83 of file Version.py.

tuple ZopeVersionControl.ZopeVersion.ZopeVersion.security = AccessControl.ClassSecurityInfo() [static]

Reimplemented from ZopeVersionControl.Version.Version.

Definition at line 29 of file ZopeVersion.py.


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