CanDo
发表于 : 2005-09-07 22:54
1.
Add universe and multiverse to your apt sources list (if it's not already there). When finished your sources list should look something like this:
deb http://archive.ubuntulinux.org/ubuntu breezy main restricted universe multiverse
deb http://archive.ubuntulinux.org/ubuntu breezy-security main restricted universe multiverse
deb http://archive.ubuntulinux.org/ubuntu breezy-updates main restricted universe multiverse
2.
apt-get install msttcorefonts ca-certificates python2.3-doc python2.3-profiler xpdf
3.
apt-get install schooltool
4.
cd /usr/lib/libschooltool/schooltool
5.
apt-get install cvs if you don't have cvs installed
6.
export CVS_RSH=ssh
7.
cvs -z3 -d:ext:developername@cvs.sourceforge.net:/cvsroot/cando co schooltool-fork
8.
cp -rf schooltool-fork/src/candotoo .
9.
edit app.py, at the end of imports add line: from schooltool.candotoo.app import CanDoTooContainer. Find line that says self.calendar = Calendar(self), keeping the indentation add self['candotoo'] = CanDoTooContainer() after it.
10.
edit configure.zcml, at the very end of the file right before it says </configure>, add lines <!-- CanDoToo --> and <include package=".candotoo" />.
11.
edit browser/templates/navigation.pt, before the line with </ul> add line <li><a tal:attributes="href view/app/candotoo/@@absolute_url" i18n:translate="">CanDoToo</a></li>
12.
rm -rf schooltool-fork
13.
rm var/lib/schooltool/Data.fs
14.
/etc/init.d/schooltool restart
https://wiki.ubuntu.com/CanDo
Add universe and multiverse to your apt sources list (if it's not already there). When finished your sources list should look something like this:
deb http://archive.ubuntulinux.org/ubuntu breezy main restricted universe multiverse
deb http://archive.ubuntulinux.org/ubuntu breezy-security main restricted universe multiverse
deb http://archive.ubuntulinux.org/ubuntu breezy-updates main restricted universe multiverse
2.
apt-get install msttcorefonts ca-certificates python2.3-doc python2.3-profiler xpdf
3.
apt-get install schooltool
4.
cd /usr/lib/libschooltool/schooltool
5.
apt-get install cvs if you don't have cvs installed
6.
export CVS_RSH=ssh
7.
cvs -z3 -d:ext:developername@cvs.sourceforge.net:/cvsroot/cando co schooltool-fork
8.
cp -rf schooltool-fork/src/candotoo .
9.
edit app.py, at the end of imports add line: from schooltool.candotoo.app import CanDoTooContainer. Find line that says self.calendar = Calendar(self), keeping the indentation add self['candotoo'] = CanDoTooContainer() after it.
10.
edit configure.zcml, at the very end of the file right before it says </configure>, add lines <!-- CanDoToo --> and <include package=".candotoo" />.
11.
edit browser/templates/navigation.pt, before the line with </ul> add line <li><a tal:attributes="href view/app/candotoo/@@absolute_url" i18n:translate="">CanDoToo</a></li>
12.
rm -rf schooltool-fork
13.
rm var/lib/schooltool/Data.fs
14.
/etc/init.d/schooltool restart
https://wiki.ubuntu.com/CanDo