Thank you to anyone who has already donated - your generous donations helped make three months of treatment possible.

My brother Nate continues to fight stage IV Hodgkin's lymphoma. He's just 31, with a wife and baby girl. They have no active income (since he's been unable to return to work), no insurance, and cannot afford the treatment he needs. Nate and his family need your help. Please consider a donation, every dollar helps. Thanks.


ERROR

1
2
AttributeError: 'ContextObj' object has no attribute 'id'

routing.py

1
2
3
4
5
6
7
8
from routes import Mapper
def make_map(config):
    """Create, configure and return the routes Mapper"""
    map = Mapper(directory=config['pylons.paths']['controllers'],
                 always_scan=config['debug'])
    map.minimization = True
    map.explicit = True

controller

1
2
3
4
5
6
    def index(self, id):
        # Return a rendered template
        #return render('/tone.mako')
        # or, return a string
        return render('test.html')

template

1
2
3
4
<h1>
${c.id}
</h1>

url called:

1
2
/controller/index/1

libs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# paster --version
PasteScript 1.7.3 from /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/PasteScript-1.7.3-py2.6.egg (python 2.6.2 (r262:71600, Apr 16 2009, 09:17:39))


Babel-0.9.5-py2.6.egg
Beaker-1.5.4-py2.6.egg
FormEncode-1.2.2-py2.6.egg
Mako-0.3.4-py2.6.egg
MakoLang-0.1.dev_r972-py2.6.egg
MarkupSafe-0.9.2-py2.6.egg
Paste-1.7.4-py2.6.egg
PasteDeploy-1.3.3-py2.6.egg
PasteScript-1.7.3-py2.6.egg
Pygments-1.3.1-py2.6.egg
Pylons-1.0-py2.6.egg
Routes-1.12.3-py2.6.egg
SQLAlchemy-0.6.3-py2.6.egg
Tempita-0.4-py2.6.egg
WebError-0.10.2-py2.6.egg
WebHelpers-1.0-py2.6.egg
WebOb-0.9.8-py2.6.egg
WebTest-1.2.1-py2.6.egg
decorator-3.2.0-py2.6.egg
easy-install.pth
nose-0.11.4-py2.6.egg
setuptools-0.6c11-py2.6.egg
simplejson-2.1.1-py2.6.egg