Jump to content


  • Posts

  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

dnx2710's Achievements


Newbie (1/14)



  1. Thank you for the example, I used the code you provided by was I see no new event in the "Overview". Whe trying to debug the issue I got "Duplicate entry" Here is the json used for my test: [{"action": "create", "entity_data": { "__entity_type__": "CalendarEvent", "end": {"__type__": "datetime", "value": "2017-07-21T23:59:59+00:00"}, "id": "0a645dfc-76c0-55e1-a052-5db8246fb86c", "name": "Random title used for test", "start": {"__type__": "datetime", "value": "2017-07-20T00:00:00+00:00"}}, "entity_key": ["0a645dfc-76c0-44e1-a052-5db8246fb86c"], "entity_type": "CalendarEvent"}] And the response: { "content": "(_mysql_exceptions.IntegrityError) (1062, "Duplicate entry '0a645dfc-76c0-44e1-a052-5db8246fb86c' for key 'PRIMARY'") [SQL: u'INSERT INTO calendar_event (name, start, end, `leave`, everyone, forecast, estimate, effort, project_id, type_id, id, created_by_id, created_at) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)'] [parameters: ('Random title used for test', datetime.datetime(2017, 7, 20, 0, 0), datetime.datetime(2017, 7, 21, 23, 59, 59), 0, 0, 0, 0.0, 0.0, None, None, u'0a645dfc-76c0-44e1-a052-5db8246fb86c', 'abb865c6-d666-11e5-a91d-0026b94baeec', datetime.datetime(2017, 7, 20, 17, 49, 14, 499195))]", "exception": "IntegrityError", "error_code": null } Which means the event DOES exist, but I am unable to see it. When I try to list the CalendarEvents of the project, the new one does not appear. Also, when I try to update the dates of an existing event I get {"content": "'NoneType' object has no attribute 'date'", "exception": "AttributeError", "error_code": null}
  2. I am trying to create a new Calendar Event using the api, but I think this is not currently being supported. The old api had a project.createPhase() method which is the one I am testing to create this entity. Is this the correct way to approach the creation of events through the api? FYI: I am currently using the 3.5 (latest) ftrack api for python.
  3. Yes, the label was something like: SOME-LONG-NAME that keeps adding letters, it is such a long label
  4. Is there a way to make the boolean’s width larger? Right now the checkbox appears on top of my label
  • Create New...