#858: [PATCH] so_to_dict function to support joins
----------------------------------+-----------------------------------------
 Reporter:  [EMAIL PROTECTED]  |        Owner:  anonymous
     Type:  enhancement           |       Status:  new      
 Priority:  normal                |    Milestone:           
Component:  TurboGears            |      Version:  0.9a5    
 Severity:  normal                |   Resolution:           
 Keywords:  so_to_dict, joins     |  
----------------------------------+-----------------------------------------
Comment (by alberto):

 I'm not sure if it would be a good idea to unfold all joins by default for
 any SO because a join can have potentially *many* related rows.

 I can think of two possible solutions:
  * Implement so_to_dict as a generic function, with the current
 implementation as a default for SQLObjects with room for further
 specialization for app specific objects.
  * Remove so_to_dict completely and use jsonify instead, which basically
 does "the right thing" on SOs (needs further speciallization for
 InheritableSQLObjects, I have a patch for that).

 Alberto

-- 
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/858>
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