Anonymous avatar Anonymous committed 7c661bb

allowing Project.validate with no argument

Comments (0)

Files changed (2)

 When using rope as a library you probably change the files in it in
 parallel (for example in IDEs).  To force rope to invalidate cached
 information about resources that have been removed or changed outside
-rope you should call `Project.validate()`_ method.  You should pass a
+rope you should call `Project.validate()`_ method.  You can pass a
 resource to this method.  For example::
 
-  myproject.validate(myproject.root)
+  myproject.validate()
 
 validates all files and directories in the project.  So call this
 function every time you want use rope (before performing refactorings,

rope/base/project.py

         if self._ropefolder_name is not None:
             return self.get_folder(self._ropefolder_name)
 
+    def validate(self, folder=None):
+        if folder is None:
+            folder = self.root
+        super(Project, self).validate(folder)
+
     root = property(lambda self: self.get_resource(''))
     address = property(lambda self: self._address)
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.