Re: CherryPy cpstats and ws4py

2015-11-04 Thread Israel Brewster
Ok, let me ask a different question: the impression I have gotten when trying to find help with CherryPy in general and ws4py specifically is that these frameworks are not widely used or well supported. Is that a fair assessment, or do I just have issues that are outside the realm of experience

Re: Cherrypy - prevent browser "prefetch"?

2014-12-03 Thread Israel Brewster
Ah, I see. That makes sense. Thanks. --- Israel Brewster Systems Analyst II Ravn Alaska 5245 Airport Industrial Rd Fairbanks, AK 99709 (907) 450-7293 --- BEGIN:VCARD VERSION:3.0 N:Brewster;Israel;;; FN:Israel

Re: Cherrypy - prevent browser "prefetch"?

2014-12-03 Thread Nobody
On Tue, 02 Dec 2014 21:41:33 +, John Gordon wrote: > GET shouldn't cause any business data modifications, but I thought it was > allowed for things like logging out of your session. GET isn't supposed to have observable side-effects. "Observable" excludes things like logs and statistics, but

Re: Cherrypy - prevent browser "prefetch"?

2014-12-02 Thread Gregory Ewing
Israel Brewster wrote: Primary because they aren’t forms, they are links. And links are, by definition, GET’s. That said, as I mentioned in earlier replies, if using a form for a simple link is the Right Way to do things like this, then I can change it. I'd look at it another way and say that a

Re: Cherrypy - prevent browser "prefetch"?

2014-12-02 Thread random832
On Tue, Dec 2, 2014, at 10:59, Israel Brewster wrote: > Primary because they aren’t forms, they are links. And links are, by > definition, GET’s. That said, as I mentioned in earlier replies, if using > a form for a simple link is the Right Way to do things like this, then I > can change it. As I

Re: Cherrypy - prevent browser "prefetch"?

2014-12-02 Thread John Gordon
In Nobody writes: > On Mon, 01 Dec 2014 11:28:42 -0900, Israel Brewster wrote: > > I'm running to a problem, specifically from > > Safari on the Mac, where I start to type a URL, and Safari auto-fills the > > rest of a random URL matching what I started to type, and simultaneously > > sends a

Re: Cherrypy - prevent browser "prefetch"?

2014-12-02 Thread Nobody
On Mon, 01 Dec 2014 11:28:42 -0900, Israel Brewster wrote: > I'm running to a problem, specifically from > Safari on the Mac, where I start to type a URL, and Safari auto-fills the > rest of a random URL matching what I started to type, and simultaneously > sends a request for that URL to my serve

Re: Cherrypy - prevent browser "prefetch"?

2014-12-02 Thread Israel Brewster
> On Dec 2, 2014, at 4:33 AM, random...@fastmail.us wrote: > > On Mon, Dec 1, 2014, at 15:28, Israel Brewster wrote: >> For example, I have a URL on my Cherrypy app that updates some local >> caches. It is accessed at http:///admin/updatecaches So if I >> start typing http:///a, for example, safa

Re: Cherrypy - prevent browser "prefetch"?

2014-12-02 Thread random832
On Mon, Dec 1, 2014, at 15:28, Israel Brewster wrote: > For example, I have a URL on my Cherrypy app that updates some local > caches. It is accessed at http:///admin/updatecaches So if I > start typing http:///a, for example, safari may auto-fill the > "dmin/updatecaches", and trigger a cache refr

Re: Cherrypy - prevent browser "prefetch"?

2014-12-01 Thread Tim Chase
On 2014-12-01 13:14, Israel Brewster wrote: > On Dec 1, 2014, at 12:50 PM, Ned Batchelder >> The way to indicate to a browser that it shouldn't pre-fetch a >> URL is to make it a POST request. > > Ok, that makes sense. The only difficulty I have with that answer > is that to the best of my knowle

Re: Cherrypy - prevent browser "prefetch"?

2014-12-01 Thread Israel Brewster
On Dec 1, 2014, at 1:12 PM, Tim Chase wrote: > On 2014-12-01 16:50, Ned Batchelder wrote: >> On 12/1/14 4:26 PM, Tim Chase wrote: >>> All this to also say that performing non-idempotent actions on a >>> GET request is just begging for trouble. ;-) >> >> This is the key point: your web applicatio

Re: Cherrypy - prevent browser "prefetch"?

2014-12-01 Thread Israel Brewster
On Dec 1, 2014, at 12:50 PM, Ned Batchelder wrote: > On 12/1/14 4:26 PM, Tim Chase wrote: >> On 2014-12-01 11:28, Israel Brewster wrote: >>> I don't know if this is a cherrypy specific question (although it >>> will be implemented in cherrypy for sure), or more of a general >>> http protocol ques

Re: Cherrypy - prevent browser "prefetch"?

2014-12-01 Thread Tim Chase
On 2014-12-01 16:50, Ned Batchelder wrote: > On 12/1/14 4:26 PM, Tim Chase wrote: >> All this to also say that performing non-idempotent actions on a >> GET request is just begging for trouble. ;-) > > This is the key point: your web application shouldn't be doing > these kinds of actions in respo

Re: Cherrypy - prevent browser "prefetch"?

2014-12-01 Thread Tim Chase
On 2014-12-01 22:44, Christoph M. Becker wrote: > Tim Chase wrote: > > haven't investigated recently, but I remember Django's ability to > > trigger a log-out merely via a GET was something that irked me. > > > > All this to also say that performing non-idempotent actions on a > > GET request is j

Re: Cherrypy - prevent browser "prefetch"?

2014-12-01 Thread Ned Batchelder
On 12/1/14 4:26 PM, Tim Chase wrote: On 2014-12-01 11:28, Israel Brewster wrote: I don't know if this is a cherrypy specific question (although it will be implemented in cherrypy for sure), or more of a general http protocol question, but when using cherrypy to serve a web app, is there anyway t

Re: Cherrypy - prevent browser "prefetch"?

2014-12-01 Thread Christoph M. Becker
Tim Chase wrote: > I > haven't investigated recently, but I remember Django's ability to > trigger a log-out merely via a GET was something that irked me. > > All this to also say that performing non-idempotent actions on a GET > request is just begging for trouble. ;-) ACK. However, isn't log-

Re: Cherrypy - prevent browser "prefetch"?

2014-12-01 Thread Tim Chase
On 2014-12-01 11:28, Israel Brewster wrote: > I don't know if this is a cherrypy specific question (although it > will be implemented in cherrypy for sure), or more of a general > http protocol question, but when using cherrypy to serve a web app, > is there anyway to prevent browser prefetch? I'm

Re: Cherrypy - prevent browser "prefetch"?

2014-12-01 Thread sohcahtoa82
On Monday, December 1, 2014 12:29:04 PM UTC-8, Israel Brewster wrote: > I don't know if this is a cherrypy specific question (although it will be > implemented in cherrypy for sure), or more of a general http protocol > question, but when using cherrypy to serve a web app, is there anyway to > p

Re: Cherrypy

2011-05-25 Thread Miki Tebeka
I wrote http://drdobbs.com/showArticle.jhtml?articleID=199102936&queryText=query way back then. It might be of some help. If you have any specific questions, feel free to post them to the group. -- http://mail.python.org/mailman/listinfo/python-list

Re: cherrypy-webapp-code?

2008-04-20 Thread Daniel Fetchinson
> anyone have a small cherrypy-webapp and are willing to post the code. > could be a nonsense-app just wanna see some code. > -- > http://mail.python.org/mailman/listinfo/python-list > Did you try google? And the cherrypy website? -- http://mail.python.org/mailman/listinfo/python-list

Re: Cherrypy setup questions

2007-05-23 Thread Brian Blais
fumanchu wrote: > > No, you're not missing anything; my fault. I wasn't very awake when I > wrote that, I guess. Don't include the hostname, just write: > > sn = '/~myusername/apps' > cherrypy.quickstart(Root(), sn, config) > yay! Thanks, that works perfectly.

Re: Cherrypy setup questions

2007-05-23 Thread fumanchu
On May 23, 6:11 am, Brian Blais <[EMAIL PROTECTED]> wrote: > fumanchu wrote: > > > On May 22, 6:38 pm, Brian Blais <[EMAIL PROTECTED]> wrote: > >> I'd like to start trying out some cherrypy apps, but I've > >> been having some setup problems. I think I need some > >> bone-head simple example t

Re: Cherrypy setup questions

2007-05-23 Thread fumanchu
On May 23, 6:11 am, Brian Blais <[EMAIL PROTECTED]> wrote: > fumanchu wrote: > > > On May 22, 6:38 pm, Brian Blais <[EMAIL PROTECTED]> wrote: > >> I'd like to start trying out some cherrypy apps, but I've > >> been having some setup problems. I think I need some > >> bone-head simple example t

Re: Cherrypy setup questions

2007-05-23 Thread Brian Blais
fumanchu wrote: > On May 22, 6:38 pm, Brian Blais <[EMAIL PROTECTED]> wrote: >> I'd like to start trying out some cherrypy apps, but I've >> been having some setup problems. I think I need some >> bone-head simple example to clear my understanding. :) >> 1) can I configure cherrypy to look a

Re: Cherrypy setup questions

2007-05-22 Thread fumanchu
On May 22, 6:38 pm, Brian Blais <[EMAIL PROTECTED]> wrote: > I'd like to start trying out some cherrypy apps, but I've > been having some setup problems. I think I need some > bone-head simple example to clear my understanding. :) > > I'm on a system running Apache, that I don't have root > acces

Re: CherryPy + Database questions

