My guess would be that record.enabled is not being set to True.  Nowadays that 
value is set via the augmentService like:

                        if self.augmentService is not None:
                            d = 
self.augmentService.getAugmentRecord(record.guid,
                                record.recordType)
                            d.addCallback(lambda 
x:record.addAugmentInformation(x))

That snippet is taken from xmlfile.py

~morgen

On Jun 6, 2012, at 4:18 PM, Andre LaBranche <d...@apple.com> wrote:

> I don't know how NSS works, but the specific error is:
> 
> 2012-06-06 20:48:56+0530 [-] [caldav-0]  [PooledMemCacheProtocol,client] 
> [twistedcaldav.directory.nss.NssDirectoryService#debug] Found record for 
> attribute 'shortname' with value 'rahul'
> 2012-06-06 20:48:56+0530 [-] [caldav-0]  [PooledMemCacheProtocol,client] 
> [twext.web2.server#info] Exception rendering:
> 2012-06-06 20:48:56+0530 [-] [caldav-0]  [PooledMemCacheProtocol,client] 
> [twext.web2.server#error] [Failure instance: Traceback: <type 
> 'exceptions.AttributeError'>: 'NoneType' object has no attribute 
> 'principalURL'
> 2012-06-06 20:48:56+0530 [-] [caldav-0]       
> /usr/lib/python2.7/dist-packages/twext/web2/dav/resource.py:1461:accessControlList
> 2012-06-06 20:48:56+0530 [-] [caldav-0]       
> /usr/lib/python2.7/dist-packages/twistedcaldav/directory/calendar.py:241:accessControlList
> 2012-06-06 20:48:56+0530 [-] [caldav-0]       
> /usr/lib/python2.7/dist-packages/twisted/internet/defer.py:301:addCallback
> 2012-06-06 20:48:56+0530 [-] [caldav-0]       
> /usr/lib/python2.7/dist-packages/twisted/internet/defer.py:290:addCallbacks
> 2012-06-06 20:48:56+0530 [-] [caldav-0]       --- <exception caught here> ---
> 2012-06-06 20:48:56+0530 [-] [caldav-0]       
> /usr/lib/python2.7/dist-packages/twisted/internet/defer.py:551:_runCallbacks
> 2012-06-06 20:48:56+0530 [-] [caldav-0]       
> /usr/lib/python2.7/dist-packages/twistedcaldav/directory/calendar.py:238:gotACL
> 2012-06-06 20:48:56+0530 [-] [caldav-0]       
> /usr/lib/python2.7/dist-packages/twistedcaldav/resource.py:2490:defaultAccessControlList
> 2012-06-06 20:48:56+0530 [-] [caldav-0]       ]
> 
> My first thought would be to compare the 'rahul' record with a functional 
> record, such as one provided in our sample accounts.xml file. Perhaps there 
> are some missing attributes.
> 
> -dre
> 
> On Jun 6, 2012, at 9:02 AM, Rahul Amaram <amaramra...@users.sourceforge.net> 
> wrote:
> 
>> Hi,
>> I am the Debian Maintainer for calendarserer. The debian package for 
>> calendarserver has always included a NSS directory service for the 
>> convenience of users. We have been updating it regularly. However, with the 
>> recent release of calendarserver 3.2, I am finding it hard to debug the 
>> error message which is being thrown.
>> 
>> I am attaching the NSS directory file, the config file, access.log and error 
>> log. The error that is being thrown is logged at the end.
>> 
>> Any suggestions on fixing this error would be highly appreciated.
>> 
>> Regards,
>> Rahul.
>> <access.log><caldavd.plist><error.log><nss.py>_______________________________________________
>> calendarserver-dev mailing list
>> calendarserver-dev@lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/calendarserver-dev
> 
> _______________________________________________
> calendarserver-dev mailing list
> calendarserver-dev@lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/calendarserver-dev

_______________________________________________
calendarserver-dev mailing list
calendarserver-dev@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/calendarserver-dev

Reply via email to