Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
Merge branch 'release/0.7.7'
Browse files Browse the repository at this point in the history
  • Loading branch information
aranega committed Dec 6, 2017
2 parents d0b94bf + 22627dc commit 0c96529
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.7.6
current_version = 0.7.7
commit = True
tag = False
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+))?
Expand Down
15 changes: 15 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
Changelog
---------

0.7.7
+++++

**Bugfixes**

- Improve ``EClass`` dynamic modifications. The ``__init__`` method of the
``EClass`` was responsible for the registration of an 'eternal_listener'
(a listener that cannot be removed. In case the ``EClass`` instance was
created using ``__new__`` then using ``__init__`` to set some values in the
parameter, the listener was registered **after** the set of some values.
This implies that some modifications (name modification for example)
couldn't be took into account in the method that sync the python class with
the ``EClass`` instance.


0.7.6
+++++

Expand Down
2 changes: 1 addition & 1 deletion pyecore/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"""

__version__ = "0.7.6"
__version__ = "0.7.7"
8 changes: 4 additions & 4 deletions pyecore/ecore.py
Original file line number Diff line number Diff line change
Expand Up @@ -1014,16 +1014,16 @@ def new_init(self, *args, **kwargs):
instance.python_class = type(name,
instance.__compute_supertypes(),
attr_dict)
instance.__name__ = name
instance.__name__ = name
instance.supertypes_updater = EObserver()
instance.supertypes_updater.notifyChanged = instance.__update
instance._eternal_listener.append(instance.supertypes_updater)
return instance

def __init__(self, name=None, superclass=None, abstract=False,
metainstance=None, **kwargs):
super(EClass, self).__init__(name, **kwargs)
self.abstract = abstract
self.supertypes_updater = EObserver()
self.supertypes_updater.notifyChanged = self.__update
self._eternal_listener.append(self.supertypes_updater)

def __call__(self, *args, **kwargs):
if self.abstract:
Expand Down
2 changes: 1 addition & 1 deletion pyecore/notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

class ENotifer(object):
def __init__(self, **kwargs):
super(ENotifer, self).__init__(**kwargs)
super(ENotifer, self).__init__()

def notify(self, notification):
notification.notifier = notification.notifier or self
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setup(
name='pyecore-py2',
version='0.7.6',
version='0.7.7',
description=('A Python(ic) Implementation of the Eclipse Modeling '
'Framework (EMF/Ecore), Python 2.7 backport'),
long_description=open('README.rst').read(),
Expand Down

0 comments on commit 0c96529

Please sign in to comment.