From 98cc3dcffb0e459935642682546490deee6e7ef1 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Tue, 2 May 2006 19:06:27 +0000 Subject: [PATCH] * src/RelLib/_BaseObject.py (PrivacyBase): Remove class, as it already has its own module. svn: r6519 --- ChangeLog | 2 ++ src/RelLib/_BaseObject.py | 38 -------------------------------------- 2 files changed, 2 insertions(+), 38 deletions(-) diff --git a/ChangeLog b/ChangeLog index b93350f92..e8ad00471 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,6 @@ 2006-05-02 Alex Roitman + * src/RelLib/_BaseObject.py (PrivacyBase): Remove class, as it + already has its own module. * src/AutoComp.py (StandardCustomSelector.fill): Adapt to new types. * src/GrampsDb/_GrampsBSDDB.py (gramps_upgrade_9): Add broken witness note. diff --git a/src/RelLib/_BaseObject.py b/src/RelLib/_BaseObject.py index 01ecdeeda..d83670fc2 100644 --- a/src/RelLib/_BaseObject.py +++ b/src/RelLib/_BaseObject.py @@ -167,41 +167,3 @@ class BaseObject: ret += obj.get_referenced_handles_recursively() return ret - -class PrivacyBase: - """ - Base class for privacy-aware objects. - """ - - def __init__(self,source=None): - """ - Initialize a PrivacyBase. If the source is not None, then object - is initialized from values of the source object. - - @param source: Object used to initialize the new object - @type source: PrivacyBase - """ - - if source: - self.private = source.private - else: - self.private = False - - def set_privacy(self,val): - """ - Sets or clears the privacy flag of the data - - @param val: value to assign to the privacy flag. True indicates that the - record is private, False indicates that it is public. - @type val: bool - """ - self.private = val - - def get_privacy(self): - """ - Returns the privacy level of the data. - - @returns: True indicates that the record is private - @rtype: bool - """ - return self.private