Lines Matching refs:uri

469     def __init__( self, provCtx, uri, fileName, funcName ):  argument
473 self.uri = uri
492 self.provCtx.getPersistentUrlFromStorageUrl( self.uri + "$" + self.funcName ) )
494 ret = not self.provCtx.sfa.isReadOnly( self.uri )
522 code = readTextFromStream(self.provCtx.sfa.openFileRead(self.uri))
557 copyUrl = self.uri + ".orig"
558 self.provCtx.sfa.move( self.uri, copyUrl )
559 out = self.provCtx.sfa.openFileWrite( self.uri )
586 def __init__( self, provCtx, uri , name ): argument
588 self.uri = uri
598 self.funcnames = self.provCtx.getFuncsByUrl( self.uri )
604 self.provCtx, self.uri, self.name, i ))
606 log.debug( "returning " +str(len(ret)) + " ScriptChildNodes on " + self.uri )
609 log.error( "Error while evaluating " + self.uri + ":" + text )
659 def getScript( self, uri ): argument
660 log.debug( "DirBrowseNode getScript " + uri + " invoked" )
661 … raise IllegalArgumentException( "DirBrowseNode couldn't instantiate script " + uri , self , 0 )
858 def getScript( self, uri ): argument
859 log.debug( "DirBrowseNode getScript " + uri + " invoked" )
860 …raise IllegalArgumentException( "PackageBrowseNode couldn't instantiate script " + uri , self , 0 )
897 def expandUri( uri ): argument
898 if uri.startswith( "vnd.sun.star.expand:" ):
899 uri = uri.replace( "vnd.sun.star.expand:", "",1)
900 uri = uno.getComponentContext().getByName(
901 "/singletons/com.sun.star.util.theMacroExpander" ).expandMacros( uri )
902 if uri.startswith( "file:" ):
903 uri = uno.absolutize("",uri) # necessary to get rid of .. in uri
904 return uri
980 def getScript( self, uri ): argument
981 log.debug( "DirBrowseNode getScript " + uri + " invoked" )
983 … raise IllegalArgumentException( "DirBrowseNode couldn't instantiate script " + uri , self , 0 )
1030 uri = expandUri(name)
1031 ret = self.provCtx.isUrlInPackage( uri )
1032 log.debug( "hasByName " + uri + " " +str( ret ) )
1041 uri = expandUri( name )
1042 if self.provCtx.isUrlInPackage( uri ):
1043 self.provCtx.removePackageByUrl( uri )
1046 raise NoSuchElementException( uri + "is not in package" , self )
1047 log.debug( "removeByName called" + str( uri ) + " successful" )
1051 uri = expandUri( name )
1052 if isPyFileInPath( self.provCtx.sfa, uri ):
1053 self.provCtx.addPackageByUrl( uri )
1056 log.debug( "insertByName: no python files in " + str( uri ) + ", ignoring" )
1057 raise IllegalArgumentException( uri + " does not contain .py files", self, 1 )
1058 log.debug( "insertByName called " + str( uri ) + " successful" )
1064 log.debug( "replaceByName called" + str( uri ) + " successful" )