The pagetest example works fine for me. I'll paste my tg-admin info below, in case that helps. (I'm using the 1.0 branch)
Depending on what kind of objects your result returns, you have to customise MakeLink.__call__() accordingly. In your case, the error is caused by obj[self.id]. You need to debug it and see what type is being passed in for obj. eg: if using SA the line needs to be: url = controllers.url(self.baseurl, dict(uid=obj.__getattribute__(self.id))) Cheers, Chris $ tg-admin info TurboGears Complete Version Information TurboGears requires: * TurboGears 1.0.2dev-r2845 * cElementTree 1.0.5-20051216 * configobj 4.4.0 * RuleDispatch 0.5a0.dev-r2247 * setuptools 0.6c5 * FormEncode 0.6 * PasteScript 1.1 * elementtree 1.2.6-20050316 * simplejson 1.5 * CherryPy 2.2.1 * TurboKid 0.9.9 * TurboCheetah 0.9.5 * TurboJson 1.0 * PyProtocols 1.0a0dev-r2082 * Cheetah 2.0rc7 * PasteDeploy 1.1 * Paste 1.2.1 * kid 0.9.5 * Cheetah 2.0rc7 Identity Providers * sqlobject (TurboGears 1.0.2dev-r2845) * sqlalchemy (TurboGears 1.0.2dev-r2845) tg-admin Commands * info (TurboGears 1.0.2dev-r2845) * shell (TurboGears 1.0.2dev-r2845) * quickstart (TurboGears 1.0.2dev-r2845) * update (TurboGears 1.0.2dev-r2845) * sql (TurboGears 1.0.2dev-r2845) * i18n (TurboGears 1.0.2dev-r2845) * toolbox (TurboGears 1.0.2dev-r2845) Visit Managers * sqlobject (TurboGears 1.0.2dev-r2845) * sqlalchemy (TurboGears 1.0.2dev-r2845) Template Engines * cheetah (TurboCheetah 0.9.5) * json (TurboJson 1.0) * genshi-markup (Genshi 0.3.6) * genshi-text (Genshi 0.3.6) * genshi (Genshi 0.3.6) * kid (TurboKid 0.9.9) * toscawidgets (ToscaWidgets 0.1a2dev-r2777) Widget Packages * file_fields (FileFields 0.1a6.dev-r612) * scriptaculous (Scriptaculous 1.6.2) Toolbox Plugins * info (TurboGears 1.0.2dev-r2845) * catwalk (TurboGears 1.0.2dev-r2845) * shell (TurboGears 1.0.2dev-r2845) * designer (TurboGears 1.0.2dev-r2845) * widgets (TurboGears 1.0.2dev-r2845) * admi18n (TurboGears 1.0.2dev-r2845) TurboGears Extensions * toscawidgets (ToscaWidgets 0.1a2dev-r2777) * file_server (FileFields 0.1a6.dev-r612) * visit (TurboGears 1.0.2dev-r2845) * identity (TurboGears 1.0.2dev-r2845) On Apr 15, 1:56 pm, "DarkBlue" <[EMAIL PROTECTED]> wrote: > Thank you. Yes, I tried the example code . Here is what it said: > > pagetest/pagetest/controllers.py", line 47, in __call__ > url=controllers.url(self.baseurl, > dict(id=obj[self.id],action=self.action)) > TypeError: unsubscriptable object > > I fear , I am missing something so obvious , that it is not even > stated there. > > Db --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

