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 4 and Version 5 of DataController


Ignore:
Timestamp:
06/24/07 18:10:07 (12 years ago)
Author:
Chris Arndt
Comment:

migration notice

Legend:

Unmodified
Added
Removed
Modified
  • DataController

    v4 v5  
    1 = DataController = 
    2  
    3 {{{DataController}}} is a main module in fastdata. 
    4  
    5 {{{DataController}}} is a fast method to provide CRUD(Create, Remove, Update, Delete)functionality. 
    6  
    7 You can use this simple function to provide CRUD and customize the DataController's presentation by CSS. 
    8  
    9  
    10 == Install tgfastdata == 
    11 Now fastdata is split from {{{TurboGears}}} core and become a plugin. 
    12  
    13 Before take advantage of {{{DataController}}}, you need install fastdata plugin first. 
    14  
    151{{{ 
    16 $ easy_install tgfastdata  
     2#!rst 
     3.. note:: This page has been migrated to http://docs.turbogears.org/1.0/DataController. 
    174}}} 
    18  
    19 == Use DataController == 
    20  
    21  
    22 {{{ 
    23 # controllers.py 
    24 from tgfastdata import DataController 
    25  
    26 class MyApp(controllers.RootController): 
    27     mycrud = DataController(MyModelClass) # provides a quick 
    28                                           # 'n' dirty CatWalk-like 
    29                                           # CRUD interface for your MyModelClass 
    30 }}} 
    31  
    32 TODO: 
    33 Provide more information on how to customise this, eg. get the generated page to extend master.kid