[CalendarServer-users] Exception reading generated PythonDirector configuration

calendarserver.sgd2 at spamgourmet.com calendarserver.sgd2 at spamgourmet.com
Mon Oct 29 20:21:38 PDT 2012


> No current version of Calendar Server uses PythonDirector.  Perhaps you should upgrade?


Sounds good. Which is considered ready for day-to-day use?

According to the following link, version 3.0 is in development.
http://trac.calendarserver.org/

So I had grabbed 2.5 hoping for the "stable" release.
-- 
Derek


On 29 Oct 2012, at 22:08, Glyph - glyph at twistedmatrix.com <+calendarserver+sgd2+6968b9041d.glyph#twistedmatrix.com at spamgourmet.com> wrote:

> No current version of Calendar Server uses PythonDirector.  Perhaps you should upgrade?
> 
> -g
> 
> On Oct 29, 2012, at 7:38 PM, calendarserver.sgd2 at spamgourmet.com wrote:
> 
>> Hi all,
>> 
>> 
>> I am trying to determine if this is an error in my configuration, but I think perhaps not.
>> 
>> 
>> The error message reads:
>> 
>> [pydir] pydirector.pdconf.ConfigError: expected 'service' or 'admin', got 'control'
>> 
>> This is thrown from pydirector/pdconf.py, PDConf.__init__(self, filename=None, xml=None)
>> 
>> The filename is a generated file that in this instance contains a 'control' element as a child of the 'pdconfig' element.
>> 
>> This XML file is generated in calendarserver/tap/caldav.py, in CalDAVServiceMaker.makeService_Combined(…)which has code like so:
>> 
>> pdconfig = """<pdconfig>%s<control socket="%s" /></pdconfig>""" % (
>>   "\n".join(services), config.PythonDirector.ControlSocket,
>> )
>> 
>> I think this method must be constructing an XML file that cannot be read by PythonDirector.  The services are concatenated, but then the ControlSocket element is appended before the closing 'pdconfig' tag.  This is evidently unacceptable because the element is a 'control' element and not one of 'service', 'admin', or 'logging'.
>> 
>> 
>> I am using the control socked suggested in the caldavd-test.xml:
>> 
>> <key>ControlSocket</key>
>> <string>logs/caldavd-pydir.sock</string>
>> 
>> and the problem element appears in the temporary XML fed to PDConf.__init__(…):
>> <control socket="logs/caldavd-pydir.sock" />
>> 
>> 
>> 
>> Could anyone advise?
>> 
>> 
>> 
>> Thanks,
>> -- 
>> Derek
>> _______________________________________________
>> calendarserver-users mailing list
>> calendarserver-users at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo/calendarserver-users
> 
> 




More information about the calendarserver-users mailing list