##
# Copyright (c) 2007-2009 Apple Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# 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 "AS IS" 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.
##

from xml.etree.ElementTree import QName

CSNamespace = "http://calendarserver.org/ns/"

calendar_proxy_read_for    = QName(CSNamespace, "calendar-proxy-read-for")
calendar_proxy_write_for   = QName(CSNamespace, "calendar-proxy-write-for")
getctag                    = QName(CSNamespace, "getctag")

notification               = QName(CSNamespace, "notification")
notification_URL           = QName(CSNamespace, "notification-URL")

# Are these really in this namespace?
dropbox_home               = QName(CSNamespace, "dropbox-home")
dropbox_home_URL           = QName(CSNamespace, "dropbox-home-URL")

# Defined by caldav-pubsubdiscovery
xmpp_server                = QName(CSNamespace, "xmpp-server")
xmpp_uri                   = QName(CSNamespace, "xmpp-uri")

##
# Copyright (c) 2007-2009 Apple Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# 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 "AS IS" 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.
##

from xml.etree.ElementTree import QName

CSNamespace = "http://calendarserver.org/ns/"

calendar_proxy_read_for    = QName(CSNamespace, "calendar-proxy-read-for")
calendar_proxy_write_for   = QName(CSNamespace, "calendar-proxy-write-for")
getctag                    = QName(CSNamespace, "getctag")

notification               = QName(CSNamespace, "notification")
notification_URL           = QName(CSNamespace, "notification-URL")

# Are these really in this namespace?
dropbox_home               = QName(CSNamespace, "dropbox-home")
dropbox_home_URL           = QName(CSNamespace, "dropbox-home-URL")

# Defined by caldav-pubsubdiscovery
xmpp_server                = QName(CSNamespace, "xmpp-server")
xmpp_uri                   = QName(CSNamespace, "xmpp-uri")
pushkey                    = QName(CSNamespace, "pushkey")

Define the pushkey attribute for XMPP push