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

Opened 10 years ago

Last modified 10 years ago

template vars are not defined when using paster create to create a tg2 app

Reported by: sanjiv Owned by: sanjiv
Priority: high Milestone: 2.0b6
Component: TurboGears Version: trunk
Severity: minor Keywords:
Cc:

Description

The documented and supported method for creating a new TG2 project template is

$ paster quickstart

When a user tries to create the project template using the command

$ paster create -t turbogears2

several template vars remain undefined leading to errors.

This has been reported here  http://groups.google.com/group/turbogears/browse_thread/thread/bf5e3d98da4e8cf9#

If we want to support creating of project templates through the paster create command we need to define the template vars in pastetemplate.py. A patch for the same is attached.

Attachments

paste_vars.diff Download (809 bytes) - added by sanjiv 10 years ago.
Patch for defining template sqlalchemy, auth and geo template vars

Change History

comment:1 Changed 10 years ago by mramm

  • Milestone changed from 2.0 to 2.0b6

comment:2 Changed 10 years ago by mramm

  • Priority changed from normal to high

comment:3 Changed 10 years ago by sanjiv

Fixed a bug in the above patch. The var auth takes a value of "sqlalchemy" or None. Attaching new patch.

Changed 10 years ago by sanjiv

Patch for defining template sqlalchemy, auth and geo template vars

comment:4 Changed 10 years ago by sanjiv

  • Owner changed from faide to sanjiv
  • Status changed from new to assigned

comment:5 Changed 10 years ago by sanjiv

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

patch applied in r6269

Note: See TracTickets for help on using tickets.