This file is indexed.

/usr/share/pyshared/tg/amfify.py is in python-turbogears2 2.1.5-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
try:
    from pyamf.remoting.gateway.wsgi import WSGIGateway

except:
    print 'You must easy_install pyamf for to use amf renderer'
    raise
from pylons import request

def render_amf(template_name, template_vars, **kwargs):
    assert 0
    # somehow we need to dummy out the services here, but im not sure how
    # yet
    def dummy(*args, **kw):
        return template_vars
    services = {
        'something.method': dummy,
    }

    # setup our server
    app = WSGIGateway(services)
    def start_request(*args, **kw):pass
    r = app(request.environ, start_request)
    return r