Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
d7a7d180
Commit
d7a7d180
authored
Mar 04, 1999
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
36b8bc29
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
11 deletions
+10
-11
lib/python/OFS/PropertySheets.py
lib/python/OFS/PropertySheets.py
+4
-3
lib/python/webdav/client.py
lib/python/webdav/client.py
+6
-8
No files found.
lib/python/OFS/PropertySheets.py
View file @
d7a7d180
...
...
@@ -84,7 +84,7 @@
##############################################################################
"""Property sheets"""
__version__
=
'$Revision: 1.1
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
5
$'
[
11
:
-
2
]
import
time
,
string
,
App
.
Management
from
ZPublisher.Converters
import
type_converters
...
...
@@ -291,10 +291,11 @@ class PropertySheet(Persistent, Implicit):
# allow for xml properties
meta
=
item
.
get
(
'meta'
,
{})
attrs
=
meta
.
get
(
'__xml_attrs__'
,
''
)
if
attrs
:
attrs
=
meta
.
get
(
'__xml_attrs__'
,
None
)
if
attrs
is
not
None
:
attrs
=
map
(
lambda
n
,
v
:
' %s="%s"'
,
attrs
.
items
())
attrs
=
join
(
attrs
,
''
)
else
:
attrs
=
''
prop
=
' <n:%s%s>%s</n:%s>'
%
(
name
,
attrs
,
value
,
name
)
result
.
append
(
prop
)
if
not
result
:
return
''
...
...
lib/python/webdav/client.py
View file @
d7a7d180
"""HTTP 1.1 / WebDAV client library."""
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
import
sys
,
os
,
string
,
regex
,
time
,
types
import
socket
,
httplib
,
mimetools
...
...
@@ -373,7 +373,8 @@ funny="""<?xml version="1.0" encoding="utf-8"?>
<d:set>
<d:prop>
<z:author>Brian Lloyd</z:author>
<z:title>My New Title</z:title>
<z:color>blue</z:color>
<z:count>72</z:count>
<q:Authors>
<q:Author>
<q:Person>
...
...
@@ -381,14 +382,11 @@ funny="""<?xml version="1.0" encoding="utf-8"?>
</q:Person>
</q:Author>
</q:Authors>
<q:color>
red
</q:color>
</d:prop>
</d:set>
<d:remove>
<d:prop>
<q:hoohoo/>
<z:favorite_color/>
</d:prop>
</d:remove>
</d:propertyupdate>
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment