Commit 39feb90e authored by Laurent Peuch's avatar Laurent Peuch
Browse files

fix: entity.set_attributes renamed to entity.cw_set in cw 3.15 !

parent 427f381077b9
Pipeline #23160 passed with stage
in 2 minutes and 28 seconds
......@@ -24,7 +24,7 @@ add_attribute('Daytype', 'type')
for daytype in rql('Any D, DT WHERE D is Daytype, D title DT').entities():
try:
new_dt_title, dt_type = dt_titles[daytype.title]
daytype.set_attributes(title=new_dt_title, type=dt_type)
daytype.set_cw(title=new_dt_title, type=dt_type)
except KeyError:
print "Oops, found an unknown daytype (%r) in the database" % daytype.title
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment