Re: Problem checking an existing browser cookie

2010-09-01 Thread Nik the Greek
On 31 Αύγ, 11:07, Nik the Greek nikos.the.gr...@gmail.com wrote: On 30 Αύγ, 20:50, MRAB pyt...@mrabarnett.plus.com wrote: On 30/08/2010 18:16, Nik the Greek wrote: On 30 Αύγ, 19:41, MRABpyt...@mrabarnett.plus.com  wrote: On 30/08/2010 04:33, Nik the Greek wrote: On 30 Αύγ,

Re: Problem checking an existing browser cookie

2010-08-31 Thread Nik the Greek
On 30 Αύγ, 20:48, Rami Chowdhury rami.chowdh...@merton.oxon.org wrote: On Mon, Aug 30, 2010 at 23:36, Nik the Greek nikos.the.gr...@gmail.com wrote: # initialize cookie cookie = SimpleCookie() cookie.load( os.environ.get('HTTP_COOKIE', '') ) visitor = cookie.get('visitor')

Re: Problem checking an existing browser cookie

2010-08-31 Thread Nik the Greek
On 30 Αύγ, 20:50, MRAB pyt...@mrabarnett.plus.com wrote: On 30/08/2010 18:16, Nik the Greek wrote: On 30 Αύγ, 19:41, MRABpyt...@mrabarnett.plus.com  wrote: On 30/08/2010 04:33, Nik the Greek wrote: On 30 Αύγ, 06:12, MRABpyt...@mrabarnett.plus.com    wrote: This part:        

Re: Problem checking an existing browser cookie

2010-08-30 Thread Nik the Greek
On 30 Αύγ, 06:12, MRAB pyt...@mrabarnett.plus.com wrote: On 30/08/2010 03:55, Nik the Greek wrote: On 30 Αύγ, 05:43, MRABpyt...@mrabarnett.plus.com  wrote: On 30/08/2010 03:07, Nik the Greek wrote: On 30 Αύγ, 04:51, MRABpyt...@mrabarnett.plus.com    wrote: On 30/08/2010 02:14,

Re: Problem checking an existing browser cookie

2010-08-30 Thread Nik the Greek
On 30 Αύγ, 11:01, Nik the Greek nikos.the.gr...@gmail.com wrote: On 30 Αύγ, 06:12, MRAB pyt...@mrabarnett.plus.com wrote: On 30/08/2010 03:55, Nik the Greek wrote: On 30 Αύγ, 05:43, MRABpyt...@mrabarnett.plus.com  wrote: On 30/08/2010 03:07, Nik the Greek wrote: On 30 Αύγ,

Re: Problem checking an existing browser cookie

2010-08-30 Thread Peter Otten
Nik the Greek wrote: Perhpas its doenst get loaded like that? # initialize cookie cookie = SimpleCookie() cookie.load( os.environ.get('HTTP_COOKIE', '') ) mycookie = cookie.get('visitor') Please someone else has an idea on how this to work? Add a print statement to verify that

Re: Problem checking an existing browser cookie

2010-08-30 Thread MRAB
On 30/08/2010 04:33, Nik the Greek wrote: On 30 Αύγ, 06:12, MRABpyt...@mrabarnett.plus.com wrote: This part: ( not mycookie or mycookie.value != 'nikos' ) is false but this part: re.search( r'(msn|yandex|13448|spider|crawl)', host ) is None is true because host doesn't contain

Re: Problem checking an existing browser cookie

