-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved recently added find_local()
Details: * The recently added BaseManager.find_local() method used the resource_class constructor to create a new resource object, but it is better to use the resource_object() method because that encapsulates how the properties are set, and sets more of them. * Made the uri parameter in find_local() required - it is now not only used for creating a new resource object, but also to verify the URI when an existing one is found in the cache. This was changed for a more consistent meaning of the parameters across the two cases (found and not found). Signed-off-by: Andreas Maier <[email protected]>
- Loading branch information
1 parent
20be481
commit 202ad65
Showing
1 changed file
with
28 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters