Skip to content

Commit

Permalink
Add instance parameter value if found
Browse files Browse the repository at this point in the history
  • Loading branch information
aruiz committed Feb 26, 2012
1 parent 440346c commit 38d6b47
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,6 @@ def _store_retval(node):
def _store_param (node):
db_param = models.Parameter()
db_param.type = _store_type (node.type)
print node.scope.__class__
print node.caller_allocates.__class__
_store_props (db_param, node, (ast.Parameter, ast.TypeContainer, ast.Annotated))
db_param.save()
return db_param
Expand All @@ -166,7 +164,8 @@ def _store_function(node, parent=None):

i = 0
for param in node.parameters:
#TODO: Instance parameter
if param is node.instance_parameter:
db_func.instance_parameter = i
db_param = _store_param (param)
models.FunctionParameter(function=db_func, parameter=db_param, position=i).save()
i += 1
Expand Down

0 comments on commit 38d6b47

Please sign in to comment.