This is a snapshot of Indico's old Trac site. Any information contained herein is most probably outdated. Access our new GitHub site here.

Opened 5 years ago

Closed 5 years ago

#630 closed task (fixed)

Get rid of old-style templates

Reported by: jmonnich Owned by: jmonnich
Priority: high Milestone: v0.98.1
Component: General Version: 0.98-dev
Keywords: Cc:

Description

Convert all old-style (especially mixed-style) templates to new-style.
This fixes issues caused by new-style blocks being evaluated first.

Attachments (1)

convert-templates.py (1.9 KB) - added by jmonnich 5 years ago.
Script to convert old-style templates to new-style templates

Download all attachments as: .zip

Change History (5)

comment:1 Changed 5 years ago by jmonnich

  • Status changed from new to assigned

comment:2 Changed 5 years ago by jmonnich

  • Status changed from assigned to in_merge

Changed 5 years ago by jmonnich

Script to convert old-style templates to new-style templates

comment:3 Changed 5 years ago by jbenito

  • Status changed from awaiting_merge to merging

comment:4 Changed 5 years ago by jbenito

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

In 9ac2af75c8a1d5a9557003d36942bf6bb122872e/indico:

[REF] Convert old-style templates to new-style


  • replace all %(xyz)s with <%= xyz %>
  • remove declareTemplate(newTemplateStyle=True) calls as all templates are new-style now
  • remove old-style template support
  • stop replacing % with %%
  • adding script to do the 'convert' action
Note: See TracTickets for help on using tickets.