<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[14032] CalendarServer/trunk/twistedcaldav</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.calendarserver.org//changeset/14032">14032</a></dd>
<dt>Author</dt> <dd>sagen@apple.com</dd>
<dt>Date</dt> <dd>2014-09-30 09:48:38 -0700 (Tue, 30 Sep 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Remove the sql augments implementations, and strip the &lt;enable&gt; element from augments.xml</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#CalendarServertrunktwistedcaldavdirectoryaugmentpy">CalendarServer/trunk/twistedcaldav/directory/augment.py</a></li>
<li><a href="#CalendarServertrunktwistedcaldavdirectorytesttest_augmentpy">CalendarServer/trunk/twistedcaldav/directory/test/test_augment.py</a></li>
<li><a href="#CalendarServertrunktwistedcaldavtesttest_upgradepy">CalendarServer/trunk/twistedcaldav/test/test_upgrade.py</a></li>
<li><a href="#CalendarServertrunktwistedcaldavupgradepy">CalendarServer/trunk/twistedcaldav/upgrade.py</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="CalendarServertrunktwistedcaldavdirectoryaugmentpy"></a>
<div class="modfile"><h4>Modified: CalendarServer/trunk/twistedcaldav/directory/augment.py (14031 => 14032)</h4>
<pre class="diff"><span>
<span class="info">--- CalendarServer/trunk/twistedcaldav/directory/augment.py        2014-09-30 16:22:02 UTC (rev 14031)
+++ CalendarServer/trunk/twistedcaldav/directory/augment.py        2014-09-30 16:48:38 UTC (rev 14032)
</span><span class="lines">@@ -25,8 +25,6 @@
</span><span class="cx"> from twext.python.log import Logger
</span><span class="cx"> 
</span><span class="cx"> from twistedcaldav.config import fullServerPath, config
</span><del>-from twistedcaldav.database import AbstractADBAPIDatabase, ADBAPISqliteMixin, \
-    ADBAPIPostgreSQLMixin
</del><span class="cx"> from twistedcaldav.directory import xmlaugmentsparser
</span><span class="cx"> from twistedcaldav.directory.xmlaugmentsparser import XMLAugmentsParser
</span><span class="cx"> from twistedcaldav.xmlutil import newElementTreeWithRoot, addSubElement, \
</span><span class="lines">@@ -554,230 +552,3 @@
</span><span class="cx">                     self.xmlFileStats[xmlFile] = (newModTime, newSize)
</span><span class="cx"> 
</span><span class="cx">         return results
</span><del>-
-
-
-class AugmentADAPI(AugmentDB, AbstractADBAPIDatabase):
-    &quot;&quot;&quot;
-    DBAPI based augment database implementation.
-    &quot;&quot;&quot;
-
-    schema_version = &quot;3&quot;
-    schema_type = &quot;AugmentDB&quot;
-
-    def __init__(self, dbID, dbapiName, dbapiArgs, **kwargs):
-
-        AugmentDB.__init__(self)
-        AbstractADBAPIDatabase.__init__(self, dbID, dbapiName, dbapiArgs, True, **kwargs)
-
-
-    @inlineCallbacks
-    def getAllUIDs(self):
-        &quot;&quot;&quot;
-        Get all AugmentRecord UIDs.
-
-        @return: L{Deferred}
-        &quot;&quot;&quot;
-
-        # Query for the record information
-        results = (yield self.queryList(&quot;select UID from AUGMENTS&quot;, ()))
-        returnValue(results)
-
-
-    @inlineCallbacks
-    def _lookupAugmentRecord(self, uid):
-        &quot;&quot;&quot;
-        Get an AugmentRecord for the specified UID.
-
-        @param uid: directory UID to lookup
-        @type uid: C{str}
-
-        @return: L{Deferred}
-        &quot;&quot;&quot;
-
-        # Query for the record information
-        results = (yield self.query(&quot;select UID, ENABLED, SERVERID, CALENDARING, ADDRESSBOOKS, AUTOSCHEDULEMODE, AUTOACCEPTGROUP, LOGINENABLED from AUGMENTS where UID = :1&quot;, (uid,)))
-        if not results:
-            returnValue(None)
-        else:
-            uid, enabled, serverid, enabledForCalendaring, enabledForAddressBooks, autoScheduleMode, autoAcceptGroup, enabledForLogin = results[0]
-
-            record = AugmentRecord(
-                uid=uid,
-                enabled=enabled == &quot;T&quot;,
-                serverID=serverid,
-                enabledForCalendaring=enabledForCalendaring == &quot;T&quot;,
-                enabledForAddressBooks=enabledForAddressBooks == &quot;T&quot;,
-                enabledForLogin=enabledForLogin == &quot;T&quot;,
-                autoScheduleMode=autoScheduleMode,
-                autoAcceptGroup=autoAcceptGroup,
-            )
-
-            returnValue(record)
-
-
-    @inlineCallbacks
-    def addAugmentRecords(self, records):
-
-        for record in records:
-
-            results = (yield self.query(&quot;select UID from AUGMENTS where UID = :1&quot;, (record.uid,)))
-            update = len(results) &gt; 0
-
-            if update:
-                yield self._modifyRecord(record)
-            else:
-                yield self._addRecord(record)
-
-
-    @inlineCallbacks
-    def removeAugmentRecords(self, uids):
-        &quot;&quot;&quot;
-        Remove AugmentRecords with the specified UIDs.
-
-        @param uids: list of uids to remove
-        @type uids: C{list} of C{str}
-
-        @return: L{Deferred}
-        &quot;&quot;&quot;
-
-        for uid in uids:
-            yield self.execute(&quot;delete from AUGMENTS where UID = :1&quot;, (uid,))
-
-
-    def clean(self):
-        &quot;&quot;&quot;
-        Remove all records.
-        &quot;&quot;&quot;
-
-        return self.execute(&quot;delete from AUGMENTS&quot;, ())
-
-
-    def _db_version(self):
-        &quot;&quot;&quot;
-        @return: the schema version assigned to this index.
-        &quot;&quot;&quot;
-        return AugmentADAPI.schema_version
-
-
-    def _db_type(self):
-        &quot;&quot;&quot;
-        @return: the collection type assigned to this index.
-        &quot;&quot;&quot;
-        return AugmentADAPI.schema_type
-
-
-    @inlineCallbacks
-    def _db_init_data_tables(self):
-        &quot;&quot;&quot;
-        Initialize the underlying database tables.
-        &quot;&quot;&quot;
-
-        #
-        # AUGMENTS table
-        #
-        yield self._create_table(
-            &quot;AUGMENTS&quot;,
-            (
-                (&quot;UID&quot;, &quot;text unique&quot;),
-                (&quot;ENABLED&quot;, &quot;text(1)&quot;),
-                (&quot;SERVERID&quot;, &quot;text&quot;),
-                (&quot;CALENDARING&quot;, &quot;text(1)&quot;),
-                (&quot;ADDRESSBOOKS&quot;, &quot;text(1)&quot;),
-                (&quot;AUTOSCHEDULEMODE&quot;, &quot;text&quot;),
-                (&quot;AUTOACCEPTGROUP&quot;, &quot;text&quot;),
-                (&quot;LOGINENABLED&quot;, &quot;text(1)&quot;),
-            ),
-            ifnotexists=True,
-        )
-
-
-    @inlineCallbacks
-    def _db_empty_data_tables(self):
-        yield self._db_execute(&quot;delete from AUGMENTS&quot;)
-
-
-
-class AugmentSqliteDB(ADBAPISqliteMixin, AugmentADAPI):
-    &quot;&quot;&quot;
-    Sqlite based augment database implementation.
-    &quot;&quot;&quot;
-
-    def __init__(self, dbpath):
-
-        ADBAPISqliteMixin.__init__(self)
-        AugmentADAPI.__init__(self, &quot;Augments&quot;, &quot;sqlite3&quot;, (fullServerPath(config.DataRoot, dbpath),))
-
-
-    @inlineCallbacks
-    def _addRecord(self, record):
-        yield self.execute(
-            &quot;&quot;&quot;insert or replace into AUGMENTS
-            (UID, ENABLED, SERVERID, CALENDARING, ADDRESSBOOKS, AUTOSCHEDULEMODE, AUTOACCEPTGROUP, LOGINENABLED)
-            values (:1, :2, :3, :4, :5, :6, :7, :8)&quot;&quot;&quot;,
-            (
-                record.uid,
-                &quot;T&quot; if record.enabled else &quot;F&quot;,
-                record.serverID,
-                &quot;T&quot; if record.enabledForCalendaring else &quot;F&quot;,
-                &quot;T&quot; if record.enabledForAddressBooks else &quot;F&quot;,
-                record.autoScheduleMode if record.autoScheduleMode else &quot;&quot;,
-                record.autoAcceptGroup,
-                &quot;T&quot; if record.enabledForLogin else &quot;F&quot;,
-            )
-        )
-
-
-    def _modifyRecord(self, record):
-        return self._addRecord(record)
-
-
-
-class AugmentPostgreSQLDB(ADBAPIPostgreSQLMixin, AugmentADAPI):
-    &quot;&quot;&quot;
-    PostgreSQL based augment database implementation.
-    &quot;&quot;&quot;
-
-    def __init__(self, host, database, user=None, password=None):
-
-        ADBAPIPostgreSQLMixin.__init__(self)
-        AugmentADAPI.__init__(self, &quot;Augments&quot;, &quot;pgdb&quot;, (), host=host, database=database, user=user, password=password,)
-
-
-    @inlineCallbacks
-    def _addRecord(self, record):
-        yield self.execute(
-            &quot;&quot;&quot;insert into AUGMENTS
-            (UID, ENABLED, SERVERID, CALENDARING, ADDRESSBOOKS, AUTOSCHEDULEMODE, AUTOACCEPTGROUP, LOGINENABLED)
-            values (:1, :2, :3, :4, :5, :6, :7, :8)&quot;&quot;&quot;,
-            (
-                record.uid,
-                &quot;T&quot; if record.enabled else &quot;F&quot;,
-                record.serverID,
-                &quot;T&quot; if record.enabledForCalendaring else &quot;F&quot;,
-                &quot;T&quot; if record.enabledForAddressBooks else &quot;F&quot;,
-                record.autoScheduleMode if record.autoScheduleMode else &quot;&quot;,
-                record.autoAcceptGroup,
-                &quot;T&quot; if record.enabledForLogin else &quot;F&quot;,
-            )
-        )
-
-
-    @inlineCallbacks
-    def _modifyRecord(self, record):
-        yield self.execute(
-            &quot;&quot;&quot;update AUGMENTS set
-            (UID, ENABLED, SERVERID, CALENDARING, ADDRESSBOOKS, AUTOSCHEDULEMODE, AUTOACCEPTGROUP, LOGINENABLED) =
-            (:1, :2, :3, :4, :5, :6, :7, :8) where UID = :9&quot;&quot;&quot;,
-            (
-                record.uid,
-                &quot;T&quot; if record.enabled else &quot;F&quot;,
-                record.serverID,
-                &quot;T&quot; if record.enabledForCalendaring else &quot;F&quot;,
-                &quot;T&quot; if record.enabledForAddressBooks else &quot;F&quot;,
-                record.autoScheduleMode if record.autoScheduleMode else &quot;&quot;,
-                record.autoAcceptGroup,
-                &quot;T&quot; if record.enabledForLogin else &quot;F&quot;,
-                record.uid,
-            )
-        )
</del></span></pre></div>
<a id="CalendarServertrunktwistedcaldavdirectorytesttest_augmentpy"></a>
<div class="modfile"><h4>Modified: CalendarServer/trunk/twistedcaldav/directory/test/test_augment.py (14031 => 14032)</h4>
<pre class="diff"><span>
<span class="info">--- CalendarServer/trunk/twistedcaldav/directory/test/test_augment.py        2014-09-30 16:22:02 UTC (rev 14031)
+++ CalendarServer/trunk/twistedcaldav/directory/test/test_augment.py        2014-09-30 16:48:38 UTC (rev 14032)
</span><span class="lines">@@ -15,8 +15,7 @@
</span><span class="cx"> ##
</span><span class="cx"> 
</span><span class="cx"> from twistedcaldav.test.util import TestCase
</span><del>-from twistedcaldav.directory.augment import AugmentXMLDB, AugmentSqliteDB, \
-    AugmentPostgreSQLDB, AugmentRecord
</del><ins>+from twistedcaldav.directory.augment import AugmentXMLDB, AugmentRecord
</ins><span class="cx"> from twisted.internet.defer import inlineCallbacks
</span><span class="cx"> from twistedcaldav.directory.xmlaugmentsparser import XMLAugmentsParser
</span><span class="cx"> import cStringIO
</span><span class="lines">@@ -341,27 +340,3 @@
</span><span class="cx">         AugmentXMLDB((newxmlfile.path,))
</span><span class="cx">         uids = list(self.uidsFromFile(newxmlfile.path))
</span><span class="cx">         self.assertEquals(uids, ['AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA'])
</span><del>-
-
-
-class AugmentSqliteTests(AugmentTests, AugmentTestsMixin):
-
-    def _db(self, dbpath=None):
-        return AugmentSqliteDB(dbpath if dbpath else os.path.abspath(self.mktemp()))
-
-
-
-class AugmentPostgreSQLTests(AugmentTests, AugmentTestsMixin):
-
-    def _db(self, dbpath=None):
-        return AugmentPostgreSQLDB(&quot;localhost&quot;, &quot;augments&quot;)
-
-try:
-    import pgdb
-except ImportError:
-    AugmentPostgreSQLTests.skip = True
-else:
-    try:
-        db = pgdb.connect(host=&quot;localhost&quot;, database=&quot;augments&quot;)
-    except:
-        AugmentPostgreSQLTests.skip = True
</del></span></pre></div>
<a id="CalendarServertrunktwistedcaldavtesttest_upgradepy"></a>
<div class="modfile"><h4>Modified: CalendarServer/trunk/twistedcaldav/test/test_upgrade.py (14031 => 14032)</h4>
<pre class="diff"><span>
<span class="info">--- CalendarServer/trunk/twistedcaldav/test/test_upgrade.py        2014-09-30 16:22:02 UTC (rev 14031)
+++ CalendarServer/trunk/twistedcaldav/test/test_upgrade.py        2014-09-30 16:48:38 UTC (rev 14032)
</span><span class="lines">@@ -1596,7 +1596,7 @@
</span><span class="cx"> &lt;/augments&gt;
</span><span class="cx"> &quot;&quot;&quot;
</span><span class="cx"> 
</span><del>-newAugmentsFormat = &quot;&quot;&quot;&lt;augments&gt;\n  &lt;record&gt;\n    &lt;uid&gt;9F3603DD-65D0-480D-A1D1-5D33CAC41A13&lt;/uid&gt;\n    &lt;enable&gt;true&lt;/enable&gt;\n    &lt;enable-calendar&gt;true&lt;/enable-calendar&gt;\n    &lt;enable-addressbook&gt;true&lt;/enable-addressbook&gt;\n    &lt;enable-login&gt;true&lt;/enable-login&gt;\n    &lt;auto-schedule-mode&gt;none&lt;/auto-schedule-mode&gt;\n  &lt;/record&gt;\n  &lt;record&gt;\n    &lt;uid&gt;6A49C436-4CDB-4184-AD87-6F945040E37A&lt;/uid&gt;\n    &lt;enable&gt;true&lt;/enable&gt;\n    &lt;enable-calendar&gt;true&lt;/enable-calendar&gt;\n    &lt;enable-addressbook&gt;true&lt;/enable-addressbook&gt;\n    &lt;enable-login&gt;true&lt;/enable-login&gt;\n    &lt;/record&gt;\n  &lt;record&gt;\n    &lt;uid&gt;60B771CC-D727-4453-ACE0-0FE13CD7445A&lt;/uid&gt;\n    &lt;enable&gt;true&lt;/enable&gt;\n    &lt;enable-calendar&gt;true&lt;/enable-calendar&gt;\n    &lt;enable-addressbook&gt;true&lt;/enable-addressbook&gt;\n    &lt;enable-login&gt;true&lt;/enable-login&gt;\n    &lt;auto-schedule-mode&gt;none&lt;/auto-schedule-mode&gt;\n  &lt;/record&gt;\n  &lt;record&gt;\n    &lt;uid&gt;E173AADC-4642-43CB-9745-8CE436A6FE4A&lt;/uid&gt;\n    &lt;enable&gt;false&lt;/enable&gt;\n    &lt;enable-calendar&gt;true&lt;/enable-calendar&gt;\n    &lt;enable-addressbook&gt;true&lt;/enable-addressbook&gt;\n    &lt;enable-login&gt;true&lt;/enable-login&gt;\n    &lt;auto-schedule-mode&gt;none&lt;/auto-schedule-mode&gt;\n  &lt;/record&gt;\n    &lt;record&gt;\n    &lt;uid&gt;FC9A7F56-CCCA-4401-9160-903902880A37&lt;/uid&gt;\n    &lt;enable&gt;false&lt;/enable&gt;\n    &lt;enable-calendar&gt;true&lt;/enable-calendar&gt;\n    &lt;enable-addressbook&gt;true&lt;/enable-addressbook&gt;\n    &lt;enable-login&gt;true&lt;/enable-login&gt;\n    &lt;auto-schedule-mode&gt;accept-if-free&lt;/auto-schedule-mode&gt;\n  &lt;/record&gt;\n&lt;/augments&gt;&quot;&quot;&quot;
</del><ins>+newAugmentsFormat = &quot;&quot;&quot;&lt;augments&gt;\n  &lt;record&gt;\n    &lt;uid&gt;9F3603DD-65D0-480D-A1D1-5D33CAC41A13&lt;/uid&gt;\n    &lt;enable-calendar&gt;true&lt;/enable-calendar&gt;\n    &lt;enable-addressbook&gt;true&lt;/enable-addressbook&gt;\n    &lt;enable-login&gt;true&lt;/enable-login&gt;\n    &lt;auto-schedule-mode&gt;none&lt;/auto-schedule-mode&gt;\n  &lt;/record&gt;\n  &lt;record&gt;\n    &lt;uid&gt;6A49C436-4CDB-4184-AD87-6F945040E37A&lt;/uid&gt;\n    &lt;enable-calendar&gt;true&lt;/enable-calendar&gt;\n    &lt;enable-addressbook&gt;true&lt;/enable-addressbook&gt;\n    &lt;enable-login&gt;true&lt;/enable-login&gt;\n    &lt;/record&gt;\n  &lt;record&gt;\n    &lt;uid&gt;60B771CC-D727-4453-ACE0-0FE13CD7445A&lt;/uid&gt;\n    &lt;enable-calendar&gt;true&lt;/enable-calendar&gt;\n    &lt;enable-addressbook&gt;true&lt;/enable-addressbook&gt;\n    &lt;enable-login&gt;true&lt;/enable-login&gt;\n    &lt;auto-schedule-mode&gt;none&lt;/auto-schedule-mode&gt;\n  &lt;/record&gt;\n  &lt;record&gt;\n    &lt;uid&gt;E173AADC-4642-43CB-9745-8CE436A6FE4A&lt;/uid&gt;\n    &lt;enable-calendar&gt;true&lt;/enable-calendar&gt;\n    &lt;enable-addressbook&gt;true&lt;/enable-addressbook&gt;\n    &lt;enable-login&gt;true&lt;/enable-login&gt;\n    &lt;auto-schedule-mode&gt;none&lt;/auto-schedule-mode&gt;\n  &lt;/record&gt;\n    &lt;record&gt;\n    &lt;uid&gt;FC9A7F56-CCCA-4401-9160-903902880A37&lt;/uid&gt;\n    &lt;enable-calendar&gt;true&lt;/enable-calendar&gt;\n    &lt;enable-addressbook&gt;true&lt;/enable-addressbook&gt;\n    &lt;enable-login&gt;true&lt;/enable-login&gt;\n    &lt;auto-schedule-mode&gt;accept-if-free&lt;/auto-schedule-mode&gt;\n  &lt;/record&gt;\n&lt;/augments&gt;&quot;&quot;&quot;
</ins><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> normalizeEvent = &quot;&quot;&quot;BEGIN:VCALENDAR
</span></span></pre></div>
<a id="CalendarServertrunktwistedcaldavupgradepy"></a>
<div class="modfile"><h4>Modified: CalendarServer/trunk/twistedcaldav/upgrade.py (14031 => 14032)</h4>
<pre class="diff"><span>
<span class="info">--- CalendarServer/trunk/twistedcaldav/upgrade.py        2014-09-30 16:22:02 UTC (rev 14031)
+++ CalendarServer/trunk/twistedcaldav/upgrade.py        2014-09-30 16:48:38 UTC (rev 14032)
</span><span class="lines">@@ -732,6 +732,7 @@
</span><span class="cx"> 
</span><span class="cx">     log.info(&quot;Converting augments.xml&quot;)
</span><span class="cx">     for recordNode in augmentsNode:
</span><ins>+
</ins><span class="cx">         autoScheduleElement = recordNode.find(&quot;auto-schedule&quot;)
</span><span class="cx">         if autoScheduleElement is not None:
</span><span class="cx">             if autoScheduleElement.text == &quot;false&quot;:
</span><span class="lines">@@ -740,6 +741,10 @@
</span><span class="cx">                     autoScheduleModeElement.text = &quot;none&quot;
</span><span class="cx">             recordNode.remove(autoScheduleElement)
</span><span class="cx"> 
</span><ins>+        enableElement = recordNode.find(&quot;enable&quot;)
+        if enableElement is not None:
+            recordNode.remove(enableElement)
+
</ins><span class="cx">     augmentsFilePath.setContent(etreeToString(augmentsNode, &quot;utf-8&quot;))
</span><span class="cx"> 
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>