Re: Problem checking an existing browser cookie

2010-09-01 Thread Nik the Greek
On 31 Αύγ, 11:07, Nik the Greek wrote: > On 30 Αύγ, 20:50, MRAB wrote: > > > > > > > > > > > On 30/08/2010 18:16, Nik the Greek wrote: > > > > On 30 Αύγ, 19:41, MRAB  wrote: > > >> On 30/08/2010 04:33, Nik the Greek wrote: > > > >>> On 30 Αύγ, 06:12, MRAB    wrote: > > > This part: > > > >>>

Re: Problem checking an existing browser cookie

2010-08-31 Thread Nik the Greek
On 30 Αύγ, 20:50, MRAB wrote: > On 30/08/2010 18:16, Nik the Greek wrote: > > > > > > > > > > > On 30 Αύγ, 19:41, MRAB  wrote: > >> On 30/08/2010 04:33, Nik the Greek wrote: > > >>> On 30 Αύγ, 06:12, MRAB    wrote: > > This part: > >        ( not mycookie or mycookie.value != 'nikos' ) >

Re: Problem checking an existing browser cookie

2010-08-31 Thread Nik the Greek
On 30 Αύγ, 20:48, Rami Chowdhury wrote: > On Mon, Aug 30, 2010 at 23:36, Nik the Greek > wrote: > > > > > > > > > > > # initialize cookie > > cookie = SimpleCookie() > > cookie.load( os.environ.get('HTTP_COOKIE', '') ) > > visitor = cookie.get('visitor') > > > This statement > > > if (visitor.va

Re: Problem checking an existing browser cookie

