abe-winter

Results 13 comments of abe-winter

here's a subclass that solves the problem you install it the same way you install the stock StaticFiles. I used it with starlette==0.13.8, not sure if it works on newer...

sorry for not thinking through security issues when posting the feature request great catch, thanks to kind stranger on gitter, and thanks for being quick + transparent about the fix

A tag for property mutation would also be useful: ``` javascript /** @mutateProp this.itemList */ whateverClass.prototype.push = function(item){} ``` For methods that aren't purely functional (i.e. return a val with...

yeah this bit me as well -- `init-db` seems to create an initial migration for all apps, but then `migrate` is only migrating the first app, here: https://github.com/tortoise/aerich/blob/af632218750c1b6ee8571f70bd5de3d1eec3d2d2/aerich/cli.py#L76 I guess...

I did a POC here with an `--all-apps` flag https://github.com/abe-winter/aerich It lets the `init-db` and `migrate` commands operate on multiple tortoise apps at once by supporting `app=None` in a bunch...

the cloud sql DSNs mentioned in https://github.com/MagicStack/asyncpg/issues/419 really break the `DatabaseURL` parser -- because `Database` refuses to pass a DSN down to the backend without parsing it, these hostnames will...

### flask In flask, static files are served with: [send_static_file](https://github.com/pallets/flask/blob/21aaf0ef9a21bfb8f27fdc74072a09803d9ab6fd/src/flask/scaffold.py#L317) -> [send_from_directory](https://github.com/pallets/flask/blob/cc66213e579d6b35d9951c21b685d0078f373c44/src/flask/helpers.py#L552) -> [werkzeug.safe_join](https://github.com/pallets/werkzeug/blob/3115aa6a6276939f5fd6efa46282e0256ff21f1a/src/werkzeug/utils.py#L574) `safe_join` checks that the provided path isn't above the current directory, but it will happily follow...

Out of curiosity, why does an Item need to be declared in ITEM_PIPELINES in order to be processed? I'm learning scrapy and this just bit me -- I was `yield`ing...

ahhh that makes sense -- I misunderstood the API here fwiw it would really help to add an end-to-end example in the 'item pipelines' docs page one that included yielding...