defnull/bottle — Issue #282: new rule filter: paging
Author: cottage
Created: 2012-02-14 03:14:39+00:00
State: open

Hi:
The paging is in many places.For example,in my website:

```
@r('/all')
@r('/all/')
def products(page=1):
if page==0: page=1
... ....
```
Paging is very useful.I write a rule for myself:

```
#in __init__()
self.filters['page'] = self.page_filter

def page_filter(self, conf):
'''pading'''
return r'\d+', int, lambda x: int(x) if x>0 else 1
```

I think it's valuable if merge into master branch.