Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
Archetypes.tests.test_rename.Counter Class Reference

List of all members.

Public Member Functions

def __init__
def add
def reset
def get

Public Attributes

 ids

Detailed Description

Definition at line 45 of file test_rename.py.


Constructor & Destructor Documentation

Definition at line 47 of file test_rename.py.

00047 
00048     def __init__(self):
00049         self.ids = {}

Here is the caller graph for this function:


Member Function Documentation

def Archetypes.tests.test_rename.Counter.add (   self,
  uid 
)

Definition at line 50 of file test_rename.py.

00050 
00051     def add(self, uid):
00052         if not self.ids.has_key(uid):
00053             self.ids[uid] = 0
00054         self.ids[uid] += 1

Here is the caller graph for this function:

def Archetypes.tests.test_rename.Counter.get (   self,
  uid 
)

Definition at line 58 of file test_rename.py.

00058 
00059     def get(self, uid):
00060         if not self.ids.has_key(uid):
00061             self.ids[uid] = 0
00062         return self.ids[uid]

Here is the caller graph for this function:

Definition at line 55 of file test_rename.py.

00055 
00056     def reset(self):
00057         self.__init__()

Here is the caller graph for this function:


Member Data Documentation

Definition at line 48 of file test_rename.py.


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