python-caldav / caldav

Apache License 2.0
314 stars 94 forks source link

cal_obj.__str__ and cal_obj.__repr__ should be deterministic #278

Closed tobixen closed 1 year ago

tobixen commented 1 year ago

__str__ will always return name (and may cause server traffic) while __repr__ will show the URL (and will not cause server traffic - but will basically show everything needed to recreate the calendar object).

Earlier __str__ would show name if it was available, otherwise URL, and would never initiate server traffic - and __repr__ was calling __str__.