本站首页    管理页面    写新日志    退出


«October 2025»
1234
567891011
12131415161718
19202122232425
262728293031


公告
 本博客在此声明所有文章均为转摘,只做资料收集使用。

我的分类(专题)

日志更新

最新评论

留言板

链接

Blog信息
blog名称:
日志总数:1304
评论数量:2242
留言数量:5
访问次数:7634595
建立时间:2006年5月29日




[TurboGears]Testing Multi-user TurboGears Applications
软件技术

lhwork 发表于 2007/2/16 12:06:49

Lately I’ve started to write many unit tests for my secret turbogears project. My secret project, like many other web 2.0 applications, can have a lot of users logged in at the same time and the actions of one user can affect other users. The current testing tools provided by TurboGears do not give “one obvious way” to test multi-user scenarios. I came up last week with a simple class that will emulate a browser session of a single user against a cherry


阅读全文(2418) | 回复(0) | 编辑 | 精华 | 删除
 


[TurboGears]How To Make IE Cache Less
软件技术

lhwork 发表于 2007/2/16 12:06:17

Internet Explorer is known to cache the responses of GET calls. The problem occurs if your javascript functions request the same url over and over again. Internet Explorer will cache the response of the first call, and subsequent calls will automatically return the same response, without actually contacting the server. There are two approaches to solve this problem.

One approach could be to add a random part to the url (i.e.: /poll?random=f2dee8


阅读全文(2942) | 回复(0) | 编辑 | 精华 | 删除
 


[TurboGears]Tutorial: How To Implement Tagging With TurboGears and SQLAlchemy
软件技术

lhwork 发表于 2007/2/16 12:05:20

In this tutorial I’ll show you how to create a simple, yet powerful, tagging system using SQLAlchemy with TurboGears. As the concept of tags, and social tagging in particular, have become very popular, clients now demand “tagging-enabled” applications. So, here’s a simple way to get you started. Our application will associate sites with tags (many to many relationship), like delicious does, but in a much simplified manner. For instance, delicious keeps tracks of which user gave

阅读全文(2207) | 回复(0) | 编辑 | 精华 | 删除
 


[TurboGears]Filters 0.1 Released
软件技术

lhwork 发表于 2007/2/16 12:04:11

Filters is a Python package that provides shell-like data processing operators for generation of web content. Filters is designed to work together with a template-engine like Kid and Genshi. What is a filter? We’ll start with an example. ${ identity.is_anonymous() | tg.yesno() }
The output of this will be the value returned by is_anonymous() after being processed by th

阅读全文(2220) | 回复(0) | 编辑 | 精华 | 删除
 


[TurboGears]Pumping Up Your Applications with Xapian Full-Text Search 
软件技术

lhwork 发表于 2007/2/16 12:02:23

What good is an application—not matter how much information it contains—if the inability to easily search it renders it useless? Xapian to the Rescue Xapian is an excellent open source (GPL) search engine library. It is written in C++ and comes with bindings for Python as well as many other languages, and it supports everything you’d expect from a modern search engine: Ranked probabilistic search – The res

阅读全文(3780) | 回复(0) | 编辑 | 精华 | 删除
 


« 1 2 3



站点首页 | 联系我们 | 博客注册 | 博客登陆

Sponsored By W3CHINA
W3CHINA Blog 0.8 Processed in 1.359 second(s), page refreshed 144817490 times.
《全国人大常委会关于维护互联网安全的决定》  《计算机信息网络国际联网安全保护管理办法》
苏ICP备05006046号