⇤ ← Revision 1 as of 2006-12-14 05:16:01
Size: 3738
Comment:
|
← Revision 2 as of 2009-12-25 07:15:25 ⇥
Size: 3733
Comment: converted to 1.6 markup
|
Deletions are marked like this. | Additions are marked like this. |
Line 6: | Line 6: |
[[TableOfContents]] ::-- ZoomQuiet [[[DateTime(2006-12-14T05:16:01Z)]]] |
<<TableOfContents>> ::-- ZoomQuiet [<<DateTime(2006-12-14T05:16:01Z)>>] |
Line 11: | Line 11: |
||[wiki:self/WoodpeckerProjs 啄木鸟项目::]|| (!) '''[wiki:self/KarriMvc KarriMvc]'''|| {o} '''[wiki:self/KarrigellQuickIn Karrigell快速使用]'''|| | ||[[self:WoodpeckerProjs|啄木鸟项目::]]|| (!) '''[[self:KarriMvc|KarriMvc]]'''|| {o} '''[[self:KarrigellQuickIn|Karrigell快速使用]]'''|| |
Line 17: | Line 17: |
* '''[http://groups-beta.google.com/group/python-cn/browse_thread/thread/2cd1ee5b1b422f25 Karrigell+SQLObject+KID,也来个MVC模式]''' | * '''[[http://groups-beta.google.com/group/python-cn/browse_thread/thread/2cd1ee5b1b422f25|Karrigell+SQLObject+KID,也来个MVC模式]]''' |
Line 20: | Line 20: |
||<^>[[MonthCalendar]][[BR]][[Include(CPUGnav)]]||<^>'''提要'''[[Include(^KarriMvc/200.*,'项目简报',4,sort=descending,items=13,titlesonly)]]|| | ||<^><<MonthCalendar>><<BR>><<Include(CPUGnav)>>||<^>'''提要'''<<Include(^KarriMvc/200.*,'项目简报',4,sort=descending,items=13,titlesonly)>>|| |
Line 31: | Line 31: |
web难怪有人说'''[http://bitworking.org/news/Why_so_many_Python_web_frameworks <<Why so many Python webframeworks?>>]''' | web难怪有人说'''[[http://bitworking.org/news/Why_so_many_Python_web_frameworks|<<Why so many Python webframeworks?>>]]''' |
Line 101: | Line 101: |
[[Include(/DisCuss)]] | <<Include(/DisCuss)>> |
KarriMvc -- 以TurboGears 的大框架的思路快速利用现有的软件组合成自个儿的 MVC 框架!
::-- ZoomQuiet [2006-12-14 05:16:01]
1. 缘起
描述项目是如何发起的
1.1. 项目日志
|
提要 |
1.2. 构想
{{{Moyan <[email protected]> hide details 12:14 pm (27 minutes ago)
reply-to [email protected] to python.cn <[email protected]> date Dec 14, 2006 12:14 PM subject [python-cn:20432] Karrigell+SQLObject+KID,也来个MVC模式 mailed-by googlegroups.com
}}} 近来,web开发热的不得了!quixote,pylons,django,turbogears,web.py还有什么simple web难怪有人说<<Why so many Python webframeworks?>>
另外一边,这些frameworks的平台也开始发热cgi,fastcgi,scgi,wsgi等
1.2.1. 独爱karrigell
万般中我独爱karrigell既然mvc那么好,那我也体验下了:
- 使用sqlobject作为orm管理数据库
- 使用karrigell作为url dispatch(最好是选择ks服务方式组织)
- kid作为view
1.2.1.1. 在ks中
{{{... ... data=....select() print kid.serialize(file=,coding='utf-8',**locals()) }}}
显然,用这个真正作个开放在internet上的站点还差很多东西,包括karrigell的性能也是要考虑的.
1.2.2. 题外话
我以为一个web frameworks应该具有的功能包括
- Authentication 身份识别
- session management
- 获取环境变量值(Enviroment variblity)
- 18in
- url dispatch
- ORM
- template (这年头没有mvc你都不敢说自己是web frameworks!哈哈)
1.2.3. 中文处理
最后所说,上面(sqlobject+kid+karrigell)中使用中文的问题 首先,你得使用一个可以将源代码保存为utf-8编码的代码编辑器(比如我使用的editplus2.30,其他版本就不清楚了)
在所有需要使用到中文的py,ks文件头部加
{{{#-*-coding:utf-8-*- 也可以 # coding:utf-8 }}}接下来的代码中凡中文,就u'...'或unicode('....')
同样将kid文件使用utf-8编码保存,并在文件头部加
<head> <meta http-equiv="content-type" content="text/html; charset='utf-8'"> <title></title> </head>
关键是<meta http-equiv="content-type" content="text/html;charset='utf-8'">
修改karrigell.ini
outputEncoding='utf-8' encodeFormDate=1
最后你的sqlobject
中的unicodecol该怎么写就怎么写,除非你要强制保存在数据库中的文字是其他代码就按UnicodeCol(dbEncoding='gb2312').我的经验不用加什么dbEncoding,加上去什么结果我也没有试过
1.3. 项目管理
1.3.1. 目标
1.3.2. 计划
1.3.3. 成员
1.3.4. 成果
2. 反馈
项目讨论