El miércoles, 12 de junio de 2013 11:59:02 UTC-3, Michael Nagy escribió:
>
> Hi - I am a new web2py and graphviz user who finds the 'graph model' 
> graphic generation to be invaluable.  It isn't apparent how, or if, it is 
> possible to specify the title text for the generated graphic, however.  I 
> always see 'Undefined'.  I can save as a .dot file, manually edit it, and 
> redisplay with graphviz, but I figure there is some simple way I have not 
> found to specify the test in db.py (most likely).  Anyone know how?
>
> - Michael
>

Hi Michael

You could have something like

models/db_zmeta.py

#if not IS_IN_PRODUCTION:

    meta_users = dict(group=u'Usuarios y Permisos', color='#F5D3FF')
    db.auth_user._meta_graphmodel = meta_users
    db.auth_group._meta_graphmodel = meta_users
    db.auth_membership._meta_graphmodel = meta_users
    db.auth_permission._meta_graphmodel = meta_users
    db.auth_event._meta_graphmodel = meta_users
    db.auth_cas._meta_graphmodel = meta_users

    meta_datos_basicos = dict(group=u'Datos Básicos', color='#CEFFA7')
    db.provincias._meta_graphmodel = meta_datos_basicos
    db.actividades_productivas._meta_graphmodel = meta_datos_basicos
    db.zonas._meta_graphmodel = meta_datos_basicos

This allows you to group the tables in graph.

Jose 

-- 

--- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to