# # # add_file "about.psp" # content [95de33c94331c5d3305733a149381ca88733aa6e] # # patch ".htaccess" # from [131caf178bf6641ecfa4333264574f1cd6ed41cd] # to [696ab9f90e6cae432c3f8628a91c765433f00756] # # patch "TODO" # from [8caff57c44359cf5d6371175966a89f2bab498ab] # to [98922a4569e702f84c8503125fcb7fbd3c958071] # # patch "wrapper.py" # from [4b4ab621c4585500073539f63f7468c713950275] # to [cecd28873835961f94fcc047350c89e6bba4151f] # ============================================================ --- about.psp 95de33c94331c5d3305733a149381ca88733aa6e +++ about.psp 95de33c94331c5d3305733a149381ca88733aa6e @@ -0,0 +1,52 @@ +<% + +from authors import authors + +psp.set_error_page("error.psp") +info = { 'title' : "About" } +req.write(template.header(info)) + +%> + +

Authors and Contributers

+ +
+<%= hq (authors.strip()) %>
+
+ +

Licensing

+ +
+<%
+req.write('''\
+Copyright (C) 2005  Grahame Bowland
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA''')
+%>
+
+ +

Dependencies

+ +

+ViewMTN is written in Python and +runs under mod_python. Code +highlighting is done by use of +GNU Enscript. +Graph colour generation code taken from monotone-viz. +

+ +<% +req.write(template.footer(info)) +%> ============================================================ --- .htaccess 131caf178bf6641ecfa4333264574f1cd6ed41cd +++ .htaccess 696ab9f90e6cae432c3f8628a91c765433f00756 @@ -1,6 +1,7 @@ AddHandler mod_python .psp Options FollowSymLinks PythonHandler wrapper PythonInterpreter viewmtn AddHandler mod_python .py DirectoryIndex index.psp +PythonAutoReload On ============================================================ --- TODO 8caff57c44359cf5d6371175966a89f2bab498ab +++ TODO 98922a4569e702f84c8503125fcb7fbd3c958071 @@ -9,14 +9,14 @@ * some sort of double escaping with " in changelogs + * the data is most likely unicode but we're not telling the browser that + TODO: * Use monotone automate graph to do the ancestry graphing, and show some future information. Perhaps cache based on the mtime of the db viewmtn is looking at? Might be good enough. - * RSS feed for branch view - * headofbranch; show certs in list of heads. * Show information when mousing over long hex strings. Also, it might @@ -26,15 +26,12 @@ * When hovering over nodes in the ancestry graph, display the ChangeLog. - * Remove dependency on goatpy (don't really want released software to - rely on it.) - - * Improve the manifest; icons next to files indicating type (steal the - icons from GNOME?) - * Show the version of viewmtn (rev + release) on each page, so that it's easier to figure out what people are running when helping them with problems. - * Colour the diffs, colour files. + * Colour diffs (files are already done) + * file viewer; treat merges as a special case and show the side which + actually has the resultant file (no change on that edge) + ============================================================ --- wrapper.py 4b4ab621c4585500073539f63f7468c713950275 +++ wrapper.py cecd28873835961f94fcc047350c89e6bba4151f @@ -130,6 +130,8 @@ 'template' : Template() } req.register_cleanup(cleanup, (req, vars)) + # most monotone output is utf8 + req.content_type = "text/html; charset=utf-8" instance = psp.PSP(req, filename=uri, vars=vars) instance.run() return apache.OK