Back to index

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

List of all members.

Public Member Functions

def __init__
def branchName
def clone

Public Attributes

 timestamp
 history_id
 version_id
 status
 user_id

Static Public Attributes

 sticky = None
int CHECKED_OUT = 0
int CHECKED_IN = 1

Static Private Attributes

int __allow_access_to_unprotected_subobjects__ = 1

Detailed Description

A VersionInfo object contains bookkeeping information for version
   controlled objects. The bookkeeping information can be read (but
   not changed) by restricted code.

Definition at line 44 of file Utility.py.


Constructor & Destructor Documentation

def ZopeVersionControl.Utility.VersionInfo.__init__ (   self,
  history_id,
  version_id,
  status 
)

Definition at line 51 of file Utility.py.

00051 
00052     def __init__(self, history_id, version_id, status):
00053         self.timestamp = time.time()
00054         self.history_id = history_id
00055         self.version_id = version_id
00056         self.status = status
00057         self.user_id = _findUserId()


Member Function Documentation

Definition at line 63 of file Utility.py.

00063 
00064     def branchName(self):
00065         if self.sticky is not None and self.sticky[0] == 'B':
00066             return self.sticky[1]
00067         return 'mainline'

def ZopeVersionControl.Utility.VersionInfo.clone (   self,
  clear_sticky = 0 
)

Definition at line 68 of file Utility.py.

00068 
00069     def clone(self, clear_sticky=0):
00070         info = VersionInfo(self.history_id, self.version_id, self.status)
00071         dict = info.__dict__
00072         for name, value in self.__dict__.items():
00073             dict[name] = value
00074         if clear_sticky:
00075             if dict.has_key('sticky'):
00076                 del dict['sticky']
00077         info.user_id = _findUserId()
00078         info.timestamp = time.time()
00079         return info
00080 
00081 InitializeClass(VersionInfo)
00082 
00083 

Here is the call graph for this function:


Member Data Documentation

Definition at line 49 of file Utility.py.

Definition at line 61 of file Utility.py.

Definition at line 60 of file Utility.py.

Definition at line 53 of file Utility.py.

Definition at line 55 of file Utility.py.

Definition at line 58 of file Utility.py.

Definition at line 52 of file Utility.py.

Definition at line 56 of file Utility.py.

Definition at line 54 of file Utility.py.


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