Commit 5cb2c120 authored by Laurent Peuch's avatar Laurent Peuch
Browse files

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

parent 86af62a9d3c0
Pipeline #25251 passed with stage
in 1 minute and 47 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_cw(title=new_dt_title, type=dt_type)
daytype.cw_set(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