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
CanDo
- cucme
- 帖子: 22
- 注册时间: 2005-09-02 19:34
- 来自: 河南
OK !CanDo
1.
添加 universe 组件和 multiverse 组件到您的 apt 源列表(如果它并不存在)。完成的 apt 源列表应该象这样:
9.
编辑文件 app.py ,在 imports 的结尾添加行:
编辑文件 configure.zcml,在文件结尾处的 </configure> 之前添加行
11.
编辑文件 browser/templates/navigation.pt , 在存在 </ul> 的行前面添加行
来自 :https://wiki.ubuntu.com/CanDo
======================================
**注:universe 组件是整个自由、开源Linux世界的缩影。在“universe”组件中,你可以找到大多数开源软件,以及在开源版权下的软件,所有这些都是在公共源的基础上建立的。这些软件都是使用“main”中的组件编写的,它们能与“main”组件相安无事地共同运行,但它们没有安全升级的保障。“universe”组件包含了数以千计的软件。虽然是公共的,用户必须明白它们与稳定的Ubuntu核心的软件的差异和不稳定。
**注:multiverse 组件都是一些不会成为自由软件(Free Software)的软件.
见本站 http://www.ubuntu.org.cn/aboutubuntu/co ... ument_view
=========================
**注: 不知道9部分 imports 和 indentation 具体含义。没有译出来。请指正。
添加 universe 组件和 multiverse 组件到您的 apt 源列表(如果它并不存在)。完成的 apt 源列表应该象这样:
2. 代码: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
3. 代码:apt-get install msttcorefonts ca-certificates python2.3-doc python2.3-profiler xpdf
4. 代码:apt-get install schooltool
5. 代码:cd /usr/lib/libschooltool/schooltool
6. 代码:apt-get install cvs if you don't have cvs installed
7. 代码:export CVS_RSH=ssh
8. 代码:cvs -z3 -d:ext:developername@cvs.sourceforge.net:/cvsroot/cando co schooltool-fork
cp -rf schooltool-fork/src/candotoo
9.
编辑文件 app.py ,在 imports 的结尾添加行:
找到行 self.calendar = Calendar(self),保留 indentation 并在它后面添加from schooltool.candotoo.app import CanDoTooContainer
10.self['candotoo'] = CanDoTooContainer()
编辑文件 configure.zcml,在文件结尾处的 </configure> 之前添加行
和<!-- CanDoToo -->
<include package=".candotoo" />
11.
编辑文件 browser/templates/navigation.pt , 在存在 </ul> 的行前面添加行
12. 代码:<li><a tal:attributes="href view/app/candotoo/@@absolute_url" i18n:translate="">CanDoToo</a></li>
13. 代码:rm -rf schooltool-fork
14. 代码:rm var/lib/schooltool/Data.fs
/etc/init.d/schooltool restart
来自 :https://wiki.ubuntu.com/CanDo
======================================
**注:universe 组件是整个自由、开源Linux世界的缩影。在“universe”组件中,你可以找到大多数开源软件,以及在开源版权下的软件,所有这些都是在公共源的基础上建立的。这些软件都是使用“main”中的组件编写的,它们能与“main”组件相安无事地共同运行,但它们没有安全升级的保障。“universe”组件包含了数以千计的软件。虽然是公共的,用户必须明白它们与稳定的Ubuntu核心的软件的差异和不稳定。
**注:multiverse 组件都是一些不会成为自由软件(Free Software)的软件.
见本站 http://www.ubuntu.org.cn/aboutubuntu/co ... ument_view
=========================
**注: 不知道9部分 imports 和 indentation 具体含义。没有译出来。请指正。
- leal
- 帖子: 1119
- 注册时间: 2005-08-29 14:49
- 来自: 杭州
- 联系:
1、2、3.....后,加“步、步骤”等较好
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.
编辑app.py,在imports(导入,python语言中,导入其它模块)最后一行后加上这样一行:from schooltool.candotoo.app import CanDoTooContainer。查找含self.calendar = Calendar(self)的代码行,在其后加上self['candotoo'] = CanDoTooContainer()一行,并使其缩进和上一行代码保持一致。
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.
编辑app.py,在imports(导入,python语言中,导入其它模块)最后一行后加上这样一行:from schooltool.candotoo.app import CanDoTooContainer。查找含self.calendar = Calendar(self)的代码行,在其后加上self['candotoo'] = CanDoTooContainer()一行,并使其缩进和上一行代码保持一致。
- oneleaf
- 论坛管理员
- 帖子: 10441
- 注册时间: 2005-03-27 0:06
- 系统: Ubuntu 12.04
- millenniumdark
- 论坛版主
- 帖子: 4159
- 注册时间: 2005-07-02 14:41
- 系统: Ubuntu 14.04 (Kylin)
- 联系:
- millenniumdark
- 论坛版主
- 帖子: 4159
- 注册时间: 2005-07-02 14:41
- 系统: Ubuntu 14.04 (Kylin)
- 联系: