What I’m trying to do:
Get some information that I can use for making design decisions.
Currently, I use “raw” data table rows in one of my Uplink programs, for communication back to the main App and its users. This will continue to work, of course.
I have the same question. I’m trying to figure out how to import model classes into my server uplink code so that I can access functions and properties of those classes there.
I haven’t tested this myself, so it’s just an assumption based on how things usually work, but I’d expect it to function correctly.
You just need to clone the app to your computer, then configure your uplink script to import modules from that cloned app. Just make that your anvil-uplink package is up to date with the latest version.
Yes. I suspect that there is a core of database integrity logic that should be common to all of a Table’s Model Classes. Uplink, Server, and Client can each add their own specific queries and procedural logic, on top of that.
This could be a natural use of Python’s multiple inheritance for classes, though I’m not sure what that would look like in this case.