2010-08-30 Thread Nik the Greek
On 30 Αύγ, 20:53, MRAB 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-30 Thread MRAB
On 30/08/2010 18:36, Nik the Greek wrote: On 30 Αύγ, 19:41, MRAB wrote: On 30/08/2010 04:33, Nik the Greek wrote: On 30 Αύγ, 06:12, MRABwrote: This part: ( not mycookie or mycookie.value != 'nikos' ) is false but this part: re.search( r'(msn|yandex|13448|sp

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, MRAB wrote: On 30/08/2010 04:33, Nik the Greek wrote: On 30 Αύγ, 06:12, MRABwrote: This part: ( not mycookie or mycookie.value != 'nikos' ) is false but this part: re.search( r'(msn|yandex|13448|sp

Re: Problem checking an existing browser cookie

2010-08-30 Thread Rami Chowdhury
On Mon, Aug 30, 2010 at 23:36, Nik the Greek 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| > spider|crawl)', host

Re: Problem checking an existing browser cookie

2010-08-30 Thread Nik the Greek
On 30 Αύγ, 19:41, MRAB wrote: > On 30/08/2010 04:33, Nik the Greek wrote: > > > > > > > > > On 30 Αύγ, 06:12, MRAB  wrote: > > >> This part: > > >>       ( not mycookie or mycookie.value != 'nikos' ) > > >> is false but this part: > > >>       re.search( r'(msn|yandex|13448|spider|crawl)', host )

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

Re: Problem checking an existing browser cookie

2010-08-30 Thread Nik the Greek
On 30 Αύγ, 19:41, MRAB wrote: > On 30/08/2010 04:33, Nik the Greek wrote: > > > > > > > > > On 30 Αύγ, 06:12, MRAB  wrote: > > >> This part: > > >>       ( not mycookie or mycookie.value != 'nikos' ) > > >> is false but this part: > > >>       re.search( r'(msn|yandex|13448|spider|crawl)', host )

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, MRAB 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.

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 t

Re: Problem checking an existing browser cookie

2010-08-30 Thread Nik the Greek
On 30 Αύγ, 11:01, Nik the Greek wrote: > On 30 Αύγ, 06:12, MRAB wrote: > > > > > > > > > > > On 30/08/2010 03:55, Nik the Greek wrote: > > > > On 30 Αύγ, 05:43, MRAB  wrote: > > >> On 30/08/2010 03:07, Nik the Greek wrote: > > > >>> On 30 Αύγ, 04:51, MRAB    wrote: > > On 30/08/2010 02:14, Ν

Re: Problem checking an existing browser cookie

2010-08-30 Thread Nik the Greek
On 30 Αύγ, 06:12, MRAB wrote: > On 30/08/2010 03:55, Nik the Greek wrote: > > > > > > > > > > > On 30 Αύγ, 05:43, MRAB  wrote: > >> On 30/08/2010 03:07, Nik the Greek wrote: > > >>> On 30 Αύγ, 04:51, MRAB    wrote: > On 30/08/2010 02:14, Νίκος wrote: > > > On 29 Αύγ, 21:44, MRAB      wrot

Re: Problem checking an existing browser cookie

2010-08-29 Thread Nik the Greek
On 30 Αύγ, 06:12, MRAB 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 does executed bec

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, MRAB wrote: On 30/08/2010 03:07, Nik the Greek wrote: On 30 Αύγ, 04:51, MRABwrote: On 30/08/2010 02:14, Νίκος wrote: On 29 Αύγ, 21:44, MRAB wrote: On 29/08/2010 06:34, Νίκος wrote: On 28 Αύγ, 23:15, MRAB

Re: Problem checking an existing browser cookie

2010-08-29 Thread Nik the Greek
On 30 Αύγ, 05:43, MRAB wrote: > On 30/08/2010 03:07, Nik the Greek wrote: > > > > > > > > > > > On 30 Αύγ, 04:51, MRAB  wrote: > >> On 30/08/2010 02:14, Νίκος wrote: > > >>> On 29 Αύγ, 21:44, MRAB    wrote: > On 29/08/2010 06:34, Νίκος wrote: > > > On 28 Αύγ, 23:15, MRAB      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, MRAB wrote: On 30/08/2010 02:14, Νίκος wrote: On 29 Αύγ, 21:44, MRABwrote: On 29/08/2010 06:34, Νίκος wrote: On 28 Αύγ, 23:15, MRAB wrote: On 28/08/2010 20:37, Íßêïò wrote: On 22 Áýã, 10:27, Íßêïòwrote: On 1

Re: Problem checking an existing browser cookie

2010-08-29 Thread Nik the Greek
On 30 Αύγ, 04:51, MRAB wrote: > On 30/08/2010 02:14, Νίκος wrote: > > > > > > > > > > > On 29 Αύγ, 21:44, MRAB  wrote: > >> On 29/08/2010 06:34, Νίκος wrote: > > >>> On 28 Αύγ, 23:15, MRAB    wrote: > On 28/08/2010 20:37, Íßêïò wrote: > > > On 22 Áýã, 10:27, Íßêïò      wrote: > >> On

Re: Problem checking an existing browser cookie

2010-08-29 Thread MRAB
On 30/08/2010 02:14, Νίκος wrote: On 29 Αύγ, 21:44, MRAB wrote: On 29/08/2010 06:34, Νίκος wrote: On 28 Αύγ, 23:15, MRABwrote: On 28/08/2010 20:37, Íßêïò wrote: On 22 Áýã, 10:27, Íßêïò wrote: On 16 Áýã, 14:31, Peter Otten<__pete...@web.de> wrote: Íßêïò wrote: # in

Re: Problem checking an existing browser cookie

2010-08-29 Thread Νίκος
On 29 Αύγ, 21:44, MRAB wrote: > On 29/08/2010 06:34, Νίκος wrote: > > > > > > > > > On 28 Αύγ, 23:15, MRAB  wrote: > >> On 28/08/2010 20:37, Íßêïò wrote: > > >>> On 22 Áýã, 10:27, Íßêïò    wrote: > On 16 Áýã, 14:31, Peter Otten<__pete...@web.de>    wrote: > > > Íßêïò wrote: > >> # ini

Re: Problem checking an existing browser cookie

2010-08-29 Thread MRAB
On 29/08/2010 06:34, Νίκος wrote: On 28 Αύγ, 23:15, MRAB wrote: On 28/08/2010 20:37, Íßêïò wrote: On 22 Áýã, 10:27, Íßêïòwrote: On 16 Áýã, 14:31, Peter Otten<__pete...@web.de>wrote: Íßêïò wrote: # initializecookie cookie=Cookie.SimpleCookie() cookie.load( os.environ.get('

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, Νίκος wrote: > >> On 16 Αύγ, 14:31, Peter Otten <__pete...@web.de> wrote: > >> > Νίκος wrote: > >> > > # initializecookie > >> > >cookie=Cookie.SimpleCookie() > >> > >cookie.load( os.environ.get('HTTP_COOK

Re: Problem checking an existing browser cookie

2010-08-28 Thread Νίκος
On 28 Αύγ, 23:15, MRAB wrote: > On 28/08/2010 20:37, Íßêïò wrote: > > > > > > > > > > > On 22 Áýã, 10:27, Íßêïò  wrote: > >> On 16 Áýã, 14:31, Peter Otten<__pete...@web.de>  wrote: > > >>> Íßêïò wrote: > # initializecookie > cookie=Cookie.SimpleCookie() > cookie.load( os.environ.get

Re: Problem checking an existing browser cookie

2010-08-28 Thread MRAB
On 28/08/2010 20:37, Νίκος wrote: On 22 Αύγ, 10:27, Νίκος 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, Νίκος 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 ( myc

Re: Problem checking an existing browser cookie

2010-08-28 Thread Νίκος
On 22 Αύγ, 10:27, Νίκος 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 a

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| > > yandex

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... > =

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 a