Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

    Setting busy_status with python-kopano

    Scripting
    1
    1
    320
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • rdd2
      rdd2 last edited by

      I am trying to create appointments in python-kopano and set their busy_status.

      Docs say about busy_status attribute of appointment:

      busy_status
      Appointment busy status (free, tentative, busy, out_of_office, working_elsewhere or unknown)

      But when I try to create an appointment with

      appointment = appointments.create_item(
          ...,
          busy_status = 'free',
          ...
      )
      

      I get a

        File "./calendar-event-test.py", line 409, in createCalendarEvent
          busy_status = 'busy' 
        File "/usr/lib/python3/dist-packages/kopano/folder.py", line 557, in create_item
          setattr(item, key, val)
      AttributeError: can't set attribute
      

      How should I go about setting it? What am I doing wrong?

      Thomas

      1 Reply Last reply Reply Quote 0
      • First post
        Last post