Interoperability with KOrganizer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SchoolTool |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
I found out that I have KOrganizer installed and it supports iCal (it can
upload calendars too). However, there are two problems concerning
interoperation with SchoolTool.
1) It appears that KOrganizer does not set the Content-Type header.
As a result, getHeader() returns None and SchoolTool spits out a
traceback here:
...
File ".../schooltool
if ';' in ctype:
exceptions.
(rest/cal.py, lines 266-272)
def do_PUT(self, request):
ctype = request.
>>>> if ';' in ctype:
ctype = ctype[:
if ctype != 'text/calendar':
return textErrorPage(
I don't know if it is a hard requirement for applications to set this
header. If it is, I will report a bug on KOrganizer. Nonetheless, we
might want to relax our iCal processing machinery for compatibility
reasons.
2) iCal files produced by KOrganizer have empty lines between events.
(An example is attached.)
The empty lines between events make SchoolTool choke, however, they
don't produce a traceback; error code 400 is returned with text which
KOrganizer doesn't show. ICalReader raises an unhelpful
ICalParseError during iterEvents: 'Syntax error in line: \n'.
Again, I don't know the specification so I can't say if the empty
lines are valid, however, I think relaxing this restriction is a good
idea for compatibility reasons.
P.S. I want to *KILL* roundup for providing such a measly textarea
for bug descriptions.
Changed in schooltool: | |
importance: | Medium → Wishlist |
Changed in schooltool: | |
status: | In Progress → Confirmed |
Changed in schooltool: | |
assignee: | gintas → nobody |
(Please ignore the file 'korganizer')