Size: 5430
Comment:
|
← Revision 25 as of 2009-12-25 07:14:25 ⇥
Size: 253
Comment: converted to 1.6 markup
|
Deletions are marked like this. | Additions are marked like this. |
Line 2: | Line 2: |
''' PyBlosxom Blog系统 ''' |
|
Line 6: | Line 3: |
-- limodou [[[DateTime(2004-09-02T21:39:19Z)]]] [[TableOfContents]] = 系统的安装 = ''pyBlosxom是从Blosxom系统发展起来的,基于文件系统的Blog系统。安装及配置简单。'' == 系统安装 == |
<<TableOfContents>> <<Include(AbtPyBlosxom)>> |
Line 12: | Line 6: |
* 安装文档我是参考这篇文章[http://wiki.subtlehints.net/moin/HowToInstall How to Install PyBlosxom] * 黄冬也写了一篇,不过,还是有些简单。[http://wiki.woodpecker.org.cn/moin.cgi/bsd_2fPyBlosxomInstallHowto pyblosxom安装Howto] * 这里是我写的一篇安装说明["pyBlosxom安装及配置"]。本文目前只是一个初始安装说明,以后随着对pyBlosxom的深入了解会继续完善。 |
= PyBlosxom = <<Include(PyBlosxomUsage)>> |
Line 16: | Line 9: |
= 系统配置 = | == 深入PyBlosxom == <<Include(PyBlosxomDev)>> |
Line 18: | Line 12: |
== 增加Blog项 == * 现在pyBlosxom没有提供一个加入新的Blog的web界面,现在只能通过手工编辑一个文件,放在你的entry目录下。 第一行是标题,其它行是内容 * 在[http://www.planetpyblosxom.org planetpyblosxom]的plugins中发现有一个weblog-add.py。说是随安装包一起,但根本没有。于是我从cvs上下载下来。不过,运行时报错,改了几个地方。最后还是终于可以运行了。当然是功能有限,但至少不用手工加内容了。考虑改造。 * 这回真正明白了weblog-add.py的用法。原贴在:[http://roughingit.subtlehints.net/pyblosxom/weblogs/tools/tutorial/ Using weblog-add to add entries in your blosxom blog] * 阅读["使用weblog-add.py来增加新贴"] == 增加多用户支持 == 我的方法就是多建几个目录,每个目录都是一个blog用户的入口,都有独立的config.py和pyblosxom.cgi文件。只不过,现在增加用户还只可以手工来做。 |
= 讨论 = <<Include(/Discuss)>> |
Line 32: | Line 16: |
== 修改样式 == 还记得安装后的丑样子吗?可以让它好看的。["为pyBlosxom增加样式"] == 添加comments插件 == ["添加comments插件"] == 增加分类 == 可以参考comments安装方法(主要是插件部分的安装)。 步骤: * 从contrib下拷贝pycategories.py到你的插件目录下 * 检查py['plugin_dirs']是否正确 * 修改config.py,在py['load_plugins']中增加'pycategories' * 运行./pyblosxom.cgi检查插件的情况 * 修改相应的模板,在模板中加入对$categorylinks模板变量的引用 == 增加日历 == 通用的插件安装方法。 步骤: * 从contrib下拷贝pycalendar.py到你的插件目录下 * 检查py['plugin_dirs']是否正确 * 修改config.py,在py['load_plugins']中增加'pycalendar' * 运行./pyblosxom.cgi检查插件的情况 * 修改相应的模板,在模板中加入对$calendar模板变量的引用 == 增加归档 == 通用的插件安装方法。 步骤: * 从contrib下拷贝pyarchives.py到你的插件目录下 * 检查py['plugin_dirs']是否正确 * 修改config.py,在py['load_plugins']中增加'pyarchives' * 还可以增加并修改: {{{ py['archive_template'] = '<li><a href="%(base_url)s/%(Y)s/%(b)s">%(m)s/%(y)s</a></li>' }}} 用来控制每行归档的显示效果 * 运行./pyblosxom.cgi检查插件的情况 * 修改相应的模板,在模板中加入对$archivelinks模板变量的引用 = 系统开发 = == ToDoList == 如果社区选定pyblosxom作为它的blog系统,那么首先应该为方便使用增加必要的管理功能。至于更高级、复杂的功能,留给有精力、有兴趣的人来完成吧。 * 增加多用户管理功能 现在多用户管理根本就没有,虽然可以支持多用户,但都是手工创建。 * 增加基本参数的配置功能 * 增加发贴、修改、删除功能 * 开发几个好看的样式 == 预览 == 现在没有空间去测试,我只是在我的机器上进行地测试。这里主要显示一些界面,及相应的功能说明。 显示预览: attachment:pyblosxom.png 已经实现的功能: * 定制了一个可以看的模板 * 分类 * 日历 * 归档 * 链接 * 评论 * xmlrpc-metaweblogapi = 讨论 = * pyblosxom的确如介绍所说,它是一个hacker的blog系统。国外的blog大都界面平平,手工维护。不象国内的blog系统,看上去个个都象个门户,象个论坛,功能的确丰富。可能blog对于老外来说,只是一个信息的记录与交流的地方,只是一个工具,因此不会在这上面花费很多的心思。而中国是把blog看成一个个人展现的平台,现在发展成多种平台的杂合体,象主页平台、讨流平台、信息发布平台等等,反正是功能越多越好。因此,如果想要pyblosxom做到这一点,现在是没戏。除了开发以外别无它法。除非我们换一种blog系统。 --limodou * 咳咳咳!可是PyBlosxom 作为老牌的hacker Blog 系统,已经有很多实用的 plugin ,就象Linux 系统都是由小工具组成一样,只是现在没有套件可以一次将所有Great 的 PyBlosxom 插件安装好…… 嗬嗬嗬,玩熟了,我们发布一个啄木鸟套件是也乎! -- Zoomq * Ps. 对哪!也许就是国内的各种华丽Blog系统将人的思路给误导了,将Blog 变成可以一夜成名的擂台!简约!不要浮燥! -- Zoomq * 正在一个个地装。装完一个写一个文档。然后针对不足进行开发。如果真用这个blog系统的话,到时还请Zoomq兄给设计下CSS啊! --limodou |
-- limodou [<<DateTime(2004-09-02T21:39:19Z)>>] |
Contents
PyBlosxom 是从BloSxom系统发展起来的,基于文件系统的Blog系统。
安装及配置简单。但是想拥有各种现代网志的功能,必须 DIY it! -- 乐趣也正在于此 -- ZoomQuiet
非常想说Python 的blosxom Clone 应该是最优雅好用的!
社区选中了 PyBlosxom 进行Blog 群落的支持,也 想 让大家都可以 体验 DIY自个儿的Blog -- 当然的使用 以Python !-)
PyBlosxom
QuickStart
pyBlosxom安装及配置 -- limodou 个人版本
安装体验
bsd/PyBlosxomInstallHowto -- HD尝试的安装断点报告
PyBlosxom-li -- limodou 完整的安装流程
理解PyBlosxom
UnderstandPyBlosxom -- ZoomQuiet 体会基于文件的信息管理
基础管理
插件安装
如何添加comments插件 -- limodou 个人体会
PyB-preformatters -- 预格式化插件
多用户模式
PyBlosxoMultuser -- 暂时还没看到好的解决方案, 自己改造代码 -- Hoxide
PyBlosxom结构
- 期望利用自个儿开发的dot 结构分析工具自动生成结构说明图!
深入PyBlosxom
-- limodou [2004-09-21 23:58:02]
Contents
- 标准技术文档:
Client Tool
You can use NewEdit to edit blog and save it to PyBlosxom. And NewEdit support most PyBlosxon xmlrpc-API. But I modified the original xmlrpc-metaweblog.py plugin, so as to support Unicode like utf-8.
高阶定制
StepsZqMiddleNight -- 一步步定制 Zq'sMiddleNight 样式
ZhCategories -- 中文化分类索引
插件开发
MailPyBlosxom -- 通过邮件管理 PyBlosxom
FlPyBlosxom -- Flash 界面的 PyBlosxom 管理
xmlrpc_newedit.py
This plugin provides some misc method, and it is a xmlrpc plugin, so you need install xmlrpc.py plugin first. This plugin provides these methods, just like:
- newedit.editCategory you can edit the existing category, if the category is not existed, it'll create a new one
- newedit.putFile put file to blog
- newedit.getFileList get file list which you'v uploaded
- newedit.getSysFile get system file which you can access
- newedit.getSysFileList get system file list which you can access
- newedit.putSysFile put system file which you can access
If you want to use putFile function, you should add parameter as blow:
- newedit_filepath - the path that files will be saved, it's a relative path according to datadir
getSysFile is used to modify some important files just like links.dat, flavour template files, etc. If you want to use this method, you shoud add parameter in config.py as blow:
- newedit_filelist - is a filename, the content of it is a list of filename that enable accessed via xmlrpc.
- so if you invoke the method, it'll check the filename in the list first. If existed, you can get the content of the file, and put the new content back via putSysFile. It should be a relative path according to datadir.
For example:
config.py py['newedit_filepath'] = 'files' py['newedit_filelist'] = 'filelist.dat'
the structure of directory:
files/ entries/ #datadir | +------ filelist.dat
If the content of the filelist.dat is :
links.dat
thus you can use getSysFile to get the content of the links.dat, and modify it on the remote, then use putSysFile to save the modification.
download the plugins: xmlrpc_newedit.py
系统改造
啍啍啍有了源代码!当然要改成适合中国思路的使用方式!
讨论
因为也是刚刚接触不久默认也许失当!请指正!
- 这好象不是我写的嘛,怎么是我的名字呢? --limodou
- 你创建的,主人就是你!嗬嗬嗬! -- Zoomq
-- limodou [2004-09-02 21:39:19]