Mercurial > hg > bitsyblog
changeset 10:93a4557e15c1
filling out genshi
author | k0s <k0scist@gmail.com> |
---|---|
date | Tue, 06 Oct 2009 21:37:50 -0400 |
parents | e4f28fde518a |
children | ebe8dc33c871 |
files | bitsyblog/templates/blog.html setup.py |
diffstat | 2 files changed, 47 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/bitsyblog/templates/blog.html Tue Oct 06 21:37:28 2009 -0400 +++ b/bitsyblog/templates/blog.html Tue Oct 06 21:37:50 2009 -0400 @@ -1,7 +1,44 @@ +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" + xmlns:py="http://genshi.edgewall.org/"> -<div py:for="entry in blog" - id="${blog_id}" class="blog-entry"> - <a name="${blog_id}" /> - <div class="subject"> - <a href="TODO">${subject}</a> - + <head> + <title>${user} - ${site_name}</title> + + <py:for each="index, sheet in stylesheets"> + </py:for> + + </head> + + <body> + <xi:include href="navigation.html"> + + <div py:for="entry in blog" + id="${entry.datestamp()}" class="blog-entry"> + <a name="${entry.datestamp()}" /> + + <div class="subject"> + <a href="TODO">${subject}</a> + <em py:if="entry.privacy == secret and role == 'friend'"> + secret + </em> + </div> + + ${body} + + <!-- privacy settings --> + <div py:if="role == 'author'"> + <form action="TODO" method="post"> + <span title="viewable to everyone">public<input checked type="radio" name="privacy" value="public"/></span> + <span title="viewable only to your friends">secret<input type="radio" name="privacy" value="secret"/></span> + <span title="viewable only to you">private<input type="radio" name="privacy" value="private"/></span> + <input type="submit" name="submit" value="Change Privacy" /> + </form> + </div> + + </div> + </body> + +</html>
--- a/setup.py Tue Oct 06 21:37:28 2009 -0400 +++ b/setup.py Tue Oct 06 21:37:50 2009 -0400 @@ -19,8 +19,8 @@ classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='blog', author='Jeff Hammel', - author_email='jhammel@openplans.org', - url='http://bitsyblog.biz', + author_email='k0scist@gmail.com', + url='http://k0s.org/blog', license='GPL', packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), include_package_data=True, @@ -35,7 +35,8 @@ 'skimpygimpy', 'lxml', 'PyRSS2Gen', - 'docutils' + 'docutils', + 'genshi', ], dependency_links=[ 'https://svn.openplans.org/svn/standalone/markup#egg=markup',