- n = NIC(machine_id=None, mac_addr=randomMAC(), ip=ip, hostname=None)
- ctx.current.save(n)
- ctx.current.flush()
+ n = database.NIC(machine_id=None, mac_addr=randomMAC(), ip=ip, hostname=None)
+ database.ctx.current.save(n)
+ database.ctx.current.flush()