[Zope] Session

Anderson Ami anderson@websolucoes.com.br
Tue, 16 Jan 2001 18:28:26 -0200


I think there is another bug, when a call the help a get teh follow error :
Attribute error.
Where I get a full documentation about this product ? I need know the
Session Manage methods and variables.

Thanks again

-----Original Message-----
From: Chris McDonough [mailto:chrism@digicool.com]
Sent: terça-feira, 16 de janeiro de 2001 16:46
To: Anderson Ami; Chris Withers; peter bengtson
Cc: zope@zope.org
Subject: Re: [Zope] Session


I just posted a new release (.06) that fixes the problem at
http://www.zope.org/Members/mcdonc/Products/CoreSessionTracking

----- Original Message -----
From: "Anderson Ami" <anderson@websolucoes.com.br>
To: "Chris McDonough" <chrism@digicool.com>; "Chris Withers"
<chrisw@nipltd.com>; "peter bengtson" <peter@grenna.net>
Cc: <zope@zope.org>
Sent: Tuesday, January 16, 2001 1:16 PM
Subject: RE: [Zope] Session


Thanks a lot.
Is there another way for save and retrive session variables ?


-----Original Message-----
From: Chris McDonough [mailto:chrism@digicool.com]
Sent: terça-feira, 16 de janeiro de 2001 15:59
To: Anderson Ami; Chris Withers; peter bengtson
Cc: zope@zope.org
Subject: Re: [Zope] Session


Damn.  I see what you're talking about.  I was relying on features of 2.3
that aren't in 2.2.X.  I'm going to make another release to fix the problem,
and I'll post it when done.  Sorry about that.

----- Original Message -----
From: "Anderson Ami" <anderson@websolucoes.com.br>
To: "Chris McDonough" <chrism@digicool.com>; "Chris Withers"
<chrisw@nipltd.com>; "peter bengtson" <peter@grenna.net>
Cc: <zope@zope.org>
Sent: Tuesday, January 16, 2001 12:14 PM
Subject: RE: [Zope] Session


It happens before I hit ok on the constructor form.
My plataform is :

Zope version: Zope 2.2.5 (binary release, python 1.5.2, win32-x86)
Python version: 1.5.2 (#0, Jul 30 1999, 09:52:18) [MSC 32 bit (Intel)]
System Platform: win32
Process ID: 336 (349)
Running for: 35 sec

Thanks again by your advice

-----Original Message-----
From: Chris McDonough [mailto:chrism@digicool.com]
Sent: terça-feira, 16 de janeiro de 2001 15:27
To: Anderson Ami; Chris Withers; peter bengtson
Cc: zope@zope.org
Subject: Re: [Zope] Session


Hmm.  I haven't had any other bugreports, and there's nothing special about
it under Windows (it was partially developed on Windows).  Are you saying
that when you try to create a Session Data Manager that it complains about
"resource not found" *before* you hit "OK" on the constructor form or
*after* you hit "OK" on the constructor form?  Or does the error happen at
another point?

What version of Zope are you using?

----- Original Message -----
From: "Anderson Ami" <anderson@websolucoes.com.br>
To: "Chris McDonough" <chrism@digicool.com>; "Chris Withers"
<chrisw@nipltd.com>; "peter bengtson" <peter@grenna.net>
Cc: <zope@zope.org>
Sent: Tuesday, January 16, 2001 11:59 AM
Subject: RE: [Zope] Session


I installed the latest core session tracking version, but when I create a
new Session Manage occurrs the error : Resource not found
My zope is in windows nt, Is there any trick on install it ?

thanks
anderson

-----Original Message-----
From: Chris McDonough [mailto:chrism@digicool.com]
Sent: terça-feira, 16 de janeiro de 2001 13:08
To: Anderson Ami; Chris Withers; peter bengtson
Cc: zope@zope.org
Subject: Re: [Zope] Session


Download and install the latest core session tracking (0.5) which allows you
to use the mapping keyword.

- OR -

Doc 1

<dtml-with "Session.getSessionData()"
  <dtml-call "set('NAME', 'VALUE'">
</dtml-with>

Doc 2

<dtml-with "Session.getSessionData()">
    <dtml-var "get('NAME')">
</dtml-with>

Also, please consult the docs, they're very complete.

----- Original Message -----
From: "Anderson Ami" <anderson@websolucoes.com.br>
To: "Chris McDonough" <chrism@digicool.com>; "Chris Withers"
<chrisw@nipltd.com>; "peter bengtson" <peter@grenna.net>
Cc: <zope@zope.org>
Sent: Tuesday, January 16, 2001 9:19 AM
Subject: RE: [Zope] Session


It doesn´t work, The zope gives me : Error Type: AttributeError Error Value:
__getitem__.

Thanks a lot
anderson

-----Original Message-----
From: Chris McDonough [mailto:chrism@digicool.com]
Sent: terça-feira, 16 de janeiro de 2001 12:31
To: Anderson Ami; Chris Withers; peter bengtson
Cc: zope@zope.org
Subject: Re: [Zope] Session


Anderson,

If you're using core session tracking, it doesn't work like FSSession or
SQLSession.  Instead, you'd want to use:

Doc 1

<dtml-with "Session.getSessionData()"
  <dtml-call "set('NAME', 'VALUE'">
</dtml-with>

Doc 2

<dtml-with "Session.getSessionData()" mapping>
    <dtml-var NAME>
</dtml-with>

----- Original Message -----
From: "Anderson Ami" <anderson@websolucoes.com.br>
To: "Chris McDonough" <chrism@digicool.com>; "Chris Withers"
<chrisw@nipltd.com>; "peter bengtson" <peter@grenna.net>
Cc: <zope@zope.org>
Sent: Tuesday, January 16, 2001 8:52 AM
Subject: RE: [Zope] Session


I did this :

- I created a Session Manager called Session
- In my index_html I wrote : <dtml-call Session.set('NAME','VALUE')>
- In other dtml document called document2 I wrote : <dtml-var NAME>

Why does´t it work ?
when I call document2 the zope generates a error.


-----Original Message-----
From: Chris McDonough [mailto:chrism@digicool.com]
Sent: terça-feira, 16 de janeiro de 2001 12:03
To: Chris Withers; peter bengtson
Cc: Anderson Ami; zope@zope.org
Subject: Re: [Zope] Session


It won't be in 2.3 (just couldn't get it in), and the current iteration is a
development release, but it will hopefully be in 2.4.

----- Original Message -----
From: "Chris Withers" <chrisw@nipltd.com>
To: "peter bengtson" <peter@grenna.net>
Cc: "Anderson Ami" <anderson@websolucoes.com.br>; <zope@zope.org>
Sent: Tuesday, January 16, 2001 7:07 AM
Subject: Re: [Zope] Session


> > I´m using the Happy Session, but I heardy bad things about this product,
> > Which one do you think is better ?
> >
> > Thanks a lot
> > Anderson

Anderson,

Why not try Zope's own session product:
http://www.zope.org/Members/mcdonc/Products/CoreSessionTracking

this will be in the Zope core from 2.3 onwards but is available for
download now.
It has great docs, so make sure you read them before posting here ;-)

cheers,

Chris

_______________________________________________
Zope maillist  -  Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )






_______________________________________________
Zope maillist  -  Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )



_______________________________________________
Zope maillist  -  Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )