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 3 and Version 4 of WidgetsProposal


Ignore:
Timestamp:
01/26/06 07:18:10 (13 years ago)
Author:
David Bernard <dwayne@…>
Comment:

add controller features to sample

Legend:

Unmodified
Added
Removed
Modified
  • WidgetsProposal

    v3 v4  
    1414 * instead of render, source, sample, register, define an entry_points (like for template engine) use by Toolbox. 
    1515{{{ 
    16     class WidgetFamilySamples: 
     16    class WidgetFamilySamples(controllers.Root): 
    1717        """ Global description of the widget family """ 
    1818 
     
    3232            """return the list of categories (string)""" 
    3333            pass 
     34 
     35        #define exposed methods used to illustrate some special features (validation/AJAX,...) 
     36        #... 
    3437}}} 
    3538   The advantages are: 
     
    3740    * several samples could be provide to illustrate usage of a widget 
    3841    * sample could illustrate usage of a group/assemblage of widget 
     42    * sample could use server-side features 
    3943 
    4044 * don't force the internal implementation of widgets (with attribute like template, or method like creat_dict())