Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Version 11 and Version 12 of DataGridWidget


Ignore:
Timestamp:
07/17/06 16:21:45 (13 years ago)
Author:
milde
Comment:

FastDataGrids? and Identity

Legend:

Unmodified
Added
Removed
Modified
  • DataGridWidget

    v11 v12  
    9393You can tweak FastDataGrid's representation to a certain extent by passing configuration options at "display time" (when you call grid.display() from your template). The following options are supported: `show_actions`, `show_add_link`, `add_link_title`, `delete_link_msg`. I hope their meaning is self-explaining. Most up-to-date list of these options can be found at the top of datagrid.kid file at turbogears.fastdata.templates sub-package. 
    9494 
     95== Using Identity with !FastDataGrid == 
     96 
     97To use IdentityManagement with a FastDataGrid, you must create a subclass of DataController and identity.SecureResource: 
     98 
     99{{{ 
     100class SecureDataController(DataController, identity.SecureResource): 
     101    pass 
     102}}} 
     103 
     104And to use it in a controller: 
     105 
     106{{{ 
     107class Root(controllers.RootController): 
     108    some_fastdatagrid = SecureDataController(sql_class=Whatever) 
     109    some_fastdatagrid.require = identity.in_group("some_group") 
     110}}} 
     111 
    95112== Customizing !DataGrid representation == 
    96113