2010-08-30 Thread Nik the Greek
On 30 Αύγ, 19:41, MRAB pyt...@mrabarnett.plus.com wrote: On 30/08/2010 04:33, Nik the Greek wrote: On 30 Αύγ, 06:12, MRABpyt...@mrabarnett.plus.com  wrote: This part:       ( not mycookie or mycookie.value != 'nikos' ) is false but this part:       re.search(

Re: Problem checking an existing browser cookie

2010-08-30 Thread Nik the Greek
On 30 Αύγ, 19:21, Peter Otten __pete...@web.de wrote: Nik the Greek wrote: Perhpas its doenst get loaded like that? # initialize cookie cookie = SimpleCookie() cookie.load( os.environ.get('HTTP_COOKIE', '') ) mycookie = cookie.get('visitor') Please someone else has an idea on how

Re: Problem checking an existing browser cookie

2010-08-30 Thread Nik the Greek
On 30 Αύγ, 19:41, MRAB pyt...@mrabarnett.plus.com wrote: On 30/08/2010 04:33, Nik the Greek wrote: On 30 Αύγ, 06:12, MRABpyt...@mrabarnett.plus.com  wrote: This part:       ( not mycookie or mycookie.value != 'nikos' ) is false but this part:       re.search(

Re: Problem checking an existing browser cookie

2010-08-30 Thread Rami Chowdhury
On Mon, Aug 30, 2010 at 23:36, Nik the Greek nikos.the.gr...@gmail.com wrote: # initialize cookie cookie = SimpleCookie() cookie.load( os.environ.get('HTTP_COOKIE', '') ) visitor = cookie.get('visitor') This statement if (visitor.value != 'nikos') and re.search( r'(msn|yandex|13448|

Re: Problem checking an existing browser cookie

2010-08-30 Thread MRAB
On 30/08/2010 18:16, Nik the Greek wrote: On 30 Αύγ, 19:41, MRABpyt...@mrabarnett.plus.com wrote: On 30/08/2010 04:33, Nik the Greek wrote: On 30 Αύγ, 06:12, MRABpyt...@mrabarnett.plus.comwrote: This part: ( not mycookie or mycookie.value != 'nikos' ) is false but

Re: Problem checking an existing browser cookie

2010-08-30 Thread MRAB
On 30/08/2010 18:36, Nik the Greek wrote: On 30 Αύγ, 19:41, MRABpyt...@mrabarnett.plus.com wrote: On 30/08/2010 04:33, Nik the Greek wrote: On 30 Αύγ, 06:12, MRABpyt...@mrabarnett.plus.comwrote: This part: ( not mycookie or mycookie.value != 'nikos' ) is false but

Re: Problem checking an existing browser cookie

2010-08-30 Thread Nik the Greek
On 30 Αύγ, 20:53, MRAB pyt...@mrabarnett.plus.com wrote: Why visitor.value is undefined? Because visitor is None. It's not seeing any cookie. WHY NOT?! THE COOKIE _DOES_EXIST !!! What am i missing here?! -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem checking an existing browser cookie

2010-08-29 Thread MRAB
On 29/08/2010 06:34, Νίκος wrote: On 28 Αύγ, 23:15, MRABpyt...@mrabarnett.plus.com wrote: On 28/08/2010 20:37, Íßêïò wrote: On 22 Áýã, 10:27, Íßêïònikos.the.gr...@gmail.comwrote: On 16 Áýã, 14:31, Peter Otten__pete...@web.dewrote: Íßêïò wrote: # initializecookie

Re: Problem checking an existing browser cookie

2010-08-29 Thread Νίκος
On 29 Αύγ, 21:44, MRAB pyt...@mrabarnett.plus.com wrote: On 29/08/2010 06:34, Νίκος wrote: On 28 Αύγ, 23:15, MRABpyt...@mrabarnett.plus.com  wrote: On 28/08/2010 20:37, Íßêïò wrote: On 22 Áýã, 10:27, Íßêïònikos.the.gr...@gmail.com    wrote: On 16 Áýã, 14:31, Peter

Re: Problem checking an existing browser cookie

2010-08-29 Thread MRAB
On 30/08/2010 02:14, Νίκος wrote: On 29 Αύγ, 21:44, MRABpyt...@mrabarnett.plus.com wrote: On 29/08/2010 06:34, Νίκος wrote: On 28 Αύγ, 23:15, MRABpyt...@mrabarnett.plus.comwrote: On 28/08/2010 20:37, Íßêïò wrote: On 22 Áýã, 10:27, Íßêïònikos.the.gr...@gmail.com wrote: On

Re: Problem checking an existing browser cookie

2010-08-29 Thread Nik the Greek
On 30 Αύγ, 04:51, MRAB pyt...@mrabarnett.plus.com wrote: On 30/08/2010 02:14, Νίκος wrote: On 29 Αύγ, 21:44, MRABpyt...@mrabarnett.plus.com  wrote: On 29/08/2010 06:34, Νίκος wrote: On 28 Αύγ, 23:15, MRABpyt...@mrabarnett.plus.com    wrote: On 28/08/2010 20:37, Íßêïò wrote:

Re: Problem checking an existing browser cookie

2010-08-29 Thread MRAB
On 30/08/2010 03:07, Nik the Greek wrote: On 30 Αύγ, 04:51, MRABpyt...@mrabarnett.plus.com wrote: On 30/08/2010 02:14, Νίκος wrote: On 29 Αύγ, 21:44, MRABpyt...@mrabarnett.plus.comwrote: On 29/08/2010 06:34, Νίκος wrote: On 28 Αύγ, 23:15, MRABpyt...@mrabarnett.plus.com wrote:

Re: Problem checking an existing browser cookie

2010-08-29 Thread Nik the Greek
On 30 Αύγ, 05:43, MRAB pyt...@mrabarnett.plus.com wrote: On 30/08/2010 03:07, Nik the Greek wrote: On 30 Αύγ, 04:51, MRABpyt...@mrabarnett.plus.com  wrote: On 30/08/2010 02:14, Νίκος wrote: On 29 Αύγ, 21:44, MRABpyt...@mrabarnett.plus.com    wrote: On 29/08/2010 06:34, Νίκος

Re: Problem checking an existing browser cookie

2010-08-29 Thread MRAB
On 30/08/2010 03:55, Nik the Greek wrote: On 30 Αύγ, 05:43, MRABpyt...@mrabarnett.plus.com wrote: On 30/08/2010 03:07, Nik the Greek wrote: On 30 Αύγ, 04:51, MRABpyt...@mrabarnett.plus.comwrote: On 30/08/2010 02:14, Νίκος wrote: On 29 Αύγ, 21:44,

Re: Problem checking an existing browser cookie

2010-08-29 Thread Nik the Greek
On 30 Αύγ, 06:12, MRAB pyt...@mrabarnett.plus.com wrote: This part:      ( not mycookie or mycookie.value != 'nikos' ) is false but this part:      re.search( r'(msn|yandex|13448|spider|crawl)', host ) is None is true because host doesn't contain any of those substrings. So, the if code

Re: Problem checking an existing browser cookie

2010-08-28 Thread Νίκος
On 22 Αύγ, 10:27, Νίκος nikos.the.gr...@gmail.com wrote: On 16 Αύγ, 14:31, Peter Otten __pete...@web.de wrote: Νίκος wrote: # initializecookie cookie=Cookie.SimpleCookie() cookie.load( os.environ.get('HTTP_COOKIE', '') ) mycookie =cookie.get('visitor') if ( mycookie and

Re: Problem checking an existing browser cookie

2010-08-28 Thread Peter Otten
Νίκος wrote: On 22 Αύγ, 10:27, Νίκος nikos.the.gr...@gmail.com wrote: On 16 Αύγ, 14:31, Peter Otten __pete...@web.de wrote: Νίκος wrote: # initializecookie cookie=Cookie.SimpleCookie() cookie.load( os.environ.get('HTTP_COOKIE', '') ) mycookie =cookie.get('visitor') if (

Re: Problem checking an existing browser cookie

2010-08-28 Thread MRAB
On 28/08/2010 20:37, Νίκος wrote: On 22 Αύγ, 10:27, Νίκοςnikos.the.gr...@gmail.com wrote: On 16 Αύγ, 14:31, Peter Otten__pete...@web.de wrote: Νίκος wrote: # initializecookie cookie=Cookie.SimpleCookie() cookie.load( os.environ.get('HTTP_COOKIE', '') ) mycookie

Re: Problem checking an existing browser cookie

2010-08-28 Thread Νίκος
On 28 Αύγ, 23:15, MRAB pyt...@mrabarnett.plus.com wrote: On 28/08/2010 20:37, Íßêïò wrote: On 22 Áýã, 10:27, Íßêïònikos.the.gr...@gmail.com  wrote: On 16 Áýã, 14:31, Peter Otten__pete...@web.de  wrote: Íßêïò wrote: # initializecookie cookie=Cookie.SimpleCookie() cookie.load(

Re: Problem checking an existing browser cookie

2010-08-28 Thread Νίκος
On 28 Αύγ, 23:07, Peter Otten __pete...@web.de wrote: Νίκος wrote: On 22 Αύγ, 10:27, Νίκος nikos.the.gr...@gmail.com wrote: On 16 Αύγ, 14:31, Peter Otten __pete...@web.de wrote: Νίκος wrote: # initializecookie cookie=Cookie.SimpleCookie() cookie.load(

Re: Problem checking an existing browser cookie

2010-08-22 Thread Νίκος
On 16 Αύγ, 14:31, Peter Otten __pete...@web.de wrote: Νίκος wrote: # initializecookie cookie=Cookie.SimpleCookie() cookie.load( os.environ.get('HTTP_COOKIE', '') ) mycookie =cookie.get('visitor') if ( mycookie and mycookie.value != 'nikos' ) or re.search( r'(cyta|

Problem checking an existing browser cookie

2010-08-16 Thread Νίκος
# initialize cookie cookie = Cookie.SimpleCookie() cookie.load( os.environ.get('HTTP_COOKIE', '') ) mycookie = cookie.get('visitor') if ( mycookie and mycookie.value != 'nikos' ) or re.search( r'(cyta| yandex|13448|spider|crawl)', host ) is None: blabla... I checked

Re: Problem checking an existing browser cookie

2010-08-16 Thread Peter Otten
Νίκος wrote: # initialize cookie cookie = Cookie.SimpleCookie() cookie.load( os.environ.get('HTTP_COOKIE', '') ) mycookie = cookie.get('visitor') if ( mycookie and mycookie.value != 'nikos' ) or re.search( r'(cyta| yandex|13448|spider|crawl)', host ) is None: blabla...