web2py/web2py — pull request #5 by MoMaT (2012-03-22 19:39:07+00:00)
Title: Short syntax to fetch a record for GAE keys (id or name)

With this patch, the following short syntax to get a single record will work on GAE for both id and named keys:

```python
db.table_name[key]
```

The patch also simplifies the already working code for getting the record by key the long way:

```python
db(db.table_name.id == key).select().first()
db.table_name(db.table_name.id == key)
```