equal
deleted
inserted
replaced
119 |
119 |
120 Mainly used for logging from class methods, so most will just use |
120 Mainly used for logging from class methods, so most will just use |
121 self.logger property if it's an object instance. |
121 self.logger property if it's an object instance. |
122 ''' |
122 ''' |
123 if cls._DataObjectBase__logger is None: |
123 if cls._DataObjectBase__logger is None: |
124 cls._DataObjectBase__logger = \ |
124 cls._DataObjectBase__logger = logging.getLogger( |
125 logging.getLogger(INSTALL_LOGGER_NAME) |
125 INSTALL_LOGGER_NAME) |
126 return cls._DataObjectBase__logger |
126 return cls._DataObjectBase__logger |
|
127 |
|
128 @classmethod |
|
129 def reset_logger(cls): |
|
130 cls._DataObjectBase__logger = None |
127 |
131 |
128 @property |
132 @property |
129 def logger(self): |
133 def logger(self): |
130 '''Instance accessor for the logger. |
134 '''Instance accessor for the logger. |
131 |
135 |
1067 if delete_child: |
1071 if delete_child: |
1068 self.__delete_child(child, not_found_is_err) |
1072 self.__delete_child(child, not_found_is_err) |
1069 deleted_children = True |
1073 deleted_children = True |
1070 |
1074 |
1071 if not deleted_children and not_found_is_err: |
1075 if not deleted_children and not_found_is_err: |
1072 raise ObjectNotFoundError(\ |
1076 raise ObjectNotFoundError( |
1073 "No matching objects found: name = '%s' " |
1077 "No matching objects found: name = '%s' " |
1074 "and class_type = %s" % |
1078 "and class_type = %s" % |
1075 (str(name), str(class_type))) |
1079 (str(name), str(class_type))) |
1076 |
1080 |
1077 def delete(self): |
1081 def delete(self): |