git-svn-id: http://yolanda.mister-muffin.de/svn@368 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
parent
e28f9bb43b
commit
fe6f9afbfc
17 changed files with 0 additions and 486 deletions
|
@ -1,12 +0,0 @@
|
||||||
(dp1
|
|
||||||
S'_authentication_token'
|
|
||||||
p2
|
|
||||||
S'141491361115205551276239095199970379580'
|
|
||||||
p3
|
|
||||||
sS'_accessed_time'
|
|
||||||
p4
|
|
||||||
F1217161386.3120041
|
|
||||||
sS'_creation_time'
|
|
||||||
p5
|
|
||||||
F1217161386.3120079
|
|
||||||
s.
|
|
|
@ -1,40 +0,0 @@
|
||||||
from mako import runtime, filters, cache
|
|
||||||
UNDEFINED = runtime.UNDEFINED
|
|
||||||
_magic_number = 2
|
|
||||||
_modified_time = 1216907993.197489
|
|
||||||
_template_filename='/home/nils/src/yolanda/trunk/yolanda/templates/index.mako'
|
|
||||||
_template_uri='/index.mako'
|
|
||||||
_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)
|
|
||||||
h = context.get('h', UNDEFINED)
|
|
||||||
# SOURCE LINE 1
|
|
||||||
context.write(u'<h1>\n Welcome to Yolanda\n</h1>\n\n<p>\n This is the front page.\n</p>\n\n<p>\n <a href="">upload video</a>\n</p>\n\n<p>\n\n')
|
|
||||||
# SOURCE LINE 15
|
|
||||||
context.write(unicode( h.form( \
|
|
||||||
h.url(action='/results'), \
|
|
||||||
method='get', \
|
|
||||||
enctype='application/x-www-form-urlencoded' \
|
|
||||||
) ))
|
|
||||||
# SOURCE LINE 19
|
|
||||||
context.write(u'\n\n')
|
|
||||||
# SOURCE LINE 21
|
|
||||||
context.write(unicode( h.text_field('query') ))
|
|
||||||
context.write(u'\n')
|
|
||||||
# SOURCE LINE 22
|
|
||||||
context.write(unicode( h.submit('find video') ))
|
|
||||||
context.write(u'\n\n')
|
|
||||||
# SOURCE LINE 24
|
|
||||||
context.write(unicode( h.end_form() ))
|
|
||||||
context.write(u'\n\n <form action="/results" method="get" enctype="application/x-www-form-urlencoded">\n <fieldset>\n\n <legend>\n search for videos\n </legend>\n\n <input type="text" name="query" />\n <input type="submit" value="find" />\n\n </fieldset>\n </form>\n</p>\n')
|
|
||||||
return ''
|
|
||||||
finally:
|
|
||||||
context.caller_stack.pop_frame()
|
|
||||||
|
|
||||||
|
|
Binary file not shown.
|
@ -1,22 +0,0 @@
|
||||||
from mako import runtime, filters, cache
|
|
||||||
UNDEFINED = runtime.UNDEFINED
|
|
||||||
_magic_number = 2
|
|
||||||
_modified_time = 1216815389.6429961
|
|
||||||
_template_filename='/home/nils/src/yolanda/trunk/yolanda/templates/index.myt'
|
|
||||||
_template_uri='/index.myt'
|
|
||||||
_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)
|
|
||||||
# SOURCE LINE 1
|
|
||||||
context.write(u'<!-- header -->\n\n<h1>\n Welcome to Yolanda\n</h1>\n\n<p>\n This is the front page.\n</p>\n\n<p>\n <a href="">upload video</a>\n</p>\n\n<p>\n <form action="/results" method="get" enctype="application/x-www-form-urlencoded">\n <fieldset>\n\n <legend>\n search for videos\n </legend>\n\n <input type="text" name="query" />\n <input type="submit" value="find" />\n\n </fieldset>\n </form>\n</p>\n\n<!-- footer -->\n')
|
|
||||||
return ''
|
|
||||||
finally:
|
|
||||||
context.caller_stack.pop_frame()
|
|
||||||
|
|
||||||
|
|
Binary file not shown.
|
@ -1,62 +0,0 @@
|
||||||
from mako import runtime, filters, cache
|
|
||||||
UNDEFINED = runtime.UNDEFINED
|
|
||||||
_magic_number = 2
|
|
||||||
_modified_time = 1216910187.0066929
|
|
||||||
_template_filename='/home/nils/src/yolanda/trunk/yolanda/templates/results.mako'
|
|
||||||
_template_uri='/results.mako'
|
|
||||||
_template_cache=cache.Cache(__name__, _modified_time)
|
|
||||||
_source_encoding=None
|
|
||||||
_exports = ['result']
|
|
||||||
|
|
||||||
|
|
||||||
def render_body(context,**pageargs):
|
|
||||||
context.caller_stack.push_frame()
|
|
||||||
try:
|
|
||||||
__M_locals = dict(pageargs=pageargs)
|
|
||||||
h = context.get('h', UNDEFINED)
|
|
||||||
c = context.get('c', UNDEFINED)
|
|
||||||
def result(x):
|
|
||||||
return render_result(context.locals_(__M_locals),x)
|
|
||||||
# SOURCE LINE 1
|
|
||||||
context.write(u'<html>\n\n\n<head>\n\n')
|
|
||||||
# SOURCE LINE 6
|
|
||||||
context.write(unicode( h.javascript_include_tag('/javascripts/effects.js', builtins=True) ))
|
|
||||||
context.write(u'\n\n</head>\n\n\n<body>\n\n')
|
|
||||||
# SOURCE LINE 18
|
|
||||||
context.write(u'\n\n<p>\n Here be results for ')
|
|
||||||
# SOURCE LINE 21
|
|
||||||
context.write(unicode(c.query))
|
|
||||||
context.write(u'.\n</p>\n\n')
|
|
||||||
# SOURCE LINE 24
|
|
||||||
for x in range(1,10):
|
|
||||||
# SOURCE LINE 25
|
|
||||||
context.write(u' ')
|
|
||||||
context.write(unicode(result(x)))
|
|
||||||
context.write(u'\n')
|
|
||||||
# SOURCE LINE 27
|
|
||||||
context.write(u'\n</body>\n\n\n</html>\n')
|
|
||||||
return ''
|
|
||||||
finally:
|
|
||||||
context.caller_stack.pop_frame()
|
|
||||||
|
|
||||||
|
|
||||||
def render_result(context,x):
|
|
||||||
context.caller_stack.push_frame()
|
|
||||||
try:
|
|
||||||
h = context.get('h', UNDEFINED)
|
|
||||||
# SOURCE LINE 13
|
|
||||||
context.write(u'\n <div class="result" id="')
|
|
||||||
# SOURCE LINE 14
|
|
||||||
context.write(unicode(x))
|
|
||||||
context.write(u'">\n ')
|
|
||||||
# SOURCE LINE 15
|
|
||||||
context.write(unicode( h.draggable_element(x, revert=True) ))
|
|
||||||
context.write(u'\n thumbnail and infos for video ')
|
|
||||||
# SOURCE LINE 16
|
|
||||||
context.write(unicode(x))
|
|
||||||
context.write(u'\n </div>\n')
|
|
||||||
return ''
|
|
||||||
finally:
|
|
||||||
context.caller_stack.pop_frame()
|
|
||||||
|
|
||||||
|
|
Binary file not shown.
|
@ -1,44 +0,0 @@
|
||||||
from mako import runtime, filters, cache
|
|
||||||
UNDEFINED = runtime.UNDEFINED
|
|
||||||
_magic_number = 2
|
|
||||||
_modified_time = 1216817791.7502799
|
|
||||||
_template_filename='/home/nils/src/yolanda/trunk/yolanda/templates/results.myt'
|
|
||||||
_template_uri='/results.myt'
|
|
||||||
_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)
|
|
||||||
h = context.get('h', UNDEFINED)
|
|
||||||
c = context.get('c', UNDEFINED)
|
|
||||||
# SOURCE LINE 1
|
|
||||||
context.write(u'<h1>\n Welcome to Yolanda\n</h1>\n\n<p>\n This is the search page.\n</p>\n\n<p>\n')
|
|
||||||
# SOURCE LINE 10
|
|
||||||
h.start_form(h.url_for(action='save', title=c.query), method="get")
|
|
||||||
|
|
||||||
context.write(u'\n ')
|
|
||||||
# SOURCE LINE 11
|
|
||||||
h.text_area(name='content', rows=7, cols=40, content=c.content)
|
|
||||||
|
|
||||||
context.write(u' <br />\n ')
|
|
||||||
# SOURCE LINE 12
|
|
||||||
h.submit(value="Save changes", name='commit')
|
|
||||||
|
|
||||||
context.write(u'\n')
|
|
||||||
# SOURCE LINE 13
|
|
||||||
h.end_form()
|
|
||||||
|
|
||||||
context.write(u'\n\n ')
|
|
||||||
# SOURCE LINE 15
|
|
||||||
c.query
|
|
||||||
|
|
||||||
context.write(u'\n</p>\n')
|
|
||||||
return ''
|
|
||||||
finally:
|
|
||||||
context.caller_stack.pop_frame()
|
|
||||||
|
|
||||||
|
|
Binary file not shown.
|
@ -1,22 +0,0 @@
|
||||||
from mako import runtime, filters, cache
|
|
||||||
UNDEFINED = runtime.UNDEFINED
|
|
||||||
_magic_number = 2
|
|
||||||
_modified_time = 1216814715.8671241
|
|
||||||
_template_filename='/home/nils/src/yolanda/trunk/yolanda/templates/search.myt'
|
|
||||||
_template_uri='/search.myt'
|
|
||||||
_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)
|
|
||||||
# SOURCE LINE 1
|
|
||||||
context.write(u'<!-- header -->\n\n<h1>\n Welcome to Yolanda\n</h1>\n\n<p>\n This is the search page.\n</p>\n\n<!-- footer -->\n')
|
|
||||||
return ''
|
|
||||||
finally:
|
|
||||||
context.caller_stack.pop_frame()
|
|
||||||
|
|
||||||
|
|
Binary file not shown.
|
@ -1,122 +0,0 @@
|
||||||
from mako import runtime, filters, cache
|
|
||||||
UNDEFINED = runtime.UNDEFINED
|
|
||||||
_magic_number = 2
|
|
||||||
_modified_time = 1218555872.226696
|
|
||||||
_template_filename=u'/home/nils/src/yolanda/trunk/yolanda/templates/xhtml/base.mako'
|
|
||||||
_template_uri=u'/xhtml/base.mako'
|
|
||||||
_template_cache=cache.Cache(__name__, _modified_time)
|
|
||||||
_source_encoding=None
|
|
||||||
_exports = ['search', 'tagcloud', 'login']
|
|
||||||
|
|
||||||
|
|
||||||
def render_body(context,**pageargs):
|
|
||||||
context.caller_stack.push_frame()
|
|
||||||
try:
|
|
||||||
__M_locals = dict(pageargs=pageargs)
|
|
||||||
h = context.get('h', UNDEFINED)
|
|
||||||
self = context.get('self', UNDEFINED)
|
|
||||||
# SOURCE LINE 1
|
|
||||||
context.write(u'<?xml version="1.0" ?>\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\n "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n\n')
|
|
||||||
# SOURCE LINE 38
|
|
||||||
context.write(u'\n\n')
|
|
||||||
# SOURCE LINE 53
|
|
||||||
context.write(u'\n\n')
|
|
||||||
# SOURCE LINE 87
|
|
||||||
context.write(u'\n\n<html xmlns="http://www.w3.org/1999/xhtml">\n\n<head>\n\n <meta\n http-equiv="Content-Type"\n content="application/xhtml+xml;charset=utf-8"\n />\n\n <link\n rel="stylesheet"\n type="text/css"\n media="screen"\n href="')
|
|
||||||
# SOURCE LINE 102
|
|
||||||
context.write(unicode(h.url_for('/css/default.css')))
|
|
||||||
context.write(u'"\n />\n\n <title>\n Yolanda - ')
|
|
||||||
# SOURCE LINE 106
|
|
||||||
context.write(unicode(self.title()))
|
|
||||||
context.write(u'\n </title>\n\n</head>\n\n<body>\n\n <div id="heading">\n <h1>\n ')
|
|
||||||
# SOURCE LINE 115
|
|
||||||
context.write(unicode(self.heading()))
|
|
||||||
context.write(u'\n </h1>\n </div>\n\n ')
|
|
||||||
# SOURCE LINE 119
|
|
||||||
context.write(unicode(self.search()))
|
|
||||||
context.write(u'\n\n ')
|
|
||||||
# SOURCE LINE 121
|
|
||||||
context.write(unicode(self.login()))
|
|
||||||
context.write(u'\n\n ')
|
|
||||||
# SOURCE LINE 123
|
|
||||||
context.write(unicode(self.tagcloud()))
|
|
||||||
context.write(u'\n\n ')
|
|
||||||
# SOURCE LINE 125
|
|
||||||
context.write(unicode(self.body()))
|
|
||||||
context.write(u'\n\n <div id="copyright">\n <em>Yolanda</em> Copyright © 2007, 2008 <em>The Yolanda Developers</em> –\n This program comes with <em>absolutely no warranty</em>; for details <a href="')
|
|
||||||
# SOURCE LINE 129
|
|
||||||
context.write(unicode(h.url_for('license')))
|
|
||||||
context.write(u'">click here</a>.\n This is <em>free software</em>, and you are welcome to redistribute it\n under certain conditions; <a href="')
|
|
||||||
# SOURCE LINE 131
|
|
||||||
context.write(unicode(h.url_for('license')))
|
|
||||||
context.write(u'">click here</a> for details.\n To view the source code, <a href="">click here</a>. Report bugs <a href="">here</a>.\n </div>\n\n <ul id="badges">\n\n <li class="badge">\n <a href="http://validator.w3.org/">\n <img alt="XHTML 1.1 logo" src="')
|
|
||||||
# SOURCE LINE 139
|
|
||||||
context.write(unicode(h.url_for('images/badges/xhtml 1.1.png')))
|
|
||||||
context.write(u'" />\n </a>\n </li>\n\n <li class="badge">\n <a href="http://jigsaw.w3.org/css-validator/">\n <img alt="CSS logo" src="')
|
|
||||||
# SOURCE LINE 145
|
|
||||||
context.write(unicode(h.url_for('images/badges/css.png')))
|
|
||||||
context.write(u'" />\n </a>\n </li>\n\n <li class="badge">\n <a href="http://www.theora.org/">\n <img alt="Ogg Theora logo" src="')
|
|
||||||
# SOURCE LINE 151
|
|
||||||
context.write(unicode(h.url_for('images/badges/ogg theora.png')))
|
|
||||||
context.write(u'" />\n </a>\n </li>\n\n </ul>\n\n</body>\n\n</html>\n')
|
|
||||||
return ''
|
|
||||||
finally:
|
|
||||||
context.caller_stack.pop_frame()
|
|
||||||
|
|
||||||
|
|
||||||
def render_search(context):
|
|
||||||
context.caller_stack.push_frame()
|
|
||||||
try:
|
|
||||||
h = context.get('h', UNDEFINED)
|
|
||||||
# SOURCE LINE 5
|
|
||||||
context.write(u'\n <div id="search">\n\n ')
|
|
||||||
# SOURCE LINE 8
|
|
||||||
context.write(unicode(h.form(h.url_for('search_results'), method='get')))
|
|
||||||
context.write(u'\n\n ')
|
|
||||||
# SOURCE LINE 10
|
|
||||||
context.write(unicode(h.text_field('query')))
|
|
||||||
context.write(u'\n ')
|
|
||||||
# SOURCE LINE 11
|
|
||||||
context.write(unicode(h.submit('Search Videos')))
|
|
||||||
context.write(u'\n\n ')
|
|
||||||
# SOURCE LINE 13
|
|
||||||
context.write(unicode(h.end_form()))
|
|
||||||
context.write(u'\n\n <ul id="queries">\n\n <li id="important">\n <a href="">\n Important matters\n </a>\n </li>\n\n <li id="popular">\n <a href="">\n Popular garbage\n </a>\n </li>\n\n <li id="new">\n <a href="">\n Totally new stuff\n </a>\n </li>\n\n </ul>\n\n </div>\n')
|
|
||||||
return ''
|
|
||||||
finally:
|
|
||||||
context.caller_stack.pop_frame()
|
|
||||||
|
|
||||||
|
|
||||||
def render_tagcloud(context):
|
|
||||||
context.caller_stack.push_frame()
|
|
||||||
try:
|
|
||||||
# SOURCE LINE 55
|
|
||||||
context.write(u'\n <div id="tagcloud">\n\n <h1>Popular tags</h1>\n\n <a href="" class="tag6">Proin</a>\n <a href="" class="tag5">lectus</a>\n <a href="" class="tag2">orci</a>\n <a href="" class="tag6">venenatis</a>\n <a href="" class="tag5">pharetra</a>\n <a href="" class="tag6">egestas</a>\n <a href="" class="tag1">id</a>\n <a href="" class="tag6">tincidunt</a>\n <a href="" class="tag5">vel</a>\n <a href="" class="tag3">eros</a>\n <a href="" class="tag6">Integer</a>\n <a href="" class="tag6">risus</a>\n <a href="" class="tag6">velit</a>\n <a href="" class="tag2">facilisis</a>\n <a href="" class="tag4">eget</a>\n <a href="" class="tag5">viverra</a>\n <a href="" class="tag6">et</a>\n <a href="" class="tag6">leo</a>\n <a href="" class="tag1">Suspendisse</a>\n <a href="" class="tag3">potenti</a>\n <a href="" class="tag5">Phasellus</a>\n <a href="" class="tag4">auctor</a>\n <a href="" class="tag6">enim</a>\n <a href="" class="tag3">eget</a>\n <a href="" class="tag4">sem</a>\n\n </div>\n')
|
|
||||||
return ''
|
|
||||||
finally:
|
|
||||||
context.caller_stack.pop_frame()
|
|
||||||
|
|
||||||
|
|
||||||
def render_login(context):
|
|
||||||
context.caller_stack.push_frame()
|
|
||||||
try:
|
|
||||||
h = context.get('h', UNDEFINED)
|
|
||||||
# SOURCE LINE 40
|
|
||||||
context.write(u'\n <div id="login">\n\n <h1>To upload videos, login.</h1>\n\n ')
|
|
||||||
# SOURCE LINE 45
|
|
||||||
context.write(unicode(h.form(h.url_for('account_login'), method='post')))
|
|
||||||
context.write(u'\n\n ')
|
|
||||||
# SOURCE LINE 47
|
|
||||||
context.write(unicode(h.text_field('username')))
|
|
||||||
context.write(u'\n ')
|
|
||||||
# SOURCE LINE 48
|
|
||||||
context.write(unicode(h.submit('Login (OpenID)')))
|
|
||||||
context.write(u'\n\n ')
|
|
||||||
# SOURCE LINE 50
|
|
||||||
context.write(unicode(h.end_form()))
|
|
||||||
context.write(u'\n\n </div>\n')
|
|
||||||
return ''
|
|
||||||
finally:
|
|
||||||
context.caller_stack.pop_frame()
|
|
||||||
|
|
||||||
|
|
Binary file not shown.
|
@ -1,57 +0,0 @@
|
||||||
from mako import runtime, filters, cache
|
|
||||||
UNDEFINED = runtime.UNDEFINED
|
|
||||||
_magic_number = 2
|
|
||||||
_modified_time = 1218565522.49384
|
|
||||||
_template_filename='/home/nils/src/yolanda/trunk/yolanda/templates/xhtml/index.mako'
|
|
||||||
_template_uri='/xhtml/index.mako'
|
|
||||||
_template_cache=cache.Cache(__name__, _modified_time)
|
|
||||||
_source_encoding=None
|
|
||||||
_exports = ['heading', '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.mako', _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 5
|
|
||||||
context.write(u'\n\n')
|
|
||||||
# SOURCE LINE 9
|
|
||||||
context.write(u'\n\n<h1>An introduction to Yolanda</h1>\n\n<h2>What exactly is this ?</h2>\n\n<p>\nYolanda is a <em>free software video platform</em> and, as far as we (the developers) know, the <em>only</em> one that doesn\'t rely on proprietary browser extensions. Instead, we only use <em>open standards</em>, namely <a href="">XHTML</a>, <a href="">CSS</a> and <a href="">JavaScript</a>; Videos are served in <a href="">Ogg Theora</a> format. Since Yolanda is <a href="">free software</a>, you can <a href="">download the source code</a> to adapt, modify and extend it.\n</p>\n\n<h2>What do I need to play videos ?</h2>\n\n<p>\nIf you use a recent GNU/Linux Desktop distribution such as Ubuntu, no additional software is required. Users of inferior operating systems and arcane desktop environments are advised to install the <a href="">VLC media player</a> web plugin (Links and Lynx users should use VLC\'s aalib or libcaca output). As soon as browsers support the XHTML 5 <video> element, we will use it, which means that no additional software will be required.\n</p>\n\n<h2>How do I upload videos ?</h2>\n<p>\nSed non ipsum. Maecenas justo. Etiam fermentum. Praesent scelerisque. Quisque malesuada nulla sed pede volutpat pulvinar. Curabitur tincidunt tellus nec purus. Praesent a lacus vitae turpis consequat semper. Aenean turpis ipsum, rhoncus vitae, posuere vitae, euismod sed, ligula. Praesent semper, neque vel condimentum hendrerit, lectus elit pretium ligula, nec consequat nisl velit at dui. Nam malesuada sapien eu nibh. \n</p>\n\n<h2>Why don\'t you use Flash / Java / $foo ?</h2>\n<p>\nProbably because it is not <a href="">free (as in freedom)</a>. If you are serious about your suggestion, please file a ticket in our <a href="">bug tracker</a>.\n</p>\n\n')
|
|
||||||
return ''
|
|
||||||
finally:
|
|
||||||
context.caller_stack.pop_frame()
|
|
||||||
|
|
||||||
|
|
||||||
def render_heading(context):
|
|
||||||
context.caller_stack.push_frame()
|
|
||||||
try:
|
|
||||||
# SOURCE LINE 7
|
|
||||||
context.write(u'\n Welcome to Yolanda, a place for people who hate Adobe Flash.\n')
|
|
||||||
return ''
|
|
||||||
finally:
|
|
||||||
context.caller_stack.pop_frame()
|
|
||||||
|
|
||||||
|
|
||||||
def render_title(context):
|
|
||||||
context.caller_stack.push_frame()
|
|
||||||
try:
|
|
||||||
# SOURCE LINE 3
|
|
||||||
context.write(u'\n front page\n')
|
|
||||||
return ''
|
|
||||||
finally:
|
|
||||||
context.caller_stack.pop_frame()
|
|
||||||
|
|
||||||
|
|
Binary file not shown.
|
@ -1,105 +0,0 @@
|
||||||
from mako import runtime, filters, cache
|
|
||||||
UNDEFINED = runtime.UNDEFINED
|
|
||||||
_magic_number = 2
|
|
||||||
_modified_time = 1218555558.912719
|
|
||||||
_template_filename='/home/nils/src/yolanda/trunk/yolanda/templates/xhtml/results.mako'
|
|
||||||
_template_uri='/xhtml/results.mako'
|
|
||||||
_template_cache=cache.Cache(__name__, _modified_time)
|
|
||||||
_source_encoding=None
|
|
||||||
_exports = ['results_listing', 'heading', '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.mako', _template_uri)
|
|
||||||
def render_body(context,**pageargs):
|
|
||||||
context.caller_stack.push_frame()
|
|
||||||
try:
|
|
||||||
__M_locals = dict(pageargs=pageargs)
|
|
||||||
def results_listing(results):
|
|
||||||
return render_results_listing(context.locals_(__M_locals),results)
|
|
||||||
c = context.get('c', UNDEFINED)
|
|
||||||
# SOURCE LINE 1
|
|
||||||
context.write(u'\n\n')
|
|
||||||
# SOURCE LINE 5
|
|
||||||
context.write(u'\n\n')
|
|
||||||
# SOURCE LINE 9
|
|
||||||
context.write(u'\n\n')
|
|
||||||
# SOURCE LINE 25
|
|
||||||
context.write(u'\n\n')
|
|
||||||
# SOURCE LINE 27
|
|
||||||
context.write(unicode(results_listing(c.results)))
|
|
||||||
context.write(u'\n')
|
|
||||||
return ''
|
|
||||||
finally:
|
|
||||||
context.caller_stack.pop_frame()
|
|
||||||
|
|
||||||
|
|
||||||
def render_results_listing(context,results):
|
|
||||||
context.caller_stack.push_frame()
|
|
||||||
try:
|
|
||||||
h = context.get('h', UNDEFINED)
|
|
||||||
c = context.get('c', UNDEFINED)
|
|
||||||
# SOURCE LINE 11
|
|
||||||
context.write(u'\n <ol id="results">\n')
|
|
||||||
# SOURCE LINE 13
|
|
||||||
for result in c.results:
|
|
||||||
# SOURCE LINE 14
|
|
||||||
context.write(u' <li>\n <a href="')
|
|
||||||
# SOURCE LINE 15
|
|
||||||
context.write(unicode(h.url_for('video_page', video=result)))
|
|
||||||
context.write(u'">\n <img src="')
|
|
||||||
# SOURCE LINE 16
|
|
||||||
context.write(unicode(result['thumbnail']))
|
|
||||||
context.write(u'" alt=\'thumbnail for "')
|
|
||||||
context.write(unicode(result['title']))
|
|
||||||
context.write(u'"\'/>\n </a>\n <br />\n <a href="')
|
|
||||||
# SOURCE LINE 19
|
|
||||||
context.write(unicode(h.url_for('video_page', video=result)))
|
|
||||||
context.write(u'" class="title">\n ')
|
|
||||||
# SOURCE LINE 20
|
|
||||||
context.write(unicode(result['title']))
|
|
||||||
context.write(u'\n </a>\n </li>\n')
|
|
||||||
# SOURCE LINE 24
|
|
||||||
context.write(u' </ol>\n')
|
|
||||||
return ''
|
|
||||||
finally:
|
|
||||||
context.caller_stack.pop_frame()
|
|
||||||
|
|
||||||
|
|
||||||
def render_heading(context):
|
|
||||||
context.caller_stack.push_frame()
|
|
||||||
try:
|
|
||||||
c = context.get('c', UNDEFINED)
|
|
||||||
# SOURCE LINE 7
|
|
||||||
context.write(u'\n There are over 9000 videos matching "')
|
|
||||||
# SOURCE LINE 8
|
|
||||||
context.write(unicode(c.query))
|
|
||||||
context.write(u'".\n')
|
|
||||||
return ''
|
|
||||||
finally:
|
|
||||||
context.caller_stack.pop_frame()
|
|
||||||
|
|
||||||
|
|
||||||
def render_title(context):
|
|
||||||
context.caller_stack.push_frame()
|
|
||||||
try:
|
|
||||||
c = context.get('c', UNDEFINED)
|
|
||||||
# SOURCE LINE 3
|
|
||||||
context.write(u'\n results for "')
|
|
||||||
# SOURCE LINE 4
|
|
||||||
context.write(unicode(c.query))
|
|
||||||
context.write(u'"\n')
|
|
||||||
return ''
|
|
||||||
finally:
|
|
||||||
context.caller_stack.pop_frame()
|
|
||||||
|
|
||||||
|
|
Binary file not shown.
Loading…
Reference in a new issue