Hi guys, maybe I am missing something in the discussion, but, why not
use plugins to achieve that? you can write the "wrapper" code in a
model, and clients/users can install/remove/update it via the web2py
plugin system.
Greetings.
El 21/06/16 a las 21:53, Dominic Mayers escribió:
Perhaps, you already provided the answer:
wsgihandler.py is /where/ you would call the entry point to your
wrapper application (and by the way, it doesn't have to be there --
you could put it anywhere, as long as you tell your web server where
it is), but the wrapper application code itself can be wherever you
want, and it can be as complex as you want. It would indeed be
separated from the wrapped application.
This seems to work. It is kind of a python application that wraps the
framework. It is not a solution at the application level, but at the
framework level, but it is fine, perhaps even better. I had to edit
the path in wsgihandler.py because I moved it outside web2py, but this
is fine. I don't mind to edit it, because it is not going to be erased
or rewritten during an update.
I feel guilty regarding the initial requirement that the wrapper
application is a web2py application, which, made no sense given its
purpose.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google
Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to web2py+unsubscr...@googlegroups.com
<mailto:web2py+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.
--
Este mensaje le ha llegado mediante el servicio de correo electronico que
ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema
Nacional de Salud. La persona que envia este correo asume el compromiso de usar
el servicio a tales fines y cumplir con las regulaciones establecidas
Infomed: http://www.sld.cu/
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.