Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
CMFUid.tests.test_uidannotation.DummyUniqueIdHandlerTool Class Reference
Inheritance diagram for CMFUid.tests.test_uidannotation.DummyUniqueIdHandlerTool:
Inheritance graph
[legend]
Collaboration diagram for CMFUid.tests.test_uidannotation.DummyUniqueIdHandlerTool:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def register
def unregister

Public Attributes

 counter

Detailed Description

Definition at line 44 of file test_uidannotation.py.


Constructor & Destructor Documentation

Definition at line 48 of file test_uidannotation.py.

00048 
00049     def __init__(self):
00050         self.counter = 0


Member Function Documentation

Definition at line 51 of file test_uidannotation.py.

00051 
00052     def register(self, ob):
00053 
00054         uid_assigner = getUtility(IUniqueIdAnnotationManagement)
00055         annotation = uid_assigner(ob, UID_ATTRNAME)
00056         annotation.setUid( self.counter )
00057         self.counter += 1

Here is the caller graph for this function:

Definition at line 58 of file test_uidannotation.py.

00058 
00059     def unregister(self, ob):
00060 
00061         try:
00062            delattr(ob, UID_ATTRNAME)
00063         except AttributeError:
00064            raise UniqueIdError
00065 

Here is the caller graph for this function:


Member Data Documentation

Definition at line 49 of file test_uidannotation.py.


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