コード例 #1
0
ファイル: server.py プロジェクト: pombredanne/traad
def findit_implementations_view():
    from traad.rope.findit import find_implementations

    args = request.json
    data = find_implementations(project, args['offset'], args['path'])

    # TODO: What if it actually fails?
    return {
        'result': 'success',
        'data': data,
    }
コード例 #2
0
ファイル: findit_test.py プロジェクト: pombredanne/traad
 def test_find_implementations(self):
     impls = findit.find_implementations(
         self.proj,
         33,
         'basic/overrides.py')
     self.assertEqual(len(impls), 1)