<!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>[11893] CalendarServer/branches/users/cdaboo/reverse-proxy-pods</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/11893">11893</a></dd>
<dt>Author</dt> <dd>cdaboo@apple.com</dd>
<dt>Date</dt> <dd>2013-11-06 14:17:27 -0800 (Wed, 06 Nov 2013)</dd>
</dl>

<h3>Log Message</h3>
<pre>Add podding configuration. Add a new ImportConfig option to config files to allow bottom-up inclusion of other configs,
rather than the top-down approach that IncludeFiles uses.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#CalendarServerbranchesuserscdabooreverseproxypodscalendarservertapcaldavpy">CalendarServer/branches/users/cdaboo/reverse-proxy-pods/calendarserver/tap/caldav.py</a></li>
<li><a href="#CalendarServerbranchesuserscdabooreverseproxypodsconflocalserverstestxml">CalendarServer/branches/users/cdaboo/reverse-proxy-pods/conf/localservers-test.xml</a></li>
<li><a href="#CalendarServerbranchesuserscdabooreverseproxypodstwistedcaldavconfigpy">CalendarServer/branches/users/cdaboo/reverse-proxy-pods/twistedcaldav/config.py</a></li>
<li><a href="#CalendarServerbranchesuserscdabooreverseproxypodstwistedcaldavstdconfigpy">CalendarServer/branches/users/cdaboo/reverse-proxy-pods/twistedcaldav/stdconfig.py</a></li>
<li><a href="#CalendarServerbranchesuserscdabooreverseproxypodstxdavcaldavdatastoreschedulingcaldavschedulerpy">CalendarServer/branches/users/cdaboo/reverse-proxy-pods/txdav/caldav/datastore/scheduling/caldav/scheduler.py</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#CalendarServerbranchesuserscdabooreverseproxypodsconfauthaccountstestpodxml">CalendarServer/branches/users/cdaboo/reverse-proxy-pods/conf/auth/accounts-test-pod.xml</a></li>
<li><a href="#CalendarServerbranchesuserscdabooreverseproxypodsconfauthaugmentstestpodxml">CalendarServer/branches/users/cdaboo/reverse-proxy-pods/conf/auth/augments-test-pod.xml</a></li>
<li><a href="#CalendarServerbranchesuserscdabooreverseproxypodsconfauthproxiestestpodxml">CalendarServer/branches/users/cdaboo/reverse-proxy-pods/conf/auth/proxies-test-pod.xml</a></li>
<li><a href="#CalendarServerbranchesuserscdabooreverseproxypodsconfauthresourcestestpodxml">CalendarServer/branches/users/cdaboo/reverse-proxy-pods/conf/auth/resources-test-pod.xml</a></li>
<li><a href="#CalendarServerbranchesuserscdabooreverseproxypodsconfcaldavdtestpodAplist">CalendarServer/branches/users/cdaboo/reverse-proxy-pods/conf/caldavd-test-podA.plist</a></li>
<li><a href="#CalendarServerbranchesuserscdabooreverseproxypodsconfcaldavdtestpodBplist">CalendarServer/branches/users/cdaboo/reverse-proxy-pods/conf/caldavd-test-podB.plist</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="CalendarServerbranchesuserscdabooreverseproxypodscalendarservertapcaldavpy"></a>
<div class="modfile"><h4>Modified: CalendarServer/branches/users/cdaboo/reverse-proxy-pods/calendarserver/tap/caldav.py (11892 => 11893)</h4>
<pre class="diff"><span>
<span class="info">--- CalendarServer/branches/users/cdaboo/reverse-proxy-pods/calendarserver/tap/caldav.py        2013-11-06 21:20:52 UTC (rev 11892)
+++ CalendarServer/branches/users/cdaboo/reverse-proxy-pods/calendarserver/tap/caldav.py        2013-11-06 22:17:27 UTC (rev 11893)
</span><span class="lines">@@ -402,6 +402,8 @@
</span><span class="cx"> 
</span><span class="cx">         config.load(self[&quot;config&quot;])
</span><span class="cx"> 
</span><ins>+        for path in config.getProvider().importedFiles:
+            print(&quot;Imported configuration from file: '%s'&quot; % (path,))
</ins><span class="cx">         for path in config.getProvider().includedFiles:
</span><span class="cx">             print(&quot;Adding configuration from file: '%s'&quot; % (path,))
</span><span class="cx">         for path in config.getProvider().missingFiles:
</span></span></pre></div>
<a id="CalendarServerbranchesuserscdabooreverseproxypodsconfauthaccountstestpodxml"></a>
<div class="addfile"><h4>Added: CalendarServer/branches/users/cdaboo/reverse-proxy-pods/conf/auth/accounts-test-pod.xml (0 => 11893)</h4>
<pre class="diff"><span>
<span class="info">--- CalendarServer/branches/users/cdaboo/reverse-proxy-pods/conf/auth/accounts-test-pod.xml                                (rev 0)
+++ CalendarServer/branches/users/cdaboo/reverse-proxy-pods/conf/auth/accounts-test-pod.xml        2013-11-06 22:17:27 UTC (rev 11893)
</span><span class="lines">@@ -0,0 +1,32 @@
</span><ins>+&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
+
+&lt;accounts realm=&quot;Test Realm&quot;&gt;
+  &lt;user&gt;
+    &lt;uid&gt;admin&lt;/uid&gt;
+    &lt;guid&gt;admin&lt;/guid&gt;
+    &lt;password&gt;admin&lt;/password&gt;
+    &lt;name&gt;Super User&lt;/name&gt;
+    &lt;first-name&gt;Super&lt;/first-name&gt;
+    &lt;last-name&gt;User&lt;/last-name&gt;
+  &lt;/user&gt;
+  &lt;user repeat=&quot;101&quot;&gt;
+    &lt;uid&gt;user%02d&lt;/uid&gt;
+    &lt;uid&gt;User %02d&lt;/uid&gt;
+    &lt;guid&gt;user%02d&lt;/guid&gt;
+    &lt;password&gt;user%02d&lt;/password&gt;
+    &lt;name&gt;User %02d&lt;/name&gt;
+    &lt;first-name&gt;User&lt;/first-name&gt;
+    &lt;last-name&gt;%02d&lt;/last-name&gt;
+    &lt;email-address&gt;user%02d@example.com&lt;/email-address&gt;
+  &lt;/user&gt;
+  &lt;user repeat=&quot;101&quot;&gt;
+    &lt;uid&gt;puser%02d&lt;/uid&gt;
+    &lt;uid&gt;Puser %02d&lt;/uid&gt;
+    &lt;guid&gt;puser%02d&lt;/guid&gt;
+    &lt;password&gt;puser%02d&lt;/password&gt;
+    &lt;name&gt;Puser %02d&lt;/name&gt;
+    &lt;first-name&gt;Puser&lt;/first-name&gt;
+    &lt;last-name&gt;%02d&lt;/last-name&gt;
+    &lt;email-address&gt;puser%02d@example.com&lt;/email-address&gt;
+  &lt;/user&gt;
+&lt;/accounts&gt;
</ins><span class="cx">Property changes on: CalendarServer/branches/users/cdaboo/reverse-proxy-pods/conf/auth/accounts-test-pod.xml
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnexecutable"></a>
<div class="addfile"><h4>Added: svn:executable</h4></div>
<a id="CalendarServerbranchesuserscdabooreverseproxypodsconfauthaugmentstestpodxml"></a>
<div class="addfile"><h4>Added: CalendarServer/branches/users/cdaboo/reverse-proxy-pods/conf/auth/augments-test-pod.xml (0 => 11893)</h4>
<pre class="diff"><span>
<span class="info">--- CalendarServer/branches/users/cdaboo/reverse-proxy-pods/conf/auth/augments-test-pod.xml                                (rev 0)
+++ CalendarServer/branches/users/cdaboo/reverse-proxy-pods/conf/auth/augments-test-pod.xml        2013-11-06 22:17:27 UTC (rev 11893)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
+&lt;!DOCTYPE augments SYSTEM &quot;augments.dtd&quot;&gt;
+
+&lt;augments&gt;
+  &lt;record&gt;
+    &lt;uid&gt;Default&lt;/uid&gt;
+    &lt;enable&gt;true&lt;/enable&gt;
+    &lt;server-id&gt;A&lt;/server-id&gt;
+    &lt;enable-calendar&gt;true&lt;/enable-calendar&gt;
+    &lt;enable-addressbook&gt;true&lt;/enable-addressbook&gt;
+  &lt;/record&gt;
+  &lt;record repeat=&quot;101&quot;&gt;
+    &lt;uid&gt;puser%02d&lt;/uid&gt;
+    &lt;enable&gt;true&lt;/enable&gt;
+    &lt;server-id&gt;B&lt;/server-id&gt;
+    &lt;enable-calendar&gt;true&lt;/enable-calendar&gt;
+    &lt;enable-addressbook&gt;true&lt;/enable-addressbook&gt;
+  &lt;/record&gt;
+&lt;/augments&gt;
</ins></span></pre></div>
<a id="CalendarServerbranchesuserscdabooreverseproxypodsconfauthproxiestestpodxml"></a>
<div class="addfile"><h4>Added: CalendarServer/branches/users/cdaboo/reverse-proxy-pods/conf/auth/proxies-test-pod.xml (0 => 11893)</h4>
<pre class="diff"><span>
<span class="info">--- CalendarServer/branches/users/cdaboo/reverse-proxy-pods/conf/auth/proxies-test-pod.xml                                (rev 0)
+++ CalendarServer/branches/users/cdaboo/reverse-proxy-pods/conf/auth/proxies-test-pod.xml        2013-11-06 22:17:27 UTC (rev 11893)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
+
+&lt;!--
+Copyright (c) 2009-2013 Apple Inc. All rights reserved.
+
+Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an &quot;AS IS&quot; BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+ --&gt;
+
+&lt;!DOCTYPE proxies SYSTEM &quot;proxies.dtd&quot;&gt;
+
+&lt;proxies&gt;
+&lt;/proxies&gt;
</ins></span></pre></div>
<a id="CalendarServerbranchesuserscdabooreverseproxypodsconfauthresourcestestpodxml"></a>
<div class="addfile"><h4>Added: CalendarServer/branches/users/cdaboo/reverse-proxy-pods/conf/auth/resources-test-pod.xml (0 => 11893)</h4>
<pre class="diff"><span>
<span class="info">--- CalendarServer/branches/users/cdaboo/reverse-proxy-pods/conf/auth/resources-test-pod.xml                                (rev 0)
+++ CalendarServer/branches/users/cdaboo/reverse-proxy-pods/conf/auth/resources-test-pod.xml        2013-11-06 22:17:27 UTC (rev 11893)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
+
+&lt;accounts realm=&quot;Test Realm&quot;&gt;
+&lt;/accounts&gt;
</ins><span class="cx">Property changes on: CalendarServer/branches/users/cdaboo/reverse-proxy-pods/conf/auth/resources-test-pod.xml
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnexecutable"></a>
<div class="addfile"><h4>Added: svn:executable</h4></div>
<a id="CalendarServerbranchesuserscdabooreverseproxypodsconfcaldavdtestpodAplist"></a>
<div class="addfile"><h4>Added: CalendarServer/branches/users/cdaboo/reverse-proxy-pods/conf/caldavd-test-podA.plist (0 => 11893)</h4>
<pre class="diff"><span>
<span class="info">--- CalendarServer/branches/users/cdaboo/reverse-proxy-pods/conf/caldavd-test-podA.plist                                (rev 0)
+++ CalendarServer/branches/users/cdaboo/reverse-proxy-pods/conf/caldavd-test-podA.plist        2013-11-06 22:17:27 UTC (rev 11893)
</span><span class="lines">@@ -0,0 +1,158 @@
</span><ins>+&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
+
+&lt;!--
+    Copyright (c) 2006-2009 Apple Inc. All rights reserved.
+
+    Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
+    you may not use this file except in compliance with the License.
+    You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an &quot;AS IS&quot; BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+  --&gt;
+
+&lt;!DOCTYPE plist PUBLIC &quot;-//Apple Computer//DTD PLIST 1.0//EN&quot; &quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;&gt;
+&lt;plist version=&quot;1.0&quot;&gt;
+  &lt;dict&gt;
+
+    &lt;!-- Import a parent config before this one --&gt;
+    &lt;key&gt;ImportConfig&lt;/key&gt;
+    &lt;string&gt;./conf/caldavd-test.plist&lt;/string&gt;
+
+    &lt;!-- HTTP port [0 = disable HTTP] --&gt;
+    &lt;key&gt;HTTPPort&lt;/key&gt;
+    &lt;integer&gt;8008&lt;/integer&gt;
+
+    &lt;!-- SSL port [0 = disable HTTPS] --&gt;
+    &lt;!-- (Must also configure SSLCertificate and SSLPrivateKey below) --&gt;
+    &lt;key&gt;SSLPort&lt;/key&gt;
+    &lt;integer&gt;8443&lt;/integer&gt;
+
+    &lt;!-- List of port numbers to bind to for HTTP [empty = same as &quot;Port&quot;] --&gt;
+    &lt;key&gt;BindHTTPPorts&lt;/key&gt;
+    &lt;array&gt;
+    &lt;/array&gt;
+
+    &lt;!-- List of port numbers to bind to for SSL [empty = same as &quot;SSLPort&quot;] --&gt;
+    &lt;key&gt;BindSSLPorts&lt;/key&gt;
+    &lt;array&gt;
+    &lt;/array&gt;
+
+    &lt;!-- Server root --&gt;
+    &lt;key&gt;ServerRoot&lt;/key&gt;
+    &lt;string&gt;./data/podA&lt;/string&gt;
+
+    &lt;!-- Configuration root --&gt;
+    &lt;key&gt;ConfigRoot&lt;/key&gt;
+    &lt;string&gt;./conf&lt;/string&gt;
+
+    &lt;!-- XML File Directory Service --&gt;
+    &lt;key&gt;DirectoryService&lt;/key&gt;
+    &lt;dict&gt;
+      &lt;key&gt;type&lt;/key&gt;
+      &lt;string&gt;twistedcaldav.directory.xmlfile.XMLDirectoryService&lt;/string&gt;
+      
+      &lt;key&gt;params&lt;/key&gt;
+      &lt;dict&gt;
+        &lt;key&gt;xmlFile&lt;/key&gt;
+        &lt;string&gt;./conf/auth/accounts-test-pod.xml&lt;/string&gt;
+      &lt;/dict&gt;
+    &lt;/dict&gt;
+    
+    &lt;!-- Resource and Location Service --&gt;
+    &lt;key&gt;ResourceService&lt;/key&gt;
+    &lt;dict&gt;
+      &lt;key&gt;Enabled&lt;/key&gt;
+      &lt;true/&gt;
+      &lt;key&gt;type&lt;/key&gt;
+      &lt;string&gt;twistedcaldav.directory.xmlfile.XMLDirectoryService&lt;/string&gt;
+      
+      &lt;key&gt;params&lt;/key&gt;
+      &lt;dict&gt;
+        &lt;key&gt;xmlFile&lt;/key&gt;
+        &lt;string&gt;./conf/auth/resources-test-pod.xml&lt;/string&gt;
+      &lt;/dict&gt;
+    &lt;/dict&gt;
+
+    &lt;!-- XML File Augment Service --&gt;
+    &lt;key&gt;AugmentService&lt;/key&gt;
+    &lt;dict&gt;
+      &lt;key&gt;type&lt;/key&gt;
+      &lt;string&gt;twistedcaldav.directory.augment.AugmentXMLDB&lt;/string&gt;
+      
+      &lt;key&gt;params&lt;/key&gt;
+      &lt;dict&gt;
+        &lt;key&gt;xmlFiles&lt;/key&gt;
+        &lt;array&gt;
+              &lt;string&gt;./conf/auth/augments-test-pod.xml&lt;/string&gt;
+        &lt;/array&gt;
+      &lt;/dict&gt;
+    &lt;/dict&gt;
+
+    &lt;key&gt;ProxyLoadFromFile&lt;/key&gt;
+    &lt;string&gt;./conf/auth/proxies-test-pod.xml&lt;/string&gt;
+
+    &lt;!--  Servers --&gt;
+    &lt;key&gt;Servers&lt;/key&gt;
+    &lt;dict&gt;
+            &lt;key&gt;Enabled&lt;/key&gt;
+            &lt;true/&gt;
+            &lt;key&gt;ConfigFile&lt;/key&gt;
+            &lt;string&gt;./conf/localservers-test.xml&lt;/string&gt;
+            &lt;key&gt;MaxClients&lt;/key&gt;
+            &lt;integer&gt;5&lt;/integer&gt;
+            &lt;key&gt;InboxName&lt;/key&gt;
+            &lt;string&gt;podding&lt;/string&gt;
+        &lt;/dict&gt;
+
+    &lt;!-- Support for Memcached --&gt;
+    &lt;key&gt;Memcached&lt;/key&gt;
+    &lt;dict&gt;
+          &lt;key&gt;Pools&lt;/key&gt;
+                &lt;dict&gt;
+                  &lt;key&gt;Default&lt;/key&gt;
+                  &lt;dict&gt;
+                    &lt;key&gt;ClientEnabled&lt;/key&gt;
+                    &lt;true/&gt;
+                    &lt;key&gt;ServerEnabled&lt;/key&gt;
+                    &lt;true/&gt;
+                    &lt;key&gt;BindAddress&lt;/key&gt;
+                    &lt;string&gt;localhost&lt;/string&gt;
+                    &lt;key&gt;Port&lt;/key&gt;
+                    &lt;integer&gt;11211&lt;/integer&gt;
+                  &lt;/dict&gt;
+                  &lt;key&gt;ProxyDB&lt;/key&gt;
+                  &lt;dict&gt;
+                    &lt;key&gt;ClientEnabled&lt;/key&gt;
+                    &lt;true/&gt;
+                    &lt;key&gt;ServerEnabled&lt;/key&gt;
+                    &lt;true/&gt;
+                    &lt;key&gt;BindAddress&lt;/key&gt;
+                    &lt;string&gt;localhost&lt;/string&gt;
+                    &lt;key&gt;Port&lt;/key&gt;
+                    &lt;integer&gt;11311&lt;/integer&gt;
+                    &lt;key&gt;HandleCacheTypes&lt;/key&gt;
+                    &lt;array&gt;
+                      &lt;string&gt;ProxyDB&lt;/string&gt;
+                      &lt;string&gt;PrincipalToken&lt;/string&gt;
+                      &lt;string&gt;DIGESTCREDENTIALS&lt;/string&gt;
+                    &lt;/array&gt;
+                  &lt;/dict&gt;
+                &lt;/dict&gt;
+      &lt;key&gt;MaxClients&lt;/key&gt;
+      &lt;integer&gt;5&lt;/integer&gt;
+      &lt;key&gt;memcached&lt;/key&gt;
+      &lt;string&gt;../memcached/_root/bin/memcached&lt;/string&gt; &lt;!-- Find in PATH --&gt;
+      &lt;key&gt;Options&lt;/key&gt;
+      &lt;array&gt;
+        &lt;!--&lt;string&gt;-vv&lt;/string&gt;--&gt;
+      &lt;/array&gt;
+    &lt;/dict&gt;
+
+  &lt;/dict&gt;
+&lt;/plist&gt;
</ins></span></pre></div>
<a id="CalendarServerbranchesuserscdabooreverseproxypodsconfcaldavdtestpodBplist"></a>
<div class="addfile"><h4>Added: CalendarServer/branches/users/cdaboo/reverse-proxy-pods/conf/caldavd-test-podB.plist (0 => 11893)</h4>
<pre class="diff"><span>
<span class="info">--- CalendarServer/branches/users/cdaboo/reverse-proxy-pods/conf/caldavd-test-podB.plist                                (rev 0)
+++ CalendarServer/branches/users/cdaboo/reverse-proxy-pods/conf/caldavd-test-podB.plist        2013-11-06 22:17:27 UTC (rev 11893)
</span><span class="lines">@@ -0,0 +1,158 @@
</span><ins>+&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
+
+&lt;!--
+    Copyright (c) 2006-2009 Apple Inc. All rights reserved.
+
+    Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
+    you may not use this file except in compliance with the License.
+    You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an &quot;AS IS&quot; BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+  --&gt;
+
+&lt;!DOCTYPE plist PUBLIC &quot;-//Apple Computer//DTD PLIST 1.0//EN&quot; &quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;&gt;
+&lt;plist version=&quot;1.0&quot;&gt;
+  &lt;dict&gt;
+
+    &lt;!-- Import a parent config before this one --&gt;
+    &lt;key&gt;ImportConfig&lt;/key&gt;
+    &lt;string&gt;./conf/caldavd-test.plist&lt;/string&gt;
+
+    &lt;!-- HTTP port [0 = disable HTTP] --&gt;
+    &lt;key&gt;HTTPPort&lt;/key&gt;
+    &lt;integer&gt;8108&lt;/integer&gt;
+
+    &lt;!-- SSL port [0 = disable HTTPS] --&gt;
+    &lt;!-- (Must also configure SSLCertificate and SSLPrivateKey below) --&gt;
+    &lt;key&gt;SSLPort&lt;/key&gt;
+    &lt;integer&gt;8543&lt;/integer&gt;
+
+    &lt;!-- List of port numbers to bind to for HTTP [empty = same as &quot;Port&quot;] --&gt;
+    &lt;key&gt;BindHTTPPorts&lt;/key&gt;
+    &lt;array&gt;
+    &lt;/array&gt;
+
+    &lt;!-- List of port numbers to bind to for SSL [empty = same as &quot;SSLPort&quot;] --&gt;
+    &lt;key&gt;BindSSLPorts&lt;/key&gt;
+    &lt;array&gt;
+    &lt;/array&gt;
+
+    &lt;!-- Server root --&gt;
+    &lt;key&gt;ServerRoot&lt;/key&gt;
+    &lt;string&gt;./data/podB&lt;/string&gt;
+
+    &lt;!-- Configuration root --&gt;
+    &lt;key&gt;ConfigRoot&lt;/key&gt;
+    &lt;string&gt;./conf&lt;/string&gt;
+
+    &lt;!-- XML File Directory Service --&gt;
+    &lt;key&gt;DirectoryService&lt;/key&gt;
+    &lt;dict&gt;
+      &lt;key&gt;type&lt;/key&gt;
+      &lt;string&gt;twistedcaldav.directory.xmlfile.XMLDirectoryService&lt;/string&gt;
+      
+      &lt;key&gt;params&lt;/key&gt;
+      &lt;dict&gt;
+        &lt;key&gt;xmlFile&lt;/key&gt;
+        &lt;string&gt;./conf/auth/accounts-test-pod.xml&lt;/string&gt;
+      &lt;/dict&gt;
+    &lt;/dict&gt;
+    
+    &lt;!-- Resource and Location Service --&gt;
+    &lt;key&gt;ResourceService&lt;/key&gt;
+    &lt;dict&gt;
+      &lt;key&gt;Enabled&lt;/key&gt;
+      &lt;true/&gt;
+      &lt;key&gt;type&lt;/key&gt;
+      &lt;string&gt;twistedcaldav.directory.xmlfile.XMLDirectoryService&lt;/string&gt;
+      
+      &lt;key&gt;params&lt;/key&gt;
+      &lt;dict&gt;
+        &lt;key&gt;xmlFile&lt;/key&gt;
+        &lt;string&gt;./conf/auth/resources-test-pod.xml&lt;/string&gt;
+      &lt;/dict&gt;
+    &lt;/dict&gt;
+
+    &lt;!-- XML File Augment Service --&gt;
+    &lt;key&gt;AugmentService&lt;/key&gt;
+    &lt;dict&gt;
+      &lt;key&gt;type&lt;/key&gt;
+      &lt;string&gt;twistedcaldav.directory.augment.AugmentXMLDB&lt;/string&gt;
+      
+      &lt;key&gt;params&lt;/key&gt;
+      &lt;dict&gt;
+        &lt;key&gt;xmlFiles&lt;/key&gt;
+        &lt;array&gt;
+              &lt;string&gt;./conf/auth/augments-test-pod.xml&lt;/string&gt;
+        &lt;/array&gt;
+      &lt;/dict&gt;
+    &lt;/dict&gt;
+
+    &lt;key&gt;ProxyLoadFromFile&lt;/key&gt;
+    &lt;string&gt;./conf/auth/proxies-test-pod.xml&lt;/string&gt;
+
+    &lt;!--  Servers --&gt;
+    &lt;key&gt;Servers&lt;/key&gt;
+    &lt;dict&gt;
+            &lt;key&gt;Enabled&lt;/key&gt;
+            &lt;true/&gt;
+            &lt;key&gt;ConfigFile&lt;/key&gt;
+            &lt;string&gt;./conf/localservers-test.xml&lt;/string&gt;
+            &lt;key&gt;MaxClients&lt;/key&gt;
+            &lt;integer&gt;5&lt;/integer&gt;
+            &lt;key&gt;InboxName&lt;/key&gt;
+            &lt;string&gt;podding&lt;/string&gt;
+        &lt;/dict&gt;
+
+    &lt;!-- Support for Memcached --&gt;
+    &lt;key&gt;Memcached&lt;/key&gt;
+    &lt;dict&gt;
+          &lt;key&gt;Pools&lt;/key&gt;
+                &lt;dict&gt;
+                  &lt;key&gt;Default&lt;/key&gt;
+                  &lt;dict&gt;
+                    &lt;key&gt;ClientEnabled&lt;/key&gt;
+                    &lt;true/&gt;
+                    &lt;key&gt;ServerEnabled&lt;/key&gt;
+                    &lt;true/&gt;
+                    &lt;key&gt;BindAddress&lt;/key&gt;
+                    &lt;string&gt;localhost&lt;/string&gt;
+                    &lt;key&gt;Port&lt;/key&gt;
+                    &lt;integer&gt;11411&lt;/integer&gt;
+                  &lt;/dict&gt;
+                  &lt;key&gt;ProxyDB&lt;/key&gt;
+                  &lt;dict&gt;
+                    &lt;key&gt;ClientEnabled&lt;/key&gt;
+                    &lt;true/&gt;
+                    &lt;key&gt;ServerEnabled&lt;/key&gt;
+                    &lt;true/&gt;
+                    &lt;key&gt;BindAddress&lt;/key&gt;
+                    &lt;string&gt;localhost&lt;/string&gt;
+                    &lt;key&gt;Port&lt;/key&gt;
+                    &lt;integer&gt;11311&lt;/integer&gt;
+                    &lt;key&gt;HandleCacheTypes&lt;/key&gt;
+                    &lt;array&gt;
+                      &lt;string&gt;ProxyDB&lt;/string&gt;
+                      &lt;string&gt;PrincipalToken&lt;/string&gt;
+                      &lt;string&gt;DIGESTCREDENTIALS&lt;/string&gt;
+                    &lt;/array&gt;
+                  &lt;/dict&gt;
+                &lt;/dict&gt;
+      &lt;key&gt;MaxClients&lt;/key&gt;
+      &lt;integer&gt;5&lt;/integer&gt;
+      &lt;key&gt;memcached&lt;/key&gt;
+      &lt;string&gt;../memcached/_root/bin/memcached&lt;/string&gt; &lt;!-- Find in PATH --&gt;
+      &lt;key&gt;Options&lt;/key&gt;
+      &lt;array&gt;
+        &lt;!--&lt;string&gt;-vv&lt;/string&gt;--&gt;
+      &lt;/array&gt;
+    &lt;/dict&gt;
+
+  &lt;/dict&gt;
+&lt;/plist&gt;
</ins></span></pre></div>
<a id="CalendarServerbranchesuserscdabooreverseproxypodsconflocalserverstestxml"></a>
<div class="modfile"><h4>Modified: CalendarServer/branches/users/cdaboo/reverse-proxy-pods/conf/localservers-test.xml (11892 => 11893)</h4>
<pre class="diff"><span>
<span class="info">--- CalendarServer/branches/users/cdaboo/reverse-proxy-pods/conf/localservers-test.xml        2013-11-06 21:20:52 UTC (rev 11892)
+++ CalendarServer/branches/users/cdaboo/reverse-proxy-pods/conf/localservers-test.xml        2013-11-06 22:17:27 UTC (rev 11893)
</span><span class="lines">@@ -20,7 +20,15 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;servers&gt;
</span><span class="cx">   &lt;server&gt;
</span><del>-    &lt;id&gt;00001&lt;/id&gt;
</del><ins>+    &lt;id&gt;A&lt;/id&gt;
</ins><span class="cx">     &lt;uri&gt;http://localhost:8008&lt;/uri&gt;
</span><ins>+    &lt;allowed-from&gt;localhost&lt;/allowed-from&gt;
+    &lt;shared-secret&gt;A&lt;/shared-secret&gt;
</ins><span class="cx">   &lt;/server&gt;
</span><ins>+  &lt;server&gt;
+    &lt;id&gt;B&lt;/id&gt;
+    &lt;uri&gt;http://localhost:8108&lt;/uri&gt;
+    &lt;allowed-from&gt;localhost&lt;/allowed-from&gt;
+    &lt;shared-secret&gt;B&lt;/shared-secret&gt;
+  &lt;/server&gt;
</ins><span class="cx"> &lt;/servers&gt;
</span></span></pre></div>
<a id="CalendarServerbranchesuserscdabooreverseproxypodstwistedcaldavconfigpy"></a>
<div class="modfile"><h4>Modified: CalendarServer/branches/users/cdaboo/reverse-proxy-pods/twistedcaldav/config.py (11892 => 11893)</h4>
<pre class="diff"><span>
<span class="info">--- CalendarServer/branches/users/cdaboo/reverse-proxy-pods/twistedcaldav/config.py        2013-11-06 21:20:52 UTC (rev 11892)
+++ CalendarServer/branches/users/cdaboo/reverse-proxy-pods/twistedcaldav/config.py        2013-11-06 22:17:27 UTC (rev 11893)
</span><span class="lines">@@ -97,6 +97,7 @@
</span><span class="cx">             self._defaults = ConfigDict()
</span><span class="cx">         else:
</span><span class="cx">             self._defaults = ConfigDict(copy.deepcopy(defaults))
</span><ins>+        self.importedFiles = []
</ins><span class="cx">         self.includedFiles = []
</span><span class="cx">         self.missingFiles = []
</span><span class="cx"> 
</span></span></pre></div>
<a id="CalendarServerbranchesuserscdabooreverseproxypodstwistedcaldavstdconfigpy"></a>
<div class="modfile"><h4>Modified: CalendarServer/branches/users/cdaboo/reverse-proxy-pods/twistedcaldav/stdconfig.py (11892 => 11893)</h4>
<pre class="diff"><span>
<span class="info">--- CalendarServer/branches/users/cdaboo/reverse-proxy-pods/twistedcaldav/stdconfig.py        2013-11-06 21:20:52 UTC (rev 11892)
+++ CalendarServer/branches/users/cdaboo/reverse-proxy-pods/twistedcaldav/stdconfig.py        2013-11-06 22:17:27 UTC (rev 11893)
</span><span class="lines">@@ -1010,7 +1010,8 @@
</span><span class="cx">     # means no automatic shutdown.
</span><span class="cx">     &quot;AgentInactivityTimeoutSeconds&quot;  : 4 * 60 * 60,
</span><span class="cx"> 
</span><del>-    # These two aren't relative to ConfigRoot:
</del><ins>+    # These aren't relative to ConfigRoot:
+    &quot;ImportConfig&quot;: &quot;&quot;, # Config to read first and merge
</ins><span class="cx">     &quot;Includes&quot;: [], # Other plists to parse after this one
</span><span class="cx">     &quot;WritableConfigFile&quot; : &quot;&quot;, # which config file calendarserver_config should
</span><span class="cx">         # write to for changes; empty string means the main config file.
</span><span class="lines">@@ -1043,6 +1044,22 @@
</span><span class="cx">             configDict = self._parseConfigFromFile(self._configFileName)
</span><span class="cx">         configDict = ConfigDict(configDict)
</span><span class="cx"> 
</span><ins>+        def _loadImport(childDict):
+            # Look for an import and read that one as the main config and merge the current one into that
+            if &quot;ImportConfig&quot; in childDict and childDict.ImportConfig:
+                configRoot = os.path.join(childDict.ServerRoot, childDict.ConfigRoot)
+                path = _expandPath(fullServerPath(configRoot, childDict.ImportConfig))
+                if os.path.exists(path):
+                    importDict = ConfigDict(self._parseConfigFromFile(path))
+                    if importDict:
+                        self.importedFiles.append(path)
+                        importDict = _loadImport(importDict)
+                        mergeData(importDict, childDict)
+                        return importDict
+                raise ConfigurationError(&quot;Import configuration file '{path}' must exist and be valid.&quot;.format(path=path))
+            else:
+                return childDict
+
</ins><span class="cx">         def _loadIncludes(parentDict):
</span><span class="cx">             # Now check for Includes and parse and add each of those
</span><span class="cx">             if &quot;Includes&quot; in parentDict:
</span><span class="lines">@@ -1059,6 +1076,7 @@
</span><span class="cx">                     else:
</span><span class="cx">                         self.missingFiles.append(path)
</span><span class="cx"> 
</span><ins>+        configDict = _loadImport(configDict)
</ins><span class="cx">         _loadIncludes(configDict)
</span><span class="cx">         return configDict
</span><span class="cx"> 
</span></span></pre></div>
<a id="CalendarServerbranchesuserscdabooreverseproxypodstxdavcaldavdatastoreschedulingcaldavschedulerpy"></a>
<div class="modfile"><h4>Modified: CalendarServer/branches/users/cdaboo/reverse-proxy-pods/txdav/caldav/datastore/scheduling/caldav/scheduler.py (11892 => 11893)</h4>
<pre class="diff"><span>
<span class="info">--- CalendarServer/branches/users/cdaboo/reverse-proxy-pods/txdav/caldav/datastore/scheduling/caldav/scheduler.py        2013-11-06 21:20:52 UTC (rev 11892)
+++ CalendarServer/branches/users/cdaboo/reverse-proxy-pods/txdav/caldav/datastore/scheduling/caldav/scheduler.py        2013-11-06 22:17:27 UTC (rev 11893)
</span><span class="lines">@@ -102,7 +102,7 @@
</span><span class="cx">             ))
</span><span class="cx">         else:
</span><span class="cx">             if not (originatorPrincipal.calendarsEnabled() and originatorPrincipal.thisServer()):
</span><del>-                log.err(&quot;Originator not enabled or hosted on this server: %s&quot; % (self.originator,))
</del><ins>+                log.error(&quot;Originator not enabled or hosted on this server: %s&quot; % (self.originator,))
</ins><span class="cx">                 raise HTTPError(self.errorResponse(
</span><span class="cx">                     responsecode.FORBIDDEN,
</span><span class="cx">                     self.errorElements[&quot;originator-denied&quot;],
</span></span></pre>
</div>
</div>

</body>
</html>