"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/webdav/PropertySheets.py" between
Zope-5.1.2.tar.gz and Zope-5.2.tar.gz

About: Zope Z Object Publishing Environment - web application platform used for building content management systems, intranets, portals, and custom applications.

PropertySheets.py  (Zope-5.1.2):PropertySheets.py  (Zope-5.2)
skipping to change at line 18 skipping to change at line 18
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE. # FOR A PARTICULAR PURPOSE.
# #
############################################################################## ##############################################################################
from html import escape from html import escape
from AccessControl.class_init import InitializeClass from AccessControl.class_init import InitializeClass
from AccessControl.SecurityManagement import getSecurityManager from AccessControl.SecurityManagement import getSecurityManager
from App.Common import iso8601_date
from App.Common import rfc1123_date
from OFS.interfaces import IWriteLock from OFS.interfaces import IWriteLock
from OFS.PropertySheets import PropertySheet from OFS.PropertySheets import PropertySheet
from OFS.PropertySheets import View from OFS.PropertySheets import View
from OFS.PropertySheets import Virtual from OFS.PropertySheets import Virtual
from webdav.common import absattr from webdav.common import absattr
from webdav.common import isDavCollection from webdav.common import isDavCollection
from webdav.common import urlbase from webdav.common import urlbase
from webdav.xmltools import escape as xmltools_escape from webdav.xmltools import escape as xmltools_escape
from zope.datetime import iso8601_date
from zope.datetime import rfc1123_date
def xml_escape(value): def xml_escape(value):
if not isinstance(value, (str, bytes)): if not isinstance(value, (str, bytes)):
value = str(value) value = str(value)
if not isinstance(value, str): if not isinstance(value, str):
value = value.decode('utf-8') value = value.decode('utf-8')
return xmltools_escape(value) return xmltools_escape(value)
class DAVProperties(Virtual, PropertySheet, View): class DAVProperties(Virtual, PropertySheet, View):
"""WebDAV properties""" """WebDAV properties"""
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)