from fb_tools.errors import FbError
from fb_tools.obj import FbBaseObject
-__version__ = '0.1.1'
+__version__ = '0.1.2'
LOG = logging.getLogger(__name__)
res = {}
for key in self._map.keys():
value = self._map[key]
- if isinstance(value, FbBaseObject):
+ if isinstance(value, [FbBaseObject, CaseInsensitiveDict]):
res[key] = value.as_dict(short=short)
else:
res[key] = copy.copy(value)
return res
+ # -------------------------------------------------------------------------
+ def __copy__(self):
+
+ new_dict = self.__class__()
+ for key in self._map.keys():
+ new_dict[key] = copy.copy(self._map[key])
+
+ return new_dict
+
# -------------------------------------------------------------------------
def set_key(self, key, *args):