Lines Matching refs:uri

463     def __init__( self, provCtx, uri, fileName, funcName ):  argument
467 self.uri = uri
486 self.provCtx.getPersistentUrlFromStorageUrl( self.uri + "$" + self.funcName ) )
488 ret = not self.provCtx.sfa.isReadOnly( self.uri )
516 code = readTextFromStream(self.provCtx.sfa.openFileRead(self.uri))
551 copyUrl = self.uri + ".orig"
552 self.provCtx.sfa.move( self.uri, copyUrl )
553 out = self.provCtx.sfa.openFileWrite( self.uri )
580 def __init__( self, provCtx, uri , name ): argument
582 self.uri = uri
592 self.funcnames = self.provCtx.getFuncsByUrl( self.uri )
598 self.provCtx, self.uri, self.name, i ))
600 log.debug( "returning " +str(len(ret)) + " ScriptChildNodes on " + self.uri )
603 log.error( "Error while evaluating " + self.uri + ":" + text )
653 def getScript( self, uri ): argument
654 log.debug( "DirBrowseNode getScript " + uri + " invoked" )
655 … raise IllegalArgumentException( "DirBrowseNode couldn't instantiate script " + uri , self , 0 )
852 def getScript( self, uri ): argument
853 log.debug( "DirBrowseNode getScript " + uri + " invoked" )
854 …raise IllegalArgumentException( "PackageBrowseNode couldn't instantiate script " + uri , self , 0 )
891 def expandUri( uri ): argument
892 if uri.startswith( "vnd.sun.star.expand:" ):
893 uri = uri.replace( "vnd.sun.star.expand:", "",1)
894 uri = uno.getComponentContext().getByName(
895 "/singletons/com.sun.star.util.theMacroExpander" ).expandMacros( uri )
896 if uri.startswith( "file:" ):
897 uri = uno.absolutize("",uri) # necessary to get rid of .. in uri
898 return uri
974 def getScript( self, uri ): argument
975 log.debug( "DirBrowseNode getScript " + uri + " invoked" )
977 … raise IllegalArgumentException( "DirBrowseNode couldn't instantiate script " + uri , self , 0 )
1024 uri = expandUri(name)
1025 ret = self.provCtx.isUrlInPackage( uri )
1026 log.debug( "hasByName " + uri + " " +str( ret ) )
1035 uri = expandUri( name )
1036 if self.provCtx.isUrlInPackage( uri ):
1037 self.provCtx.removePackageByUrl( uri )
1040 raise NoSuchElementException( uri + "is not in package" , self )
1041 log.debug( "removeByName called" + str( uri ) + " successful" )
1045 uri = expandUri( name )
1046 if isPyFileInPath( self.provCtx.sfa, uri ):
1047 self.provCtx.addPackageByUrl( uri )
1050 log.debug( "insertByName: no python files in " + str( uri ) + ", ignoring" )
1051 raise IllegalArgumentException( uri + " does not contain .py files", self, 1 )
1052 log.debug( "insertByName called " + str( uri ) + " successful" )
1058 log.debug( "replaceByName called" + str( uri ) + " successful" )