Changeset 1156 for trunk/packages/sipb-xen-www/code/xen-ips
- Timestamp:
- Oct 20, 2008, 7:08:33 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-www/code/xen-ips
r865 r1156 38 38 39 39 def addip(ip): 40 n = database.NIC(machine _id=None, mac_addr=randomMAC(), ip=ip, hostname=None)41 database. ctx.current.save(n)42 database. ctx.current.flush()40 n = database.NIC(machine=None, mac_addr=randomMAC(), ip=ip, hostname=None) 41 database.session.save(n) 42 database.session.flush() 43 43 44 44
Note: See TracChangeset
for help on using the changeset viewer.