Comments (7)
Hi @AicyDC - it looks like I didn't actually try using the "variables" portion of the .vespene file - good catch and thanks for the report.
The code in question is https://github.com/vespene-io/vespene/blob/master/vespene/workers/importer.py
As you can see, it has no special value handling in 'attr_manage()' for the variables field, and it should.
What we should do is check if the type of any field is a dict, and if so, save the JSON version of that value.
What is happening is you are getting the stringification of the dictionary field, which is obviously no good.
I should be able to get to this in the next few days unless you want to have a go at it.
from _old_vespene.
essentially it just needs something like this:
if type(value) == dict:
value = json.dumps(value)
from _old_vespene.
or better, probably:
value = json.dumps(value, indent=4)
(This preserves format because we are still storing those as text for slightly better DB compatibility, and because of some issues with the forms code and the JSON field class)
from _old_vespene.
Thanks for the quick reply, unfortunately I do not know python very well so will not be having a go at it myself.
from _old_vespene.
No problem!
from _old_vespene.
Just wanted to say I haven't forgotten about this one. Various other things coming up but this should still be an easy change. Thanks for all the forum feedback!
from _old_vespene.
Apologies on losing track of this one, I've just pushed the two line fix mentioned above.
Thanks!
from _old_vespene.
Related Issues (20)
- Implement multiple YAML documents inside a .vespene file
- Implement a copy project button
- Add better docs on output variables
- Cannot login to Vespene forum using Github Account HOT 1
- 0_common.sh script not properly detecting sudo HOT 6
- Make sudo user field required w/ a default
- Make console errors from worker process more self-explanatory
- Have a clearer error message when the repo_url is filled out but the repo type is not set
- Seem official website is down HOT 2
- docs: Detail the setup process HOT 1
- Make an autoscaling plugin HOT 1
- Convert all manually constructed routes to programmatically reversed routes
- Implement webhook support for arbitrary branches
- Verify that html escaping is done on any Django messages HOT 2
- raise AssertionError("database connection isn't set to UTC") HOT 4
- Incorporate setup feedback
- Implement widgets for detail pages
- Expose sudo permissions on the worker pool object
- In the setup docs, mention sudo groups HOT 2
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 _old_vespene.