[CalendarServer-changes] [3451] CalendarServer/trunk/twistedcaldav
source_changes at macosforge.org
source_changes at macosforge.org
Wed Dec 3 17:11:45 PST 2008
Revision: 3451
http://trac.macosforge.org/projects/calendarserver/changeset/3451
Author: wsanchez at apple.com
Date: 2008-12-03 17:11:44 -0800 (Wed, 03 Dec 2008)
Log Message:
-----------
Clean up __init__s
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/__init__.py
CalendarServer/trunk/twistedcaldav/admin/__init__.py
CalendarServer/trunk/twistedcaldav/directory/__init__.py
CalendarServer/trunk/twistedcaldav/directory/test/__init__.py
CalendarServer/trunk/twistedcaldav/query/__init__.py
CalendarServer/trunk/twistedcaldav/scheduling/__init__.py
CalendarServer/trunk/twistedcaldav/scheduling/test/__init__.py
CalendarServer/trunk/twistedcaldav/test/__init__.py
Modified: CalendarServer/trunk/twistedcaldav/__init__.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/__init__.py 2008-12-04 00:45:16 UTC (rev 3450)
+++ CalendarServer/trunk/twistedcaldav/__init__.py 2008-12-04 01:11:44 UTC (rev 3451)
@@ -20,63 +20,44 @@
See draft spec: http://ietf.webdav.org/caldav/draft-dusseault-caldav.txt
"""
-from twisted.web2.static import File, loadMimeTypes
+#
+# Set __version__
+#
-__all__ = [
- "accesslog",
- "accounting",
- "authkerb",
- "caldavxml",
- "customxml",
- "dateops",
- "db",
- "directory",
- "dropbox",
- "extensions",
- "fileops",
- "freebusyurl",
- "httpfactory",
- "ical",
- "icaldav",
- "index",
- "instance",
- "itip",
- "log",
- "memcache",
- "memcacher",
- "principalindex",
- "resource",
- "root",
- "schedule",
- "schedule_common",
- "schedule_imip",
- "servertoserver",
- "servertoserverparser",
- "sql",
- "static",
- "timezones",
-]
-
try:
from twistedcaldav.version import version as __version__
except ImportError:
__version__ = None
+#
# Load in suitable file extension/content-type map from OS X
+#
+
+from twisted.web2.static import File, loadMimeTypes
+
File.contentTypes = loadMimeTypes(("/etc/apache2/mime.types", "/etc/httpd/mime.types",))
+#
+# Register additional WebDAV XML elements
+#
+
import twisted.web2.dav.davxml
-from twisted.web2.http_headers import DefaultHTTPHandler, last, singleHeader, tokenize
import twistedcaldav.caldavxml
import twistedcaldav.customxml
twisted.web2.dav.davxml.registerElements(twistedcaldav.caldavxml)
twisted.web2.dav.davxml.registerElements(twistedcaldav.customxml)
+#
+# DefaultHTTPHandler
+#
+
+from twisted.web2.http_headers import DefaultHTTPHandler, last, singleHeader
+
DefaultHTTPHandler.updateParsers({
- 'If-Schedule-Tag-Match':(last, str),
+ "If-Schedule-Tag-Match": (last, str),
})
DefaultHTTPHandler.updateGenerators({
- 'Schedule-Tag':(str, singleHeader),
+ "Schedule-Tag": (str, singleHeader),
})
Modified: CalendarServer/trunk/twistedcaldav/admin/__init__.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/admin/__init__.py 2008-12-04 00:45:16 UTC (rev 3450)
+++ CalendarServer/trunk/twistedcaldav/admin/__init__.py 2008-12-04 01:11:44 UTC (rev 3451)
@@ -13,3 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
##
+
+"""
+CalendarServer administration.
+"""
Modified: CalendarServer/trunk/twistedcaldav/directory/__init__.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/directory/__init__.py 2008-12-04 00:45:16 UTC (rev 3450)
+++ CalendarServer/trunk/twistedcaldav/directory/__init__.py 2008-12-04 01:11:44 UTC (rev 3451)
@@ -17,13 +17,3 @@
"""
Calendar server directory service module.
"""
-
-__all__ = [
- "apache",
- "appleopendirectory",
- "directory",
- "idirectory",
- "principal",
- "sqldb",
- "xmlfile",
-]
Modified: CalendarServer/trunk/twistedcaldav/directory/test/__init__.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/directory/test/__init__.py 2008-12-04 00:45:16 UTC (rev 3450)
+++ CalendarServer/trunk/twistedcaldav/directory/test/__init__.py 2008-12-04 01:11:44 UTC (rev 3451)
@@ -13,3 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
##
+
+"""
+Tests for the twistedcaldav.directory module.
+"""
Modified: CalendarServer/trunk/twistedcaldav/query/__init__.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/query/__init__.py 2008-12-04 00:45:16 UTC (rev 3450)
+++ CalendarServer/trunk/twistedcaldav/query/__init__.py 2008-12-04 01:11:44 UTC (rev 3451)
@@ -14,8 +14,6 @@
# limitations under the License.
##
-__all__ = [
- "expression",
- "sqlgenerator",
- "caldavquery",
-]
+"""
+CalDAV queries.
+"""
Modified: CalendarServer/trunk/twistedcaldav/scheduling/__init__.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/scheduling/__init__.py 2008-12-04 00:45:16 UTC (rev 3450)
+++ CalendarServer/trunk/twistedcaldav/scheduling/__init__.py 2008-12-04 01:11:44 UTC (rev 3451)
@@ -14,14 +14,6 @@
# limitations under the License.
##
-__all__ = [
- "addressmapping",
- "caldav",
- "cuaddress",
- "delivery",
- "imip",
- "implicit",
- "ischedule",
- "processing",
- "scheduler",
-]
+"""
+CalDAV scheduling.
+"""
Modified: CalendarServer/trunk/twistedcaldav/scheduling/test/__init__.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/scheduling/test/__init__.py 2008-12-04 00:45:16 UTC (rev 3450)
+++ CalendarServer/trunk/twistedcaldav/scheduling/test/__init__.py 2008-12-04 01:11:44 UTC (rev 3451)
@@ -13,3 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
##
+
+"""
+Tests for the twistedcaldav.scheduling module.
+"""
Modified: CalendarServer/trunk/twistedcaldav/test/__init__.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/test/__init__.py 2008-12-04 00:45:16 UTC (rev 3450)
+++ CalendarServer/trunk/twistedcaldav/test/__init__.py 2008-12-04 01:11:44 UTC (rev 3451)
@@ -13,3 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
##
+
+"""
+Tests for the twistedcaldav module.
+"""
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20081203/7f5415e8/attachment-0001.html>
More information about the calendarserver-changes
mailing list