Angelo Gladding
lahacker.net

dlv5vbq7lzlthol5 4b942a3185b37d00

angelo@lahacker.net

South Pasadena, California, United States currently feels like 69.94°F

Home CodecanopyCommits

Use `me` identity's face photo in site template

by Angelo Gladding 09CEF88F29CC1A44

Changed Files

--- a/canopy/types/images/__web__.py

+++ b/canopy/types/images/__web__.py

                    f"/x/images/{self.resource}_{self.upload}.{self.ext}")  -@app.route(r"faces/{identity}/{resource}.{ext}")+@app.route(r"faces/{identity}/{digest}.{ext}") class FaceImageFile:      def GET(self):         web.header("Content-Type", f"image/{self.ext}")         web.header("X-Accel-Redirect",-                   f"/faces/{self.identity}/{self.resource}.{self.ext}")+                   f"/X/faces/{self.identity}/{self.digest}.{self.ext}")   # TODO handle static assets -- AudioSound, VideoClip, CodeBinary, VCF, ICS, ..