[CalendarServer-changes] [11923] CalendarServer/trunk/twext/who/directory.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Mar 12 11:17:12 PDT 2014


Revision: 11923
          http://trac.calendarserver.org//changeset/11923
Author:   wsanchez at apple.com
Date:     2013-11-08 15:59:33 -0800 (Fri, 08 Nov 2013)
Log Message:
-----------
Remove check for field length; the check is already done, so the code isn't called.

Modified Paths:
--------------
    CalendarServer/trunk/twext/who/directory.py

Modified: CalendarServer/trunk/twext/who/directory.py
===================================================================
--- CalendarServer/trunk/twext/who/directory.py	2013-11-08 23:55:15 UTC (rev 11922)
+++ CalendarServer/trunk/twext/who/directory.py	2013-11-08 23:59:33 UTC (rev 11923)
@@ -291,11 +291,6 @@
 
             if FieldName.isMultiValue(fieldName):
                 values = fields[fieldName]
-                if len(values) == 0:
-                    raise ValueError(
-                        "{0} field must have at least one value."
-                        .format(fieldName)
-                    )
                 for value in values:
                     if not value:
                         raise ValueError(
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140312/865ab6c9/attachment.html>


More information about the calendarserver-changes mailing list