[CalendarServer-changes] [6978] CalendarServer/branches/users/glyph/dalify/txdav/common/datastore/ sql.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed Feb 16 06:34:53 PST 2011
Revision: 6978
http://trac.macosforge.org/projects/calendarserver/changeset/6978
Author: glyph at apple.com
Date: 2011-02-16 06:34:52 -0800 (Wed, 16 Feb 2011)
Log Message:
-----------
line-length formatting
Modified Paths:
--------------
CalendarServer/branches/users/glyph/dalify/txdav/common/datastore/sql.py
Modified: CalendarServer/branches/users/glyph/dalify/txdav/common/datastore/sql.py
===================================================================
--- CalendarServer/branches/users/glyph/dalify/txdav/common/datastore/sql.py 2011-02-16 14:34:41 UTC (rev 6977)
+++ CalendarServer/branches/users/glyph/dalify/txdav/common/datastore/sql.py 2011-02-16 14:34:52 UTC (rev 6978)
@@ -1541,22 +1541,26 @@
@inlineCallbacks
def createObjectResourceWithName(self, name, component, metadata=None):
"""
- Create a new resource with component data and optional metadata. We create the
- python object using the metadata then create the actual store object with setComponent.
+ Create a new resource with component data and optional metadata. We
+ create the python object using the metadata then create the actual store
+ object with setComponent.
"""
if name in self._objects:
if self._objects[name]:
raise ObjectResourceNameAlreadyExistsError()
- objectResource = (yield self._objectResourceClass.create(self, name, component, metadata))
+ objectResource = (
+ yield self._objectResourceClass.create(self, name, component,
+ metadata)
+ )
self._objects[objectResource.name()] = objectResource
self._objects[objectResource.uid()] = objectResource
- # Note: create triggers a notification when the component is set, so we don't need to
- # call notify( ) here like we do for object removal.
-
+ # Note: create triggers a notification when the component is set, so we
+ # don't need to call notify() here like we do for object removal.
returnValue(objectResource)
+
@inlineCallbacks
def removeObjectResourceWithName(self, name):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110216/85ce3a77/attachment-0001.html>
More information about the calendarserver-changes
mailing list