Re: Have existing python script file that I want to execute from within a cherrypy web site/page. How can this be done 100% native to cherrypy?

Sviatoslav Sydorenko <[email protected]> Sat, 28 Apr 2018 21:16:07 +0000
Newsgroups gmane.comp.python.cherrypy
Message-ID <CAFYONRA1pcOCQpceC6jEM07EraLWscbvrGS82qAP54iEnO1p3A@mail.gmail.com>
Just import function from that script and run it in request handler method,
it is not specific to cherrypy, it works like anything else in python.

--Sviatoslav.

Sent from my phone, please pardon any typos.

On Sat, Apr 28, 2018, 23:04 <[email protected]> wrote:

> Have existing python script file that I want to execute from within a
> cherrypy web site/page.  How can this be done 100% native to cherrypy?
> Many examples reference java or CGI mods, that is not acceptable nor should
> it be IMHO.  There has to be a 100% cherrypi method to do this, no?
>
> --
> You received this message because you are subscribed to the Google Groups
> "cherrypy-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cherrypy-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
> To post to this group, send email to cherrypy-users-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
> Visit this group at https://groups.google.com/group/cherrypy-users.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cherrypy-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
To post to this group, send email to cherrypy-users-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
Visit this group at https://groups.google.com/group/cherrypy-users.
For more options, visit https://groups.google.com/d/optout.