From dcc1699f69a143cb2523ba7857276887ac033739 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 23 Jul 2014 21:35:33 -0700 Subject: [PATCH] Add explicit file encoding to all Mako templates. Also remove some u"" style strings within templates, since they appear to be unnecessary. --- tailbone/reports/inventory_worksheet.mako | 1 + tailbone/reports/ordering_worksheet.mako | 1 + tailbone/templates/autocomplete.mako | 2 +- tailbone/templates/base.mako | 1 + tailbone/templates/batches/crud.mako | 1 + tailbone/templates/batches/index.mako | 1 + tailbone/templates/batches/params.mako | 1 + tailbone/templates/batches/params/print_labels.mako | 1 + tailbone/templates/batches/read.mako | 1 + tailbone/templates/batches/rows/crud.mako | 1 + tailbone/templates/batches/rows/index.mako | 1 + tailbone/templates/brands/crud.mako | 1 + tailbone/templates/brands/index.mako | 1 + tailbone/templates/categories/crud.mako | 1 + tailbone/templates/categories/index.mako | 1 + tailbone/templates/change_password.mako | 1 + tailbone/templates/crud.mako | 1 + tailbone/templates/customergroups/crud.mako | 1 + tailbone/templates/customergroups/index.mako | 1 + tailbone/templates/customers/crud.mako | 1 + tailbone/templates/customers/index.mako | 1 + tailbone/templates/customers/read.mako | 1 + tailbone/templates/departments/crud.mako | 1 + tailbone/templates/departments/index.mako | 1 + tailbone/templates/employees/crud.mako | 1 + tailbone/templates/employees/index.mako | 1 + tailbone/templates/families/crud.mako | 1 + tailbone/templates/families/index.mako | 1 + tailbone/templates/form.mako | 1 + tailbone/templates/forms/field_autocomplete.mako | 1 + tailbone/templates/forms/fieldset.mako | 1 + tailbone/templates/forms/fieldset_readonly.mako | 1 + tailbone/templates/forms/form.mako | 1 + tailbone/templates/forms/form_readonly.mako | 1 + tailbone/templates/grid.mako | 1 + tailbone/templates/grids/grid.mako | 1 + tailbone/templates/grids/search.mako | 1 + tailbone/templates/home.mako | 1 + tailbone/templates/labels/profiles/crud.mako | 1 + tailbone/templates/labels/profiles/index.mako | 1 + tailbone/templates/labels/profiles/printer.mako | 1 + tailbone/templates/labels/profiles/read.mako | 1 + tailbone/templates/login.mako | 1 + tailbone/templates/people/crud.mako | 1 + tailbone/templates/people/index.mako | 1 + tailbone/templates/products/batch.mako | 1 + tailbone/templates/products/crud.mako | 1 + tailbone/templates/products/index.mako | 1 + tailbone/templates/products/read.mako | 3 ++- tailbone/templates/progress.mako | 1 + tailbone/templates/reportcodes/crud.mako | 6 +++--- tailbone/templates/reportcodes/index.mako | 4 ++-- tailbone/templates/reports/base.mako | 1 + tailbone/templates/reports/inventory.mako | 1 + tailbone/templates/reports/ordering.mako | 1 + tailbone/templates/roles/crud.mako | 1 + tailbone/templates/roles/index.mako | 1 + tailbone/templates/stores/crud.mako | 1 + tailbone/templates/stores/index.mako | 1 + tailbone/templates/subdepartments/crud.mako | 1 + tailbone/templates/subdepartments/index.mako | 1 + tailbone/templates/users/crud.mako | 1 + tailbone/templates/users/index.mako | 1 + tailbone/templates/vendors/crud.mako | 1 + tailbone/templates/vendors/index.mako | 1 + 65 files changed, 69 insertions(+), 7 deletions(-) diff --git a/tailbone/reports/inventory_worksheet.mako b/tailbone/reports/inventory_worksheet.mako index b39ff57f..6277a94d 100644 --- a/tailbone/reports/inventory_worksheet.mako +++ b/tailbone/reports/inventory_worksheet.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- diff --git a/tailbone/reports/ordering_worksheet.mako b/tailbone/reports/ordering_worksheet.mako index 477d723f..7870fa3f 100644 --- a/tailbone/reports/ordering_worksheet.mako +++ b/tailbone/reports/ordering_worksheet.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- diff --git a/tailbone/templates/autocomplete.mako b/tailbone/templates/autocomplete.mako index cf76ee7c..341ad8bb 100644 --- a/tailbone/templates/autocomplete.mako +++ b/tailbone/templates/autocomplete.mako @@ -1,6 +1,6 @@ ## -*- coding: utf-8 -*- ## TODO: This function signature is getting out of hand... -<%def name="autocomplete(field_name, service_url, field_value=None, field_display=None, width=u'300px', select=None, selected=None, cleared=None, options={})"> +<%def name="autocomplete(field_name, service_url, field_value=None, field_display=None, width='300px', select=None, selected=None, cleared=None, options={})">
${h.hidden(field_name, id=field_name, value=field_value)} ${h.text(field_name+'-textbox', id=field_name+'-textbox', value=field_display, diff --git a/tailbone/templates/base.mako b/tailbone/templates/base.mako index 31c5df56..7d90a5a6 100644 --- a/tailbone/templates/base.mako +++ b/tailbone/templates/base.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- diff --git a/tailbone/templates/batches/crud.mako b/tailbone/templates/batches/crud.mako index f2875e56..56e40bde 100644 --- a/tailbone/templates/batches/crud.mako +++ b/tailbone/templates/batches/crud.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/crud.mako" /> <%def name="context_menu_items()"> diff --git a/tailbone/templates/batches/index.mako b/tailbone/templates/batches/index.mako index 8b426e03..1ce1b925 100644 --- a/tailbone/templates/batches/index.mako +++ b/tailbone/templates/batches/index.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/grid.mako" /> <%def name="title()">Batches diff --git a/tailbone/templates/batches/params.mako b/tailbone/templates/batches/params.mako index 48a494fa..34b75022 100644 --- a/tailbone/templates/batches/params.mako +++ b/tailbone/templates/batches/params.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/base.mako" /> <%def name="title()">Batch Parameters diff --git a/tailbone/templates/batches/params/print_labels.mako b/tailbone/templates/batches/params/print_labels.mako index c559c767..3ad7b8d0 100644 --- a/tailbone/templates/batches/params/print_labels.mako +++ b/tailbone/templates/batches/params/print_labels.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/batches/params.mako" /> <%def name="batch_params()"> diff --git a/tailbone/templates/batches/read.mako b/tailbone/templates/batches/read.mako index 3ce97fea..5d1ce152 100644 --- a/tailbone/templates/batches/read.mako +++ b/tailbone/templates/batches/read.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/batches/crud.mako" /> <%def name="context_menu_items()"> diff --git a/tailbone/templates/batches/rows/crud.mako b/tailbone/templates/batches/rows/crud.mako index f257a2a4..27ffd848 100644 --- a/tailbone/templates/batches/rows/crud.mako +++ b/tailbone/templates/batches/rows/crud.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/crud.mako" /> <%def name="context_menu_items()"> diff --git a/tailbone/templates/batches/rows/index.mako b/tailbone/templates/batches/rows/index.mako index d362918d..dbe2ee0f 100644 --- a/tailbone/templates/batches/rows/index.mako +++ b/tailbone/templates/batches/rows/index.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/grid.mako" /> <%def name="title()">Batch Rows : ${batch.description} diff --git a/tailbone/templates/brands/crud.mako b/tailbone/templates/brands/crud.mako index 4da3d733..3a35a993 100644 --- a/tailbone/templates/brands/crud.mako +++ b/tailbone/templates/brands/crud.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/crud.mako" /> <%def name="context_menu_items()"> diff --git a/tailbone/templates/brands/index.mako b/tailbone/templates/brands/index.mako index eff4ce0a..d069b2e5 100644 --- a/tailbone/templates/brands/index.mako +++ b/tailbone/templates/brands/index.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/grid.mako" /> <%def name="title()">Brands diff --git a/tailbone/templates/categories/crud.mako b/tailbone/templates/categories/crud.mako index 8a36d063..62ee9b43 100644 --- a/tailbone/templates/categories/crud.mako +++ b/tailbone/templates/categories/crud.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/crud.mako" /> <%def name="context_menu_items()"> diff --git a/tailbone/templates/categories/index.mako b/tailbone/templates/categories/index.mako index 03591137..979339f6 100644 --- a/tailbone/templates/categories/index.mako +++ b/tailbone/templates/categories/index.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/grid.mako" /> <%def name="title()">Categories diff --git a/tailbone/templates/change_password.mako b/tailbone/templates/change_password.mako index e00d2a5d..6b1ab948 100644 --- a/tailbone/templates/change_password.mako +++ b/tailbone/templates/change_password.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/base.mako" /> <%def name="title()">Change Password diff --git a/tailbone/templates/crud.mako b/tailbone/templates/crud.mako index b2ca1aea..9d3a6297 100644 --- a/tailbone/templates/crud.mako +++ b/tailbone/templates/crud.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/form.mako" /> <%def name="title()">${"New "+form.pretty_name if form.creating else form.pretty_name+' : '+capture(self.model_title)} diff --git a/tailbone/templates/customergroups/crud.mako b/tailbone/templates/customergroups/crud.mako index 5e534665..d109ad46 100644 --- a/tailbone/templates/customergroups/crud.mako +++ b/tailbone/templates/customergroups/crud.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/crud.mako" /> <%def name="context_menu_items()"> diff --git a/tailbone/templates/customergroups/index.mako b/tailbone/templates/customergroups/index.mako index dc777762..55aa168f 100644 --- a/tailbone/templates/customergroups/index.mako +++ b/tailbone/templates/customergroups/index.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/grid.mako" /> <%def name="title()">Customer Groups diff --git a/tailbone/templates/customers/crud.mako b/tailbone/templates/customers/crud.mako index c385719c..4d0d6b1a 100644 --- a/tailbone/templates/customers/crud.mako +++ b/tailbone/templates/customers/crud.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/crud.mako" /> <%def name="context_menu_items()"> diff --git a/tailbone/templates/customers/index.mako b/tailbone/templates/customers/index.mako index 29394f2f..0ec7016f 100644 --- a/tailbone/templates/customers/index.mako +++ b/tailbone/templates/customers/index.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/grid.mako" /> <%def name="title()">Customers diff --git a/tailbone/templates/customers/read.mako b/tailbone/templates/customers/read.mako index c5cfa315..107bfccd 100644 --- a/tailbone/templates/customers/read.mako +++ b/tailbone/templates/customers/read.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/customers/crud.mako" /> ${parent.body()} diff --git a/tailbone/templates/departments/crud.mako b/tailbone/templates/departments/crud.mako index ba8d9a06..e726ec77 100644 --- a/tailbone/templates/departments/crud.mako +++ b/tailbone/templates/departments/crud.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/crud.mako" /> <%def name="context_menu_items()"> diff --git a/tailbone/templates/departments/index.mako b/tailbone/templates/departments/index.mako index 1684d399..6774a050 100644 --- a/tailbone/templates/departments/index.mako +++ b/tailbone/templates/departments/index.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/grid.mako" /> <%def name="title()">Departments diff --git a/tailbone/templates/employees/crud.mako b/tailbone/templates/employees/crud.mako index 9a6bbe0a..4a71e30e 100644 --- a/tailbone/templates/employees/crud.mako +++ b/tailbone/templates/employees/crud.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/crud.mako" /> <%def name="context_menu_items()"> diff --git a/tailbone/templates/employees/index.mako b/tailbone/templates/employees/index.mako index b51b80b8..f521541c 100644 --- a/tailbone/templates/employees/index.mako +++ b/tailbone/templates/employees/index.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/grid.mako" /> <%def name="title()">Employees diff --git a/tailbone/templates/families/crud.mako b/tailbone/templates/families/crud.mako index 00fda7b5..01cfc292 100644 --- a/tailbone/templates/families/crud.mako +++ b/tailbone/templates/families/crud.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/crud.mako" /> <%def name="context_menu_items()"> diff --git a/tailbone/templates/families/index.mako b/tailbone/templates/families/index.mako index 9b6b8b62..8bc83e68 100644 --- a/tailbone/templates/families/index.mako +++ b/tailbone/templates/families/index.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/grid.mako" /> <%def name="title()">Families diff --git a/tailbone/templates/form.mako b/tailbone/templates/form.mako index 095d6384..0f230dba 100644 --- a/tailbone/templates/form.mako +++ b/tailbone/templates/form.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/base.mako" /> <%def name="context_menu_items()"> diff --git a/tailbone/templates/forms/field_autocomplete.mako b/tailbone/templates/forms/field_autocomplete.mako index 0db4783a..17720c68 100644 --- a/tailbone/templates/forms/field_autocomplete.mako +++ b/tailbone/templates/forms/field_autocomplete.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%namespace file="/autocomplete.mako" import="autocomplete" /> ${autocomplete(field_name, service_url, field_value, field_display, width=width, selected=selected, cleared=cleared)} diff --git a/tailbone/templates/forms/fieldset.mako b/tailbone/templates/forms/fieldset.mako index 0e5a6d4a..7f0306e9 100644 --- a/tailbone/templates/forms/fieldset.mako +++ b/tailbone/templates/forms/fieldset.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <% _focus_rendered = False %> % for error in fieldset.errors.get(None, []): diff --git a/tailbone/templates/forms/fieldset_readonly.mako b/tailbone/templates/forms/fieldset_readonly.mako index 350a3151..b3068b3a 100644 --- a/tailbone/templates/forms/fieldset_readonly.mako +++ b/tailbone/templates/forms/fieldset_readonly.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*-
% for field in fieldset.render_fields.itervalues(): % if field.requires_label: diff --git a/tailbone/templates/forms/form.mako b/tailbone/templates/forms/form.mako index ea25d01b..9f14a482 100644 --- a/tailbone/templates/forms/form.mako +++ b/tailbone/templates/forms/form.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*-
${h.form(form.action_url, enctype='multipart/form-data')} diff --git a/tailbone/templates/forms/form_readonly.mako b/tailbone/templates/forms/form_readonly.mako index 96920421..f8715630 100644 --- a/tailbone/templates/forms/form_readonly.mako +++ b/tailbone/templates/forms/form_readonly.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*-
${form.fieldset.render()|n}
diff --git a/tailbone/templates/grid.mako b/tailbone/templates/grid.mako index 9c78db07..c077a1ab 100644 --- a/tailbone/templates/grid.mako +++ b/tailbone/templates/grid.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/base.mako" /> <%def name="context_menu_items()"> diff --git a/tailbone/templates/grids/grid.mako b/tailbone/templates/grids/grid.mako index 0daf2a18..d2fe16d5 100644 --- a/tailbone/templates/grids/grid.mako +++ b/tailbone/templates/grids/grid.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*-
diff --git a/tailbone/templates/grids/search.mako b/tailbone/templates/grids/search.mako index 17fbabd2..fbb030f9 100644 --- a/tailbone/templates/grids/search.mako +++ b/tailbone/templates/grids/search.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*-
${search.begin()} ${search.hidden('filters', 'true')} diff --git a/tailbone/templates/home.mako b/tailbone/templates/home.mako index 21ea320b..7d60bf2f 100644 --- a/tailbone/templates/home.mako +++ b/tailbone/templates/home.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/base.mako" /> <%def name="title()">Home diff --git a/tailbone/templates/labels/profiles/crud.mako b/tailbone/templates/labels/profiles/crud.mako index 76a39dac..16a253e7 100644 --- a/tailbone/templates/labels/profiles/crud.mako +++ b/tailbone/templates/labels/profiles/crud.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/crud.mako" /> <%def name="head_tags()"> diff --git a/tailbone/templates/labels/profiles/index.mako b/tailbone/templates/labels/profiles/index.mako index a5383fbe..509aa09c 100644 --- a/tailbone/templates/labels/profiles/index.mako +++ b/tailbone/templates/labels/profiles/index.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/grid.mako" /> <%def name="title()">Label Profiles diff --git a/tailbone/templates/labels/profiles/printer.mako b/tailbone/templates/labels/profiles/printer.mako index 9b1c5545..d2f1f7d1 100644 --- a/tailbone/templates/labels/profiles/printer.mako +++ b/tailbone/templates/labels/profiles/printer.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/base.mako" /> <%def name="title()">Printer Settings diff --git a/tailbone/templates/labels/profiles/read.mako b/tailbone/templates/labels/profiles/read.mako index 75ded2d6..3cc36a20 100644 --- a/tailbone/templates/labels/profiles/read.mako +++ b/tailbone/templates/labels/profiles/read.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/labels/profiles/crud.mako" /> <%def name="context_menu_items()"> diff --git a/tailbone/templates/login.mako b/tailbone/templates/login.mako index d297212a..852175a1 100644 --- a/tailbone/templates/login.mako +++ b/tailbone/templates/login.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/base.mako" /> <%def name="title()">Login diff --git a/tailbone/templates/people/crud.mako b/tailbone/templates/people/crud.mako index 9f7a5b0d..6f1f77fa 100644 --- a/tailbone/templates/people/crud.mako +++ b/tailbone/templates/people/crud.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/crud.mako" /> <%def name="context_menu_items()"> diff --git a/tailbone/templates/people/index.mako b/tailbone/templates/people/index.mako index 77b7badf..9e1ca615 100644 --- a/tailbone/templates/people/index.mako +++ b/tailbone/templates/people/index.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/grid.mako" /> <%def name="title()">People diff --git a/tailbone/templates/products/batch.mako b/tailbone/templates/products/batch.mako index 335c8574..a0aaeaa4 100644 --- a/tailbone/templates/products/batch.mako +++ b/tailbone/templates/products/batch.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/base.mako" /> <%def name="title()">Create Products Batch diff --git a/tailbone/templates/products/crud.mako b/tailbone/templates/products/crud.mako index 46d1e9c0..4df96af2 100644 --- a/tailbone/templates/products/crud.mako +++ b/tailbone/templates/products/crud.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/crud.mako" /> <%def name="context_menu_items()"> diff --git a/tailbone/templates/products/index.mako b/tailbone/templates/products/index.mako index 3d97fda1..fec57c50 100644 --- a/tailbone/templates/products/index.mako +++ b/tailbone/templates/products/index.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/grid.mako" /> <%def name="title()">Products diff --git a/tailbone/templates/products/read.mako b/tailbone/templates/products/read.mako index 690f9300..f6353a61 100644 --- a/tailbone/templates/products/read.mako +++ b/tailbone/templates/products/read.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/products/crud.mako" /> <%def name="head_tags()"> @@ -19,7 +20,7 @@ ${form.render()|n} % if image: - ${h.image(image_url, u"Product Image", id='product-image', path=image_path, use_pil=True)} + ${h.image(image_url, "Product Image", id='product-image', path=image_path, use_pil=True)} % endif
diff --git a/tailbone/templates/progress.mako b/tailbone/templates/progress.mako index ea83598e..8216dfc7 100644 --- a/tailbone/templates/progress.mako +++ b/tailbone/templates/progress.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- diff --git a/tailbone/templates/reportcodes/crud.mako b/tailbone/templates/reportcodes/crud.mako index 84e5db43..4a5d6e00 100644 --- a/tailbone/templates/reportcodes/crud.mako +++ b/tailbone/templates/reportcodes/crud.mako @@ -2,11 +2,11 @@ <%inherit file="/crud.mako" /> <%def name="context_menu_items()"> -
  • ${h.link_to(u"Back to Report Codes", url(u'reportcodes'))}
  • +
  • ${h.link_to("Back to Report Codes", url('reportcodes'))}
  • % if form.readonly: -
  • ${h.link_to(u"Edit this Report Code", url(u'reportcode.update', uuid=form.fieldset.model.uuid))}
  • +
  • ${h.link_to("Edit this Report Code", url('reportcode.update', uuid=form.fieldset.model.uuid))}
  • % elif form.updating: -
  • ${h.link_to(u"View this Report Code", url(u'reportcode.read', uuid=form.fieldset.model.uuid))}
  • +
  • ${h.link_to("View this Report Code", url('reportcode.read', uuid=form.fieldset.model.uuid))}
  • % endif diff --git a/tailbone/templates/reportcodes/index.mako b/tailbone/templates/reportcodes/index.mako index c2d1391e..af10e4a4 100644 --- a/tailbone/templates/reportcodes/index.mako +++ b/tailbone/templates/reportcodes/index.mako @@ -4,8 +4,8 @@ <%def name="title()">Report Codes <%def name="context_menu_items()"> - % if request.has_perm(u'reportcodes.create'): -
  • ${h.link_to(u"Create a new Report Code", url(u'reportcode.create'))}
  • + % if request.has_perm('reportcodes.create'): +
  • ${h.link_to("Create a new Report Code", url('reportcode.create'))}
  • % endif diff --git a/tailbone/templates/reports/base.mako b/tailbone/templates/reports/base.mako index 27f7dd90..5833b0ec 100644 --- a/tailbone/templates/reports/base.mako +++ b/tailbone/templates/reports/base.mako @@ -1,2 +1,3 @@ +## -*- coding: utf-8 -*- <%inherit file="/base.mako" /> ${parent.body()} diff --git a/tailbone/templates/reports/inventory.mako b/tailbone/templates/reports/inventory.mako index 8fa5ac1b..3d3b5bd3 100644 --- a/tailbone/templates/reports/inventory.mako +++ b/tailbone/templates/reports/inventory.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/reports/base.mako" /> <%def name="title()">Report : Inventory Worksheet diff --git a/tailbone/templates/reports/ordering.mako b/tailbone/templates/reports/ordering.mako index 4cd014fc..1b8d555c 100644 --- a/tailbone/templates/reports/ordering.mako +++ b/tailbone/templates/reports/ordering.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/reports/base.mako" /> <%def name="title()">Report : Ordering Worksheet diff --git a/tailbone/templates/roles/crud.mako b/tailbone/templates/roles/crud.mako index 863a773b..3477b33f 100644 --- a/tailbone/templates/roles/crud.mako +++ b/tailbone/templates/roles/crud.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="edbob.pyramid:templates/crud.mako" /> <%def name="head_tags()"> diff --git a/tailbone/templates/roles/index.mako b/tailbone/templates/roles/index.mako index 49deacbd..a39a87f7 100644 --- a/tailbone/templates/roles/index.mako +++ b/tailbone/templates/roles/index.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/grid.mako" /> <%def name="title()">Roles diff --git a/tailbone/templates/stores/crud.mako b/tailbone/templates/stores/crud.mako index dd2ae4cd..23fefc09 100644 --- a/tailbone/templates/stores/crud.mako +++ b/tailbone/templates/stores/crud.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/crud.mako" /> <%def name="context_menu_items()"> diff --git a/tailbone/templates/stores/index.mako b/tailbone/templates/stores/index.mako index d2e76951..1d8d1fb8 100644 --- a/tailbone/templates/stores/index.mako +++ b/tailbone/templates/stores/index.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/grid.mako" /> <%def name="title()">Stores diff --git a/tailbone/templates/subdepartments/crud.mako b/tailbone/templates/subdepartments/crud.mako index 446121db..b71cc553 100644 --- a/tailbone/templates/subdepartments/crud.mako +++ b/tailbone/templates/subdepartments/crud.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/crud.mako" /> <%def name="context_menu_items()"> diff --git a/tailbone/templates/subdepartments/index.mako b/tailbone/templates/subdepartments/index.mako index 154df855..bf426c18 100644 --- a/tailbone/templates/subdepartments/index.mako +++ b/tailbone/templates/subdepartments/index.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/grid.mako" /> <%def name="title()">Subdepartments diff --git a/tailbone/templates/users/crud.mako b/tailbone/templates/users/crud.mako index 2e5a70ef..e8006cc2 100644 --- a/tailbone/templates/users/crud.mako +++ b/tailbone/templates/users/crud.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/crud.mako" /> <%def name="context_menu_items()"> diff --git a/tailbone/templates/users/index.mako b/tailbone/templates/users/index.mako index c9f9918d..a7ec4532 100644 --- a/tailbone/templates/users/index.mako +++ b/tailbone/templates/users/index.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/grid.mako" /> <%def name="title()">Users diff --git a/tailbone/templates/vendors/crud.mako b/tailbone/templates/vendors/crud.mako index a60036d9..db718ae9 100644 --- a/tailbone/templates/vendors/crud.mako +++ b/tailbone/templates/vendors/crud.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/crud.mako" /> <%def name="context_menu_items()"> diff --git a/tailbone/templates/vendors/index.mako b/tailbone/templates/vendors/index.mako index 62d69078..27ea89f4 100644 --- a/tailbone/templates/vendors/index.mako +++ b/tailbone/templates/vendors/index.mako @@ -1,3 +1,4 @@ +## -*- coding: utf-8 -*- <%inherit file="/grid.mako" /> <%def name="title()">Vendors