2014-02-25 2 views

답변

0

일부 행운과 함께 캘린더를 탐색하여 내 답변을 찾았습니다. A는«다음 주»에 가면, 우리의 URL 변경 날짜와 함께 아름 다운

https://kolab.mydomaine.fr/roundcubemail/?_task=calendar&view=agendaWeek&date=1392678000 

= 내가 보여하고자하는 일의 타임 스탬프를 얻었다.

따라서 조금 파이썬 (사용 장고)

def get_absolute_url(self): 
    timestamp = int(time.mktime(self.event.get_start().timetuple())) 
    return "https://{kolab_domaine}/roundcubemail/?_task=calendar&view=agendaWeekdate={timestamp}".format(kolab_domaine=self.get_kolab_domain(), timestamp=timestamp)