Rearrange comments for added clarity

svn: r16601
This commit is contained in:
Gerald Britton 2011-02-11 14:03:02 +00:00
parent 82d4f8cb54
commit a8375c02df

View File

@ -622,19 +622,18 @@ class CheckIntegrity(object):
return self._check_empty(value, empty, flag) return self._check_empty(value, empty, flag)
return _f return _f
'''
Dispatch table for cleaning up empty objects. Each entry is
a tuple containing:
0. Type of object being cleaned up
1. function to read the object from the database
2. function returning cursor over the object type
3. function returning number of objects of this type
4. text identifying the object being cleaned up
5. function to check if the data is empty
6. function to remove the object, if empty
'''
table = ( table = (
# Dispatch table for cleaning up empty objects. Each entry is
# a tuple containing:
# 0. Type of object being cleaned up
# 1. function to read the object from the database
# 2. function returning cursor over the object type
# 3. function returning number of objects of this type
# 4. text identifying the object being cleaned up
# 5. function to check if the data is empty
# 6. function to remove the object, if empty
('persons', ('persons',
_db.get_person_from_handle, _db.get_person_from_handle,
_db.get_person_cursor, _db.get_person_cursor,