Comments (4)
Hi Mike,
Thanks a lot for your encouragement! As you saw, the implementation is still rough on the edges and the issue you have is a good example of it.
About this, I see two solutions:
- modify the generator in order to map
EIntegerObject
toEInteger
(as you propose), - create and add the
EIntegerObject
into PyEcore directly (inecore.py
).
To be honnest, I'm unable to say which one is the better. The "mapping" in the generator was here to quickly (and badly) managed some types from XMLTypes.ecore
withtout embedding/loading the file. So I would tend to say that the second solution seems slightly better as it also introduces a new kind of semantic information (as the choice of EIntegerObject
over EInteger
or EInt
have been made in the metamodel during modeling). What do you think about it?
Anyway, I totally accept PR, they are more than welcome. Also, I would be happy to get any PR you could propose.
Thanks again Mike!
Vince
from pyecore.
Thank you for the friendly welcome! You're probably right to better add types directly to ecore.py
. I'll look at it and make suggestions via PR. Which branch do you suggest to submit PRs for?
from pyecore.
If you could sumbit every PR to the develop
branch, it would be perfect, as I need to check first how to properly manage hotfixes with 'gitflow' and how it will react with how 'bumpversion' is used in the project.
Once again, thanks Mike, that's so great to see people interested by this project and who contribute to it!
from pyecore.
Again Mike, thanks a lot for your PR. I will make a release to bump from 0.1.4 to 0.1.5 probably today also on pypi (unless you have more PR to do ;) ). I will close the issue in the same time.
from pyecore.
Related Issues (20)
- decode of many references in external resources failed HOT 5
- Empty resource.contents after autoload HOT 3
- Problem during serialization (resolve URIFragment) HOT 1
- Shall derived features be serialized? HOT 2
- How to create an association with multiplicities dynamically? HOT 2
- Problems Adding External resources with references in JSON HOT 9
- Problem occured when I using pyecore HOT 1
- Populate classes generated with pyecoregen HOT 5
- Different behavior between generated model and dynamic loaded HOT 6
- EProxy and Hashes HOT 1
- Empty instance list not serialized HOT 9
- AttributeError for EDerivedCollection HOT 2
- EEnum definitions are serialized with the wrong EPackage HOT 10
- Reproducible attribute order HOT 25
- Release a new version HOT 7
- Mixins not working properly HOT 2
- New version breaks serialization of $ref's in pyecoregen-generated metamodel HOT 5
- get all properties of a model element HOT 2
- Diffing Functionality on top of pyecore HOT 1
- BadValueError, str not converted to Integer(int) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyecore.