Pyecore-py2

Latest version: v0.9.0

Safety actively analyzes 630130 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 7

0.7.13

++++++

**Bugfixes**

- Fix bad ``EAttribute`` decoding for XMI root element. By default, each field
of an XMI root were decoded as strings instead of making use of the
``from_string(...)`` method from the type of each attribute. This case is not
very common, but could still occur.

0.7.12

++++++

**Features**

- Add option for specific XMI "type" field serialization. XMI uses a special
field to encode the type of the element. This field is almost always named:
``xsi:type``, but in some cases, ``xmi:type`` is used instead. To deal with such
cases, an option is now available: ``XMIOptions.OPTION_USE_XMI_TYPE``.

**Bugfixes**
- Add missing 'type' field for XMI href serialization. The 'xsi:type' field is
required when a crossreference is serialized. This field is used to check if
the resolved resource has the right type (not really, but it help). This
field is kinda optional at the moment for PyEcore, but required for Java-EMF,
otherwise the EMF will not be able to create the right proxy for the
crossreferenced resource.

0.7.8

++++++++++++

**Features**

- Add missing ``eAllAttributes()`` method for retriving all
``eStructuralFeatures`` that are ``EAttributes``.

**Bugfixes**

- Fix issue with double notification for x..1--x..* opposite references. When a
relationship with an eOpposite involving a x..1 and a x..* relationship, in
case the x..1 was set, the x..* opposite update was doing a "double set",
thus throwing two times the notification.

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

+++++

**Features**

- Add options support for JSON serialization. Currently, the only JSON
serialization option that is added is: ``SERIALIZE_DEFAULT_VALUE``. This
option allows the user to serialize feature values that are equal to the
default ones.


**Bugfixes**

- Fix bad default value for ``xxxObject`` data types. These data types (e.g:
``EIntegerObject``) must have a ``None`` default value as they do not represent
the Java boxed type, but their **object** version. This fix introduces a real
difference between boxed types and non-boxed types.

0.7.5

+++++

**Features**

- Add easier way of dynamically add behavior to ``EClass``. This features adds
the ability to register function to existing dynamic and static ``EClass``.

**Bugfixes**

- Fix missing exception when affecting single element to collection. When a
single assignement is done on a collection-kind meta-attribute, an exception
must be raised as the 'attribute' type is, somehow, modified.

**Miscellaneous**

- Improve the ``eResource`` management. This reduces memory footprint, slightly
improves big model serialization, and avoides 'unsync' objects with their
resource.

Page 3 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.