Skip to content

Commit

Permalink
add debug print in samples/create()
Browse files Browse the repository at this point in the history
  • Loading branch information
ymouscaz committed Jan 20, 2015
1 parent 36d4d00 commit c87dcb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions biorepo/controllers/root.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ def data(self, **kw):
return dict(page='data', params=kw)

#SEARCH PAGE

#deprecated
@require(has_any_permission(gl.perm_admin, gl.perm_user))
@expose('biorepo.templates.search_old')
def search_old(self, *args, **kw):
Expand Down
2 changes: 2 additions & 0 deletions biorepo/controllers/sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ def create(self, *args, **kw):
if (v.value).lower() == value.lower() and v not in sample.a_values:
(sample.a_values).append(v)
DBSession.flush()
else:
print "++++++++++++++++++++++++" + value + " is not known from BioRepo Samples."
#if values of the attribute are free
elif a.fixed_value == False and a.widget != "checkbox" and a.widget != "hiding_checkbox":
av = Attributs_values()
Expand Down

0 comments on commit c87dcb3

Please sign in to comment.