Hello all 👋
This is an interesting suggestion, but I have some concerns. While it might seem convenient to import code from the database, this approach can introduce significant risks and maintenance problems.
For this reason, I strongly advise against adding this functionality to the py4web core. While a workaround might be okay for specific use cases, it isn't a common practice.
I agree with @laundmo, storing modules as Python files is a much cleaner and more standard approach.
More importantly, introducing this feature would create a significant security risk. If a malicious user were able to modify these functions in the database, whether through a SQL injection or even just a regular web form, they could execute arbitrary code. This would completely compromise your application.
Py4web is built to be clean, minimal and fast, and this functionality would go against that core principle. Let's maintain the current structure, which keeps the framework secure and easy to manage.
Greetings,
--
You received this message because you are subscribed to the Google Groups "py4web" group.
To unsubscribe from this group and stop receiving emails from it, send an email to py4web+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/py4web/b420540a-5666-4d79-a10a-b1c95855d157n%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "py4web" group.
To unsubscribe from this group and stop receiving emails from it, send an email to py4web+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/py4web/80e2d455-18d3-4c9b-a075-5954d392966dn%40googlegroups.com.