Have done so, but its more the plumbing of the JSON output that was wanting to get right, rather than inserting the result of a query in secondary table that would be dropped each time. Then there is the issue of lazy loading for more extensive datasets. Was hoping for a more canned solution. (had been dragging this project out looking for something)
On Wednesday, April 4, 2012 6:52:37 AM UTC+10, Niphlod wrote: > > have you looked into http://dev.s-cubism.com/plugin_jstree and > http://dev.s-cubism.com/plugin_mptt ? > I had a requirement similar (4 level nested structure) and ended writing > the logic in web2py and using jstree as a ui in the frontend...... > I defintely learned some javascript in the way, but at the time those > wonderful plugins didn't exist :P > > Il giorno martedì 3 aprile 2012 12:04:05 UTC+2, Simon Ashley ha scritto: >> >> Nope, can probably do this as a dict/ json variable. >> Its the linking the to javascript stuff that was causing the concern. >> (attempting a dynatree solution) >> Could be coming the the realisation that need python plus javascript >> skills to make things work as a replacement for a c/s framework. >> >> >> On Tuesday, April 3, 2012 4:25:52 PM UTC+10, mart wrote: >>> >>> do you mean that you are looking to parse a directory structure (7 dirs >>> deep) and dump the results to tables ? >>> >>> On Monday, April 2, 2012 8:21:12 PM UTC-4, Simon Ashley wrote: >>>> >>>> Pretty new to this and stumbling a little. >>>> We need to generate a Treeview structure with the bottom node ending >>>> with some links to other pages (graphs etc) >>>> >>>> Have a 7 level deep structure (each level in a different table) with >>>> each level have a table format simple to the following: >>>> db.define_table('node', Field('parent',db.parent), Field('node_name')) >>>> Tables will be maintained using smartgrid >>>> >>>> The intention is to use jsTree or similiar loaded/ rendered from a JSON >>>> response. >>>> (structure could get big so may need to look at some dynamic loading) >>>> >>>> Was wondering if there is some sample code/ app that some one is will >>>> to share to shed some light on which way to go? >>>> (have looked at sqlabs but that's not giving us the fuller picture) >>>> >>>> TIA >>>> >>> On Wednesday, April 4, 2012 6:52:37 AM UTC+10, Niphlod wrote: > > have you looked into http://dev.s-cubism.com/plugin_jstree and > http://dev.s-cubism.com/plugin_mptt ? > I had a requirement similar (4 level nested structure) and ended writing > the logic in web2py and using jstree as a ui in the frontend...... > I defintely learned some javascript in the way, but at the time those > wonderful plugins didn't exist :P > > Il giorno martedì 3 aprile 2012 12:04:05 UTC+2, Simon Ashley ha scritto: >> >> Nope, can probably do this as a dict/ json variable. >> Its the linking the to javascript stuff that was causing the concern. >> (attempting a dynatree solution) >> Could be coming the the realisation that need python plus javascript >> skills to make things work as a replacement for a c/s framework. >> >> >> On Tuesday, April 3, 2012 4:25:52 PM UTC+10, mart wrote: >>> >>> do you mean that you are looking to parse a directory structure (7 dirs >>> deep) and dump the results to tables ? >>> >>> On Monday, April 2, 2012 8:21:12 PM UTC-4, Simon Ashley wrote: >>>> >>>> Pretty new to this and stumbling a little. >>>> We need to generate a Treeview structure with the bottom node ending >>>> with some links to other pages (graphs etc) >>>> >>>> Have a 7 level deep structure (each level in a different table) with >>>> each level have a table format simple to the following: >>>> db.define_table('node', Field('parent',db.parent), Field('node_name')) >>>> Tables will be maintained using smartgrid >>>> >>>> The intention is to use jsTree or similiar loaded/ rendered from a JSON >>>> response. >>>> (structure could get big so may need to look at some dynamic loading) >>>> >>>> Was wondering if there is some sample code/ app that some one is will >>>> to share to shed some light on which way to go? >>>> (have looked at sqlabs but that's not giving us the fuller picture) >>>> >>>> TIA >>>> >>>