diff --git a/daemon.py b/daemon.py index a1ada295..0b05b79a 100644 --- a/daemon.py +++ b/daemon.py @@ -1057,7 +1057,8 @@ class PubServer(BaseHTTPRequestHandler): if '/calendar' in self.path: # show the calendar screen msg=htmlCalendar(self.server.translate, \ - self.server.baseDir,self.path).encode() + self.server.baseDir,self.path, \ + self.server.domain).encode() self._set_headers('text/html',len(msg),cookie) self.wfile.write(msg) self.server.GETbusy=False diff --git a/webinterface.py b/webinterface.py index ca03f690..7bb66e49 100644 --- a/webinterface.py +++ b/webinterface.py @@ -2847,7 +2847,7 @@ def htmlCalendarDay(translate: {}, \ return calendarStr def htmlCalendar(translate: {}, \ - baseDir: str,path: str) -> str: + baseDir: str,path: str,domain: str) -> str: """Show the calendar for a person """ monthNumber=0 @@ -2880,8 +2880,6 @@ def htmlCalendar(translate: {}, \ monthNumber=currDate.month nickname=getNicknameFromActor(actor) - domain,port=getDomainFromActor(actor) - events=getCalendarEvents(baseDir,nickname,domain,year,monthNumber) months=['Jaruary','February','March','April','May','June','July','August','September','October','November','December'] @@ -2968,11 +2966,13 @@ def htmlCalendar(translate: {}, \ eventDots+='.' if eventDots=='...': break + url=actor+'?year='+str(year)+'?month='+str(monthNumber)+'?day='+str(dayOfMonth) + dayLink=''+str(dayOfMonth)+'' # there are events for this day if not isToday: - calendarStr+='