2004年08月05日 星期四 13:53
看了zope.org上面的ZDG,里面有这样一章ZODB Persistent Components, 地址在:http://zope.org/Documentation/Books/ZDG/current/Persistence.stx 它里面给的例子: >>> from ZODB import FileStorage, DB >>> storage = FileStorage.FileStorage('mydatabase.fs') >>> db = DB( storage ) >>> connection = db.open() >>> root = connection.root() >>> root['employees'] = ['Bob', 'Mary', 'Jo'] >>> get_transaction().commit() 我可不可以这么理解,就是我们可以通过使用最后一条语句,把原本程序会存储在内存中的数据存储到ZODB中了。而以后,要再次使用这个数据,把它从ZODB中调出来就可以了。 _________________________________________________________ Do You Yahoo!? 美女明星应有尽有,"一搜"搜遍美图、艳图和酷图 http://image.yisou.com 100兆邮箱够不够用?雅虎电邮自助扩容! http://cn.rd.yahoo.com/mail_cn/tag/100m/*http://cn.promo.yahoo.com/minisite/100m/
2004年08月05日 星期四 14:00
mike gaul,您好! 应该是这样吧。 ======= 2004-08-05 13:53:21 您在来信中写道:======= >看了zope.org上面的ZDG,里面有这样一章ZODB Persistent >Components, >地址在:http://zope.org/Documentation/Books/ZDG/current/Persistence.stx > >它里面给的例子: >>>> from ZODB import FileStorage, DB >>>> storage = FileStorage.FileStorage('mydatabase.fs') >>>> db = DB( storage ) >>>> connection = db.open() >>>> root = connection.root() >>>> root['employees'] = ['Bob', 'Mary', 'Jo'] >>>> get_transaction().commit() > >我可不可以这么理解,就是我们可以通过使用最后一条语句,把原本程序会存储在内存中的数据存储到ZODB中了。而以后,要再次使用这个数据,把它从ZODB中调出来就可以了。 > >_________________________________________________________ >Do You Yahoo!? >美女明星应有尽有,"一搜"搜遍美图、艳图和酷图 >http://image.yisou.com > >100兆邮箱够不够用?雅虎电邮自助扩容! >http://cn.rd.yahoo.com/mail_cn/tag/100m/*http://cn.promo.yahoo.com/minisite/100m/ >_______________________________________________ >python-chinese list >python-chinese at lists.python.cn >http://python.cn/mailman/listinfo/python-chinese > = = = = = = = = = = = = = = = = = = = = 致 礼! limodou chatme at 263.net 2004-08-05
2004年08月05日 星期四 14:11
On 2004-08-05 13:53:1091685201 +0800, mike gaul wrote: > 看了zope.org上面的ZDG,里面有这样一章ZODB Persistent > Components, > 地址在:http://zope.org/Documentation/Books/ZDG/current/Persistence.stx > > 它里面给的例子: > >>> from ZODB import FileStorage, DB > >>> storage = FileStorage.FileStorage('mydatabase.fs') > >>> db = DB( storage ) > >>> connection = db.open() > >>> root = connection.root() > >>> root['employees'] = ['Bob', 'Mary', 'Jo'] > >>> get_transaction().commit() > > 我可不可以这么理解,就是我们可以通过使用最后一条语句,把原本程序会存储在内存中的数据存储到ZODB中了。而以后,要再次使用这个数据,把它从ZODB中调出来就可以了。 commit 表示一次事务的提交,你不必关心这个事务的内部处理逻辑──它可能 是缓存在内存,也可能是缓存在事务日志文件,也可能是两个混合──这对于 用户来说没有什么不同。
2004年08月05日 星期四 14:15
Zoom.Quiet,您好! 我昨天晚上在自己机器上装的cvsnt,装完了就上不了网了。一直到刚才才发现只有关了默认打开的lock service才能上网 郁闷了我一天了。! 老大把服务器搞好了啊 地址是http://www.woodpecker.org.cn wiki地址是 http://wiki.woodpecker.org.cn/moin.cgi/ 你去看看 做一下设置,文章目录层次设置好些,尽量快的把咱们的资料整理归类过来。 还有这几天你的wiki好慢啊 有时候! ======= 2004-08-05 09:00:02 您在来信中写道:======= >Hollo Dreamingk(天成): > > 唉呀呀! >不好意思!今天才看到邮件!昨天狂忙,而且公司邮件服务器也有问题, > >上传图片?? > >默认安装是允许的呀? >moin_config.py中:: > ># permissions ># security critical actions (deactivated by default) >if 1: > allowed_actions = ['DeletePage', 'AttachFile'] > >现在站点起在哪里的?仅仅是Wiki 嘛? >设计的话得从长计议是也乎,先进行 Logo 和CSS 的设计吧, >如何的呢?在下如何参与管理? > >文档的话,还真的没有!就是MoinMoin 自个儿的帮助,已经足够了,在下比较笨,就是安装不会,当初问了好些人,中文的资料的确不多, >但是,管理角度 Wiki 是最容易管理的了! > >文档资料的目录组织? >Wiki 的目录树是通过解析所有文章的相互间指向得到的,所以是可以任意修改的,现在的话,应该说将我们现在贡献收集起来的文章,重新,按照社区的理念组织一下子而已,需要在下将现在的Moin 内容发送过来?? > > > >/******** [2004-08-05]08:52:17 ; Dreamingk(天成) wrote: > >Dreamingk(天成)> ZOOMQ您好! > >Dreamingk(天成)> >Dreamingk(天成)> 教教我们如何管理moinmoin啊!我们现在连如何上传图片都不知道!或者有没有什么资料可以提供一下,偶自己去看也成!还有你要来设计一下咱们社区的封皮 >Dreamingk(天成)> banner 还有wiki的框架目录层次等等东西! > >Dreamingk(天成)> ======= 2004-08-05 00:27:51 您在来信中写道:======= > >>>呵呵,天成正等着你说说怎么摆框架呢。 >>> >>>On Wed, 4 Aug 2004 23:09:37 +0800, HD <hdcola at gmail.com> wrote: >>>> 管理如何做呀,zoom.q出出主意?说说想法? >>>> >>>> -- >>>> HD(燃烧中的火) >>>> 我工作我快乐,我勤奋我收获。请与我一起快乐,与我一起收获。 >>>> >>> >>> >>>-- >>>HD(燃烧中的火) >>>我工作我快乐,我勤奋我收获。请与我一起快乐,与我一起收获。 >>>_______________________________________________ >>>python-chinese list >>>python-chinese at lists.python.cn >>>http://python.cn/mailman/listinfo/python-chinese >>> > >Dreamingk(天成)> = = = = = = = = = = = = = = = = = = = = > > >Dreamingk(天成)> 致 >Dreamingk(天成)> 礼! > > >Dreamingk(天成)> Dreamingk(天成) >Dreamingk(天成)> dreamingk at tom.com >Dreamingk(天成)> 2004-08-05 > > > >********************************************/ > >-- >Free as in Freedom > > Zoom.Quiet > >#=========================================# >]Time is unimportant, only life important![ >#=========================================# > >sender is the Bat!2.12.00 > >_______________________________________________ >python-chinese list >python-chinese at lists.python.cn >http://python.cn/mailman/listinfo/python-chinese > = = = = = = = = = = = = = = = = = = = = 致 礼! Dreamingk(天成) dreamingk at tom.com 2004-08-05
2004年08月05日 星期四 14:17
Zoom.Quiet,您好! 我昨天晚上在自己机器上装的cvsnt,装完了就上不了网了。一直到刚才才发现只有关了默认打开的lock service才能上网 郁闷了我一天了。! 老大把服务器搞好了啊 地址是http://www.woodpecker.org.cn wiki地址是 http://wiki.woodpecker.org.cn/moin.cgi/ 你去看看 做一下设置,文章目录层次设置好些,尽量快的把咱们的资料整理归类过来。 还有这几天你的wiki好慢啊 有时候! ======= 2004-08-05 09:00:02 您在来信中写道:======= >Hollo Dreamingk(天成): > > 唉呀呀! >不好意思!今天才看到邮件!昨天狂忙,而且公司邮件服务器也有问题, > >上传图片?? > >默认安装是允许的呀? >moin_config.py中:: > ># permissions ># security critical actions (deactivated by default) >if 1: > allowed_actions = ['DeletePage', 'AttachFile'] > >现在站点起在哪里的?仅仅是Wiki 嘛? >设计的话得从长计议是也乎,先进行 Logo 和CSS 的设计吧, >如何的呢?在下如何参与管理? > >文档的话,还真的没有!就是MoinMoin 自个儿的帮助,已经足够了,在下比较笨,就是安装不会,当初问了好些人,中文的资料的确不多, >但是,管理角度 Wiki 是最容易管理的了! > >文档资料的目录组织? >Wiki 的目录树是通过解析所有文章的相互间指向得到的,所以是可以任意修改的,现在的话,应该说将我们现在贡献收集起来的文章,重新,按照社区的理念组织一下子而已,需要在下将现在的Moin 内容发送过来?? > > > >/******** [2004-08-05]08:52:17 ; Dreamingk(天成) wrote: > >Dreamingk(天成)> ZOOMQ您好! > >Dreamingk(天成)> >Dreamingk(天成)> 教教我们如何管理moinmoin啊!我们现在连如何上传图片都不知道!或者有没有什么资料可以提供一下,偶自己去看也成!还有你要来设计一下咱们社区的封皮 >Dreamingk(天成)> banner 还有wiki的框架目录层次等等东西! > >Dreamingk(天成)> ======= 2004-08-05 00:27:51 您在来信中写道:======= > >>>呵呵,天成正等着你说说怎么摆框架呢。 >>> >>>On Wed, 4 Aug 2004 23:09:37 +0800, HD <hdcola at gmail.com> wrote: >>>> 管理如何做呀,zoom.q出出主意?说说想法? >>>> >>>> -- >>>> HD(燃烧中的火) >>>> 我工作我快乐,我勤奋我收获。请与我一起快乐,与我一起收获。 >>>> >>> >>> >>>-- >>>HD(燃烧中的火) >>>我工作我快乐,我勤奋我收获。请与我一起快乐,与我一起收获。 >>>_______________________________________________ >>>python-chinese list >>>python-chinese at lists.python.cn >>>http://python.cn/mailman/listinfo/python-chinese >>> > >Dreamingk(天成)> = = = = = = = = = = = = = = = = = = = = > > >Dreamingk(天成)> 致 >Dreamingk(天成)> 礼! > > >Dreamingk(天成)> Dreamingk(天成) >Dreamingk(天成)> dreamingk at tom.com >Dreamingk(天成)> 2004-08-05 > > > >********************************************/ > >-- >Free as in Freedom > > Zoom.Quiet > >#=========================================# >]Time is unimportant, only life important![ >#=========================================# > >sender is the Bat!2.12.00 > >_______________________________________________ >python-chinese list >python-chinese at lists.python.cn >http://python.cn/mailman/listinfo/python-chinese > = = = = = = = = = = = = = = = = = = = = 致 礼! Dreamingk(天成) dreamingk at tom.com 2004-08-05
2004年08月05日 星期四 14:22
那我想,也就是说,写程序的时候只管往里写就是了, 最后只要以commit就可以把这些数据记录下来。 将来要在使用,连接ZODB再读取即可,是吗? --- Xie Yanbo <idkey at 163.com> 的正文: > On 2004-08-05 13:53:1091685201 +0800, mike gaul > wrote: > > 看了zope.org上面的ZDG,里面有这样一章ZODB > Persistent > > Components, > > > 地址在:http://zope.org/Documentation/Books/ZDG/current/Persistence.stx > > > > 它里面给的例子: > > >>> from ZODB import FileStorage, DB > > >>> storage = > FileStorage.FileStorage('mydatabase.fs') > > >>> db = DB( storage ) > > >>> connection = db.open() > > >>> root = connection.root() > > >>> root['employees'] = ['Bob', 'Mary', 'Jo'] > > >>> get_transaction().commit() > > > > > 我可不可以这么理解,就是我们可以通过使用最后一条语句,把原本程序会存储在内存中的数据存储到ZODB中了。而以后,要再次使用这个数据,把它从ZODB中调出来就可以了。 > > commit > 表示一次事务的提交,你不必关心这个事务的内部处理逻辑──它可能 > 是缓存在内存,也可能是缓存在事务日志文件,也可能是两个混合──这对于 > 用户来说没有什么不同。 > > _______________________________________________ > python-chinese list > python-chinese at lists.python.cn > http://python.cn/mailman/listinfo/python-chinese > _________________________________________________________ Do You Yahoo!? 美女明星应有尽有,"一搜"搜遍美图、艳图和酷图 http://image.yisou.com 100兆邮箱够不够用?雅虎电邮自助扩容! http://cn.rd.yahoo.com/mail_cn/tag/100m/*http://cn.promo.yahoo.com/minisite/100m/
2004年08月05日 星期四 14:39
On 2004-08-05 14:22:1091686922 +0800, mike gaul wrote: > 那我想,也就是说,写程序的时候只管往里写就是了, > 最后只要以commit就可以把这些数据记录下来。 > > 将来要在使用,连接ZODB再读取即可,是吗? 呵呵,是呀。怎么没有编过数据库的程序吗?
2004年08月05日 星期四 14:59
n那好象不一样吧。关系型的数据库你还要先用程序得出结果, 然后通过sql语句把结果存入数据库。而ZODB直接可以把整个 类存进去,就不用管那么多了。 --- Xie Yanbo <idkey at 163.com> 的正文: > On 2004-08-05 14:22:1091686922 +0800, mike gaul > wrote: > > 那我想,也就是说,写程序的时候只管往里写就是了, > > 最后只要以commit就可以把这些数据记录下来。 > > > > 将来要在使用,连接ZODB再读取即可,是吗? > > 呵呵,是呀。怎么没有编过数据库的程序吗? > > _______________________________________________ > python-chinese list > python-chinese at lists.python.cn > http://python.cn/mailman/listinfo/python-chinese > _________________________________________________________ Do You Yahoo!? 美女明星应有尽有,"一搜"搜遍美图、艳图和酷图 http://image.yisou.com 100兆邮箱够不够用?雅虎电邮自助扩容! http://cn.rd.yahoo.com/mail_cn/tag/100m/*http://cn.promo.yahoo.com/minisite/100m/
2004年08月05日 星期四 15:16
mike gaul,您好! zodb是一个对象数据库,从事务角度来看是一样的。 ======= 2004-08-05 14:59:40 您在来信中写道:======= >n那好象不一样吧。关系型的数据库你还要先用程序得出结果, >然后通过sql语句把结果存入数据库。而ZODB直接可以把整个 >类存进去,就不用管那么多了。 > > --- Xie Yanbo <idkey at 163.com> 的正文: >> On 2004-08-05 14:22:1091686922 +0800, mike gaul >> wrote: >> > 那我想,也就是说,写程序的时候只管往里写就是了, >> > 最后只要以commit就可以把这些数据记录下来。 >> > >> > 将来要在使用,连接ZODB再读取即可,是吗? >> >> 呵呵,是呀。怎么没有编过数据库的程序吗? >> >> _______________________________________________ >> python-chinese list >> python-chinese at lists.python.cn >> http://python.cn/mailman/listinfo/python-chinese >> > >_________________________________________________________ >Do You Yahoo!? >美女明星应有尽有,"一搜"搜遍美图、艳图和酷图 >http://image.yisou.com > >100兆邮箱够不够用?雅虎电邮自助扩容! >http://cn.rd.yahoo.com/mail_cn/tag/100m/*http://cn.promo.yahoo.com/minisite/100m/ >_______________________________________________ >python-chinese list >python-chinese at lists.python.cn >http://python.cn/mailman/listinfo/python-chinese > = = = = = = = = = = = = = = = = = = = = 致 礼! limodou chatme at 263.net 2004-08-05
Zeuux © 2025
京ICP备05028076号