Jorge Vargas wrote:
> On 8/16/06, Bernardo Torres <[EMAIL PROTECTED]> wrote:
> >
> >
> > Hi,
> >
> > I'd like to use one sqlobject handle in each controller. Is it
> > possible?
>
>
> I'm not sure what you want, are you refering to each controller class? or a
> controller package?

Each Controller Class, like
class Autoshop:
  # has like
  @expose()
  def list_cars(self):
    cars = Car.select()

and

class AddressBook:
  # has
  @expose()
  def list_people(self):
    people = Person.select()

and Car lives in one database and Person in other.



> if so this may help, i believe it can be done with SO too if so please
> update the wiki http://trac.turbogears.org/turbogears/wiki/MultipleDatabases
>
> <?auth=DQAAAHMAAABIe_wYGnXL6HhX0pVezhEdjxUtWSeNWsFin56XYoK9Q-I4oP2u0-ieqi51OTyP-pHf0XoWCJvXaz5Q0raEWTIywsd1vdr7Lq0b4qOugqrD7qyyZCvQty7Ply1JIvktiPW_fWsRYjuzZJVk8tp8cAnSWWj1HCdeMPG36h-pwW3lAg>
> >
> > Bernardo
> >
> >
> > >
> >
>
> ------=_Part_7913_20522425.1155776186995
> Content-Type: text/html; charset=ISO-8859-1
> X-Google-AttachSize: 1146
>
> On 8/16/06, <b class="gmail_sendername">Bernardo Torres</b> &lt;<a 
> href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a>&gt; wrote:<div><span 
> class="gmail_quote"></span><blockquote class="gmail_quote" 
> style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; 
> padding-left: 1ex;">
> <br>Hi,<br><br>I'd like to use one sqlobject handle in each controller. Is 
> it<br>possible?</blockquote><div><br>I'm not sure what you want, are you 
> refering to each controller class? or a controller package? <br><br>if so 
> this may help, i believe it can be done with SO too if so please update the 
> wiki
> <a 
> href="http://trac.turbogears.org/turbogears/wiki/MultipleDatabases";>http://trac.turbogears.org/turbogears/wiki/MultipleDatabases</a><br></div><a
>  
> href="?auth=DQAAAHMAAABIe_wYGnXL6HhX0pVezhEdjxUtWSeNWsFin56XYoK9Q-I4oP2u0-ieqi51OTyP-pHf0XoWCJvXaz5Q0raEWTIywsd1vdr7Lq0b4qOugqrD7qyyZCvQty7Ply1JIvktiPW_fWsRYjuzZJVk8tp8cAnSWWj1HCdeMPG36h-pwW3lAg">
> <br></a><blockquote class="gmail_quote" style="border-left: 1px solid 
> rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 
> 1ex;">Bernardo<br><br><br><br><br></blockquote></div><br>
> 
> ------=_Part_7913_20522425.1155776186995--


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to