https://groups.google.com/d/forum/cherrypy-userscherrypy-usersFor questions about using CherryPyGoogle GroupsSam2017-01-16T06:00:33Zhttps://groups.google.com/d/topic/cherrypy-users/DcElEkeNi1oServer rendering react using cherrypy...I have written a web app all in cherrypy and sqlalchemy on the backend. The front end is all react. (I use mako templates but basically just to create a single div, and call the react script). The site has about 50 pages, but it's react that parses each of these urls and makes appropriateIngoognI2017-01-10T21:14:35Zhttps://groups.google.com/d/topic/cherrypy-users/cMbw64RwwGcdata from bus to publishing functionA bunch of sensors is posting their data. I want to republish their data in a graph on a site using SSE. Simple versions of the latter work. Pushing data into the bus is also fine. My problem is how to get the data into the publishing function? I can nest the print_cpu in the pubcpu and have theGermán Rimoldi2017-01-08T22:42:28Zhttps://groups.google.com/d/topic/cherrypy-users/cgsDyTyi1wUBasics about passing variable to the user's sessionHi Guys! I need help passing variable to the user's session and calling this from a different function: Could you help me out with this? First, I would like ot "set" a variable on the user's session. @cherrypy.exposedef setter(self): email = "em...@email.com" cherrypy.session["email"Germán Rimoldi2016-12-18T21:39:40Zhttps://groups.google.com/d/topic/cherrypy-users/FPxtPIPSvAIPassing variables to viewHi Guys! I'm getting started with CherryPy. I'm finding the learning curve pretty steep for a newbie :( I have a very simple question: How do I pass variables to an html view? class Root: @cherrypy.expose def index(self): c = cherrypy.thread_data.db.cursor()Steven Sawyer2016-12-16T16:37:36Zhttps://groups.google.com/d/topic/cherrypy-users/o2d4DsOI3OAExecute engine.restart() in thread hangsI'm working on a user-hosted application that needs to periodically check for updates, apply them, then restart. I have the update checker/installer running in a separate thread, but I can't get it to restart the server. It seems as though calling cherrypy.engine.restart() inside a child threadJohan Hartzenberg2016-11-21T11:24:04Zhttps://groups.google.com/d/topic/cherrypy-users/7CILwUDOknwModification for static handlerIn my system I have a routedispatcher handler mounted at /api and I have a static handler mounted at /static This works OK but I have an idea of how to add authentication to the static aspect. I use JWTs for access to most handlers in /api already. I would like the static files under /static/puKearney Taaffe2016-11-10T16:10:32Zhttps://groups.google.com/d/topic/cherrypy-users/-HvSQC0LmasSimple RESTful API - make a patchI'm making an API in CherryPy. I must admit, it's super easy, and I'd like to turn this example into something that the CherryPy community puts on it's website as a "how to API" The problem I'm having is how to handle an HTTP PATCH request. The following code fails with the error for HTTP PATCHShiming He2016-11-10T07:50:01Zhttps://groups.google.com/d/topic/cherrypy-users/iFJetiXTc3UCatching exceptions of cherrypy.engine.start?Hi, When the port is occupied upon calling cherrypy.engine.start(), I'm seeing the following exceptions thrown at the console: OSError: Port 8080 not free on '127.0.0.1' cherrypy.process.wspbus.ChannelFailures: OSError("Port 8080 not free on '127.0.0.1'",) Eventually, cherrypy will shutdownJohan Hartzenberg2016-11-05T20:23:24Zhttps://groups.google.com/d/topic/cherrypy-users/Y5RjNpr8AggProviding data to a function using a decoratorMany of my route handlers go through a sequence of similar steps, eg def handler_x(self, **kwargs): #Check Authentication ... #Validate Input ... #Check Authorization .... #Perform Database Query/Update ... #Format result into response return response It would seem that thisJohan Hartzenberg2016-11-03T21:36:55Zhttps://groups.google.com/d/topic/cherrypy-users/kWFjH3OpsOQRoutesDispatches causing Controller Class init to execute twiceI have always wondered about the need to specify the controller in the dispatches connect and in the tree.mount call. It is a bit of a pain since I initiate a pool of DB connections in my app class. So in the main program I have import cherrypy from routehandlers import Echo_v1, setup_routesBenj2016-11-02T12:03:21Zhttps://groups.google.com/d/topic/cherrypy-users/2kxXlSzfJcYProper cherrypy config to run multiple sites on same serverHello, I'm going to use cherrypy on a multicore dedicated server, that will host 15 different sites. What's the proper way to configure cherrypy to take advantage of the available power ? 1 Cherrypy process for all the sites (with thread pool taking advantage of multi core) or 1 CherrypySteven Sawyer2016-10-30T18:09:23Zhttps://groups.google.com/d/topic/cherrypy-users/3uRbnALuPjQRequire auth for everything on serverI'm working on my first CherryPy project and it is going pretty well so far, but I can't seem to find any examples of what I want to do. I want to require a name/pass for the entire sever. No matter what page you load up it should redirect to a login form. Then it should remember the user in aje...@soundhound.com2016-10-26T21:00:18Zhttps://groups.google.com/d/topic/cherrypy-users/GoOAB7FhrdYTrying to build a fully synthesized siteHi, I am completely new to CherryPy and am trying to do something different than a typical web site. I am using http to expose data that has be learned within a local management tool. My config file allows the user to define a page URL and what data is returned in a json dictionary. They canPeter Tsapatsaris2016-10-13T05:44:03Zhttps://groups.google.com/d/topic/cherrypy-users/-akimpGihrMexecuting while loop and simultaneously redirecting to new page on form submissionHello everyone, I've been using cherrypy on a Raspberry Pi to run a web controllable LED matrix. I've run into a bit of a wall. Short version of question: Is it possible to send the user to a new webpage in a function WITHOUT returning or breaking? I am trying to execute code in a blockfly over2016-10-04T18:26:10Zhttps://groups.google.com/d/topic/cherrypy-users/UsQ0mAjxVx4How to install Cheerypy on Win10Hey , is it possible to install cherrypy on Windows10? easy_install cherrypy dosn't work.