#1080: [PATCH] Update fastdata DataController to newer api's
-------------------------+--------------------------------------------------
 Reporter:  wavy         |       Owner:  anonymous
     Type:  enhancement  |      Status:  new      
 Priority:  normal       |   Milestone:           
Component:  FastData     |     Version:  0.9a5    
 Severity:  normal       |    Keywords:           
-------------------------+--------------------------------------------------
 Patch attached that updates tgfastdata.datacontroller, mostly updates to
 current api's, but also some very minor refactoring and enhancement.

 Summary of changes:
 BaseDataController:
 * [FIX] Use database.so_joins rather that sqlmeta.joins to enable use with
   InheritableSQLObject
 * [ENHANCE] Added _update() method to wrap calls to _filterJoins() and
   _updateJoins(). Used later in create() and update() in order to make
   subclassing and overwiting these methods simpler.

 DataController:
 * [FIX] Removed old 'tg_error' based code and replaced with error_handler
 decorator
 * [FIX] Replaced 'raise cherrpy.HTTPRedirect' with turbogears.redirect()
 * [ENHANCE] Allowed form_widget to be passed to __init__ and override
 default form
   creation.
 * [ENHANCE] Added new class attribute object_name which is used in flash
 messages.
   Again, for simpler customisation. Can be set in constructor.

-- 
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/1080>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Tickets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears-tickets
-~----------~----~----~----~------~----~------~--~---

Reply via email to