Differences between revisions 1 and 2
Revision 1 as of 2006-12-14 05:16:01
Size: 3738
Editor: ZoomQuiet
Comment:
Revision 2 as of 2009-12-25 07:15:25
Size: 3733
Editor: localhost
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]

啄木鸟项目::

(!) KarriMvc

{o} Karrigell快速使用

1. 缘起

描述项目是如何发起的

1.1. 项目日志

<< <  2025 / 5 >  >>
Mon Tue Wed Thu Fri Sat Sun
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

CPUG联盟::

CPUG::门户plone

BPUG

SPUG

ZPUG

SpreadPython Python宣传

提要

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应该具有的功能包括

  1. Authentication 身份识别
  2. session management
  3. 获取环境变量值(Enviroment variblity)
  4. 18in
  5. url dispatch
  6. ORM
  7. 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. 反馈

项目讨论

KarriMvc (last edited 2009-12-25 07:15:25 by localhost)