def save_content(data): print 'Saving...' e = Entry() e.location = '0.0,0.0' e.tags = set() e.updated = now() e.created = now() e.init_counters() e.city_label = data['city_label'] e.title = data['title'] e.brief = data['brief'] or " " e.desc = data['desc'] e.address = data['address'] e.worktime = data['worktime'] e.serviceareas = data['serviceareas'] or set() e.serviceitems = set(data['serviceitems']) e.contracts = data['contracts'] e.linkman = data['linkman'] or " " e.status = 'block' e.save()