Menu

#5 Rename of default and lookup methods in TG 2.1

2.1.2
closed
nobody
docs
defect
normal
documentation
2.1.0
2011-08-20
2011-03-10
No

After updating one of my apps to the latest TG2.1 dev version, I was surprised to see deprecation warnings for every call of default() controller methods.

It seems default() and lookup() have been renamed to _default() and _lookup().

Why has this been changed? Is there any good reason for that?

Why was this change not been discussed or disclosed on the mailing list? And why have the docs not been updated?

  • the docs still talk about default() nearly everywhere:
    • Controllers
    • explorequickstart
    • TGControllers (in the second section it's _default() suddenly),
    • and the wiki20 tutorial in the text and code snippets
  • some tests still use default() and lookup()
  • even the TGController still has default() and lookup() in its docstring

This really needs to be fixed before the TG 2.1 release.


http://groups.google.com/group/turbogears-trunk/browse_thread/thread/c740000002caccff explains the rationale for the change, but that only covers half of the issue. Switching the milestone to docs to get this ticket prepped for doc work.

Discussion