Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #2502 (closed task: migrated)

Opened 9 years ago

Last modified 8 years ago

Rename of default and lookup methods in TG 2.1

Reported by: chrisz Owned by:
Priority: high Milestone: 2.1 docs
Component: TurboGears Version: trunk
Severity: critical Keywords:
Cc:

Description

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:
  • 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.

Change History

comment:1 Changed 9 years ago by pedersen

  • Milestone changed from 2.1rc1 to 2.1 docs

 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.

comment:2 Changed 8 years ago by pedersen

  • Status changed from new to closed
  • Resolution set to migrated
Note: See TracTickets for help on using tickets.