There's more...

Python code server actions are a powerful and flexible resource, but they do have some limitations compared to the custom add-on modules.

Because the Python code is evaluated at runtime, if an error occurs, the stack trace is not as informative and can be harder to debug. It is also not possible to insert a break point in the code of a server action using the techniques shown in Chapter 8, Debugging, so debugging needs to be done using logging statements. Another concern is that, when trying to track down the cause of behavior in the module code, you may not find anything relevant. In this case, it's probably caused by a server action.

When carrying out a more intensive use of server actions, the interactions can be quite complex, so it is advisable to plan properly and keep them organized.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset