Thanks so much for all your explanations. My apologies for confusing you with the rather tersely worded question. I had read the explanation on PackageHub that referred to AutoConnectHub. However, I was not successful in googling for docs on "AutoConnectHub". I guess what I wanted to ask was the following:
If I were to have my model classes distributed over a set of modules, say model1.py, model2.py, ... modeln.py, how would I select the object that is passed to each initialization of PackageHub? I was contemplating on reading source code .... and the thought occured to me that there might be some documentation somewhere that I had missed ... hence the post. Thank you again. ============================================= On Aug 20, 5:24 pm, Kevin <[EMAIL PROTECTED]> wrote: > "foo" is the object passed to PackageHub. > Boy I'm having a bad day. I'll just go away now. > > On Aug 20, 7:23 pm, Kevin <[EMAIL PROTECTED]> wrote: > > > Sorry. I think I took it too literally. :) I tend to do that > > sometimes. > > "foo" is the object PackageHub. I looked at it and found this: > > > class PackageHub(object): > > """Transparently proxies to an AutoConnectHub for the URI > > that is appropriate for this package. A package URI is > > configured via "packagename.dburi" in the global CherryPy > > settings. If there is no package DB URI configured, the > > default (provided by "sqlobject.dburi") is used. > > > The hub is not instantiated until an attempt is made to > > use the database. > > """ > > > On Aug 20, 7:04 pm, Kevin <[EMAIL PROTECTED]> wrote: > > > > "Foo" doesn't really "mean" anything. Its a variable like the "X" in > > > "X number of boxes". > > > It is used in computer science along with "bar" and "foobar". They are > > > basically place holders in a sentence. > > > For more see:http://tools.ietf.org/html/rfc3092 > > > > On Aug 20, 4:29 pm, Christna <[EMAIL PROTECTED]> wrote: > > > > > I am fairly new to TurboGears and would like to distribute my model > > > > classes into separate files. > > > > > Could anyone direct me to documentation that explains the significance > > > > of "foo" in the statement > > > > > hub = PackageHub("foo") > > > > __connection__ = hub > > > > > Thanks for your time. --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---

