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 #2049 (closed defect: fixed)

Opened 8 years ago

Last modified 8 years ago

Quickstarted TG 1.1 project with --no-identity still adds identity stuff

Reported by: chrisz Owned by: faide
Priority: low Milestone: 1.1
Component: TurboGears Version: 1.1b1
Severity: normal Keywords: identity
Cc:

Description

When I quickstart a TG 1.1 project with with --no-identity (or enter "no" on the question whether I need the identity stuff), the quickstarted project will still contain a lot of stuff that only makes sense with identity, such as login.css, login.html, or a create_default_user() function. This is probably confusing for new users. (The quickstart templates need some love anyway, see also #1640.)

Change History

comment:1 Changed 8 years ago by Chris Arndt

  • Priority changed from normal to low

comment:2 Changed 8 years ago by Chris Arndt

Part of this (the bootstrap code in model.py) has already been adressed in r6633.

comment:3 Changed 8 years ago by Chris Arndt

The only way to handle the login.css and login.html files is to remove them in the post method of TurbogearsTemplate? when they're not needed.

Or build a different sub-class template for identity enabled projects.

comment:4 Changed 8 years ago by chrisz

You can also use the  `SkipTemplate` exception of pastescript. This has been already used here to create an empty directory.

comment:5 Changed 8 years ago by Chris Arndt

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in r6657. Thanks for the hint with SkipTemplate!

Note: See TracTickets for help on using tickets.