mirror of https://gitlab.com/bashrc2/epicyon
Get checkbox state
parent
ce2d5d5d69
commit
dbd21902fa
29
daemon.py
29
daemon.py
|
@ -7661,19 +7661,22 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self.server.POSTbusy = False
|
self.server.POSTbusy = False
|
||||||
return
|
return
|
||||||
if '&submitOnCalendar=' in optionsConfirmParams:
|
if '&submitOnCalendar=' in optionsConfirmParams:
|
||||||
if fields.get('onCalendar'):
|
onCalendar = optionsConfirmParams.split('onCalendar=')[1]
|
||||||
if fields['onCalendar'] == 'on':
|
if '&' in onCalendar:
|
||||||
addPersonToCalendar(self.server.baseDir,
|
onCalendar = onCalendar.split('&')[0]
|
||||||
chooserNickname,
|
print('onCalendar: ' + onCalendar)
|
||||||
self.server.domain,
|
if onCalendar == 'on':
|
||||||
optionsNickname,
|
addPersonToCalendar(self.server.baseDir,
|
||||||
optionsDomainFull)
|
chooserNickname,
|
||||||
else:
|
self.server.domain,
|
||||||
removePersonFromCalendar(self.server.baseDir,
|
optionsNickname,
|
||||||
chooserNickname,
|
optionsDomainFull)
|
||||||
self.server.domain,
|
else:
|
||||||
optionsNickname,
|
removePersonFromCalendar(self.server.baseDir,
|
||||||
optionsDomainFull)
|
chooserNickname,
|
||||||
|
self.server.domain,
|
||||||
|
optionsNickname,
|
||||||
|
optionsDomainFull)
|
||||||
self._redirect_headers(originPathStr + '/' +
|
self._redirect_headers(originPathStr + '/' +
|
||||||
self.server.defaultTimeline +
|
self.server.defaultTimeline +
|
||||||
'?page='+str(pageNumber), cookie,
|
'?page='+str(pageNumber), cookie,
|
||||||
|
|
Loading…
Reference in New Issue