自然,方便的开发管理环境! Leo's Home --主页下载安装!
- 4Win 的可能不能正确识别已经安装的Python 环境!
- 建议下载 .gz 包,解压后直接使用!创建 "python path/to/leo/loe.pyw"快捷方式就好!
SF.net 被和谐,本地下载: leo-4-4-8-final.zip
Contents
-- ZoomQuiet [2005-01-05 12:32:39] |
学习日志 |
||||||||||||||||||||||||||||||||||||||||||
文学编程
LiterateProgramming -- 文学编程
- 也就是那种认为源代码只是构成程序的一小部分的想法。
程序的真正主体是对它的算法、结构、目的和用法的描述——实现它的源代码并不是主要的。
Leo
- 这个纯Python 的编辑环境用最简单的代码实现了如此丰富的编程思想!
Leo 可以是 一个通用的数据管理环境
Leo 可以是 一个柔韧性的项目,程序或是其它数据的浏览器
Leo 可以是 一个项目管理器
Leo 可以是 一个提纲式的程序编辑器
- Leo 可以是 ....
下载帮助文件来学习 :sbooks.chm
在线阅读 : sbooks-leo
开发体验
- 我开发后期全都使用Leo 管理了项目文件
下载尝试: :CVSanalyser.leo
通常的界面
|
|
我喜欢的形式: |
|
|
|
@file
使用 @fiile 标签(directive) 就可以将 Leo 环境用作
知识管理,项目管理
- 以及前示的项目管理了!
@ignore
- 保存时,不改变外部文件。此项一般要去除。
@others
在使用 @file 标签后,
可以简单的使用 @others标签来包含当前结点以下的所有结点!
象XSL 中的<xsl:for-each select="//."> 哈哈哈!!!
自动导入
Leo 的 File/Import.../Import To @file 命令,支持对 C/C++/C#;Java;Python;Perl...语言的自动分析文章化组织的导入!
- 不过,自动生成的文本中可能有一些标签:
- {{{@ignore
@language python }}}
是不属于 @file 管理范围的,
- 只要简单的注释掉,就可以成为标准的,可以自动同步外部文件的文本结点对象了!
@root
是文章编辑环境的标准支持
- 可以用以 编写文档
- 组织代码也一样
- 章,节,段落 显式的组织在几个窗口中
- 对应的代码中的 类,子类,函式等等也以同样的形式组织起来
直观,自然的将我们的注意力,限定在小范围的代码中,而整体代码的结构,由Leo 管理了! 优雅!聪明!
<<section>>
在 @root限定处理下,各子结点的引用,与包含处理是使用 --> -->
UnicodeEncodeError
'ascii' codec can't encode characters in position 6-7: ordinal not in range(128)
If you want to report a bug, please save this page and attach it to your bug report.
Traceback
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/usr/local/lib/python2.5/site-packages/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_modpython.Request object at 0x4c8114ac>)
- 1309 self.page.send_page()
- 1310 else:
- 1311 handler(self.page.page_name, self)
- 1312
- 1313 # every action that didn't use to raise MoinMoinFinish must call this now:
- handler = <function do_show at 0x4a378844>
- self = <MoinMoin.request.request_modpython.Request object at 0x4c8114ac>
- self.page = <MoinMoin.Page.Page object at 0x4c9d82cc>
- self.page.page_name = u'LeoEnvironment'
/usr/local/lib/python2.5/site-packages/MoinMoin/action/__init__.py in do_show (pagename=u'LeoEnvironment', request=<MoinMoin.request.request_modpython.Request object at 0x4c8114ac>, content_only=0, count_hit=1, cacheable=1, print_mode=0)
- 251 count_hit=count_hit,
- 252 print_mode=print_mode,
- 253 content_only=content_only,
- 254 )
- 255
- content_only = 0
/usr/local/lib/python2.5/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page object at 0x4c81184c>, **keywords={'content_only': 0, 'count_hit': 1, 'print_mode': 0})
- 1199 format_args=pi['formatargs'],
- 1200 do_cache=do_cache,
- 1201 start_line=pi['lines'])
- 1202
- 1203 # check for pending footnotes
- start_line undefined
- pi = {'acl': <MoinMoin.security.AccessControlList instance at 0x4c81114c>, 'format': 'wiki', 'formatargs': '', 'language': 'en', 'lines': 1}
/usr/local/lib/python2.5/site-packages/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page object at 0x4c81184c>, request=<MoinMoin.request.request_modpython.Request object at 0x4c8114ac>, body=u'\'\'\'\n\u81ea\u7136\uff0c\u65b9\u4fbf\u7684\u5f00\u53d1\u7ba1\u7406\u73af\u5883\uff01\'\'\' \n\'\'\'[[http://webpages.chart...aceTk8.5,,from="^##startInc$",to="^##endInc$")>>\n', format='wiki', format_args='', do_cache=1, **kw={'start_line': 1})
- 1287 try:
- 1288 code = self.loadCache(request)
- 1289 self.execute(request, parser, code)
- 1290 except Exception, e:
- 1291 if not is_cache_exception(e):
- self = <MoinMoin.Page.Page object at 0x4c81184c>
- self.execute = <bound method Page.execute of <MoinMoin.Page.Page object at 0x4c81184c>>
- request = <MoinMoin.request.request_modpython.Request object at 0x4c8114ac>
- parser = <MoinMoin.parser.text_moin_wiki.Parser instance at 0x4c8112cc>
- code = <code object <module> at 0x4dc1bd10, file "LeoEnvironment", line 2>
/usr/local/lib/python2.5/site-packages/MoinMoin/Page.py in execute (self=<MoinMoin.Page.Page object at 0x4c81184c>, request=<MoinMoin.request.request_modpython.Request object at 0x4c8114ac>, parser=<MoinMoin.parser.text_moin_wiki.Parser instance at 0x4c8112cc>, code=<code object <module> at 0x4dc1bd10, file "LeoEnvironment", line 2>)
- 1318 __file__ = os.path.join(MoinMoin.__loader__.archive, 'dummy')
- 1319 try:
- 1320 exec code
- 1321 except "CacheNeedsUpdate": # convert the exception
- 1322 raise Exception("CacheNeedsUpdate")
- code = <code object <module> at 0x4dc1bd10, file "LeoEnvironment", line 2>
/LeoEnvironment in
() /usr/local/lib/python2.5/site-packages/MoinMoin/formatter/__init__.py in macro (self=<MoinMoin.formatter.text_html.Formatter instance at 0x4c8442ac>, macro_obj=<MoinMoin.macro.Macro instance at 0x4c84420c>, name=u'\u7ae0\u8282', args=None, markup=u'<<\u7ae0\u8282>>')
- 308 # call the macro
- 309 try:
- 310 return macro_obj.execute(name, args)
- 311 except ImportError, err:
- 312 errmsg = unicode(err)
- macro_obj = <MoinMoin.macro.Macro instance at 0x4c84420c>
- macro_obj.execute = <bound method Macro.execute of <MoinMoin.macro.Macro instance at 0x4c84420c>>
- name = u'\u7ae0\u8282'
- args = None
/usr/local/lib/python2.5/site-packages/MoinMoin/macro/__init__.py in execute (self=<MoinMoin.macro.Macro instance at 0x4c84420c>, macro_name=u'\u7ae0\u8282', args=None)
- 119 except wikiutil.PluginMissingError:
- 120 try:
- 121 call = getattr(self, 'macro_%s' % macro_name)
- 122 execute = lambda _self, _args: _self._wrap(call, _args)
- 123 except AttributeError:
- call undefined
- builtin getattr = <built-in function getattr>
- self = <MoinMoin.macro.Macro instance at 0x4c84420c>
- macro_name = u'\u7ae0\u8282'
UnicodeEncodeError
'ascii' codec can't encode characters in position 6-7: ordinal not in range(128)
- args = ('ascii', u'macro_\u7ae0\u8282', 6, 8, 'ordinal not in range(128)')
- encoding = 'ascii'
- end = 8
- message = ''
- object = u'macro_\u7ae0\u8282'
- reason = 'ordinal not in range(128)'
- start = 6
System Details
- Date: Tue, 09 Feb 2010 02:35:04 +0000
- Platform: FreeBSD host.woodpecker.org.cn 7.1-RELEASE-p4 FreeBSD 7.1-RELEASE-p4 #1: Fri Mar 27 08:41:14 CST 2009 delphij@host.woodpecker.org.cn:/usr/obj/usr/src/sys/WOODPECKER i386
- Python: Python 2.5.4 (/usr/local/bin/python)
- MoinMoin: Release 1.8.4 (release)


