annotate website/README.txt @ 4587:a2eb4fb3e6d8

New Chameleon templating engine, engine is now configurable. We now have two configurable templating engines, the old Zope TAL templates (called zopetal in the config) and the new Chameleon (called chameleon in the config). A new config-option "template_engine" under [main] can take these config-options, the default is zopetal. Thanks to Cheer Xiao for the idea of making this configurable *and* for the actual implementation! Cheer Xiao commit log: - The original TAL engine ported from Zope is thereafter referred to as "zopetal", in speech and in code - A new option "template_engine" under [main] introduced - Zopetal-specific code stripped from cgi/templating.py to form the new cgi/engine_zopetal.py - Interface to Chameleon in cgi/engine_chameleon.py - Engines are supposed to provide a Templates class that mimics the behavior of the old cgi.templating.Templates. The Templates class is preferably subclassed from cgi.templating.TemplatesBase. - New function cgi.templating.get_templates to get the appropriate engine's Templates instance according to the engine name
author Ralf Schlatterbeck <rsc@runtux.com>
date Thu, 23 Feb 2012 18:10:03 +0100
parents 4509e2df25c0
children 5c8463b8f7ba
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4227
25db485027cf add website instructions
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
1 issues.roundup-tracker.org:
25db485027cf add website instructions
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
2
25db485027cf add website instructions
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
3 * log into issues.roundup-tracker.org
25db485027cf add website instructions
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
4 * get a working copy of web/trunk/issues
25db485027cf add website instructions
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
5 * copy the files into the tracker instance, using sudo:
25db485027cf add website instructions
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
6 sudo -u roundup cp <file> /home/roundup/trackers/roundup/...
25db485027cf add website instructions
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
7 * restart the roundup server:
25db485027cf add website instructions
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
8 sudo -u roundup /etc/init.d/roundup restart
25db485027cf add website instructions
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
9
25db485027cf add website instructions
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
10 www.roundup-tracker.org:
25db485027cf add website instructions
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
11
25db485027cf add website instructions
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
12 * log into sf.net
25db485027cf add website instructions
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
13 ssh -t <user>,roundup@shell.sourceforge.net create
4551
7cd19e56ae4c updates
Richard Jones <richard@users.sourceforge.net>
parents: 4442
diff changeset
14 * set project_home:
7cd19e56ae4c updates
Richard Jones <richard@users.sourceforge.net>
parents: 4442
diff changeset
15 project_home=/home/project-web/roundup
4554
4509e2df25c0 have now set up a virtualenv with the goodies in it so use that
Richard Jones <richard@users.sourceforge.net>
parents: 4551
diff changeset
16 * activate the virtualenv
4509e2df25c0 have now set up a virtualenv with the goodies in it so use that
Richard Jones <richard@users.sourceforge.net>
parents: 4551
diff changeset
17 cd ${project_home}
4509e2df25c0 have now set up a virtualenv with the goodies in it so use that
Richard Jones <richard@users.sourceforge.net>
parents: 4551
diff changeset
18 . docbuilder/bin/activate
4551
7cd19e56ae4c updates
Richard Jones <richard@users.sourceforge.net>
parents: 4442
diff changeset
19 * update the working copy (you may need to "cd" to the docs directory for it to update...)
4227
25db485027cf add website instructions
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
20 cd ${project_home}/src/web/www
25db485027cf add website instructions
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
21 svn update
25db485027cf add website instructions
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
22 * build it
4554
4509e2df25c0 have now set up a virtualenv with the goodies in it so use that
Richard Jones <richard@users.sourceforge.net>
parents: 4551
diff changeset
23 make html
4551
7cd19e56ae4c updates
Richard Jones <richard@users.sourceforge.net>
parents: 4442
diff changeset
24 * you may also "make clean"
4227
25db485027cf add website instructions
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
25 * install it
25db485027cf add website instructions
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
26 cp -r ./html/* ${project_home}/htdocs/
25db485027cf add website instructions
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
27
25db485027cf add website instructions
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
28 (I think I can simplify the Makefile above such that the installation will be included as a make target.)
25db485027cf add website instructions
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
29
25db485027cf add website instructions
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
30 wiki.roundup-tracker.org:
25db485027cf add website instructions
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
31
25db485027cf add website instructions
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
32 * log into sf.net (see above)
25db485027cf add website instructions
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
33 * update the working copy
4551
7cd19e56ae4c updates
Richard Jones <richard@users.sourceforge.net>
parents: 4442
diff changeset
34 cd /home/project-web/roundup/src/web/wiki
4227
25db485027cf add website instructions
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
35 svn update
25db485027cf add website instructions
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
36 * copy the files into the right places:
25db485027cf add website instructions
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
37 - cp static/roundup/* ${project_home}/htdocs/_wiki/
25db485027cf add website instructions
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
38 - cp wiki/data/plugin/theme/roundup.py ${project_home}/persistent/wiki/data/plugin/theme/

Roundup Issue Tracker: http://roundup-tracker.org/