Opened 11 years ago

Closed 11 years ago

#646 closed defect (fixed)

Problem with ./bin/gmg theme assetlink

Reported by: Tumulte Owned by: Christopher Allan Webber
Priority: blocker Milestone: 0.3.3
Component: programming Keywords:
Cc: Parent Tickets:

Description (last modified by Christopher Allan Webber)

./bin/gmg theme assetlink gives me this error :

  File "./bin/gmg", line 9, in <module>
    load_entry_point('', 'console_scripts', 'gmg')()
  File "/var/www/mediagoblin/mediagoblin/gmg_commands/", line 100, in main_cli
  File "/var/www/mediagoblin/mediagoblin/gmg_commands/", line 122, in theme
  File "/var/www/mediagoblin/mediagoblin/gmg_commands/", line 104, in assetlink_command
    link_assets(current_theme, app_config['theme_linked_assets_dir'])
  File "/var/www/mediagoblin/mediagoblin/gmg_commands/", line 71, in link_assets
    printer(_("No asset directory for this theme\n"))
  File "/var/www/mediagoblin/mediagoblin/tools/", line 122, in pass_to_ugettext
    return mg_globals.thread_scope.translations.ugettext(
AttributeError: 'NoneType' object has no attribute 'ugettext'

Change History (3)

comment:1 by Christopher Allan Webber, 11 years ago

Milestone: 0.3.3
Owner: set to Christopher Allan Webber
Priority: majorblocker
Status: newassigned

This is blocking the next release.

Luckily, I've found the cause and am working on a fix. It has to do with the changes between the commits 7989cd6, 7b9f9d1.

comment:2 by Christopher Allan Webber, 11 years ago

Description: modified (diff)

comment:3 by Christopher Allan Webber, 11 years ago

Resolution: fixed
Status: assignedclosed

Fixed. We stopped setting a default translations gettext in I set that back and set a docstring explaining why we needed it.

Note: See TracTickets for help on using tickets.