from .obj import BaseObjectError
from .obj import BaseObject
-__version__ = '0.4.0'
+__version__ = '0.5.0'
LOG = logging.getLogger(__name__)
return res
+ # -------------------------------------------------------------------------
+ def to_data(self):
+ """Returning a dict, which can be used to re-instantiate this module info."""
+
+ res = {}
+
+ res['name'] = self.name
+ res['vendor'] = self.vendor
+ res['full_name'] = self.full_name
+ res['full_name_orig'] = self.full_name_orig
+ res['forge_version'] = self.forge_version
+ res['forge_avail'] = self.forge_avail
+ res['forge_homepage_url'] = self.forge_homepage_url
+ res['forge_source'] = self.forge_source
+ res['repo'] = self.repo
+
+ red['local_versions'] = copy.copy(self.local_versions)
+ red['expected_versions'] = copy.copy(self.local_versions)
+ red['forge_releases'] = copy.copy(self.forge_releases)
+
+ return res
+
# -------------------------------------------------------------------------
def merge_in(self, other):