inpho / inphosite

The InPhO API
https://inphoproject.org
15 stars 5 forks source link

database error on insert? #82

Closed colinallen closed 11 years ago

colinallen commented 11 years ago

Attempting to add a searchpattern to https://inpho.cogs.indiana.edu/idea/5498/view.html and getting red failure symbol.

colinallen commented 11 years ago

This is interfering with my ability to keep up with basic maintenance so can we bump it up to critical please? Jaimie -- please reassign to Alex if you think he's the best one to fix it.

JaimieMurdock commented 11 years ago

I'll look into it this afternoon.

On 10/18/2012 07:21 AM, colinallen wrote:

This is interfering with my ability to keep up with basic maintenance so can we bump it up to critical please? Jaimie -- please reassign to Alex if you think he's the best one to fix it.

— Reply to this email directly or view it on GitHub https://github.com/inpho/inphosite/issues/82#issuecomment-9560971.

alefrost commented 11 years ago

I will look into the searchpattern function of the entity controller. It is either that it is getting a bad request from the html or it is a problem with the actual controller itself.

alefrost commented 11 years ago

The issue seems to be occurring at the line containing this code: c.entity.searchpatterns.append(unicode(pattern)) in inphosite/controllers/entity.py: 354

alefrost commented 11 years ago

When trying to run the code <entity>.searchpatterns.append(<pattern>) the error message specifically is:

File "<stdin>", line 1, in <module>
  File "/Users/alefrost/workspace/sandbox/lib/python2.6/site-packages/SQLAlchemy-0.6.8-py2.6.egg/sqlalchemy/ext/associationproxy.py", line 441, in append
    item = self._create(value)
  File "/Users/alefrost/workspace/sandbox/lib/python2.6/site-packages/SQLAlchemy-0.6.8-py2.6.egg/sqlalchemy/ext/associationproxy.py", line 368, in _create
    return self.creator(value)
TypeError: __init__() takes exactly 3 arguments (2 given)