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|13448|spider|crawl)', host ) is None:
> >     blabla...
> > ========================
>
> > I checked and Chrome has acookienames visitor with a value ofnikos
> > within.
> > So, i have to ask why the if fails?
>
> Maybe it's because != != ==

Iwant ti if code block to be executed only if the browser cookie names
visitor fetched doesnt cotnain the vbalue of 'nikos'

Is there somethign wrong with the way i wrote it?
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to