[Commits] (morgen) Adding a new sharing dialog
commits at osafoundation.org
commits at osafoundation.org
Thu Apr 14 23:44:34 PDT 2005
Commit by: morgen
Modified files:
chandler/parcels/osaf/framework/sharing/PublishCollection.py None 1.1
chandler/parcels/osaf/framework/sharing/PublishCollection.wdr None 1.1
chandler/parcels/osaf/framework/sharing/PublishCollection_wdr.xrc None 1.1
chandler/parcels/osaf/framework/sharing/Sharing.py 1.89 1.90
chandler/parcels/osaf/framework/sharing/WebDAV.py 1.17 1.18
Log message:
Adding a new sharing dialog
ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/framework/sharing/PublishCollection.py?rev=1.1&content-type=text/vnd.viewcvs-markup
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/framework/sharing/PublishCollection.wdr?rev=1.1&content-type=text/vnd.viewcvs-markup
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/framework/sharing/PublishCollection_wdr.xrc?rev=1.1&content-type=text/vnd.viewcvs-markup
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/framework/sharing/Sharing.py.diff?r1=text&tr1=1.89&r2=text&tr2=1.90
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/framework/sharing/WebDAV.py.diff?r1=text&tr1=1.17&r2=text&tr2=1.18
Index: chandler/parcels/osaf/framework/sharing/WebDAV.py
diff -u chandler/parcels/osaf/framework/sharing/WebDAV.py:1.17 chandler/parcels/osaf/framework/sharing/WebDAV.py:1.18
--- chandler/parcels/osaf/framework/sharing/WebDAV.py:1.17 Fri Mar 25 10:48:43 2005
+++ chandler/parcels/osaf/framework/sharing/WebDAV.py Thu Apr 14 23:44:32 2005
@@ -1,5 +1,5 @@
-__version__ = "$Revision: 1.17 $"
-__date__ = "$Date: 2005/03/25 18:48:43 $"
+__version__ = "$Revision: 1.18 $"
+__date__ = "$Date: 2005/04/15 06:44:32 $"
__copyright__ = "Copyright (c) 2005 Open Source Applications Foundation"
__license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
@@ -107,7 +107,7 @@
extraHeaders['Depth'] = str(depth)
return self._request('PROPFIND', url, body, extraHeaders=extraHeaders)
- def ls(self, url, extraHeaders={ }):
+ def ls(self, url, extraHeaders={ }, ignoreCollections=True):
# A helper method which parses a PROPFIND response and returns a
# list of (path, etag) tuples, providing an easy way to get the
# contents of a collection
@@ -150,8 +150,9 @@
ggchild = ggchild.next
gchild = gchild.next
child = child.next
- if path and not path.endswith("/"):
- resources.append( (path, etag) )
+ if path:
+ if not ignoreCollections or not path.endswith("/"):
+ resources.append( (path, etag) )
node = node.next
doc.freeDoc()
return resources
Index: chandler/parcels/osaf/framework/sharing/Sharing.py
diff -u chandler/parcels/osaf/framework/sharing/Sharing.py:1.89 chandler/parcels/osaf/framework/sharing/Sharing.py:1.90
--- chandler/parcels/osaf/framework/sharing/Sharing.py:1.89 Fri Apr 8 19:05:51 2005
+++ chandler/parcels/osaf/framework/sharing/Sharing.py Thu Apr 14 23:44:32 2005
@@ -1,5 +1,5 @@
-Allowed = "$Revision: 1.89 $"
-__date__ = "$Date: 2005/04/09 02:05:51 $"
+Allowed = "$Revision: 1.90 $"
+__date__ = "$Date: 2005/04/15 06:44:32 $"
__copyright__ = "Copyright (c) 2004 Open Source Applications Foundation"
__license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
@@ -94,7 +94,10 @@
def exists(self):
return self.conduit.exists()
-
+ def getLocation(self):
+ return self.conduit.getLocation()
+
+
class OneTimeShare(Share):
"""Delete format, conduit, and share after the first get or put."""
More information about the Commits
mailing list