Compare commits

..

No commits in common. "63fe8c9b8095a3d9ce3acec841d9dbc1248114de" and "af5839116426f978ccdf4e37739a9ddc4fa401f8" have entirely different histories.

4 changed files with 5 additions and 8 deletions

View File

@ -15,7 +15,7 @@ class Domain:
self.domain = domain self.domain = domain
self.group = group self.group = group
if zone_history_are_ids: if zone_history_are_ids:
self.zone_history = [UncompleteZoneMeta(self, zid) for zid in zone_history] if zone_history is not None else [] self.zone_history = [UncompleteZoneMeta(self, zid) for zid in zone_history]
else: else:
self.zone_history = zone_history if zone_history is not None else [] self.zone_history = zone_history if zone_history is not None else []

View File

@ -144,7 +144,7 @@ class Zone(ZoneMeta):
return r.json() return r.json()
def apply_changes(self, message=""): def apply_changes(self):
rdiff = self._session.session.post( rdiff = self._session.session.post(
self._session.baseurl + "/api/domains/" + quote(self._domainid) + "/diff_zones/%40/" + quote(self.id), self._session.baseurl + "/api/domains/" + quote(self._domainid) + "/diff_zones/%40/" + quote(self.id),
) )
@ -154,10 +154,7 @@ class Zone(ZoneMeta):
r = self._session.session.post( r = self._session.session.post(
self._session.baseurl + "/api/domains/" + quote(self._domainid) + "/zone/" + quote(self.id) + "/apply_changes", self._session.baseurl + "/api/domains/" + quote(self._domainid) + "/zone/" + quote(self.id) + "/apply_changes",
data=json.dumps({ data=rdiff.text
"wantedCorrections": json.loads(rdiff.text),
"commitMessage": message,
})
) )
if r.status_code > 300: if r.status_code > 300:

View File

@ -1,6 +1,6 @@
[project] [project]
name = "happydomain" name = "happydomain"
version = "0.3.0" version = "0.2.0"
authors = [ authors = [
{ name="happyDomain's team", email="contact+pypi@happydomain.org" }, { name="happyDomain's team", email="contact+pypi@happydomain.org" },
] ]

View File

@ -8,7 +8,7 @@ try:
except ImportError: except ImportError:
from distutils.core import setup from distutils.core import setup
version = "0.3.0" version = "0.2.0"
setup( setup(
name = "happydomain", name = "happydomain",