Jeff Hinrichs - DM&T wrote: > Thanks, that got my custom variable into the kid template. However, > the breadcrumb example they have in the docs. > http://docs.turbogears.org/1.0/BreadCrumb is highly dependent on a lot > of other assumed imports -- the only ref I can find to > BaseDataController is in the turbogears/fastdata/datacontroller.py > file. I think it's from an older API > Something I haven't used before. IMHO, it is at best a very > confusing example to have listed in the official docs. Or at least it > needs to have the assumptions written down. > Nevermind. Just test isinstance (ctrl, Controller) instead of BaseDataController.
> Two more questions.. > 1) Theses custom variables for the templates, do they normally go in > the main controller or is it good practice to put them in a file by > themselves? If so, is there a standard name for it, i.e > tgcustomvars.py, etc? > I don't know. I put each function in a separated module, and make a package of that. We've entered into the land of pragmatic-beats-pure the very moment we tinkered with those variables... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

