Commit ce490d0e authored by Daniel Stan's avatar Daniel Stan

update passage à cloud perso

parent dd17cdf8
[default]
highlight_event_days = true
default_calendar = personnel
default_calendar = personal
default_command = interactive
[highlight_days]
......
......@@ -14,7 +14,7 @@ fileext = .ics
[storage my_calendars_remote]
type = caldav
url = https://owncloud.crans.org/remote.php/caldav/
url = https://cloud.tudo.re/remote.php/caldav/
username = dstan
password.fetch = ["prompt", "Password for CalDAV OwnCloud Crans (login: dstan)"]
password.fetch = ["prompt", "Password for CalDAV OwnCloud tudo.re (login: dstan)"]
......@@ -47,7 +47,7 @@ class UpdatableEntry(object):
data = self.client.get(url)
if data[key] != self.actual_value:
print("%r to be updated (new value %s)" % (self, self.actual_value))
if False:
if True:
print("updating ...")
self.client.put(url, **{key: self.actual_value})
self.client.post('/domain/zone/%s/refresh' % self.domain)
......@@ -56,11 +56,11 @@ class UpdatableEntry(object):
return self.name
updatable = [
#UpdatableEntry(client, 'dynHost', 'kugel.tudo.re', u'86.246.91.178'),
#UpdatableEntry(client, 'AAAA', 'kugel.tudo.re', u'2a01:cb04:541:1400:7a24:afff:fe31:dd36'),
# true values
UpdatableEntry(client, 'dynHost', 'kugel.tudo.re', u'86.246.91.178'),
UpdatableEntry(client, 'AAAA', 'kugel.tudo.re', u'2a01:cb04:541:1400:7a24:afff:fe31:dd36'),
# true values
#UpdatableEntry(client, 'A', 'kugel.tudo.re', u'86.246.91.178'),
#UpdatableEntry(client, 'AAAA', 'kugel.tudo.re', u'2a01:cb04:541:1400:7a24:afff:fe31:dd36'),
]
if False:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment