Google Groups Home
Help | Sign in
Ch3 in book: session_filter vs sessionFilter
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Magnus  
View profile
 More options Jan 10 2006, 6:27 pm
From: "Magnus" <magnus.thern...@gmail.com>
Date: Tue, 10 Jan 2006 15:27:08 -0800
Local: Tues, Jan 10 2006 6:27 pm
Subject: Ch3 in book: session_filter vs sessionFilter
It might be a well-known issue, but I couldn't find any mention of it
here. Ch3 of the book describes how to use sessions. The recipe is

cherrypy.config.update({'session_filter.on' : True})

That will result in a "500 Internal Error" page because of a
SessionNotEnabledError. The line should read

cherrypy.config.update({'sessionFilter.on' : True})

With some pointers I'd be happy to provide a diff for the book...

/M


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Remi Delon  
View profile
 More options Jan 11 2006, 11:35 am
From: "Remi Delon" <r...@cherrypy.org>
Date: Wed, 11 Jan 2006 16:35:05 -0000
Local: Wed, Jan 11 2006 11:35 am
Subject: Re: [cherrypy-docs] Ch3 in book: session_filter vs sessionFilter

> It might be a well-known issue, but I couldn't find any mention of it
> here. Ch3 of the book describes how to use sessions. The recipe is

> cherrypy.config.update({'session_filter.on' : True})

Are you sure you're looking at the right version of the book for ?
(corresponding to the CP version that you use)

Remi.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Magnus Therning  
View profile
 More options Jan 12 2006, 6:10 am
From: Magnus Therning <mag...@therning.org>
Date: Thu, 12 Jan 2006 11:10:51 +0000
Local: Thurs, Jan 12 2006 6:10 am
Subject: Re: [cherrypy-docs] Re: Ch3 in book: session_filter vs sessionFilter

On Wed, Jan 11, 2006 at 04:35:05PM -0000, Remi Delon wrote:

>>It might be a well-known issue, but I couldn't find any mention of it
>>here. Ch3 of the book describes how to use sessions. The recipe is
>>cherrypy.config.update({'session_filter.on' : True})

>Are you sure you're looking at the right version of the book for ?
>(corresponding to the CP version that you use)

No, I wasn't. I followed a link Google gave me, so I didn't pay
attention to the 'trunk' in the URL. I should have used the 2.1.0
version.

Does this happen a lot?
I bet it's a nice thing for the authors of the book to have the trunk
published, but it is a possible cause of confusion as well.

/M

--
Magnus Therning                    (OpenPGP: 0xAB4DFBA4)
mag...@therning.org
http://therning.org/magnus

Software is not manufactured, it is something you write and publish.
Keep Europe free from software patents, we do not want censorship
by patent law on written works.

Some operating systems are called 'user friendly', Linux however is
'expert friendly'.

  application_pgp-signature_part
< 1K Download

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wektor  
View profile
 More options Jan 25 2006, 10:28 pm
From: "Wektor" <wektor...@tlen.pl>
Date: Wed, 25 Jan 2006 19:28:06 -0800
Local: Wed, Jan 25 2006 10:28 pm
Subject: Re: Ch3 in book: session_filter vs sessionFilter

Remi Delon wrote:
> > It might be a well-known issue, but I couldn't find any mention of it
> > here. Ch3 of the book describes how to use sessions. The recipe is

> > cherrypy.config.update({'session_filter.on' : True})

> Are you sure you're looking at the right version of the book for ?
> (corresponding to the CP version that you use)

> Remi.

im using CP 2.1.1 and
cherrypy.config.update({'session_filter.on' : True}) -- doesnt work
cherrypy.config.update({'sessionFilter.on' : True}) -- does

i tried in CP 2.1 and its the same

i think its good idea to po point out which versions work which way
becouse its very nasty error and difficult to spot


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google