Rasmus Wriedt Larsen
f74581ad09
Revert "Python: Model owslib.etree.etree directly"
...
This reverts commit 1213e786519a11142746fd3a725c874181f3a42b.
By fixing a few bugs in the SubclassFinder + manually running Find.ql on the geonode DB from DCA, I found that the installed version of owslib had both: https://github.com/geopython/OWSLib/blob/0.27.2/owslib/etree.py
2023-12-08 11:27:53 +01:00
Rasmus Wriedt Larsen
6ef9a2b11e
Python: Fix problem if import is used
...
I fixed it in both predicates... I think we might still be able to remove
`newDirectAlias` -- but with it being better, it will allow us to better test if `newImportAlias` actually cover everything we need!
2023-12-08 11:27:52 +01:00
Rasmus Wriedt Larsen
f1fd9b4c7a
Python: Fix underlying problem of not using Alias
2023-12-08 11:27:52 +01:00
Taus
fa6aec7ae2
Python: Model owslib.etree.etree directly
...
Somehow, this alias did not get picked up by the tooling.
2023-12-08 11:27:52 +01:00
Taus
6d40e7e0fc
Python: Add extensible modelling for lxml.etree
2023-12-08 11:27:52 +01:00
Taus
5b9d56774b
Python: Refactor references to ElementTree
...
This would probably be better as a module, but I wanted to verify
first that this would yield the right results.
2023-12-08 11:27:52 +01:00
Taus
d29879a844
Python: Model kombu.serialization
...
More `pickle` wrappers.
2023-12-08 11:27:52 +01:00
Taus
a6dc6f3e42
Python: Add model for flask.restful
...
Not subclass-related -- just an alias.
2023-12-08 11:27:52 +01:00
Taus
6261a94986
Python: Add cloudpickle model
...
This one didn't seem to fit into the subclass approach, so I just modeled
it manually.
2023-12-08 11:27:52 +01:00
Taus
43fe9ca31d
Python: Model rest_framework.exceptions.APIException
...
Only models the subclasses of `APIException` that share the same interface as
`APIException` itself with regard to the `getBody` predicate.
2023-12-08 11:27:52 +01:00
Taus
1f66659ff2
Python: Add Django FileField model
2023-12-08 11:27:52 +01:00
Taus
aa3f1cf3e1
Python: extend aiohttp model
2023-12-08 11:27:52 +01:00
Taus
b5bffb2220
Python: Add aioch model
2023-12-08 11:27:52 +01:00
Taus
875fa0b8f0
Python: Add Peewee model
2023-12-08 11:27:52 +01:00
Taus
5e3bdb8701
Python: Add Pydantic model
2023-12-08 11:27:51 +01:00
Taus
9d93afe128
Python: Add logging.Logger model
2023-12-08 11:27:51 +01:00
Taus
dea61e14d1
Python: Add Urllib3 model
2023-12-08 11:27:51 +01:00
Taus
1269a98d2b
Python: Add Tornado models
2023-12-08 11:27:51 +01:00
Taus
6093bb9fd4
Python: add some stdlib models
2023-12-08 11:27:51 +01:00
Taus
4879a931eb
Python: Add starlette.requests.URL model
2023-12-08 11:27:51 +01:00
Taus
a3f7885787
Python: Add SqlAlchemy model
2023-12-08 11:27:51 +01:00
Taus
422733f32a
Python: Add rest_framework model
2023-12-08 11:27:51 +01:00
Taus
5afead5896
Python: Add Pycurl model
2023-12-08 11:27:51 +01:00
Taus
f1a72311ed
Python: add MultiDict model
2023-12-08 11:27:51 +01:00
Taus
62db8cc633
Python: Add MarkupSafe model
2023-12-08 11:27:51 +01:00
Taus
cdb0ac524d
Python: Add invoke model
2023-12-08 11:27:51 +01:00
Taus
699b6b8bef
Python: Add httpx model
2023-12-08 11:27:51 +01:00
Taus
6128c89518
Python: Add Flask app and blueprint models
2023-12-08 11:27:51 +01:00
Taus
a81f8ea54d
Python: Add Django RawSQL and HttpRequest models
2023-12-08 11:27:51 +01:00
Taus
ff9482f81b
Python: Add fabric connection model
2023-12-08 11:27:51 +01:00
Taus
947aa099e0
Python: Add aiohttp.ClientSession model
2023-12-08 11:27:51 +01:00
Taus
f5bed2d955
Python: Add clickhouse_driver model
2023-12-08 11:27:51 +01:00
Taus
83e6e51e95
Python: Add starlette.websocket model
2023-12-08 11:27:50 +01:00
Rasmus Wriedt Larsen
f19b672656
Python: Also capture alias with new name
2023-12-08 11:27:50 +01:00
Taus
750f14f859
Python: Add http.client.HTTPResponse model
2023-12-08 11:27:50 +01:00
Taus
1d4b4ee740
Python: Add Requests response model
...
This required making some of the relevant bits public, but they are marked as internal anyway.
2023-12-08 11:27:50 +01:00
Taus
cb1efa915e
Python: Add Flask response model
2023-12-08 11:27:50 +01:00
Taus
7b1c6b0dd6
Python: Add Django response models
2023-12-08 11:27:50 +01:00
Rasmus Wriedt Larsen
d622d873d9
Python: Enable auto-model for Django Model
2023-12-08 11:27:50 +01:00
Rasmus Wriedt Larsen
bff7ae20e1
Python: Enable auto-model for cgi.FieldStorage
2023-12-08 11:27:50 +01:00
Rasmus Wriedt Larsen
1e69762242
Python: More import fixes
...
:thinkies: turns out that .getASubclass*() had to be applied everywhere...
2023-12-08 11:27:50 +01:00
Rasmus Wriedt Larsen
af6c5ccead
Python: Enable auto-model BaseHttpRequestHandler
2023-12-08 11:27:50 +01:00
Rasmus Wriedt Larsen
ba19f95d3e
Python: Improve SelfRefMixin
...
This is important to model mixins correctly, for example when they help
handle incoming requests, and therefore need to know that `self.kwargs`
contains data controlled by a user.
2023-12-08 11:27:50 +01:00
Rasmus Wriedt Larsen
77a4d81a08
Python: Improve import * handling
2023-12-08 11:27:50 +01:00
Rasmus Wriedt Larsen
ec384649e8
Python: Automodel for WSGIServer
2023-12-08 11:27:50 +01:00
Rasmus Wriedt Larsen
eb97a7989f
Python: Automodel for tornado
2023-12-08 11:27:50 +01:00
Rasmus Wriedt Larsen
d6fec9e4a7
Python: Make Django use auto-modeling
...
Ooops
2023-12-08 11:27:49 +01:00
Rasmus Wriedt Larsen
5e98ff48ff
Python: Add script to process results from MRVA (bqrs files)
...
Also makes `empty.model.yml` empty once again
2023-12-08 11:27:49 +01:00
Rasmus Wriedt Larsen
451a210916
Python: Remove query predicate annotation
2023-12-08 11:27:49 +01:00
Rasmus Wriedt Larsen
b66dd23a68
Python: Streamline what modules to allow for now
2023-12-08 11:27:49 +01:00