forked from indymedia/epicyon
Calendar checkbox
parent
8a5e1ea110
commit
ce2d5d5d69
22
daemon.py
22
daemon.py
|
@ -185,6 +185,8 @@ from happening import removeCalendarEvent
|
|||
from bookmarks import bookmark
|
||||
from bookmarks import undoBookmark
|
||||
from petnames import setPetName
|
||||
from followingCalendar import addPersonToCalendar
|
||||
from followingCalendar import removePersonFromCalendar
|
||||
import os
|
||||
|
||||
|
||||
|
@ -7658,6 +7660,26 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
callingDomain)
|
||||
self.server.POSTbusy = False
|
||||
return
|
||||
if '&submitOnCalendar=' in optionsConfirmParams:
|
||||
if fields.get('onCalendar'):
|
||||
if fields['onCalendar'] == 'on':
|
||||
addPersonToCalendar(self.server.baseDir,
|
||||
chooserNickname,
|
||||
self.server.domain,
|
||||
optionsNickname,
|
||||
optionsDomainFull)
|
||||
else:
|
||||
removePersonFromCalendar(self.server.baseDir,
|
||||
chooserNickname,
|
||||
self.server.domain,
|
||||
optionsNickname,
|
||||
optionsDomainFull)
|
||||
self._redirect_headers(originPathStr + '/' +
|
||||
self.server.defaultTimeline +
|
||||
'?page='+str(pageNumber), cookie,
|
||||
callingDomain)
|
||||
self.server.POSTbusy = False
|
||||
return
|
||||
if '&submitBlock=' in optionsConfirmParams:
|
||||
if self.server.debug:
|
||||
print('Adding block by ' + chooserNickname +
|
||||
|
|
Loading…
Reference in New Issue