From 1f00a4bb2652fded7a7a13d761afc0add59b2355 Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 20 Dec 2007 21:58:00 +0000 Subject: [PATCH] removing compiled html templates -- pylons makes these at runtime git-svn-id: svn://svn.open-ils.org/ILS/branches/acq-experiment@8256 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../web/oilsweb/data/templates/oils/base.html.py | 118 -------------------- .../data/templates/oils/default/acq/index.html.py | 58 ---------- .../templates/oils/default/acq/pl_builder.html.py | 87 --------------- .../data/templates/oils/default/acq/search.html.py | 109 ------------------- .../data/templates/oils/default/base.html.py | 121 --------------------- .../data/templates/oils/default/footer.html.py | 27 ----- .../data/templates/oils/default/navigate.html.py | 34 ------ 7 files changed, 554 deletions(-) delete mode 100644 Open-ILS/web/oilsweb/data/templates/oils/base.html.py delete mode 100644 Open-ILS/web/oilsweb/data/templates/oils/default/acq/index.html.py delete mode 100644 Open-ILS/web/oilsweb/data/templates/oils/default/acq/pl_builder.html.py delete mode 100644 Open-ILS/web/oilsweb/data/templates/oils/default/acq/search.html.py delete mode 100644 Open-ILS/web/oilsweb/data/templates/oils/default/base.html.py delete mode 100644 Open-ILS/web/oilsweb/data/templates/oils/default/footer.html.py delete mode 100644 Open-ILS/web/oilsweb/data/templates/oils/default/navigate.html.py diff --git a/Open-ILS/web/oilsweb/data/templates/oils/base.html.py b/Open-ILS/web/oilsweb/data/templates/oils/base.html.py deleted file mode 100644 index 989606c31a..0000000000 --- a/Open-ILS/web/oilsweb/data/templates/oils/base.html.py +++ /dev/null @@ -1,118 +0,0 @@ -from mako import runtime, filters, cache -UNDEFINED = runtime.UNDEFINED -_magic_number = 2 -_modified_time = 1198103797.7045071 -_template_filename=u'/home/erickson/code/sandbox/python/pylons/oilsweb/oilsweb/templates/oils/base.html' -_template_uri=u'oils/default/acq/../../base.html' -_template_cache=cache.Cache(__name__, _modified_time) -_source_encoding=None -_exports = ['block_body', 'block_css', 'block_body_content', 'block_head'] - - -def render_body(context,**pageargs): - context.caller_stack.push_frame() - try: - __M_locals = dict(pageargs=pageargs) - self = context.get('self', UNDEFINED) - # SOURCE LINE 1 - context.write(u'\n\n\n\n') - # SOURCE LINE 5 - locale = 'en-US' - - __M_locals.update(dict([(__M_key, locals()[__M_key]) for __M_key in ['locale'] if __M_key in locals()])) - context.write(u" \n\n ") - # SOURCE LINE 7 - context.write(unicode(self.block_head())) - context.write(u'\n ') - # SOURCE LINE 8 - context.write(unicode(self.block_body())) - context.write(u'\n\n\n') - # SOURCE LINE 18 - context.write(u'\n\n') - # SOURCE LINE 22 - context.write(u'\n') - # SOURCE LINE 23 - context.write(u'\n\n') - # SOURCE LINE 28 - context.write(u'\n\n') - return '' - finally: - context.caller_stack.pop_frame() - - -def render_block_body(context): - context.caller_stack.push_frame() - try: - self = context.get('self', UNDEFINED) - # SOURCE LINE 20 - context.write(u'\n') - # SOURCE LINE 21 - context.write(unicode(self.block_body_content())) - context.write(u'\n') - return '' - finally: - context.caller_stack.pop_frame() - - -def render_block_css(context): - context.caller_stack.push_frame() - try: - c = context.get('c', UNDEFINED) - # SOURCE LINE 25 - context.write(u"\n \n \n") - return '' - finally: - context.caller_stack.pop_frame() - - -def render_block_body_content(context): - context.caller_stack.push_frame() - try: - return '' - finally: - context.caller_stack.pop_frame() - - -def render_block_head(context): - context.caller_stack.push_frame() - try: - self = context.get('self', UNDEFINED) - def block_title(): - context.caller_stack.push_frame() - try: - _ = context.get('_', UNDEFINED) - # SOURCE LINE 14 - context.write(unicode(_('Evergreen Acquisitions'))) - return '' - finally: - context.caller_stack.pop_frame() - # SOURCE LINE 11 - context.write(u' \n \n \n ') - # SOURCE LINE 14 - context.write(u'\n ') - # SOURCE LINE 15 - context.write(unicode(self.block_title())) - context.write(u'\n ') - # SOURCE LINE 16 - context.write(unicode(self.block_css())) - context.write(u'\n \n') - return '' - finally: - context.caller_stack.pop_frame() - - diff --git a/Open-ILS/web/oilsweb/data/templates/oils/default/acq/index.html.py b/Open-ILS/web/oilsweb/data/templates/oils/default/acq/index.html.py deleted file mode 100644 index 45f49d3f1e..0000000000 --- a/Open-ILS/web/oilsweb/data/templates/oils/default/acq/index.html.py +++ /dev/null @@ -1,58 +0,0 @@ -from mako import runtime, filters, cache -UNDEFINED = runtime.UNDEFINED -_magic_number = 2 -_modified_time = 1198108481.9620631 -_template_filename='/home/erickson/code/sandbox/python/pylons/oilsweb/oilsweb/templates/oils/default/acq/index.html' -_template_uri='oils/default/acq/index.html' -_template_cache=cache.Cache(__name__, _modified_time) -_source_encoding=None -_exports = ['block_content', 'block_title'] - - -def _mako_get_namespace(context, name): - try: - return context.namespaces[(__name__, name)] - except KeyError: - _mako_generate_namespaces(context) - return context.namespaces[(__name__, name)] -def _mako_generate_namespaces(context): - pass -def _mako_inherit(template, context): - _mako_generate_namespaces(context) - return runtime._inherit_from(context, u'../base.html', _template_uri) -def render_body(context,**pageargs): - context.caller_stack.push_frame() - try: - __M_locals = dict(pageargs=pageargs) - # SOURCE LINE 1 - context.write(u'\n\n') - # SOURCE LINE 3 - context.write(u'\n') - # SOURCE LINE 8 - context.write(u'\n\n') - return '' - finally: - context.caller_stack.pop_frame() - - -def render_block_content(context): - context.caller_stack.push_frame() - try: - # SOURCE LINE 4 - context.write(u"\n
\n ACQ HOME\n
\n") - return '' - finally: - context.caller_stack.pop_frame() - - -def render_block_title(context): - context.caller_stack.push_frame() - try: - _ = context.get('_', UNDEFINED) - # SOURCE LINE 3 - context.write(unicode(_('Evergreen Acquisitions Home'))) - return '' - finally: - context.caller_stack.pop_frame() - - diff --git a/Open-ILS/web/oilsweb/data/templates/oils/default/acq/pl_builder.html.py b/Open-ILS/web/oilsweb/data/templates/oils/default/acq/pl_builder.html.py deleted file mode 100644 index 7918c3fd6a..0000000000 --- a/Open-ILS/web/oilsweb/data/templates/oils/default/acq/pl_builder.html.py +++ /dev/null @@ -1,87 +0,0 @@ -from mako import runtime, filters, cache -UNDEFINED = runtime.UNDEFINED -_magic_number = 2 -_modified_time = 1198177152.534961 -_template_filename='/home/erickson/code/ILS/branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/pl_builder.html' -_template_uri='oils/default/acq/pl_builder.html' -_template_cache=cache.Cache(__name__, _modified_time) -_source_encoding=None -_exports = ['block_content', 'block_title'] - - -def _mako_get_namespace(context, name): - try: - return context.namespaces[(__name__, name)] - except KeyError: - _mako_generate_namespaces(context) - return context.namespaces[(__name__, name)] -def _mako_generate_namespaces(context): - pass -def _mako_inherit(template, context): - _mako_generate_namespaces(context) - return runtime._inherit_from(context, u'../base.html', _template_uri) -def render_body(context,**pageargs): - context.caller_stack.push_frame() - try: - __M_locals = dict(pageargs=pageargs) - # SOURCE LINE 1 - context.write(u'\n') - # SOURCE LINE 2 - context.write(u'\n') - # SOURCE LINE 21 - context.write(u'\n') - return '' - finally: - context.caller_stack.pop_frame() - - -def render_block_content(context): - context.caller_stack.push_frame() - try: - c = context.get('c', UNDEFINED) - _ = context.get('_', UNDEFINED) - # SOURCE LINE 3 - context.write(u"\n \n \n \n \n \n') - # SOURCE LINE 9 - for res in c.oils_acq_records: - # SOURCE LINE 10 - for rec in res['records']: - # SOURCE LINE 11 - context.write(u" \n \n \n \n \n \n') - # SOURCE LINE 19 - context.write(u' \n
") - # SOURCE LINE 6 - context.write(unicode(_('Title'))) - context.write(u'') - context.write(unicode(_('Author'))) - context.write(u'') - context.write(unicode(_('Source'))) - context.write(u'
") - # SOURCE LINE 13 - context.write(unicode(rec['extracts']["bibdata.title"])) - context.write(u'') - # SOURCE LINE 14 - context.write(unicode(rec['extracts']["bibdata.author"])) - context.write(u'') - # SOURCE LINE 15 - context.write(unicode(res['service'])) - context.write(u'
\n') - return '' - finally: - context.caller_stack.pop_frame() - - -def render_block_title(context): - context.caller_stack.push_frame() - try: - _ = context.get('_', UNDEFINED) - # SOURCE LINE 2 - context.write(unicode(_('Evergreen Acquisitions Results'))) - return '' - finally: - context.caller_stack.pop_frame() - - diff --git a/Open-ILS/web/oilsweb/data/templates/oils/default/acq/search.html.py b/Open-ILS/web/oilsweb/data/templates/oils/default/acq/search.html.py deleted file mode 100644 index 1a04c857c6..0000000000 --- a/Open-ILS/web/oilsweb/data/templates/oils/default/acq/search.html.py +++ /dev/null @@ -1,109 +0,0 @@ -from mako import runtime, filters, cache -UNDEFINED = runtime.UNDEFINED -_magic_number = 2 -_modified_time = 1198184806.6389661 -_template_filename='/home/erickson/code/ILS/branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/search.html' -_template_uri='oils/default/acq/search.html' -_template_cache=cache.Cache(__name__, _modified_time) -_source_encoding=None -_exports = ['block_content', 'block_title'] - - -def _mako_get_namespace(context, name): - try: - return context.namespaces[(__name__, name)] - except KeyError: - _mako_generate_namespaces(context) - return context.namespaces[(__name__, name)] -def _mako_generate_namespaces(context): - pass -def _mako_inherit(template, context): - _mako_generate_namespaces(context) - return runtime._inherit_from(context, u'../base.html', _template_uri) -def render_body(context,**pageargs): - context.caller_stack.push_frame() - try: - __M_locals = dict(pageargs=pageargs) - # SOURCE LINE 1 - context.write(u'\n') - # SOURCE LINE 2 - context.write(u'\n\n') - # SOURCE LINE 35 - context.write(u'\n\n') - return '' - finally: - context.caller_stack.pop_frame() - - -def render_block_content(context): - context.caller_stack.push_frame() - try: - c = context.get('c', UNDEFINED) - _ = context.get('_', UNDEFINED) - # SOURCE LINE 4 - context.write(u"\n
\n \n
\n
\n
") - # SOURCE LINE 9 - context.write(unicode(_('Search Sources'))) - context.write(u"
\n \n
\n
\n \n") - # SOURCE LINE 21 - for cls, lbl in c.oils_search_classes.iteritems(): - # SOURCE LINE 22 - context.write(u" \n \n \n \n") - # SOURCE LINE 30 - context.write(u"
") - # SOURCE LINE 23 - context.write(unicode(lbl)) - context.write(u"\n \n \n
\n \n
\n
\n
\n") - return '' - finally: - context.caller_stack.pop_frame() - - -def render_block_title(context): - context.caller_stack.push_frame() - try: - _ = context.get('_', UNDEFINED) - # SOURCE LINE 2 - context.write(unicode(_('Evergreen Acquisitions Search'))) - return '' - finally: - context.caller_stack.pop_frame() - - diff --git a/Open-ILS/web/oilsweb/data/templates/oils/default/base.html.py b/Open-ILS/web/oilsweb/data/templates/oils/default/base.html.py deleted file mode 100644 index a6862a14ce..0000000000 --- a/Open-ILS/web/oilsweb/data/templates/oils/default/base.html.py +++ /dev/null @@ -1,121 +0,0 @@ -from mako import runtime, filters, cache -UNDEFINED = runtime.UNDEFINED -_magic_number = 2 -_modified_time = 1198183376.8275831 -_template_filename=u'/home/erickson/code/ILS/branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/base.html' -_template_uri=u'oils/default/acq/../base.html' -_template_cache=cache.Cache(__name__, _modified_time) -_source_encoding=None -_exports = ['block_footer', 'block_navigate', 'block_content', 'block_header', 'block_body_content', 'block_sidebar'] - - -def _mako_get_namespace(context, name): - try: - return context.namespaces[(__name__, name)] - except KeyError: - _mako_generate_namespaces(context) - return context.namespaces[(__name__, name)] -def _mako_generate_namespaces(context): - pass -def _mako_inherit(template, context): - _mako_generate_namespaces(context) - return runtime._inherit_from(context, u'../base.html', _template_uri) -def render_body(context,**pageargs): - context.caller_stack.push_frame() - try: - __M_locals = dict(pageargs=pageargs) - # SOURCE LINE 1 - context.write(u'\n\n') - # SOURCE LINE 23 - context.write(u'\n\n') - # SOURCE LINE 25 - context.write(u'\n') - # SOURCE LINE 26 - context.write(u'\n') - # SOURCE LINE 27 - context.write(u'\n') - # SOURCE LINE 30 - context.write(u'\n') - # SOURCE LINE 33 - context.write(u'\n') - return '' - finally: - context.caller_stack.pop_frame() - - -def render_block_footer(context): - context.caller_stack.push_frame() - try: - # SOURCE LINE 31 - context.write(u'\n ') - # SOURCE LINE 32 - runtime._include_file(context, u'footer.html', _template_uri) - context.write(u'\n') - return '' - finally: - context.caller_stack.pop_frame() - - -def render_block_navigate(context): - context.caller_stack.push_frame() - try: - # SOURCE LINE 28 - context.write(u'\n ') - # SOURCE LINE 29 - runtime._include_file(context, u'navigate.html', _template_uri) - context.write(u'\n') - return '' - finally: - context.caller_stack.pop_frame() - - -def render_block_content(context): - context.caller_stack.push_frame() - try: - return '' - finally: - context.caller_stack.pop_frame() - - -def render_block_header(context): - context.caller_stack.push_frame() - try: - return '' - finally: - context.caller_stack.pop_frame() - - -def render_block_body_content(context): - context.caller_stack.push_frame() - try: - self = context.get('self', UNDEFINED) - # SOURCE LINE 3 - context.write(u"\n
\n
\n ") - # SOURCE LINE 6 - context.write(unicode(self.block_header())) - context.write(u"\n
\n
\n
\n ") - # SOURCE LINE 10 - context.write(unicode(self.block_navigate())) - context.write(u"\n
\n
\n ") - # SOURCE LINE 13 - context.write(unicode(self.block_content())) - context.write(u"\n
\n
\n ") - # SOURCE LINE 16 - context.write(unicode(self.block_sidebar())) - context.write(u"\n
\n
\n \n
\n') - return '' - finally: - context.caller_stack.pop_frame() - - -def render_block_sidebar(context): - context.caller_stack.push_frame() - try: - return '' - finally: - context.caller_stack.pop_frame() - - diff --git a/Open-ILS/web/oilsweb/data/templates/oils/default/footer.html.py b/Open-ILS/web/oilsweb/data/templates/oils/default/footer.html.py deleted file mode 100644 index f4760c734d..0000000000 --- a/Open-ILS/web/oilsweb/data/templates/oils/default/footer.html.py +++ /dev/null @@ -1,27 +0,0 @@ -from mako import runtime, filters, cache -UNDEFINED = runtime.UNDEFINED -_magic_number = 2 -_modified_time = 1198182658.882432 -_template_filename=u'/home/erickson/code/ILS/branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/footer.html' -_template_uri=u'oils/default/acq/../footer.html' -_template_cache=cache.Cache(__name__, _modified_time) -_source_encoding=None -_exports = [] - - -def render_body(context,**pageargs): - context.caller_stack.push_frame() - try: - __M_locals = dict(pageargs=pageargs) - c = context.get('c', UNDEFINED) - _ = context.get('_', UNDEFINED) - # SOURCE LINE 1 - context.write(unicode(_('Powered By'))) - context.write(u" \n\n") - return '' - finally: - context.caller_stack.pop_frame() - - diff --git a/Open-ILS/web/oilsweb/data/templates/oils/default/navigate.html.py b/Open-ILS/web/oilsweb/data/templates/oils/default/navigate.html.py deleted file mode 100644 index 2717b676f8..0000000000 --- a/Open-ILS/web/oilsweb/data/templates/oils/default/navigate.html.py +++ /dev/null @@ -1,34 +0,0 @@ -from mako import runtime, filters, cache -UNDEFINED = runtime.UNDEFINED -_magic_number = 2 -_modified_time = 1198108479.9635 -_template_filename=u'/home/erickson/code/sandbox/python/pylons/oilsweb/oilsweb/templates/oils/default/navigate.html' -_template_uri=u'oils/default/acq/../navigate.html' -_template_cache=cache.Cache(__name__, _modified_time) -_source_encoding=None -_exports = [] - - -def render_body(context,**pageargs): - context.caller_stack.push_frame() - try: - __M_locals = dict(pageargs=pageargs) - c = context.get('c', UNDEFINED) - _ = context.get('_', UNDEFINED) - # SOURCE LINE 1 - context.write(u"\n \n \n \n \n
") - context.write(unicode(_('Home'))) - context.write(u"
") - context.write(unicode(_('Search'))) - context.write(u'
\n\n') - return '' - finally: - context.caller_stack.pop_frame() - - -- 2.11.0