Ali Gholami Rudi  committed 7c661bb

allowing Project.validate with no argument

  • Participants
  • Parent commits 4f49c0d

Comments (0)

Files changed (2)

File docs/library.txt

 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,

File rope/base/

         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)