hi I am a new user to urwid and python and I am trying to build a 2D urwid application that takes as input a yml schema file (attached ) and displays it on the screen as it appears at this webpage : http://www.technion3ds.org/apply/
>From the list of applications at urwid's site I looked at two of them : d0Xbase and jsonwidget. http://sourceforge.net/projects/d0xbase/ http://blog.robla.net/2010/jsonwidget-python/ What i need is the 2D functionality from d0xbase and the input file handling facility from jsonwidget. however jsonwidget has a jsonfile editor. Could you suggest me the relevant links/sources/files/literature I should look at if I intend to resuse the ideas from above applications and build the application that i want to ? your help will be highly appreciated. thanks for your suggestions ! been trying to understand a lot of things - data serialization, yaml data types. came across the following links http://jessenoller.com/blog/2009/04/13/yaml-aint-markup-language-completely-different http://www.kuro5hin.org/story/2004/10/29/14225/062 Here is what I have been doing : The jsonwidget application has a utility jwc, running which throws up the following on screen : ------------------------------------------------------------------- [gehna@localhost jsonwidget-0.1.7]$ jwc Usage: jwc command filename Valid commands: editserver: launch a web server to edit a json file from a browser json2yaml: convert a json file to yaml with comments pulled from schema schemagen: create a schema from an example json file upgradeschema: create a version 2 schema from a version 1 schema validate: validate a schema yaml2json: convert a yaml file to json ------------------------------------------------------------------- So I use the last command yaml2json to convery my yaml schema file ApplyForm.yml into json schema file ApplyForm.json ( attached with the email) Now the problem or the task arises : Which files to look at and modify in jsonwidget directory? so that I can now parse this json file ApplyForm.json and create a urwid application that looks like this -> http://www.technion3ds.org/apply/ i understand that jsonwidget uses a function called jsonFileEditor. But I still need to do some modifications to the jsonwidget functions and files so that my ApplyForm.json gets read, displayed on screen, takes in values from user and saves the data in the form of a json file. Any ideas on how should i start ? which function to modify or look at ? lately i am using ddd and pydb to investigate but still to reach to a comfort level where i can understand how data gets parsed and how the python code stores the data from the schema file -- Kind Regards Tauseef MSc (EE) 2011-2013 Technion, Haifa Israel Phone: +972-0527213167
ApplyForm.yml
Description: Binary data
_______________________________________________ Urwid mailing list [email protected] http://lists.excess.org/mailman/listinfo/urwid
