"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "scripting/source/pyprov/pythonscript.py" between
libreoffice-6.2.6.1.tar.xz and libreoffice-6.2.6.2.tar.xz

About: LibreOffice source code (core). "Still" packages (pre-release).

pythonscript.py  (libreoffice-6.2.6.1.tar.xz):pythonscript.py  (libreoffice-6.2.6.2.tar.xz)
skipping to change at line 219 skipping to change at line 219
return ret return ret
def scriptURI2StorageUri( self, scriptURI ): def scriptURI2StorageUri( self, scriptURI ):
try: try:
# base path to the python script location # base path to the python script location
sBaseUri = self.m_baseUri + "/" sBaseUri = self.m_baseUri + "/"
xBaseUri = self.m_uriRefFac.parse(sBaseUri) xBaseUri = self.m_uriRefFac.parse(sBaseUri)
# path to the .py file + "$functionname, arguments, etc # path to the .py file + "$functionname, arguments, etc
xStorageUri = self.m_uriRefFac.parse(scriptURI) xStorageUri = self.m_uriRefFac.parse(scriptURI)
sStorageUri = xStorageUri.getName().replace( "|", "/" ); # getName will apply url-decoding to the name, so encode back
sStorageUri = xStorageUri.getName().replace("%", "%25")
sStorageUri = sStorageUri.replace( "|", "/" )
# path to the .py file, relative to the base # path to the .py file, relative to the base
sFileUri = sStorageUri[0:sStorageUri.find("$")] sFileUri = sStorageUri[0:sStorageUri.find("$")]
xFileUri = self.m_uriRefFac.parse(sFileUri) xFileUri = self.m_uriRefFac.parse(sFileUri)
if not xFileUri: if not xFileUri:
message = "pythonscript: invalid relative uri '" + sFileUri+ "'" message = "pythonscript: invalid relative uri '" + sFileUri+ "'"
log.debug( message ) log.debug( message )
raise RuntimeException( message ) raise RuntimeException( message )
# absolute path to the .py file # absolute path to the .py file
 End of changes. 1 change blocks. 
1 lines changed or deleted 3 lines changed or added

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