Lines Matching refs:url

247 def checkForPythonPathBesideScript( url ):  argument
248 if url.startswith( "file:" ):
249 path = unohelper.fileUrlToSystemPath( url+"/pythonpath.zip" );
255 path = unohelper.fileUrlToSystemPath( url+"/pythonpath" );
325 def getTransientPartFromUrl( self, url ): argument
326 rest = url.replace( self.rootUrl , "",1 ).replace( "/","",1)
329 def getPackageNameFromUrl( self, url ): argument
330 rest = url.replace( self.rootUrl , "",1 ).replace( "/","",1)
335 def removePackageByUrl( self, url ): argument
338 if url in i[1].pathes:
342 def addPackageByUrl( self, url ): argument
343 packageName = self.getPackageNameFromUrl( url )
344 transientPart = self.getTransientPartFromUrl( url )
345 …log.debug( "addPackageByUrl : " + packageName + ", " + transientPart + "("+url+")" + ", rootUrl="+…
348 package.pathes = package.pathes + (url, )
350 package = Package( (url,), transientPart)
353 def isUrlInPackage( self, url ): argument
357 if url in i.pathes:
366 def getPersistentUrlFromStorageUrl( self, url ): argument
368 ret = url
371 ret = url[0:pos]+url[url.find("/",pos)+1:len(url)]
372 log.debug( "getPersistentUrlFromStorageUrl " + url + " -> "+ ret)
375 def getStorageUrlFromPersistentUrl( self, url): argument
376 ret = url
379 packageName = url[pos:url.find("/",pos+1)]
381 ret = url[0:pos]+ package.transientPathElement + "/" + url[pos:len(url)]
382 log.debug( "getStorageUrlFromPersistentUrl " + url + " -> "+ ret)
385 def getFuncsByUrl( self, url ): argument
386 src = readTextFromStream( self.sfa.openFileRead( url ) )
387 checkForPythonPathBesideScript( url[0:url.rfind('/')] )
393 a = ast.parse(src, url)
422 def getModuleByUrl( self, url ): argument
423 entry = self.modules.get(url)
425 lastRead = self.sfa.getDateTimeModified( url )
428 log.debug( "file " + url + " has changed, reloading" )
433 log.debug( "opening >" + url + "<" )
435 src = readTextFromStream( self.sfa.openFileRead( url ) )
436 checkForPythonPathBesideScript( url[0:url.rfind('/')] )
444 if url.startswith( "file:" ):
445 code = compile( src, encfile(uno.fileUrlToSystemPath( url ) ), "exec" )
447 code = compile( src, url, "exec" )
449 entry.module.__file__ = url
450 self.modules[ url ] = entry
451 log.debug( "mapped " + url + " to " + str( entry.module ) )
760 def getModelFromDocUrl(ctx, url): argument
766 identifier = ucb.createContentIdentifier(url)
782 log.isErrorLevel() and log.error("getModelFromDocUrl: %s" % url)