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

Opened 11 years ago

Last modified 10 years ago

admi18n tool crashes when ran from a non-project dir

Reported by: salty-horse Owned by: anonymous
Priority: normal Milestone: 1.0b3
Component: Toolbox.admi18n Version:
Severity: normal Keywords: adm18n toolbox
Cc:

Description

Using latest r1710.

To reproduce:

  1. Run tg-admin toolbox from a non-project dir, which does not contain a locales/ dir.
  2. The admi18n tool is accessible. Enter it.
  3. Choose "Collect your strings" - An error apperes.
  4. Also, choose "Manage your languages" - the table will be empty.
  5. Add a new language code - An error that no "locales/" dir can be found.
  6. Check the current dir - a new locales/ dir has been created.

Why is the admi18n tool accessible from within a non-project dir. It should either be blocked like CatWalk is (by adding need_project = False to it's __init__.py), or allow access only to the "Introduction" page along with a note that you need to run it from within a project.

Change History

comment:1 Changed 11 years ago by jorge.vargas

  • Milestone changed from 1.0 to 1.0b3

I don't like the block of catwalk either. it hides the feature from newbies.

I'll suggest block + a banner that says to enable x,y,z run from within a project

comment:2 Changed 11 years ago by jorge.vargas

  • Component changed from Toolbox to Toolbox.admin18n

comment:3 Changed 11 years ago by jorge.vargas

  • Component changed from Toolbox.admin18n to Toolbox.admi18n

fixing type, I should report that to trac as a bug.

comment:4 Changed 11 years ago by elvelind

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

actually it's need_project = True and that's fixed in 1919. There are already a banner on the toolbox index page stating. "Note: Some functions are not available as the toolbox was not started in a valid TurboGears project directory."

Note: See TracTickets for help on using tickets.