2007-03-06 Thread Diez B. Roggisch
> SQLite isn't really a DBMS at all, it's just a library. Where is the difference? From the DB-API-side none. And there are plenty of DBs out there that work similar, like MS Access. Show me where it is written that a DBMS has to run as separate server process. > According to > their FAQ (http:

Re: CherryPy + Database questions

2007-03-05 Thread [EMAIL PROTECTED]
On Mar 5, 8:44 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > Brian Blais wrote: > > Hello, > > > I have more of a conceptual question about the way databases work, in a > > web > > framework, but I will be implementing things with CherryPy and SQLAlchemy. > > If you make a web form that adds

Re: CherryPy + Database questions

2007-03-05 Thread Diez B. Roggisch
Brian Blais wrote: > Hello, > > I have more of a conceptual question about the way databases work, in a > web > framework, but I will be implementing things with CherryPy and SQLAlchemy. > If you make a web form that adds rows to a database, and use sqlite as > the engine, is there a danger of a

Re: CherryPy/Turbogears on server not controlled by me

2007-02-22 Thread Jeff McNeil
Can you use mod_rewrite and include a proxy back to a different port? Assuming mod_proxy has been enabled, run your app server on port 8080 and then do something like this in a .htaccess file: RewriteEngine on RewriteRule ^/(.*)$ http://localhost:8080/$1 [P] This of course assumes you want to

Re: CherryPy/Turbogears on server not controlled by me

2007-02-22 Thread Brian Blais
Jorge Vargas wrote: > On 2/20/07, Brian Blais <[EMAIL PROTECTED]> wrote: >> I was wondering if there is a way to run CherryPy/Turbogears on a >> server that I don't >> have root access to. > > I have never run ANY webapp as root. you should follow that advice. in > fact don't run any server as ro

Re: CherryPy/Turbogears on server not controlled by me

2007-02-21 Thread Jorge Vargas
On 2/20/07, Brian Blais <[EMAIL PROTECTED]> wrote: > Hello, > > I was wondering if there is a way to run CherryPy/Turbogears on a server that > I don't > have root access to. I have never run ANY webapp as root. you should follow that advice. in fact don't run any server as root. > If I just cho

Re: CherryPy/Turbogears on server not controlled by me

2007-02-20 Thread Eddie Corns
"Diez B. Roggisch" <[EMAIL PROTECTED]> writes: >Brian Blais wrote: >> Hello, >> >> I was wondering if there is a way to run CherryPy/Turbogears on a server >> that I don't >> have root access to. If I just choose a random port, I think the security >> guys on >> the server would get annoyed at

Re: CherryPy/Turbogears on server not controlled by me

2007-02-20 Thread Diez B. Roggisch
Brian Blais wrote: > Hello, > > I was wondering if there is a way to run CherryPy/Turbogears on a server > that I don't > have root access to. If I just choose a random port, I think the security > guys on > the server would get annoyed at me. Why should they? Opening anything networking will

Re: cherrypy tracing back all the time

2006-07-23 Thread Hari Sekhon
On 23/07/06, Hari Sekhon <[EMAIL PROTECTED]> wrote: I've got a very simple script with cherrypy but for some reason the cherrypy server is constantly tracing back but it stays up, kind of, the performance etc though shows that something is wrong.import cherrypy import threading def someFunc():    w

Re: CherryPy wiki not working

2005-12-16 Thread bill
Yes, it looks like some type of virus has affected my computer. CherryPy was fine from home using my IMac. But at work from both Firefox and IE I get this problem and now it has affected another site. The URLs at CherryPy look like this : http://www.cherrypy.org/store/0_1_540744_1_1_index.html

Re: CherryPy wiki not working

2005-12-15 Thread Lawrence Oluyede
Il 2005-12-15, [EMAIL PROTECTED] <[EMAIL PROTECTED]> ha scritto: > Has the CherryPy wiki been hacked ?. All pages seem to be re-directed > to some form of Amazon page. It works for me. -- Lawrence - http://www.oluyede.org/blog "Anyone can freely use whatever he wants but the light at the end of

Re: CherryPy not playing nicely with win32com?

2005-11-14 Thread infidel
> Just an idea: because in CherryPy it is running in multithreading mode? > If you are using threads together with COM stuff, you will have to > add pythoncom.CoInitialize() and pythoncom.CoUninitialize() calls > in your code -- for each thread. That worked perfectly. Thanks a million! I used to

Re: CherryPy not playing nicely with win32com?

2005-11-10 Thread Irmen de Jong
infidel wrote: > I've been trying to get my CherryPy server to authenticate users > against our network. I've managed to cobble together a simple function > that uses our LDAP server to validate the username and password entered > by the user: [...] > moniker, i, bindCtx = pythoncom.MkParseD

Re: [CherryPy]Serve dynamic binary file in cherrypy?

2005-03-09 Thread Remi Delon
"mep" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Hi, > After lookup in cherrypy site and google for a while, I haven't > found any information about cherrypy how to serve dynamic binary > file(some generated charts).Is there any easy way to do this? > In cherrypy 2.0 &

Re: [CherryPy]Serve dynamic binary file in cherrypy?

2005-03-09 Thread mep
Resolved. Simplely specifiy content mime type before return. -- Best Regards, Wang Kebo http://www.huihoo.org/~mep "mep" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > After lookup in cherrypy site and google for a while, I haven't > found any information about cherry