Menu

Commit [r6129]  Maximize  Restore  History

context-refactoring: eliminate `Resource.from_spec` in favor of a more flexible `Resource` constructor.

Also, in the various places where resource specifications are optionally given, make sure that the `False` value is used for the default argument, as `None` can be a valid argument:
- for `resource`, `None` means consider the realm as a whole
- for `version`, `None` means use the latest revision

cboos 2007-11-06

changed /sandbox/context-refactoring/trac/mimeview/api.py
changed /sandbox/context-refactoring/trac/perm.py
changed /sandbox/context-refactoring/trac/resource.py
/sandbox/context-refactoring/trac/mimeview/api.py Diff Switch to side-by-side view
Loading...
/sandbox/context-refactoring/trac/perm.py Diff Switch to side-by-side view
Loading...
/sandbox/context-refactoring/trac/resource.py Diff Switch to side-by-side view
Loading...