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 |
|
[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 |
|
[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 |
|
[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 |
|
[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 |
|
|