Advertisement
Guest User

Untitled

a guest
Apr 7th, 2014
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. from noc.inv.models import *
  2. from noc.inv.models.object import *
  3.  
  4. name = 'A'
  5. x = 1
  6. y = 2
  7.  
  8. Object(
  9. name = name,
  10. model = 'PoP | Access',
  11. data = {"container": {"container": True},
  12. "geopoint":{
  13. "layer": "pop_access",
  14. "srid": "EPSG:4326",
  15. "x": x,
  16. "y": y},
  17. "pop":{"level": 20}}
  18. ).save
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement