dabo Commit
Revision 6236
Date: 2010-12-03 14:19:02 -0800 (Fri, 03 Dec 2010)
Author: Jacekk
Trac: http://trac.dabodev.com/changeset/6236
Changed:
U trunk/dabo/lib/RemoteConnector.py
Log:
Removed platform dependent path issue with use of os.sep.
Diff:
Modified: trunk/dabo/lib/RemoteConnector.py
===================================================================
--- trunk/dabo/lib/RemoteConnector.py 2010-12-03 19:37:05 UTC (rev 6235)
+++ trunk/dabo/lib/RemoteConnector.py 2010-12-03 22:19:02 UTC (rev 6236)
@@ -37,16 +37,16 @@
def _join(self, pth):
"""Joins the path to the class's UrlBase to create a new URL."""
- return pathjoin(self.UrlBase, pth)
+ return pathjoin(self.UrlBase, pth).replace(os.sep, "/")
def _getFullUrl(self, mthd, *args):
- ret = pathjoin(self.UrlBase, "bizservers", "biz", "%s" %
hash(self.obj), self.obj.DataSource, mthd, *args)
+ ret = pathjoin(self.UrlBase, "bizservers", "biz", "%s" %
hash(self.obj), self.obj.DataSource, mthd, *args).replace(os.sep, "/")
return ret
def _getManifestUrl(self, *args):
- ret = pathjoin(self.UrlBase, "manifest", *args)
+ ret = pathjoin(self.UrlBase, "manifest", *args).replace(os.sep,
"/")
return ret
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]