Project

General

Profile

« Previous | Next » 

Revision a87d6ad7

Added by Jérôme Schneider over 11 years ago

agenda: description is now editable

View differences:

calebasse/agenda/appointments.py
11 11

  
12 12
    def __init__(self, title=None, begin_time=None, type=None,
13 13
            length=None, description=None, room=None, convocation_sent=None,
14
            service_name=None, patient_record_id=None):
14
            service_name=None, patient_record_id=None, event_id=None):
15 15
        """ """
16 16
        self.title = title
17 17
        self.type = type
......
21 21
        self.convocation_sent = None
22 22
        self.service_name = None
23 23
        self.patient_record_id = None
24
        self.event_id = None
24 25
        self.__set_time(begin_time)
25 26

  
26 27
    def __set_time(self, time):
......
41 42
        else:
42 43
            self.type = "busy-elsewhere"
43 44
            self.service_name = service.name
45
        self.event_id = occurrence.event.id
44 46
        if occurrence.event.room:
45 47
            self.room = occurrence.event.room.name
46 48
        self.description = occurrence.event.description

Also available in: Unified diff