summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTheron Luhn <theron@luhn.com>2025-08-24 21:38:56 -0700
committerTheron Luhn <theron@luhn.com>2025-08-24 21:38:56 -0700
commit9b9ac95c7207a5b0a5c2fd7ef56977e9b285f206 (patch)
tree7cc971498749043e8db5058313086ecb7964c275 /src
parent832cae47693b4c07a1fa826dce13b9af7a91ebaf (diff)
downloadpyramid-9b9ac95c7207a5b0a5c2fd7ef56977e9b285f206.tar.gz
pyramid-9b9ac95c7207a5b0a5c2fd7ef56977e9b285f206.tar.bz2
pyramid-9b9ac95c7207a5b0a5c2fd7ef56977e9b285f206.zip
Add `get_spec` to `PackageOverrides`
Diffstat (limited to 'src')
-rw-r--r--src/pyramid/config/assets.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pyramid/config/assets.py b/src/pyramid/config/assets.py
index 2838db1e5..3c6a8d360 100644
--- a/src/pyramid/config/assets.py
+++ b/src/pyramid/config/assets.py
@@ -122,6 +122,12 @@ class PackageOverrides:
if o is not None:
yield o
+ def get_spec(self, resource_name):
+ for source, path in self.filtered_sources(resource_name):
+ result = source.get_spec(path)
+ if result is not None:
+ return result
+
def get_filename(self, resource_name):
for source, path in self.filtered_sources(resource_name):
result = source.get_filename(path)