=== lifeless_ is now known as lifeless | ||
nacc | how does one call the "standard methods" in https://launchpad.net/+apidoc/devel.html, e.g. DELETE? If I do obj.DELETE or obj.delete on a git_repository object, I get "has no attribute" (no such parameter from restfulclient) | 16:19 |
---|---|---|
cjwatson | nacc: .lp_delete() | 16:19 |
nacc | cjwatson: ah! thanks | 16:19 |
nacc | cjwatson: do i need to do a lp_save() after? | 16:20 |
cjwatson | no | 16:20 |
nacc | ok, thanks | 16:20 |
cjwatson | you only need that after setting attributes | 16:20 |
nacc | cjwatson: and will lp_delete not return until the deletion is done? or do i need to poll on it? | 16:21 |
cjwatson | the former - it's synchronous | 16:21 |
nacc | cjwatson: great, thanks again! | 16:21 |
cjwatson | assuming the backend is synchronous of course, but they generally are | 16:21 |
cjwatson | there are some DELETE implementations in LP that kick off async jobs (for example deleting a Git repository schedules a job to reclaim space on the hosting backend), but I believe it's always true that the relevant DB row(s) will have been deleted after DELETE returns | 16:23 |
nacc | that makes sense | 16:24 |
=== JanC is now known as Guest2554 | ||
=== JanC_ is now known as JanC | ||
GF7862 | hi, i need help with an account issue please | 23:49 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!