Lines Matching refs:url
253 def checkForPythonPathBesideScript( url ): argument
254 if url.startswith( "file:" ):
255 path = unohelper.fileUrlToSystemPath( url+"/pythonpath.zip" );
261 path = unohelper.fileUrlToSystemPath( url+"/pythonpath" );
331 def getTransientPartFromUrl( self, url ): argument
332 rest = url.replace( self.rootUrl , "",1 ).replace( "/","",1)
335 def getPackageNameFromUrl( self, url ): argument
336 rest = url.replace( self.rootUrl , "",1 ).replace( "/","",1)
341 def removePackageByUrl( self, url ): argument
344 if url in i[1].pathes:
348 def addPackageByUrl( self, url ): argument
349 packageName = self.getPackageNameFromUrl( url )
350 transientPart = self.getTransientPartFromUrl( url )
351 …log.debug( "addPackageByUrl : " + packageName + ", " + transientPart + "("+url+")" + ", rootUrl="+…
354 package.pathes = package.pathes + (url, )
356 package = Package( (url,), transientPart)
359 def isUrlInPackage( self, url ): argument
363 if url in i.pathes:
372 def getPersistentUrlFromStorageUrl( self, url ): argument
374 ret = url
377 ret = url[0:pos]+url[url.find("/",pos)+1:len(url)]
378 log.debug( "getPersistentUrlFromStorageUrl " + url + " -> "+ ret)
381 def getStorageUrlFromPersistentUrl( self, url): argument
382 ret = url
385 packageName = url[pos:url.find("/",pos+1)]
387 ret = url[0:pos]+ package.transientPathElement + "/" + url[pos:len(url)]
388 log.debug( "getStorageUrlFromPersistentUrl " + url + " -> "+ ret)
391 def getFuncsByUrl( self, url ): argument
392 src = readTextFromStream( self.sfa.openFileRead( url ) )
393 checkForPythonPathBesideScript( url[0:url.rfind('/')] )
399 a = ast.parse(src, url)
428 def getModuleByUrl( self, url ): argument
429 entry = self.modules.get(url)
431 lastRead = self.sfa.getDateTimeModified( url )
434 log.debug( "file " + url + " has changed, reloading" )
439 log.debug( "opening >" + url + "<" )
441 src = readTextFromStream( self.sfa.openFileRead( url ) )
442 checkForPythonPathBesideScript( url[0:url.rfind('/')] )
450 if url.startswith( "file:" ):
451 code = compile( src, encfile(uno.fileUrlToSystemPath( url ) ), "exec" )
453 code = compile( src, url, "exec" )
455 entry.module.__file__ = url
456 self.modules[ url ] = entry
457 log.debug( "mapped " + url + " to " + str( entry.module ) )
766 def getModelFromDocUrl(ctx, url): argument
772 identifier = ucb.createContentIdentifier(url)
788 log.isErrorLevel() and log.error("getModelFromDocUrl: %s" % url)