run_tests.sh --makemessages is broken

Bug #1379054 reported by Gloria Gu
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Low
Gloria Gu

Bug Description

[stack@gloria-stack:/home/stack/horizon]↥ master+ ± ./run_tests.sh --makemessages
Checking environment.
Environment is up to date.
horizon: processing locale en
horizon javascript: processing locale en
openstack_dashboard: Traceback (most recent call last):
  File "/home/stack/horizon/manage.py", line 23, in <module>
    execute_from_command_line(sys.argv)
  File "/home/stack/horizon/.venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
    utility.execute()
  File "/home/stack/horizon/.venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/stack/horizon/.venv/local/lib/python2.7/site-packages/django/core/management/base.py", line 242, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/home/stack/horizon/.venv/local/lib/python2.7/site-packages/django/core/management/base.py", line 285, in execute
    output = self.handle(*args, **options)
  File "/home/stack/horizon/.venv/local/lib/python2.7/site-packages/django/core/management/base.py", line 415, in handle
    return self.handle_noargs(**options)
  File "/home/stack/horizon/.venv/local/lib/python2.7/site-packages/django/core/management/commands/makemessages.py", line 262, in handle_noargs
    potfile = self.build_pot_file(localedir)
  File "/home/stack/horizon/.venv/local/lib/python2.7/site-packages/django/core/management/commands/makemessages.py", line 294, in build_pot_file
    f.process(self, potfile, self.domain, self.keep_pot)
  File "/home/stack/horizon/.venv/local/lib/python2.7/site-packages/django/core/management/commands/makemessages.py", line 96, in process
    content = templatize(src_data, orig_file[2:])
  File "/home/stack/horizon/.venv/local/lib/python2.7/site-packages/django/utils/translation/__init__.py", line 172, in templatize
    return _trans.templatize(src, origin)
  File "/home/stack/horizon/.venv/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 559, in templatize
    raise SyntaxError("Translation blocks must not include other block tags: %s (%sline %d)" % (t.contents, filemsg, t.lineno))
SyntaxError: Translation blocks must not include other block tags: autoescape off (file dashboards/project/data_processing/clusters/templates/data_processing.clusters/_details.html, line 86)

Gloria Gu (gloria-gu)
Changed in horizon:
assignee: nobody → Gloria Gu (gloria-gu)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/127063

Changed in horizon:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/127063
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=1b4b38aef2853a6e5a0c136917d381319a9954b6
Submitter: Jenkins
Branch: master

commit 1b4b38aef2853a6e5a0c136917d381319a9954b6
Author: Gloria Gu <email address hidden>
Date: Wed Oct 8 15:33:58 2014 -0700

    fixed errors when run_tests.sh --makemessages

    The change Ibf2036d5bbc4c478fcb912f6335104356e8f1317 causes
    run_tests.sh --makemessages failure. Make the errors go way.

    Closes-Bug: #1379054
    Change-Id: I66b68099561bdd451321c7c31391f30827121e7c

Changed in horizon:
status: In Progress → Fix Committed
Changed in horizon:
importance: Undecided → Low
Akihiro Motoki (amotoki)
Changed in horizon:
milestone: none → kilo-1
Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: kilo-1 → 2015.1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.