Did you code this already? Can you send the code. I like it a lot.
new patch with small changes
Jose--
Not yet. It is the queue.....
Not yet. It is the queue.....
El miércoles, 19 de diciembre de 2012 19:50:53 UTC-3, Massimo Di Pierro escribió:Not yet. It is the queue.....
I've moved the table style to web2py.css and changed the xml generation with helpers to cleanup appadmin. Attached are the proposed diffs for appadmin.py and web2py.css.
> On Tuesday, December 25, 2012 12:45:31 PM UTC-3, Jose wrote:
El miércoles, 19 de diciembre de 2012 19:50:53 UTC-3, Massimo Di Pierro escribió:Not yet. It is the queue.....
If you are using mercurial trunk with Linux try:
web2py path]$ touch NEWINSTALL
And restart web2py. I think this is required for updating the welcome installer.
I've moved the table style to web2py.css and changed the xml generation with helpers to cleanup appadmin. Attached are the proposed diffs for appadmin.py and web2py.css.
Oops! That would never work (sorry, I didn't know the library requires special html input). This new patch instead uses helpers for creating the model image. Forget about the css diff (it's useless).
Too bad graphviz does not accept css (and the "< <source> >" is weird also). I wonder if there is any alternative library with similar functionality. Maybe something to produce an svg visual model with a simple API. Am I asking too much?
--
> El viernes, 28 de diciembre de 2012 15:34:49 UTC-3, Ramos escribió:D3js
I'm looking at the awsome examples of D3.js at http://d3js.org/
The thing is that I can't find anything pre-built to show a relational database scheme as graphviz does.
--
Hi,
just to clarify please... is this to show the model using a graphical model?
Or is it for extending the DAL to support Graph database models ?
--Luc.
‘dia’
‘canon’, ‘cmap’, ‘cmapx’, ‘cmapx_np’, ‘dia’, ‘dot’, ‘fig’, ‘gd’, ‘gd2’, ‘gif’, ‘hpgl’, ‘imap’, ‘imap_np’, ‘ismap’, ‘jpe’, ‘jpeg’, ‘jpg’, ‘mif’, ‘mp’, ‘pcl’, ‘pdf’, ‘pic’, ‘plain’, ‘plain-ext’, ‘png’, ‘ps’, ‘ps2’, ‘svg’, ‘svgz’, ‘vml’, ‘vmlz’, ‘vrml’, ‘vtx’, ‘wbmp’, ‘xdot’, ‘xlib’
print 'digraph Bloques{\n' \
'ranksep="2"\n' \
'splines="true"\n'
for table in db:
for field in table:
if field.type.startswith('reference'):
t = '%s -> %s'%(table, field.type[10:])
type = field.type[10:]
elif field.type.startswith('list:reference'):
t = '%s -> %s [arrowhead="veevee" ]'%(table, field.type[15:])
else: continue
if field.name!=type:
t += '[ label = "%s" ]'%field.name
print t
print '}'
http://code.google.com/p/canviz/
I'm not sure it does what Massimo wants, because it might need the coordinates of the points, that are obtained with a call to 'dot'.the only issue with the current implementation in trunk is that on Windows it's almost impossible to get it going, due to the requirements.
--
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Ps.: I made some subgraph/filtering features, when graph model is big (hundreds of tables), but with JS it might work nicer..
Hi, I would be interested!
Ps.: I made some subgraph/filtering features, when graph model is big (hundreds of tables), but with JS it might work nicer..
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
+1 for D3no need to install graphviz and pygraphviz on the server...
2016-11-16 13:56 GMT+00:00 Richard Vézina <ml.richa...@gmail.com>:
Could we keep both rendering mechanism graphviz + d3?
On Wed, Nov 16, 2016 at 4:38 AM, Andrew Willimott <will...@gmail.com> wrote:
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
+1 for D3 here
web2py with a d3 interactive front end is a good topic. Interested to know more as I'm working on this too.