[Zope] Session question

2010-10-04 Thread Allen Schmidt Sr
  Zope 2.8.9.1 on Linux with ZEO

One admin client on box1
One search client on box1
Three public clients on box2
ZEO server and storage on box3

We have sessioning set up as own storage FS in ZEO.

Often, when referencing a session object, we get a key error that the 
session object does not exist.
Most of the time, just a refresh or two will fix it but not the ideal case.

When I pack the session fs, even if I go to zero days, it only shrinks 
down to about 220meg when it used to be about 32K (if I remember 
correctly) after a zero days pack. Like a clean slate. The session.zec 
file stays about 20meg.

Just curious how this all works and trying to pinpoint the problem. Have 
tried deleting the zec files from all clients, packing the session.fs 
file and flushing the cache and restarting all 5 clients only to have it 
back to 220meg and the same 20meg zec file.

Not sure where to look next.

Thanks
-Allen



On 10/4/2010 3:57 PM, larrymcdonn...@att.net wrote:
 Hi,

 I need the old timers to help with a zope dtml-try/dtml-except conditions. I 
 am using Zope 2.6.1. My problem is as follows:

 dtml-if expr=fluency_temp''
   fluency -dtml-var fluency_temp**

   dtml-call REQUEST.set('fluency_test', fluency_temp)

   dtml-call string_to_int(fluency_test ,REQUEST)
   dtml-try

   dtml-call REQUEST.set('fluency', y)

   dtml-except ValueError

   dtml-call REQUEST.set('name_error', 'error')

   dtml-if expr=name_error=='error'

   Invalid Number entered
   a href=../prek_4_dra_scoring_system/display_student 
   Click here to go back/a

   dtml-else

   dtml-call REQUEST.set('student_full_name', 
 student_full_name)
   dtml-call REQUEST.set('dra', dra_temp)
   dtml-call REQUEST.set('date_scored', ZopeTime())
   dtml-call REQUEST.set('fluency', fluency)

   dtml-call expr=update_dra_edl_score_1_4_record_eng(REQUEST)

   /dtml-if
   /dtml-try

 /dtml-if
 /dtml-in
 /dtml-if

 I will see an error if I enter a letter and not a number -

 Exception Type ValueError
 Exception Value invalid literal for int(): a

 I have trapped for errors like this before using this method but no luck this 
 time.

 Thanks in advance,

 Larry McDonnell

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


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


[Zope] Session bugs around CAS4PAS integration in Plone

2009-12-18 Thread Encolpe Degoute
Hello,

These last months we have a random bug around CAS authentication.

Preamble:
CAS plugins are multiple but all are based on CAS4PAS :
 - CAS4PAS
 - Products.CAS4PAS
 - collective.castle
 - collective.cas4plone

They all doing more or less the same job with different maintainers...
They are all in the collective but outside
http://svn.plone.org/svn/collective/PASPlugins/

Guys, can we try to work together ?
If you only need rights to upload a release on pypi just ask them, don't
start a fork.


Our problem is user can obtain another session opened with CAS when the
server is overloaded. It happens only one the first page loaded for a
session and once the user get the session he keeps it  until is logout.

There is no web cache and Zope serve pages directly to them.
There is 4 threads and 5000 objects in session cache.

We suspect a session cache bug but we don't know how to debug it as the
bug comes randomly when the server is overloaded (more than 5 concurrent
users).

Any tips to build a test environment for this ?

Regards,
-- 
int i;main(){for(;i[]i;++i){--i;}];read('-'-'-',i+++hell\
o, world!\\n,'/'/'/'));}read(j,i,p){write(j/p+p,i---j,i/i);}
-+- Dishonorable mention, Obfuscated C Code Contest, 1984
Author requested anonymity -+-

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


Re: [Zope] Session bugs around CAS4PAS integration in Plone

2009-12-18 Thread David Bear
since this presents 2 questions -- I would like to ask more about the first
--

of all the CAS pluggins for zope and plone -- which one works best;-)
Actually, since we serve content both directly from Zope AND from plone, I
need one that works with 'both'... in other words, I need something that
works for zope authentication -- as well as plone. Any pointers on which
'single' prooduct package will allow that?

On Fri, Dec 18, 2009 at 7:28 AM, Encolpe Degoute 
encolpe.dego...@quadra-informatique.fr wrote:

 Hello,

 These last months we have a random bug around CAS authentication.

 Preamble:
 CAS plugins are multiple but all are based on CAS4PAS :
  - CAS4PAS
  - Products.CAS4PAS
  - collective.castle
  - collective.cas4plone

 They all doing more or less the same job with different maintainers...
 They are all in the collective but outside
 http://svn.plone.org/svn/collective/PASPlugins/

 Guys, can we try to work together ?
 If you only need rights to upload a release on pypi just ask them, don't
 start a fork.


 Our problem is user can obtain another session opened with CAS when the
 server is overloaded. It happens only one the first page loaded for a
 session and once the user get the session he keeps it  until is logout.

 There is no web cache and Zope serve pages directly to them.
 There is 4 threads and 5000 objects in session cache.

 We suspect a session cache bug but we don't know how to debug it as the
 bug comes randomly when the server is overloaded (more than 5 concurrent
 users).

 Any tips to build a test environment for this ?

 Regards,
 --
 int i;main(){for(;i[]i;++i){--i;}];read('-'-'-',i+++hell\
 o, world!\\n,'/'/'/'));}read(j,i,p){write(j/p+p,i---j,i/i);}
-+- Dishonorable mention, Obfuscated C Code Contest, 1984
Author requested anonymity -+-

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




-- 
David Bear
College of Public Programs at ASU
602-494-0424
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Session bugs around CAS4PAS integration in Plone

2009-12-18 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Encolpe Degoute wrote:

snip

 Our problem is user can obtain another session opened with CAS when the
 server is overloaded. It happens only one the first page loaded for a
 session and once the user get the session he keeps it  until is logout.
 
 There is no web cache and Zope serve pages directly to them.
 There is 4 threads and 5000 objects in session cache.
 
 We suspect a session cache bug but we don't know how to debug it as the
 bug comes randomly when the server is overloaded (more than 5 concurrent
 users).
 
 Any tips to build a test environment for this ?

I don't know anything about the guts of CAS4PAS.  If you think this is a
bug in the sessioning machinery itself, you might try swapping out an
alternate session data manager, e.g. 'faster':

 http://agendaless.com/Members/tseaver/software/faster/

If that makes the problem go away, thenn you could work on trying to
reproduce the problem in isolation.  If not, then the bug is in the
CAS4PAS code itself.


Tres.
- --
===
Tres Seaver  +1 540-429-0999  tsea...@palladion.com
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAksrvKgACgkQ+gerLs4ltQ5liQCfRO+dj4kxeNquU1KjkcWdXFSH
qnwAoMqEwslXlOtNx1ovzb40TiTcEPSA
=Gvbl
-END PGP SIGNATURE-

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


Re: [Zope] Session bugs around CAS4PAS integration in Plone

2009-12-18 Thread Encolpe Degoute
David Bear a écrit :
 since this presents 2 questions -- I would like to ask more about the
 first --
 
 of all the CAS pluggins for zope and plone -- which one works best;-)
 Actually, since we serve content both directly from Zope AND from plone,
 I need one that works with 'both'... in other words, I need something
 that works for zope authentication -- as well as plone. Any pointers on
 which 'single' prooduct package will allow that?

Products.CAS4PAS (buildout) and CAS4PAS (old Zope 2 projects) are
working for CAS2.

Others products are spinoff from them and I don't know which bug they fix.

Regards,
-- 
Encolpe DEGOUTE
http://encolpe.degoute.free.fr/
Logiciels libres, hockey sur glace et autres activités cérébrales

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


[Zope] session data object question

2009-03-11 Thread Dvir Bar-lev
Hi 

 

I was wondering if there is a way to connect the creation of a session
object to a button push.

I'll explain in more detail:

 

I have a log in from called login_form, and I have a dtml method called
looged_in that is called when we push the submit button in the log in
form.

What I did is the following, in the log_in_form I get a session data
object only if it exsists and I check how much time passed and act
accordingly, in the looged_in method I create the data session oblject
ans set the start time.

Unfortuantly that is not good for me because if a user refreshes the
page it resets the time in the session object, I was wondering if there
is a way for me to know if I can reset the session data time only when
the user clicks the submit button and not as a result of a refresh call.

 

I tried looking on the web and in the zope book but I couldn't find
anything.

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


Re: [Zope] session data object question

2009-03-11 Thread Andrew Milton
+---[ Dvir Bar-lev ]--
| Hi
| 
|  
| 
| I was wondering if there is a way to connect the creation of a session object
| to a button push.
| 
| I?ll explain in more detail:
| 
|  
| 
| I have a log in from called login_form, and I have a dtml method called
| looged_in that is called when we push the submit button in the log in form.
| 
| What I did is the following, in the log_in_form I get a session data object
| only if it exsists and I check how much time passed and act accordingly, in 
the
| looged_in method I create the data session oblject ans set the start time.
| 
| Unfortuantly that is not good for me because if a user refreshes the page it
| resets the time in the session object, I was wondering if there is a way for 
me
| to know if I can reset the session data time only when the user clicks the
| submit button and not as a result of a refresh call.

Name the submit button and check for the name of the button in the request.

input type=submit name=theButton value=Press Me

theButton will appear in REQUEST (and REQUEST.form) if the button was
pressed.


-- 
Andrew Milton
a...@theinternet.com.au
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] session data object question

2009-03-11 Thread Dvir Bar-lev
Hi

I have a button like that but the the problem is that it also has this
value if I refresh the page, what I mean Is this, I put in the logged_in
page:

dtml-if Request.has_key('theButton')
Do something
/dtml-if

And it has the key even if I refresh the page.

I also tried to put dtm-var theButton to see if it keeps this value
after we refresh the page and it does.
What I need is a way to know if we loaded the page as a result of
pressing the button or as a result of refreshing the page, as I need to
do different things in each case.

-Original Message-
From: Andrew Milton [mailto:a...@theinternet.com.au] 
Sent: Wednesday, March 11, 2009 10:15 AM
To: Dvir Bar-lev
Cc: zope@zope.org
Subject: Re: [Zope] session data object question

+---[ Dvir Bar-lev ]--
| Hi
| 
|  
| 
| I was wondering if there is a way to connect the creation of a session
object
| to a button push.
| 
| I?ll explain in more detail:
| 
|  
| 
| I have a log in from called login_form, and I have a dtml method
called
| looged_in that is called when we push the submit button in the log in
form.
| 
| What I did is the following, in the log_in_form I get a session data
object
| only if it exsists and I check how much time passed and act
accordingly, in the
| looged_in method I create the data session oblject ans set the start
time.
| 
| Unfortuantly that is not good for me because if a user refreshes the
page it
| resets the time in the session object, I was wondering if there is a
way for me
| to know if I can reset the session data time only when the user clicks
the
| submit button and not as a result of a refresh call.

Name the submit button and check for the name of the button in the
request.

input type=submit name=theButton value=Press Me

theButton will appear in REQUEST (and REQUEST.form) if the button was
pressed.


-- 
Andrew Milton
a...@theinternet.com.au
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] session data object question

2009-03-11 Thread Dvir Bar-lev
I also tried to change the value of theButton key like so:

dtml-if REQUEST.has_key('submit') 
  dtml-if REQUEST.get('submit') == 'Login'
dtml-call REQUEST.set('submit', 'LoggedIn')
  /dtml-if 
   /dtml-if

But if refresh the button it still thinks it has the value Login instead
of the value LoggedIn :(

-Original Message-
From: zope-boun...@zope.org [mailto:zope-boun...@zope.org] On Behalf Of
Dvir Bar-lev
Sent: Wednesday, March 11, 2009 10:33 AM
To: zope@zope.org
Subject: Re: [Zope] session data object question

Hi

I have a button like that but the the problem is that it also has this
value if I refresh the page, what I mean Is this, I put in the logged_in
page:

dtml-if Request.has_key('theButton')
Do something
/dtml-if

And it has the key even if I refresh the page.

I also tried to put dtm-var theButton to see if it keeps this value
after we refresh the page and it does.
What I need is a way to know if we loaded the page as a result of
pressing the button or as a result of refreshing the page, as I need to
do different things in each case.

-Original Message-
From: Andrew Milton [mailto:a...@theinternet.com.au] 
Sent: Wednesday, March 11, 2009 10:15 AM
To: Dvir Bar-lev
Cc: zope@zope.org
Subject: Re: [Zope] session data object question

+---[ Dvir Bar-lev ]--
| Hi
| 
|  
| 
| I was wondering if there is a way to connect the creation of a session
object
| to a button push.
| 
| I?ll explain in more detail:
| 
|  
| 
| I have a log in from called login_form, and I have a dtml method
called
| looged_in that is called when we push the submit button in the log in
form.
| 
| What I did is the following, in the log_in_form I get a session data
object
| only if it exsists and I check how much time passed and act
accordingly, in the
| looged_in method I create the data session oblject ans set the start
time.
| 
| Unfortuantly that is not good for me because if a user refreshes the
page it
| resets the time in the session object, I was wondering if there is a
way for me
| to know if I can reset the session data time only when the user clicks
the
| submit button and not as a result of a refresh call.

Name the submit button and check for the name of the button in the
request.

input type=submit name=theButton value=Press Me

theButton will appear in REQUEST (and REQUEST.form) if the button was
pressed.


-- 
Andrew Milton
a...@theinternet.com.au
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] session data object question

2009-03-11 Thread Andrew Milton
+---[ Dvir Bar-lev ]--
| Hi
| 
| I have a button like that but the the problem is that it also has this
| value if I refresh the page, what I mean Is this, I put in the logged_in
| page:

That is highly unlikely, unless you are refreshing AFTER you submit the
form, in which case you are essentially re-submitting the form.

I would suggest setting a cookie with a timestamp.

-- 
Andrew Milton
a...@theinternet.com.au
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] session data object question

2009-03-11 Thread Dvir Bar-lev
Yep I refresh after, I'll try to work with cookies than, tx

-Original Message-
From: Andrew Milton [mailto:a...@theinternet.com.au] 
Sent: Wednesday, March 11, 2009 11:13 AM
To: Dvir Bar-lev
Cc: zope@zope.org
Subject: Re: [Zope] session data object question

+---[ Dvir Bar-lev ]--
| Hi
| 
| I have a button like that but the the problem is that it also has this
| value if I refresh the page, what I mean Is this, I put in the
logged_in
| page:

That is highly unlikely, unless you are refreshing AFTER you submit the
form, in which case you are essentially re-submitting the form.

I would suggest setting a cookie with a timestamp.

-- 
Andrew Milton
a...@theinternet.com.au
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] session data object question

2009-03-11 Thread Lennart Regebro
On Wed, Mar 11, 2009 at 09:32, Dvir Bar-lev dvi...@puresight.com wrote:
 What I need is a way to know if we loaded the page as a result of
 pressing the button or as a result of refreshing the page, as I need to
 do different things in each case.

There is no difference between a refresh and a normal page load.

-- 
Lennart Regebro: Pythonista, Barista, Notsotrista.
http://regebro.wordpress.com/
+33 661 58 14 64
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] session data object question

2009-03-11 Thread Andrew Milton
+---[ Lennart Regebro ]--
| On Wed, Mar 11, 2009 at 09:32, Dvir Bar-lev dvi...@puresight.com wrote:
|  What I need is a way to know if we loaded the page as a result of
|  pressing the button or as a result of refreshing the page, as I need to
|  do different things in each case.
| 
| There is no difference between a refresh and a normal page load.

Unless you refresh after the form submit :-)

Of course if the broken design posted to a handler script instead of to
itself, a lot of problems could be side-stepped :-)

-- 
Andrew Milton
a...@theinternet.com.au
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] session

2007-02-13 Thread javi lopez

i did a plugin for authenticated and extractCredentials, but it don´t
save session so it is how if user isn´t validate.
Can i save session for user authenticated?
Thanks for your help!!!
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] session

2007-02-13 Thread Maciej Wisniowski

 i did a plugin for authenticated and extractCredentials, but it don´t
 save session so it is how if user isn´t validate.
 Can i save session for user authenticated?
What do you mean by 'save session'?

-- 
Maciej Wisniowski

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


Re: [Zope] session

2007-02-13 Thread javi lopez

2007/2/13, Maciej Wisniowski [EMAIL PROTECTED]:


 i did a plugin for authenticated and extractCredentials, but it don´t
 save session so it is how if user isn´t validate.
 Can i save session for user authenticated?
What do you mean by 'save session'?

--
Maciej Wisniowski



Sorry my english, I am spanish boy
When i put a user and password in login form, my user become Member,
but when my user want to go somewhere in portal, user session
dissapear and I go like Anonymous user.
Can i fixed that??
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] session

2007-02-13 Thread Maciej Wisniowski

 Sorry my english, I am spanish boy
 When i put a user and password in login form, my user become Member,
 but when my user want to go somewhere in portal, user session
 dissapear and I go like Anonymous user.
 Can i fixed that??
Maybe store credentials in session object or in cookies?

-- 
Maciej Wisniowski

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


Re: [Zope] session

2007-02-13 Thread Maciej Wisniowski

 In session object, but i don´t know how to do it.
 Can you help me please
Please stay on list.

Something like:

session = self.REQUEST.SESSION
session.set('_key', credentials)

to retrieve data:

creds = session.get('_key', None)

So after proper authentication you may store object with
user name etc. in session and later just check if it is there.
If so, then user is authenticated...
In general this is how CAS4PAS plugin works.

-- 
Maciej Wisniowski

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


Re: [Zope] session

2007-02-13 Thread javi lopez

i did it, but it don´t work,

def extractCredentials(self, request):
creds = {}
   login = request.get('__ac_name', '')

   if login:
   # Look in the request for the names coming from the login form
   login = request.get('__ac_name', '')
   password = request.get('__ac_password', '')

   if login:
   creds['login'] = login
   creds['password'] = password

   if creds:
   creds['remote_host'] = request.get('REMOTE_HOST', '')

   try:
   creds['remote_address'] = request.getClientAddr()
   except AttributeError:
   creds['remote_address'] = request.get('REMOTE_ADDR', '')

   session = self.REQUEST.SESSION
   session.set('_key', credentials)
   creds = session.get('_key', None)
   if creds is not None:
   return  creds

   return None

can you help me?? Thanks
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] session

2007-02-13 Thread Maciej Wisniowski

 i did it, but it don´t work,
Because this code has no sense this way.
You're just storing and retrieving data from session.
What do you suppose this will do...

Try something like:

def extractCredentials(self, request):
creds = {} 
   
session = self.REQUEST.SESSION
creds = session.get('_key', None)

if creds:
return creds

login = request.get('__ac_name', '')
if login:
   # Look in the request for the names coming from the login form
   login = request.get('__ac_name', '')
   password = request.get('__ac_password', '')
   if login:
   creds['login'] = login
   creds['password'] = password
   if creds:
   creds['remote_host'] = request.get('REMOTE_HOST', '')
   try:
   creds['remote_address'] = request.getClientAddr()
   except AttributeError:
   creds['remote_address'] = request.get('REMOTE_ADDR', '')
   session.set('_key', creds)
   return  creds
   return None

You should use protected class (like in CAS4PAS) to store credentials
in session. Also you should think how it is supposed to work and what
should be done in extractCredentials and what in authenticateCredentials
functions, etc.

So far this code checks if there is object in session and if so then it
extracts
credentials from this object, if no, then it tries to extract credentials
from request.
You should now validate these credentials with something (eg. RDBMS),
possibly in authenticateCredentials function.

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


Re: [Zope] session

2007-02-13 Thread Maciej Wisniowski

 this is my plugin. i want to authenticatedCredentials take credentials
 and validate these credentials if user exists in acl_users .
 ExtractCredentials take login and password from Form and it send that
 information to authenticatedCredentials, so i start like a Member.
 Now, it don´t work fine. I want to sustitute methods
 extractCredentials from  credentials_cookie_auth and
 authentificatedCredentials from source_users.
 i don´t know what to do in this sense

OK, this is more sensible now, but why do you need your own
plugin for this? Standard CookieAuthHelper and ZODBUserManager
plugins are not enough for your use case?


Seems that your problem (that you start like a Member
but after clicking somewhere else you're unauthenticated) is
because of code in extract credentials.
What happens there? Credentials are extracted from request.
So, if you have __ac_name  and __ac_password in the request you're
authentictated. When you're visiting another url, there is no __ac_name
and __ac_password in request anymore, so you become unauthenticated.
Right? So you have to store somewhere information about sucessful login.
Solution might be the code I've sent you in previous mail.
After authentication with __ac_name and __ac_password from
the request it stores data in session. Then, on another pages
session is checked for credentials and... you should be still
authenticated. Another solution is to just use CookieAuthHelper
which stores data in cookies.

This is first part. You have credentials. Second thing is to
compare them with users stored in ZODB (that what ZODBUserManager
is doing...)

-- 
Maciej Wisniowski


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


Re: [Zope] session

2007-02-13 Thread Maciej Wisniowski
javi, please, STAY on the mailing list!

 i put this in a new extractCredentials but it don´t work:
Again... what 'don't work' means? Raises exception?

Have you tried to debug your code? Maybe try to use pdb?
AFAIR there is a nice tutorial about using pdb with plone.
I think this should help you a lot in understanding what
happens in PAS and your plugin.

And one more thing. I'm not aware of plone issues here
so there may be something different because of this.

-- 
Maciej Wisniowski


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


Re: [Zope] session-timeout-minutes value in runtime Zope

2007-02-02 Thread yacine chaouche

I don't know if this is what you want. If you want to have access, in
your code, to the session-timeout-minutes variable, you can try this
methode on your session_data_manager object :

getTimeoutMinutes(self):

Return the number of minutes allowed for subobject inactivity before
expiration. PermissionView management screens

This is from the api documentation of TransientContainer class, found
in the help link in the ZMI of temp_folder/session_data_manager.

In your code, you can use something like :
tal code
you'll be
securely logged in for another span tal:replace=python
context.temp_folder.session_data_manager.getTimeoutMinutes() /span
minutes unless you log out or log in
again.
/tal

Y.Chaouche

2007/1/23, Dieter Maurer [EMAIL PROTECTED]:

Peter Bengtsson wrote at 2007-1-23 13:44 +:
This might be an FAQ but I wasn't able to find it when searching.
How do I get access to the value of 'session-timeout-minutes' coming
from etc/zope.conf in runtime Zope?

The value is used to configure the so called Session Data Manager
(usually /temp_folder/session_data).

Its management page is able to show you the value.

This means, there is some way to access it. You can use this
way in your own application (you might need a proxy role to
get sufficient privileges).



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


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

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] session-timeout-minutes value in runtime Zope

2007-02-02 Thread Peter Bengtsson

Thanks but I solved it using::

 from App.config import getConfiguration
 conf = getConfiguration()
 setattr(MyProductClass, 'SESSION_TIMEOUT_MINUTES',
 conf.session_timeout_minutes)

Now I can use this::

class MyProductClass:
def getLoggedInSecurelyMinutesLeft(self):
 return how many minutes there is left on the securely
logged in session. 
ts = self.get_session(SESSIONKEY_USER_SECURE_TIMESTAMP, None)
if ts is None:
return 0
minutes = self.SESSION_TIMEOUT_MINUTES - (time.time() - ts) / 60
return int(minutes)




yacine chaouche wrote:

I don't know if this is what you want. If you want to have access, in
your code, to the session-timeout-minutes variable, you can try this
methode on your session_data_manager object :

getTimeoutMinutes(self):

Return the number of minutes allowed for subobject inactivity before
expiration. PermissionView management screens

This is from the api documentation of TransientContainer class, found
in the help link in the ZMI of temp_folder/session_data_manager.

In your code, you can use something like :
tal code
you'll be
securely logged in for another span tal:replace=python
context.temp_folder.session_data_manager.getTimeoutMinutes() /span
minutes unless you log out or log in
again.
/tal

Y.Chaouche

2007/1/23, Dieter Maurer [EMAIL PROTECTED]:

Peter Bengtsson wrote at 2007-1-23 13:44 +:
This might be an FAQ but I wasn't able to find it when searching.
How do I get access to the value of 'session-timeout-minutes' coming
from etc/zope.conf in runtime Zope?

The value is used to configure the so called Session Data Manager
(usually /temp_folder/session_data).

Its management page is able to show you the value.

This means, there is some way to access it. You can use this
way in your own application (you might need a proxy role to
get sufficient privileges).



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


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



--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


RE: [Zope] Session Timeout Troubles

2007-01-26 Thread Dieter Maurer
Sale, Robin wrote at 2007-1-25 14:33 -0500:
 
What I'm doing:
Visit a simple HTML page that has a link to a second ... all of which is
contained within a folder that requires authenticated user to view. I go
to server:8080/page_path/page_name and have to log in. I do so, and see
the page. Now, I wait 20,30, 45 minutes, even an hour and click on the
link to server:8080/page_path/page_name2.

Only in special cases is the user identity held in the session.
More often, it is held in a (session) cookie.

Maybe, you are in the situation that the user identity is a cookie
and the session timeout works are expected?



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


[Zope] Session Timeout Troubles

2007-01-25 Thread Sale, Robin
Hi,

We're using Zope 2.8.8 with a bunch of client sites set up in various
sub directories / databases. We're using ZEO for the database storage
and a local zodb file for the temporary data.

I've recently been asked to set the system to user sessions time out
after 15 minutes of activity. I've changed the setting in our zope.conf
file (the session timeout value) and restarted zope. However, if I open
a page on the site that requires logon and log in, then leave the
browser alone for 15 or 20 minutes or even an hour, when I click on a
link, it doesn't force me to re-authenticate... it just works as normal.

I'm hoping someone could tell me if there's other stuff I need to do to
make the session time out and force reauthentication at the server level
(rather than having to add code to every user site, as we have over 500
different ones and I'm not sure there's something common enough for me
to hook into if I have to alter code on the sites themselves to enable
this.

It's okay if I get back a response that it can't be done, but I have to
be able to provide my boss with a difinitive answer.

Thank You,
Robin Sale


=
Robin Sale, Software Engineer
Specialized Technology Resources, Inc.
10 Water Street
Enfield CT 06082-4899 USA
[EMAIL PROTECTED]
ICQ: 190327116 
+1 860 749-8371 Ext. 336 Telephone
+1 860 749-9158 Fax
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Session Timeout Troubles

2007-01-25 Thread Andreas Jung



--On 25. Januar 2007 09:59:44 -0500 Sale, Robin [EMAIL PROTECTED] 
wrote:



Hi,

We're using Zope 2.8.8 with a bunch of client sites set up in various
sub directories / databases. We're using ZEO for the database storage
and a local zodb file for the temporary data.

I've recently been asked to set the system to user sessions time out
after 15 minutes of activity. I've changed the setting in our zope.conf
file (the session timeout value) and restarted zope. However, if I open
a page on the site that requires logon and log in, then leave the
browser alone for 15 or 20 minutes or even an hour, when I click on a
link, it doesn't force me to re-authenticate... it just works as normal.


You can configure the session timeout and the max. number of session 
objects. Perhaps you have more user sessions than configured so some 
sessions might be deleted before the timeout?



Andreas


pgpojYAhuhhIK.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


RE: [Zope] Session Timeout Troubles

2007-01-25 Thread Sale, Robin
 
Andreas, thank you for replying.

Actually, the problem I have is the reverse - the sessions NEVER seem to
time out. I have a directive from up on high to make it so that 15
minutes of inactivity within any location on the site (All of which is
password protected under acl_users or acl_users(group aware) setup.) It
seems like no matter what I do to the session-timeout-minutes value in
zope.conf, as long as the user keeps their browser open, they can
continue to use the site even if they are idle for an hour or more... I
have the session-timeout-minutes set to 15 and have set the
session-resolution-seconds value to 20 seconds as well and restarted
Zope and yet it seems to not make a difference.

Thank you,
Robin

=
Robin Sale, Software Engineer
Specialized Technology Resources, Inc.
10 Water Street
Enfield CT 06082-4899 USA
[EMAIL PROTECTED]


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Andreas Jung
Sent: Thursday, January 25, 2007 10:08 AM
To: Sale, Robin; zope@zope.org
Subject: Re: [Zope] Session Timeout Troubles



--On 25. Januar 2007 09:59:44 -0500 Sale, Robin [EMAIL PROTECTED]

wrote:

 Hi,

 We're using Zope 2.8.8 with a bunch of client sites set up in various
 sub directories / databases. We're using ZEO for the database storage
 and a local zodb file for the temporary data.

 I've recently been asked to set the system to user sessions time out
 after 15 minutes of activity. I've changed the setting in our
zope.conf
 file (the session timeout value) and restarted zope. However, if I
open
 a page on the site that requires logon and log in, then leave the
 browser alone for 15 or 20 minutes or even an hour, when I click on a
 link, it doesn't force me to re-authenticate... it just works as
normal.

You can configure the session timeout and the max. number of session 
objects. Perhaps you have more user sessions than configured so some 
sessions might be deleted before the timeout?


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


Re: [Zope] Session Timeout Troubles

2007-01-25 Thread Dieter Maurer
Sale, Robin wrote at 2007-1-25 09:59 -0500:
 ...
I've recently been asked to set the system to user sessions time out
after 15 minutes of activity. I've changed the setting in our zope.conf
file (the session timeout value) and restarted zope. However, if I open
a page on the site that requires logon and log in, then leave the
browser alone for 15 or 20 minutes or even an hour, when I click on a
link, it doesn't force me to re-authenticate... it just works as normal.

I have never heard of such a behaviour -- and it is almost unbelievable.

In any such case (unbelievable behaviour), I always use a powerfull
tool (the debugger in this case) to shed light into the behaviour.



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


RE: [Zope] Session Timeout Troubles

2007-01-25 Thread Sale, Robin
Dieter,

Thank you for your reply.

Originally was a customer-driven need to have them as long as possible
for some time, but now there is a management need to make sessions as
short as possible to increase security.  My big concern is that my
predecessor may have done some serious deep-down hacking to make
sessions not time out until the browser is closed to stop the whining.
He's not around anymore and I'm not as much of an expert as him.

What I'm doing:
Visit a simple HTML page that has a link to a second ... all of which is
contained within a folder that requires authenticated user to view. I go
to server:8080/page_path/page_name and have to log in. I do so, and see
the page. Now, I wait 20,30, 45 minutes, even an hour and click on the
link to server:8080/page_path/page_name2. What I WANT to happen is to be
forced to provide my credentials if it's been sitting longer than 15
minutes. What IS happening is that I simply get the page. The zope.conf
is set with a session-timeout-minutes 15.

I've looked at the debugging page in the control panel, but it doesn't
tell me anything I recognize as useful.


=
Robin Sale, Software Engineer
Specialized Technology Resources, Inc.
10 Water Street
Enfield CT 06082-4899 USA
[EMAIL PROTECTED]


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Dieter Maurer
Sent: Thursday, January 25, 2007 1:28 PM
To: Sale, Robin
Cc: zope@zope.org
Subject: Re: [Zope] Session Timeout Troubles

Sale, Robin wrote at 2007-1-25 09:59 -0500:
 ...
I've recently been asked to set the system to user sessions time out
after 15 minutes of activity. I've changed the setting in our zope.conf
file (the session timeout value) and restarted zope. However, if I open
a page on the site that requires logon and log in, then leave the
browser alone for 15 or 20 minutes or even an hour, when I click on a
link, it doesn't force me to re-authenticate... it just works as
normal.

I have never heard of such a behaviour -- and it is almost unbelievable.

In any such case (unbelievable behaviour), I always use a powerfull
tool (the debugger in this case) to shed light into the behaviour.



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


Re: [Zope] Session Timeout Troubles

2007-01-25 Thread Maciej Wisniowski
 I've looked at the debugging page in the control panel, but it doesn't
 tell me anything I recognize as useful.
Are you sure that your authentication uses session? Maybe it uses
cookies? Try to set variable in the session on one page and display this
on the other one. Then wait for 15-20 minutes and see what happens.

Another thing that may cause this is session-resolution-seconds setting
in your zope.conf - this affect session timeout value.

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


RE: [Zope] Session Timeout Troubles

2007-01-25 Thread Sale, Robin
 
Thank you for your reply.

I'm guessing that yes, Zope is using session cookies in this setup.
Unfortunately, the people who did the original configuration and setup
are no longer with my company, so I can't ask directly. How would I be
able to tell if it's set one way or another? I certainly see nothing
about cookie auth in the zope.conf file. (I'm hitting the Zope server
directly (not going through our Apache front-end) to make sure I'm only
dealing with a Zope issue.

Thanks Again,
Robin


=
Robin Sale, Software Engineer
Specialized Technology Resources, Inc.
10 Water Street
Enfield CT 06082-4899 USA
[EMAIL PROTECTED]

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Maciej Wisniowski
Sent: Thursday, January 25, 2007 3:22 PM
To: Sale, Robin
Cc: zope@zope.org
Subject: Re: [Zope] Session Timeout Troubles

 I've looked at the debugging page in the control panel, but it doesn't
 tell me anything I recognize as useful.
Are you sure that your authentication uses session? Maybe it uses
cookies? Try to set variable in the session on one page and display this
on the other one. Then wait for 15-20 minutes and see what happens.

Another thing that may cause this is session-resolution-seconds setting
in your zope.conf - this affect session timeout value.

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


Re: [Zope] Session Timeout Troubles

2007-01-25 Thread Maciej Wisniowski
 I'm guessing that yes, Zope is using session cookies in this setup.
 Unfortunately, the people who did the original configuration and setup
 are no longer with my company, so I can't ask directly. How would I be
 able to tell if it's set one way or another? I certainly see nothing
 about cookie auth in the zope.conf file. 
This is done by your acl_users. I don't know what kind of User folder
you're using. You may see this by going to acl_users folder in ZMI and
on the top you should see something like:
'Pluggable User Folder at /path/to/acl_users'

where 'pluggable user folder' is name of your acl_users product.

Depending of what UserFolder (acl_users) you use it may be (or may not
be) possible to configure it to not to use cookies.

Another solution might be to use session hooks (script that is called
when user session expires) to logout the user or you may use different
UserFolder, eg. PAS.

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


[Zope] session-timeout-minutes value in runtime Zope

2007-01-23 Thread Peter Bengtsson

This might be an FAQ but I wasn't able to find it when searching.
How do I get access to the value of 'session-timeout-minutes' coming 
from etc/zope.conf in runtime Zope?


My app knows when people log in. I want the app to say You'll be 
securely logged in for another 25 minutes unless you log out or log in 
again.


--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] session-timeout-minutes value in runtime Zope

2007-01-23 Thread Martijn Pieters

On 1/23/07, Peter Bengtsson [EMAIL PROTECTED] wrote:

This might be an FAQ but I wasn't able to find it when searching.
How do I get access to the value of 'session-timeout-minutes' coming
from etc/zope.conf in runtime Zope?


The trail to figure this out:

- ZCML directives for zope.conf are defined in
Zope2/Startup/zopeschema.xml. It defines a 'session_timeout_minutes'
handler.

- Handlers are defined in Zope2/Startup/handlers.py;
session_timeout_minutes sets the defined value as a environment
variable: ZSESSION_TIMEOUT_MINS

Presumably you can read out this var from os.environ for your own
purposes; note however that I have found no mention of the ZSESSION_
variables outside of handlers.py, they appear to be otherwise unused.

--
Martijn Pieters
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] session-timeout-minutes value in runtime Zope

2007-01-23 Thread Peter Bengtsson



Martijn Pieters wrote:

On 1/23/07, Peter Bengtsson [EMAIL PROTECTED] wrote:

This might be an FAQ but I wasn't able to find it when searching.
How do I get access to the value of 'session-timeout-minutes' coming
from etc/zope.conf in runtime Zope?






- Handlers are defined in Zope2/Startup/handlers.py;
session_timeout_minutes sets the defined value as a environment
variable: ZSESSION_TIMEOUT_MINS

Great. I'll try that.
Thanks!

--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] session-timeout-minutes value in runtime Zope

2007-01-23 Thread Maciej Wisniowski
To get number of zope threads from zope.conf I used this code:

from App.config import getConfiguration
conf = getConfiguration()
print conf.zserver_threads

Possibly you'll find session-timeout-minutes there too.

BTW. AFAIR session timeout is not a precise value especially
if you're using high value for session-resolution-seconds

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


Re: [Zope] session-timeout-minutes value in runtime Zope

2007-01-23 Thread Dieter Maurer
Peter Bengtsson wrote at 2007-1-23 13:44 +:
This might be an FAQ but I wasn't able to find it when searching.
How do I get access to the value of 'session-timeout-minutes' coming 
from etc/zope.conf in runtime Zope?

The value is used to configure the so called Session Data Manager
(usually /temp_folder/session_data).

Its management page is able to show you the value.

This means, there is some way to access it. You can use this
way in your own application (you might need a proxy role to
get sufficient privileges).



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


[Zope] Session data

2006-09-09 Thread Anton Y. Yakovlev




Hi!

>From Script (Python) object:

request.SESSION[ 'some_data' ] = some_data;
raise 'Redirect', context.some_script.absolute_url();

Why session object does not store data after redirect?


-- 

Regards,
Anton Yakovlev




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


Re: [Zope] Session data

2006-09-09 Thread David H




Anton Y. Yakovlev wrote:

  
  
  Hi!
  
From Script (Python) object:
  
request.SESSION[ 'some_data' ] = some_data;
raise 'Redirect', context.some_script.absolute_url();
  
Why session object does not store data after redirect?
  
  
Hi Anton,

Google is bland on this, I don't use redirects. But I remember(?) that
redirects clear the request or is that just form vars?

In any case you could 

return context.some_script(context,context.REQUEST) insteasd of a
redirect raise thing u do
instead to see if you retain the session.

David


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


Re: [Zope] Session data

2006-09-09 Thread Chris McDonough
You raised an exception.  Exceptions cause the current transaction to  
abort, which causes the changes you've made to the session to be  
thrown out.


Use request.RESPONSE.redirect(context.some_script.absolute_url())  
instead.


- C

On Sep 9, 2006, at 6:26 PM, Anton Y. Yakovlev wrote:


Hi!

From Script (Python) object:

request.SESSION[ 'some_data' ] = some_data;
raise 'Redirect', context.some_script.absolute_url();

Why session object does not store data after redirect?

-- Regards, Anton Yakovlev
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


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

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Session Variables Redux

2006-02-09 Thread Dieter Maurer
Dennis Allison wrote at 2006-2-8 11:16 -0800:
 
The problem we see is a sudden disappearance of all, one, or a small 
number of session variables.

You already reported this and I replied that it is virtually
impossible to lose part of the session variables:

  The session container is a uniform map from keys to values.
  Loading and storing always happens to the complete map.
  You cannot lose some keys but keep others.

What would be possible in principle (although it is very unlikely)
is that some of your ZODB connections would contain some
old state for session objects (this would mean a fault in
the ZODB's invalidation handling). As invalidation handling
is generic (independent of the storage), one should see similar
problems all over the place (and not only with sessions).


Furthermore, we make heavy use of sessions and did not observe
problems as described by you. True, we use our own Transience
implementation, but we are using the stock TransientObject
and this is responsible for keeping or losing individual
session variables.


Almost surely, the problem you observe is specific for your
installation/application...

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


[Zope] Session Variables Redux

2006-02-08 Thread Dennis Allison

Zope 2.9.0
Python 2.4.2

There appears to still be a problem with session variables that does not
appear to be the result of interactions with conflicts nor the result of
unexpected restarts.  It does not appear to be load related.

The problem we see is a sudden disappearance of all, one, or a small 
number of session variables.  In a session varaiable stateful system this 
is an embarassment.   The behavior is a bit like a variable which is 
not identified as persistent, but all read and write accesses go through
a getSessionVariable/setSessionVariable interface:

## Script (Python) getSessionVariable
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=varname
##title=
##
request=container.REQUEST
session=request['SESSION']
return session[varname]

## Script (Python) setSessionVariable
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=var, val
##title=
##
request = container.REQUEST
session=request['SESSION']
# write only if necessary
if not session.has_key(var) or session[var]!=val:
session[var]=val


Our session lifetimes are long (hours, days) and conflicts are fairly 
frequent.  Hand checking of the logs does not show any obvious correlation 
between session variable loss and conflict.  Moreover, all conflicts are 
resolved.

Does anyone else see this sort of problem?  Any suggestions as to how to 
isolate the problem?  



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


Re: [Zope] killing off individual Zope session

2005-12-05 Thread Chris Withers

Dennis Allison wrote:

We just had an example of a run away process with one of our authenticated
users.


What do you mean by this? If it's something to do with a relational 
database, you might be able to do something there...



I would have liked to kill off the user's processing while leaving all the
other users running.  


As Tres pointed out, can't really be done. Restarting Zope will do it...

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk

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

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] killing off individual Zope session

2005-12-03 Thread Dennis Allison

We just had an example of a run away process with one of our authenticated
users.

I would have liked to kill off the user's processing while leaving all the
other users running.  

Any ideas as to how to accomplish this?  I do know
the user's login and password, but little else.  We use the Cookie
Crumbler and a slightly hacked UserFolder for authentication.







-- 

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


[Zope] Re: killing off individual Zope session

2005-12-03 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dennis Allison wrote:
 We just had an example of a run away process with one of our authenticated
 users.
 
 I would have liked to kill off the user's processing while leaving all the
 other users running.  
 
 Any ideas as to how to accomplish this?  I do know
 the user's login and password, but little else.  We use the Cookie
 Crumbler and a slightly hacked UserFolder for authentication.

Can't be done.  There is no safe way to interrupt an in-process request,
even if you could figure out that it belonged to a given user;  any
attempt will likely leave your system hosed, requiring an appserver restart.


Tres.
- --
===
Tres Seaver  +1 202-558-7113  [EMAIL PROTECTED]
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDkkUt+gerLs4ltQ4RArxqAKCo+bU+KoO0fGslDrttCUfGeIBAigCfZjlM
gg2zJZMjICst+ECc23xfELk=
=EkrC
-END PGP SIGNATURE-

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


Re: [Zope] session variables in the presence of conflicts

2005-11-19 Thread Dieter Maurer
Dennis Allison wrote at 2005-11-18 13:15 -0800:
We are using MySQL but are fully transactional using innodb.
2005-11-18T12:50:16 ERROR txn.3075 Error in tpc_abort() on manager 
MultiObjectResourceAdapter for Products.ZMySQLDA.db.DB instance at 
0x450431cc at 1190763820

Thus, you should find out why tpc_abort() fails on the
ZMySQLDA.db.DB instance...

 ...
2005-11-18T12:50:16 ERROR txn.3075 Failed to abort resource manager: 
MultiObjectResourceAdapter for Products.ZMySQLDA.db.DB instance at 
0x450431cc at 1190763820

same here

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


Re: [Zope] session variables in the presence of conflicts

2005-11-18 Thread Dennis Allison
We are using MySQL but are fully transactional using innodb.

The sort of problems we are seeing are (cruft removed) are things like:

2005-11-18T12:50:16 ERROR txn.3075 Error in tpc_abort() on manager 
MultiObjectResourceAdapter for Products.ZMySQLDA.db.DB instance at 
0x450431cc at 1190763820
2005-11-18T12:50:16 ERROR txn.3075 Error in tpc_abort() on manager 
MultiObjectResourceAdapter for Products.ZMySQLDA.db.DB instance at 
0x41487acc at 1190774252
2005-11-18T12:50:16 INFO ZODB conflict error at 
/courses/topics/navigation_box (55 conflicts since startup at 
2005-11-18T12:13:38)
2005-11-18T12:50:16 ERROR txn.3075 Failed to abort object: Surrogate 
oid=object object at 0x4009d470
2005-11-18T12:50:16 ERROR txn.3075 Failed to abort resource manager: 
MultiObjectResourceAdapter for Products.ZMySQLDA.db.DB instance at 
0x450431cc at 1190763820
2005-11-18T12:50:16 ERROR txn.3075 Failed to abort object: Surrogate 
oid=object object at 0x4009d470
2005-11-18T12:50:16 ERROR txn.3075 Failed to abort resource manager: 
MultiObjectResourceAdapter for Products.ZMySQLDA.db.DB instance at 
0x41487acc at 1190774252

all of which appear to be the result of the the single conflict error.

The problems occur when the site is under load.  To date I have not been 
able to find a simple instance that can reproduce the problem.  Debugging 
in situ with a live system is not simple.  

In one instance, we have observed a loop where the conflict error 
generated resolution created another conflict error -- or so it appeared.




On Sun, 13 Nov 2005, Peter Bengtsson wrote:

 Have you considered upgrading to PostgreSQL? Things might have changed
 since the last time I tried mysql but I'm pretty sure Postgresql and
 psycopg deals much better with transactions in Zope. Admittedly, this
 doesn't explain why you're getting into trouble just because you've
 upgraded to zodb 3.4.2
 
 On 11/13/05, Dennis Allison [EMAIL PROTECTED] wrote:
  Zope 2.8.4
  ZEO 3.4.2
  ZODB 3.4.2
  Python 2.4.2 or 2.3.5
  MySQL 4.0.20
  MySQL-Python 1.2.1c3 (although we see the same problems with 1.2.0)
  MYSQLDA 2.0.9
 
  We have just moved from Zope 2.7.6 to Zope 2.8.4 motivated, in part, but
  the ability to avoid read conflicts under ZODB3.4.2.  We have been having
  a lot of problems: more conflict errors, release of unreleased locks in
  MySQL transactions, loss of session variables, and others.
 
  We use session variables and MySQL very heavily.  Our MySQL tables are
  MyISAM and are not transactional.
 
  ZODB3 3.4.1 introduce some changes to the conflict resolution which
  appears to be a logical improvement but also appears to have acerbated
  our problems.  In the ZODB# 3.4.2 system, if a commit fails, an exception
  is raised and the transaction is aborted.  Zope then attempts to reschedule
  the transaction.  The abort needs to roll back MySQL transactions that are
  part of the conflicting ZODB and the  Session Variable Store so the
  restart is clean.
 
  In our case, we have been using MyISAM tables, which are not
  transactional.  The rollbacks fail and the locking in the database adapter
  gets confused. Changing the table type from MyISAM to Innodb, which is
  transactional, should resolve the MySQL problems, although it has yet to
  be tested.
 
  Conflict errors also arise through the session variables.  Since we have a
  multi-Zope system configuration sharing a single ZEO, the session
  variables are stored in a Temporary Storage object on the ZEO host.  When
  a conflict occurs, a number of things, none good, apparently can happen.
  Session variable transactions cannot be rolled back (as the temporary
  storage mechanism is not transactional).  And, at a different level,
  session variable persistence requires that transactions require a
  copy-out/copy-in mechanism to identify those changes which have been
  changed and need to persisted; an aborted transaction may not be marked as
  persistent and so will disappear at some apparently random time in the
  future when the temporary store is packed and cruft removed.
 
  Some refactoring of the programming can help minimize the potential for
  session variable conflicts, but they cannot be eliminated.
 
  If systems stability in the face of session variable conflicts is
  important,
 
1.  Does the store for session variable need to be transactional
and support rollbacks?
 
  and
 
2.  What Temporary Storage object provides the right mechanism to
manage session variables with rollback efficiently?
 
 
 
  ___
  Zope maillist  -  Zope@zope.org
  http://mail.zope.org/mailman/listinfo/zope
  **   No cross posts or HTML encoding!  **
  (Related lists -
   http://mail.zope.org/mailman/listinfo/zope-announce
   http://mail.zope.org/mailman/listinfo/zope-dev )
 
 
 
 --
 Peter Bengtsson,
 work www.fry-it.com
 home www.peterbe.com
 hobby www.issuetrackerproduct.com
 

-- 


___
Zope maillist 

[Zope] session variables in the presence of conflicts

2005-11-13 Thread Dennis Allison
Zope 2.8.4
ZEO 3.4.2
ZODB 3.4.2
Python 2.4.2 or 2.3.5 
MySQL 4.0.20
MySQL-Python 1.2.0
MYSQLDA 2.0.9

We have just moved from Zope 2.7.6 to Zope 2.8.4 motivated, in part, but 
the ability to avoid read conflicts under ZODB 3.4.2.  We have been having 
a lot of problems: more conflict errors, release of unreleased locks in 
MySQL transactions, loss of session variables, and others.

We use session variables and MySQL very heavily.  Our MySQL tables are
MyISAM and are not transactional.

ZODB3 3.4.1 introduce some changes to the conflict resolution which
appears to be a logical improvement but also appears to have acerbated
our problems.  In the ZODB# 3.4.2 system, if a commit fails, an exception
is raised and the transaction is aborted.  Zope then attempts to reschedule
the transaction.  The abort needs to roll back MySQL transactions that are
part of the conflicting ZODB and the  Session Variable Store so the 
restart is clean.

In our case, we have been using MyISAM tables, which are not
transactional.  The rollbacks fail and the locking in the database adapter
gets confused. Changing the table type from MyISAM to Innodb, which is
transactional, should resolve the MySQL problems, although it has yet to
be tested.

Conflict errors also arise through the session variables.  Since we have a
multi-Zope system configuration sharing a single ZEO, the session
variables are stored in a Temporary Storage object on the ZEO host.  When
a conflict occurs, a number of things, none good, apparently can happen.
Session variable transactions cannot be rolled back (as the temporary
storage mechanism is not transactional).  And, at a different level,
session variable persistence requires that transactions require a
copy-out/copy-in mechanism to identify those changes which have been
changed and need to persisted; an aborted transaction may not be marked as
persistent and so will disappear at some apparently random time in the
future when the temporary store is packed and cruft removed.

Some refactoring of the programming can help minimize the potential for 
session variable conflicts, but they cannot be eliminated.

If systems stability in the face of session variable conflicts is 
important, 

  1.  Does the store for session variable need to be transactional 
  and support rollbacks?

and 

  2.  What Temporary Storage object provides the right mechanism to 
  manage session variables with rollback efficiently?



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


Re: [Zope] session variables in the presence of conflicts

2005-11-13 Thread Peter Bengtsson
Have you considered upgrading to PostgreSQL? Things might have changed
since the last time I tried mysql but I'm pretty sure Postgresql and
psycopg deals much better with transactions in Zope. Admittedly, this
doesn't explain why you're getting into trouble just because you've
upgraded to zodb 3.4.2

On 11/13/05, Dennis Allison [EMAIL PROTECTED] wrote:
 Zope 2.8.4
 ZEO 3.4.2
 ZODB 3.4.2
 Python 2.4.2 or 2.3.5
 MySQL 4.0.20
 MySQL-Python 1.2.0
 MYSQLDA 2.0.9

 We have just moved from Zope 2.7.6 to Zope 2.8.4 motivated, in part, but
 the ability to avoid read conflicts under ZODB3.4.2.  We have been having
 a lot of problems: more conflict errors, release of unreleased locks in
 MySQL transactions, loss of session variables, and others.

 We use session variables and MySQL very heavily.  Our MySQL tables are
 MyISAM and are not transactional.

 ZODB3 3.4.1 introduce some changes to the conflict resolution which
 appears to be a logical improvement but also appears to have acerbated
 our problems.  In the ZODB# 3.4.2 system, if a commit fails, an exception
 is raised and the transaction is aborted.  Zope then attempts to reschedule
 the transaction.  The abort needs to roll back MySQL transactions that are
 part of the conflicting ZODB and the  Session Variable Store so the
 restart is clean.

 In our case, we have been using MyISAM tables, which are not
 transactional.  The rollbacks fail and the locking in the database adapter
 gets confused. Changing the table type from MyISAM to Innodb, which is
 transactional, should resolve the MySQL problems, although it has yet to
 be tested.

 Conflict errors also arise through the session variables.  Since we have a
 multi-Zope system configuration sharing a single ZEO, the session
 variables are stored in a Temporary Storage object on the ZEO host.  When
 a conflict occurs, a number of things, none good, apparently can happen.
 Session variable transactions cannot be rolled back (as the temporary
 storage mechanism is not transactional).  And, at a different level,
 session variable persistence requires that transactions require a
 copy-out/copy-in mechanism to identify those changes which have been
 changed and need to persisted; an aborted transaction may not be marked as
 persistent and so will disappear at some apparently random time in the
 future when the temporary store is packed and cruft removed.

 Some refactoring of the programming can help minimize the potential for
 session variable conflicts, but they cannot be eliminated.

 If systems stability in the face of session variable conflicts is
 important,

   1.  Does the store for session variable need to be transactional
   and support rollbacks?

 and

   2.  What Temporary Storage object provides the right mechanism to
   manage session variables with rollback efficiently?



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



--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] session variables in the presence of conflicts

2005-11-13 Thread Chris McDonough
On Sun, 2005-11-13 at 01:39 -0800, Dennis Allison wrote:
 Zope 2.8.4
 ZEO 3.4.2
 ZODB 3.4.2
 Python 2.4.2 or 2.3.5 
 MySQL 4.0.20
 MySQL-Python 1.2.0
 MYSQLDA 2.0.9
 
 We have just moved from Zope 2.7.6 to Zope 2.8.4 motivated, in part, but 
 the ability to avoid read conflicts under ZODB 3.4.2.  We have been having 
 a lot of problems: more conflict errors, release of unreleased locks in 
 MySQL transactions, loss of session variables, and others.

That sounds unfortunate.

 We use session variables and MySQL very heavily.  Our MySQL tables are
 MyISAM and are not transactional.

That also sounds unfortunate. ;-)

 ZODB3 3.4.1 introduce some changes to the conflict resolution which
   ^ 3.4.2 I think you mean.

 appears to be a logical improvement but also appears to have acerbated
 our problems.  In the ZODB# 3.4.2 system, if a commit fails, an exception
 is raised and the transaction is aborted.  Zope then attempts to reschedule
 the transaction.  The abort needs to roll back MySQL transactions that are
 part of the conflicting ZODB and the  Session Variable Store so the 
 restart is clean.

Yes.  Of course with MyISAM tables, this not really possible as you note
below.

 In our case, we have been using MyISAM tables, which are not
 transactional.  The rollbacks fail and the locking in the database adapter
 gets confused. Changing the table type from MyISAM to Innodb, which is
 transactional, should resolve the MySQL problems, although it has yet to
 be tested.

FWIW, InnoDB tables are a good idea in any case.  But I'm suprised that
a rollback which includes MyISAM tables actually causes failure.  In my
experience with the most recent version of Andy's MySQL database
adapter, rollbacks don't actually do anything but they don't cause any
failures either.  This is also with a fairly recent MySQL
(4.1.something).

 Conflict errors also arise through the session variables.  Since we have a
 multi-Zope system configuration sharing a single ZEO, the session
 variables are stored in a Temporary Storage object on the ZEO host.  When
 a conflict occurs, a number of things, none good, apparently can happen.
 Session variable transactions cannot be rolled back (as the temporary
 storage mechanism is not transactional).

That is actually not true.  The tempstorage mechanism is transactional,
meaning that changes to a tempstorage will be committed or thrown out at
transaction boundaries depending on the result of the participating data
manager vote which determines whether a transaction should be committed
or aborted.  It is not undoable like FileStorage is, meaning you can't
go back and selectively choose states to roll back to past the current
database state, but it is indeed transactional.

   And, at a different level,
 session variable persistence requires that transactions require a
 copy-out/copy-in mechanism to identify those changes which have been
 changed and need to persisted; an aborted transaction may not be marked as
 persistent and so will disappear at some apparently random time in the
 future when the temporary store is packed and cruft removed.

The temporary storage does not need to be packed unless there are cycles
in the data.  It is a packless storage in this regard.  However, the
sessioning machinery does do its own garbage collection of old data,
which removes old data from the storage.  But this machinery operates
(logically) independently of whatever storage implementation you happen
to be using to keep your session data manager.

If you see session data disappear randomly, this is a bug.  However,
if it can be explained by the inability of a particular transaction to
commit due to bugs in participating data managers, it's not.

 Some refactoring of the programming can help minimize the potential for 
 session variable conflicts, but they cannot be eliminated.
 
 If systems stability in the face of session variable conflicts is 
 important, 
 
   1.  Does the store for session variable need to be transactional 
   and support rollbacks?

It already is.

 
 and 
 
   2.  What Temporary Storage object provides the right mechanism to 
   manage session variables with rollback efficiently?

There is only one, and it is coded in such a way that it should provide
this.  You might need to provide some additional information about what
kinds of errors you're experiencing; optimally you could provide a
reproducible test case but experience has shown that with sessioning
this is not always easy.

Before doing much more investigation on the Zope end, you may want to
get yourself to a place where you have recent versions of MySQL software
and Andy's DA.

- C


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


[Zope] Session Variable Error

2005-04-28 Thread Asad Habib
I have a session variable called 'undergraduateProjectsDirected' that I
declare using the following syntax:

dtml-call REQUEST.SESSION.set('undergradProjectsDirected', [ ])

When I try to append items to this list variable, I get the following
error:

AttributeError: 'NoneType' object has no attribute 'append'

I know for a fact that this variable exists since flushing the SESSION
attribute of the REQUEST variable using dtml-var REQUEST.SESSION
yields its name and shows that it is initially empty.

I am using the following statement to append items:

dtml-call 
(REQUEST.SESSION.get('undergraduateProjectsDirected')).append([student_name, 
description])

The strange thing is that when I change the name of this variable to
'undergradProjectsDirected', the error does not occur anymore.

Has anyone experienced something similar? I think a variable with the same
name exists (perhaps I created one in another one of my intranet
applications) and Zope is referring to the old copy instead of the newly
created one. I tried flushing the transient object container as well but
it did not make a difference.

Any help would be greatly appreciated. Thank you.

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


Re: [Zope] Session Variable Error

2005-04-28 Thread Andreas Jung

--On Donnerstag, 28. April 2005 13:44 Uhr -0400 Asad Habib 
[EMAIL PROTECTED] wrote:

I have a session variable called 'undergraduateProjectsDirected' that I
declare using the following syntax:
dtml-call REQUEST.SESSION.set('undergradProjectsDirected', [ ])
When I try to append items to this list variable, I get the following
error:
AttributeError: 'NoneType' object has no attribute 'append'
I know for a fact that this variable exists since flushing the SESSION
attribute of the REQUEST variable using dtml-var REQUEST.SESSION
yields its name and shows that it is initially empty.
I am using the following statement to append items:
dtml-call
(REQUEST.SESSION.get('undergraduateProjectsDirected')).append([student_n
ame, description])
The strange thing is that when I change the name of this variable to
'undergradProjectsDirected', the error does not occur anymore.
Check the spelling of your session key! Of course you're getting an
error when you are trying to append to something that does not exist.
-aj


pgpdwVXdEAQZ1.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Session Variable Error

2005-04-28 Thread Asad Habib
Actually, it does exist as I mentioned in my original message. If it did
not exist, then dtml-var REQUEST.SESSION would yield a value of None
for it. Also, if this were the case, then simply changing the name of the
variable would not solve the problem.

- Asad


On Thu, 28 Apr 2005, Andreas Jung wrote:



 --On Donnerstag, 28. April 2005 13:44 Uhr -0400 Asad Habib
 [EMAIL PROTECTED] wrote:

  I have a session variable called 'undergraduateProjectsDirected' that I
  declare using the following syntax:
 
  dtml-call REQUEST.SESSION.set('undergradProjectsDirected', [ ])
 
  When I try to append items to this list variable, I get the following
  error:
 
  AttributeError: 'NoneType' object has no attribute 'append'
 
  I know for a fact that this variable exists since flushing the SESSION
  attribute of the REQUEST variable using dtml-var REQUEST.SESSION
  yields its name and shows that it is initially empty.
 
  I am using the following statement to append items:
 
  dtml-call
  (REQUEST.SESSION.get('undergraduateProjectsDirected')).append([student_n
  ame, description])
 
  The strange thing is that when I change the name of this variable to
  'undergradProjectsDirected', the error does not occur anymore.

 Check the spelling of your session key! Of course you're getting an
 error when you are trying to append to something that does not exist.

 -aj


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


Re: [Zope] Session Variable Error

2005-04-28 Thread Dennis Allison
On Thu, 28 Apr 2005, Asad Habib wrote:

 I have a session variable called 'undergraduateProjectsDirected' that I
 declare using the following syntax:
 
 dtml-call REQUEST.SESSION.set('undergradProjectsDirected', [ ])
 
 When I try to append items to this list variable, I get the following
 error:
 
 AttributeError: 'NoneType' object has no attribute 'append'
 
 I know for a fact that this variable exists since flushing the SESSION
 attribute of the REQUEST variable using dtml-var REQUEST.SESSION
 yields its name and shows that it is initially empty.
 
 I am using the following statement to append items:
 
 dtml-call 
 (REQUEST.SESSION.get('undergraduateProjectsDirected')).append([student_name, 
 description])
 
 The strange thing is that when I change the name of this variable to
 'undergradProjectsDirected', the error does not occur anymore.

Once you get beyond this problem, you may want to think about persistence 
issues.  See The Zope Book for details.   The list probably should be an 
instance of a PersistentList and you should use the copy-out/copy-in 
technique described in the API and in the Developers Guide.


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


Re: [Zope] Session Variable Error

2005-04-28 Thread Andreas Jung
You said you set the variable through:
dtml-call REQUEST.SESSION.set('undergradProjectsDirected', [ ])
You wrote that this does not work:
dtml-call 
(REQUEST.SESSION.get('undergraduateProjectsDirected')).append([student_name, 
description])

Of course it does not work because in both cases the names of the session 
vars are completely different..
so why should this work?

-aj

--On Donnerstag, 28. April 2005 13:56 Uhr -0400 Asad Habib 
[EMAIL PROTECTED] wrote:

Actually, it does exist as I mentioned in my original message. If it did
not exist, then dtml-var REQUEST.SESSION would yield a value of None
for it. Also, if this were the case, then simply changing the name of the
variable would not solve the problem.
- Asad
On Thu, 28 Apr 2005, Andreas Jung wrote:

--On Donnerstag, 28. April 2005 13:44 Uhr -0400 Asad Habib
[EMAIL PROTECTED] wrote:
 I have a session variable called 'undergraduateProjectsDirected' that I
 declare using the following syntax:

 dtml-call REQUEST.SESSION.set('undergradProjectsDirected', [ ])

 When I try to append items to this list variable, I get the following
 error:

 AttributeError: 'NoneType' object has no attribute 'append'

 I know for a fact that this variable exists since flushing the SESSION
 attribute of the REQUEST variable using dtml-var REQUEST.SESSION
 yields its name and shows that it is initially empty.

 I am using the following statement to append items:

 dtml-call
 (REQUEST.SESSION.get('undergraduateProjectsDirected')).append([studen
 t_n ame, description])

 The strange thing is that when I change the name of this variable to
 'undergradProjectsDirected', the error does not occur anymore.
Check the spelling of your session key! Of course you're getting an
error when you are trying to append to something that does not exist.
-aj





pgp30x1ZT9Eo3.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Session Variable Error

2005-04-28 Thread John Ziniti
Asad Habib wrote:
Actually, it does exist as I mentioned in my original message. If it did
not exist, then dtml-var REQUEST.SESSION would yield a value of None
for it. Also, if this were the case, then simply changing the name of the
variable would not solve the problem.
I think that Andreas is pointing out an inconsistency in your original
post, and you should check and make sure that the inconsistency does
not actually exist in your program.
First you indicate that you set a variable called
undergradProjectsDirected:
I declare using the following syntax:
dtml-call REQUEST.SESSION.set('undergradProjectsDirected', [ ])
But then you indicate that you are using the following to add items:
I am using the following statement to append items:
dtml-call
(REQUEST.SESSION.get('undergraduateProjectsDirected')).append([student_n
ame, description])
Notice that this time you are using undergraduateProjectsDirected.
Please check and then indicate whether this is true in your actual
program.  Obviously, if you are goign to change the name of the
variable, you have to be consistent.  Andreas is just indicating
that perhaps you haven't been careful to ensure this.
HTH,
JZ
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Session Variable Error

2005-04-28 Thread Asad Habib
Andreas, you misunderstood me. What I said is that #1 does not work but
#2 does.

#1. dtml-call REQUEST.SESSION.set('undergraduateProjectsDirected', [])

#2. dtml-call REQUEST.SESSION.set('undergradProjectsDirected', [ ])

- Asad


On Thu, 28 Apr 2005, Andreas Jung wrote:


 You said you set the variable through:

 dtml-call REQUEST.SESSION.set('undergradProjectsDirected', [ ])


 You wrote that this does not work:

 dtml-call
 (REQUEST.SESSION.get('undergraduateProjectsDirected')).append([student_name,
 description])

 Of course it does not work because in both cases the names of the session
 vars are completely different..
 so why should this work?

 -aj



 --On Donnerstag, 28. April 2005 13:56 Uhr -0400 Asad Habib
 [EMAIL PROTECTED] wrote:

  Actually, it does exist as I mentioned in my original message. If it did
  not exist, then dtml-var REQUEST.SESSION would yield a value of None
  for it. Also, if this were the case, then simply changing the name of the
  variable would not solve the problem.
 
  - Asad
 
 
  On Thu, 28 Apr 2005, Andreas Jung wrote:
 
 
 
  --On Donnerstag, 28. April 2005 13:44 Uhr -0400 Asad Habib
  [EMAIL PROTECTED] wrote:
 
   I have a session variable called 'undergraduateProjectsDirected' that I
   declare using the following syntax:
  
   dtml-call REQUEST.SESSION.set('undergradProjectsDirected', [ ])
  
   When I try to append items to this list variable, I get the following
   error:
  
   AttributeError: 'NoneType' object has no attribute 'append'
  
   I know for a fact that this variable exists since flushing the SESSION
   attribute of the REQUEST variable using dtml-var REQUEST.SESSION
   yields its name and shows that it is initially empty.
  
   I am using the following statement to append items:
  
   dtml-call
   (REQUEST.SESSION.get('undergraduateProjectsDirected')).append([studen
   t_n ame, description])
  
   The strange thing is that when I change the name of this variable to
   'undergradProjectsDirected', the error does not occur anymore.
 
  Check the spelling of your session key! Of course you're getting an
  error when you are trying to append to something that does not exist.
 
  -aj
 
 




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


Re: [Zope] Session without cookies.

2005-04-12 Thread Fernando Lujan
Jens Vagelpohl wrote:
On Apr 12, 2005, at 1:02, Fernando Lujan wrote:
The URL test1 in the form tag is obviously *not* generated by 
Zope. You put it in there manually. So it cannot work as you expect.

Hum, I see. Just web pages that aren't dinamically generated by Zope. 
For instance, other DTML document will not keep the Session. Is this 
correct?

No, you misunderstand what Chris said earlier. You need to let Zope 
generate the URL. In this case, instead of just saying...

form action=test1
you could do
form action=dtml-var test1.absolute_url()
of course that's ugly because it looks like putting a tag inside a 
tag, ZPT is much nicer that way:

form action= tal:attributes=action here/test1/absolute_url

Thanks, jens... Now I acquire my goal! ;)
Fernando Lujan

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


[Zope] Session without cookies.

2005-04-11 Thread Fernando Lujan
Hi everyone,
Is there possible to use a Session control without cookies?
I already changed the browser_id_manager and unchecked the cookies and 
checked the Automatically Encode Zope-Generated URLs With A Browser Id 
option. But it's just stops working. :(

In addition, where could I get the Examples? The Zope book has a mention 
of it, but I couldn't find the URL to download the Examples.

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


Re: [Zope] Session without cookies.

2005-04-11 Thread Chris McDonough
On Mon, 2005-04-11 at 16:35, Fernando Lujan wrote:
 Hi everyone,
 
 Is there possible to use a Session control without cookies?

Yes.

 
 I already changed the browser_id_manager and unchecked the cookies and 
 checked the Automatically Encode Zope-Generated URLs With A Browser Id 
 option. But it's just stops working. :(

Note that it says Zope-generated URLs.  URLs that are not generated by
Zope will not be encoded.

 In addition, where could I get the Examples? The Zope book has a mention 
 of it, but I couldn't find the URL to download the Examples.

Examples are available from the Quick Start page, which is available
from the default index_html of your Zope root.

- C


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


Re: [Zope] Session without cookies.

2005-04-11 Thread Fernando Lujan
Chris McDonough wrote:
On Mon, 2005-04-11 at 16:35, Fernando Lujan wrote:
 

I already changed the browser_id_manager and unchecked the cookies and 
checked the Automatically Encode Zope-Generated URLs With A Browser Id 
option. But it's just stops working. :(
   

Note that it says Zope-generated URLs.  URLs that are not generated by
Zope will not be encoded.
 

The URL is generated by Zope.
It's a simple code. I create two dtml documents with the following code.
1)test
dtml-call SESSION.set('eg', 2)
dtml-call SESSION.get('eg')
form action=test1
input type=submit value=test1
/form
2) teste1
dtml-call SESSION.get('eg')
The teste1 displays None, I expected it to display the number 2. :(
In addition, where could I get the Examples? The Zope book has a mention 
of it, but I couldn't find the URL to download the Examples.
   

Examples are available from the Quick Start page, which is available
from the default index_html of your Zope root.
 

I didn't have the Examples directory under my Zope instance... :(
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Session without cookies.

2005-04-11 Thread Jens Vagelpohl
On Apr 11, 2005, at 23:47, Fernando Lujan wrote:
Note that it says Zope-generated URLs.  URLs that are not generated 
by
Zope will not be encoded.

The URL is generated by Zope.
It's a simple code. I create two dtml documents with the following 
code.

1)test
dtml-call SESSION.set('eg', 2)
dtml-call SESSION.get('eg')
form action=test1
input type=submit value=test1
/form
The URL test1 in the form tag is obviously *not* generated by Zope. 
You put it in there manually. So it cannot work as you expect.

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


Re: [Zope] Session without cookies.

2005-04-11 Thread Fernando Lujan
Jens Vagelpohl wrote:
1)test
dtml-call SESSION.set('eg', 2)
dtml-call SESSION.get('eg')
form action=test1
input type=submit value=test1
/form
It's a simple code. I create two dtml documents with the following code.
The URL test1 in the form tag is obviously *not* generated by Zope. 
You put it in there manually. So it cannot work as you expect.

jens
Hum, I see. Just web pages that aren't dinamically generated by Zope. 
For instance, other DTML document will not keep the Session. Is this 
correct?

I need to keep a SESSION through the entire site without cookies. Is 
that possible?

Sorry if I made myself incomprehensible.
Fernando Lujan
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Session without cookies.

2005-04-11 Thread Jens Vagelpohl
On Apr 12, 2005, at 1:02, Fernando Lujan wrote:
The URL test1 in the form tag is obviously *not* generated by Zope. 
You put it in there manually. So it cannot work as you expect.
Hum, I see. Just web pages that aren't dinamically generated by Zope. 
For instance, other DTML document will not keep the Session. Is this 
correct?
No, you misunderstand what Chris said earlier. You need to let Zope 
generate the URL. In this case, instead of just saying...

form action=test1
you could do
form action=dtml-var test1.absolute_url()
of course that's ugly because it looks like putting a tag inside a tag, 
ZPT is much nicer that way:

form action= tal:attributes=action here/test1/absolute_url
jens
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] SESSION invalidate method

2005-04-03 Thread David H
Hi List,
I am curious about the SESSION.invalidate() method.
This code sets a SESSION key and value and then calls SESSION.invalidate():
tal:block define=dummy 
python:request.SESSION.set('Dodgers','Baseball') /

p before invalidate /p
p tal:content=python: request.SESSION /
tal:block define=dummy python:request.SESSION.invalidate() /
p after invalidate()/p
p tal:content=python: request.SESSION /
Produces this output:
before invalidate
id: 11125588150079827980, token: 95966850A1xaz-gQYlU, contents: 
[('Dodgers', 'Baseball')]

after invalidate()
id: 11125588150079827980, token: 95966850A1xaz-gQYlU, contents: 
[('Dodgers', 'Baseball')]

It seems that SESSION.invalidate() does not take immediate effect. 

Seems like a developer could getinto trouble if the same script *both* does
SESSION.invalidate()
SESSION.set('something','somevalue').
Because after the script runs 'something' goes away when invalidate() 
finally
occurs.

And is the effect described above to be expected or do I have this wrong?
Thanks,
David

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


Re: [Zope] Session

2001-01-16 Thread peter bengtson

Sorry, no experience of using HappySession. Can't even remember why I
decided to try FSSession initially.

Cheers, Peter



 Im using the Happy Session, but I heardy bad things about this product,
 Which one do you think is better ?

 Thanks a lot
 Anderson


[CC to [EMAIL PROTECTED] so that the rest of the list can follow discussion
threads like this one]


___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Session

2001-01-16 Thread Chris Withers

  Im 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  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Session

2001-01-16 Thread Phil Harris

Seconded,  the docs are good and the product sems to work 8)

- Original Message -
From: "Chris Withers" [EMAIL PROTECTED]
To: "peter bengtson" [EMAIL PROTECTED]
Cc: "Anderson Ami" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, January 16, 2001 12:07 PM
Subject: Re: [Zope] Session


   Im 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  -  [EMAIL PROTECTED]
 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  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Session

2001-01-16 Thread Chris McDonough

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" [EMAIL PROTECTED]
To: "peter bengtson" [EMAIL PROTECTED]
Cc: "Anderson Ami" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, January 16, 2001 7:07 AM
Subject: Re: [Zope] Session


  Im 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  -  [EMAIL PROTECTED]
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  -  [EMAIL PROTECTED]
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 )




RE: [Zope] Session

2001-01-16 Thread Anderson Ami

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 doest it work ?
when I call document2 the zope generates a error.


-Original Message-
From: Chris McDonough [mailto:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 12:03
To: Chris Withers; peter bengtson
Cc: Anderson Ami; [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "peter bengtson" [EMAIL PROTECTED]
Cc: "Anderson Ami" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, January 16, 2001 7:07 AM
Subject: Re: [Zope] Session


  Im 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  -  [EMAIL PROTECTED]
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  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Session

2001-01-16 Thread Chris McDonough

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" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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 doest it work ?
when I call document2 the zope generates a error.


-Original Message-
From: Chris McDonough [mailto:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 12:03
To: Chris Withers; peter bengtson
Cc: Anderson Ami; [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "peter bengtson" [EMAIL PROTECTED]
Cc: "Anderson Ami" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, January 16, 2001 7:07 AM
Subject: Re: [Zope] Session


  Im 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  -  [EMAIL PROTECTED]
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  -  [EMAIL PROTECTED]
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 )




RE: [Zope] Session

2001-01-16 Thread Anderson Ami

It doesnt work, The zope gives me : Error Type: AttributeError Error Value:
__getitem__.

Thanks a lot
anderson

-Original Message-
From: Chris McDonough [mailto:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 12:31
To: Anderson Ami; Chris Withers; peter bengtson
Cc: [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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 doest it work ?
when I call document2 the zope generates a error.


-Original Message-
From: Chris McDonough [mailto:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 12:03
To: Chris Withers; peter bengtson
Cc: Anderson Ami; [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "peter bengtson" [EMAIL PROTECTED]
Cc: "Anderson Ami" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, January 16, 2001 7:07 AM
Subject: Re: [Zope] Session


  Im 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  -  [EMAIL PROTECTED]
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  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Session

2001-01-16 Thread Chris McDonough

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" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, January 16, 2001 9:19 AM
Subject: RE: [Zope] Session


It doesnt work, The zope gives me : Error Type: AttributeError Error Value:
__getitem__.

Thanks a lot
anderson

-Original Message-
From: Chris McDonough [mailto:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 12:31
To: Anderson Ami; Chris Withers; peter bengtson
Cc: [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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 doest it work ?
when I call document2 the zope generates a error.


-Original Message-
From: Chris McDonough [mailto:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 12:03
To: Chris Withers; peter bengtson
Cc: Anderson Ami; [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "peter bengtson" [EMAIL PROTECTED]
Cc: "Anderson Ami" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, January 16, 2001 7:07 AM
Subject: Re: [Zope] Session


  Im 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  -  [EMAIL PROTECTED]
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  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Session

2001-01-16 Thread Oleg Broytmann

On Tue, 16 Jan 2001, Chris McDonough wrote:
 dtml-with "Session.getSessionData()"
   ^
   Close th broket:

dtml-with "Session.getSessionData()"
 ^

Oleg.

 Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.



___
Zope maillist  -  [EMAIL PROTECTED]
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 )




RE: [Zope] Session

2001-01-16 Thread Anderson Ami

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:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 13:08
To: Anderson Ami; Chris Withers; peter bengtson
Cc: [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, January 16, 2001 9:19 AM
Subject: RE: [Zope] Session


It doesnt work, The zope gives me : Error Type: AttributeError Error Value:
__getitem__.

Thanks a lot
anderson

-Original Message-
From: Chris McDonough [mailto:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 12:31
To: Anderson Ami; Chris Withers; peter bengtson
Cc: [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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 doest it work ?
when I call document2 the zope generates a error.


-Original Message-
From: Chris McDonough [mailto:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 12:03
To: Chris Withers; peter bengtson
Cc: Anderson Ami; [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "peter bengtson" [EMAIL PROTECTED]
Cc: "Anderson Ami" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, January 16, 2001 7:07 AM
Subject: Re: [Zope] Session


  Im 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  -  [EMAIL PROTECTED]
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  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Session

2001-01-16 Thread Chris McDonough

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" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 13:08
To: Anderson Ami; Chris Withers; peter bengtson
Cc: [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, January 16, 2001 9:19 AM
Subject: RE: [Zope] Session


It doesnt work, The zope gives me : Error Type: AttributeError Error Value:
__getitem__.

Thanks a lot
anderson

-Original Message-
From: Chris McDonough [mailto:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 12:31
To: Anderson Ami; Chris Withers; peter bengtson
Cc: [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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 doest it work ?
when I call document2 the zope generates a error.


-Original Message-
From: Chris McDonough [mailto:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 12:03
To: Chris Withers; peter bengtson
Cc: Anderson Ami; [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "peter bengtson" [EMAIL PROTECTED]
Cc: "Anderson Ami" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, January 16, 2001 7:07 AM
Subject: Re: [Zope] Session


  Im 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  -  [EMAIL PROTECTED]
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  -  [EMAIL PROTECTED]
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 )




RE: [Zope] Session

2001-01-16 Thread Anderson Ami

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:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 15:27
To: Anderson Ami; Chris Withers; peter bengtson
Cc: [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 13:08
To: Anderson Ami; Chris Withers; peter bengtson
Cc: [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, January 16, 2001 9:19 AM
Subject: RE: [Zope] Session


It doesnt work, The zope gives me : Error Type: AttributeError Error Value:
__getitem__.

Thanks a lot
anderson

-Original Message-
From: Chris McDonough [mailto:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 12:31
To: Anderson Ami; Chris Withers; peter bengtson
Cc: [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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 doest it work ?
when I call document2 the zope generates a error.


-Original Message-
From: Chris McDonough [mailto:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 12:03
To: Chris Withers; peter bengtson
Cc: Anderson Ami; [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "peter bengtson" [EMAIL PROTECTED]
Cc: "Anderson Ami" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, January 16, 2001 7:07 AM
Subject: Re: [Zope] Session


  Im 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  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Session

2001-01-16 Thread Chris McDonough

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" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 15:27
To: Anderson Ami; Chris Withers; peter bengtson
Cc: [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 13:08
To: Anderson Ami; Chris Withers; peter bengtson
Cc: [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, January 16, 2001 9:19 AM
Subject: RE: [Zope] Session


It doesnt work, The zope gives me : Error Type: AttributeError Error Value:
__getitem__.

Thanks a lot
anderson

-Original Message-
From: Chris McDonough [mailto:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 12:31
To: Anderson Ami; Chris Withers; peter bengtson
Cc: [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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 doest it work ?
when I call document2 the zope generates a error.


-Original Message-
From: Chris McDonough [mailto:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 12:03
To: Chris Withers; peter bengtson
Cc: Anderson Ami; [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "peter bengtson" [EMAIL PROTECTED]
Cc: "Anderson Ami" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, January 16, 2001 7:07 AM
Subject: Re: [Zope] Session


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

RE: [Zope] Session

2001-01-16 Thread Anderson Ami

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


-Original Message-
From: Chris McDonough [mailto:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 15:59
To: Anderson Ami; Chris Withers; peter bengtson
Cc: [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 15:27
To: Anderson Ami; Chris Withers; peter bengtson
Cc: [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 13:08
To: Anderson Ami; Chris Withers; peter bengtson
Cc: [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, January 16, 2001 9:19 AM
Subject: RE: [Zope] Session


It doesnt work, The zope gives me : Error Type: AttributeError Error Value:
__getitem__.

Thanks a lot
anderson

-Original Message-
From: Chris McDonough [mailto:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 12:31
To: Anderson Ami; Chris Withers; peter bengtson
Cc: [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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 doest it work ?
when I call document2 the zope generates a error.


-Original Message-
From: Chris McDonough [mailto:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 12:03
To: Chris Withers; peter bengtson
Cc: Anderson Ami; [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "peter bengtson" [EMAIL PROTECTED]
Cc: "Anderson Ami" [EMAIL PROTE

Re: [Zope] Session

2001-01-16 Thread Chris McDonough

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" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 15:59
To: Anderson Ami; Chris Withers; peter bengtson
Cc: [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 15:27
To: Anderson Ami; Chris Withers; peter bengtson
Cc: [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 13:08
To: Anderson Ami; Chris Withers; peter bengtson
Cc: [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, January 16, 2001 9:19 AM
Subject: RE: [Zope] Session


It doesnt work, The zope gives me : Error Type: AttributeError Error Value:
__getitem__.

Thanks a lot
anderson

-Original Message-
From: Chris McDonough [mailto:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 12:31
To: Anderson Ami; Chris Withers; peter bengtson
Cc: [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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 doest it work ?
when I call document2 the zope generates a error.


-Original Message-
From: Chris McDonough [mailto:[EMAIL PROTECTED]]
Sent: tera-

RE: [Zope] Session

2001-01-16 Thread Anderson Ami

Now It works !
Thanks so much !!
You give me a big advice !!!

Anderson

-Original Message-
From: Chris McDonough [mailto:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 16:46
To: Anderson Ami; Chris Withers; peter bengtson
Cc: [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 15:59
To: Anderson Ami; Chris Withers; peter bengtson
Cc: [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 15:27
To: Anderson Ami; Chris Withers; peter bengtson
Cc: [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 13:08
To: Anderson Ami; Chris Withers; peter bengtson
Cc: [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, January 16, 2001 9:19 AM
Subject: RE: [Zope] Session


It doesnt work, The zope gives me : Error Type: AttributeError Error Value:
__getitem__.

Thanks a lot
anderson

-Original Message-
From: Chris McDonough [mailto:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 12:31
To: Anderson Ami; Chris Withers; peter bengtson
Cc: [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, January 16, 2001 8:52 AM
Subject: RE: [Zope] Session


I did this :

- I created a Session Ma

RE: [Zope] Session

2001-01-16 Thread Anderson Ami

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:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 16:46
To: Anderson Ami; Chris Withers; peter bengtson
Cc: [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 15:59
To: Anderson Ami; Chris Withers; peter bengtson
Cc: [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 15:27
To: Anderson Ami; Chris Withers; peter bengtson
Cc: [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 13:08
To: Anderson Ami; Chris Withers; peter bengtson
Cc: [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, January 16, 2001 9:19 AM
Subject: RE: [Zope] Session


It doesnt work, The zope gives me : Error Type: AttributeError Error Value:
__getitem__.

Thanks a lot
anderson

-Original Message-
From: Chris McDonough [mailto:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 12:31
To: Anderson Ami; Chris Withers; peter bengtson
Cc: [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL 

Re: [Zope] Session

2001-01-16 Thread Chris McDonough

Read the file in the CoreSessionTracking "help" directory named
CoreSessionTracking.stx.  This is what *should* be pulled up via the help
button.  I'll look into why it's not working...

- Original Message -
From: "Anderson Ami" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, January 16, 2001 3:28 PM
Subject: RE: [Zope] Session


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:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 16:46
To: Anderson Ami; Chris Withers; peter bengtson
Cc: [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 15:59
To: Anderson Ami; Chris Withers; peter bengtson
Cc: [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 15:27
To: Anderson Ami; Chris Withers; peter bengtson
Cc: [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 13:08
To: Anderson Ami; Chris Withers; peter bengtson
Cc: [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "Chris Withers"
[EMAIL PROTECTED]; "peter bengtson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, January 16, 2001 9:19 AM
Subject: RE: [Zope] Session


It doesnt work, The zope gives me : Error Type: AttributeError Error Value:
__getitem__.

Thanks a lot
anderson

-Original Message-
From: Chris McDonough [mailto:[EMAIL PROTECTED]]
Sent: tera-feira, 16 de janeiro de 2001 12:31
To: Anderson Ami; Chris Withers; peter bengtson
Cc: [EMAIL PROTECTED]
Subject: Re: [Zope] Session


Anderson,

If you're using core session tracking, i

Re: [Zope] Session

2001-01-16 Thread Tres Seaver

Can y'all please trim the quotes a bit when following up?  Those
who want to see the thread in all its glory can use the archives.

Tres.
-- 
===
Tres Seaver[EMAIL PROTECTED]
Digital Creations "Zope Dealers"   http://www.zope.org

___
Zope maillist  -  [EMAIL PROTECTED]
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] Session

2000-07-28 Thread Diego Rodrigo Neufert

Hi, walking trought zope.org I found a lot o Session Managers products like
HappySession and SQLSession.
Anyone know what's the best Session product for a production site???

thanks...
-- 
---
Diego Rodrigo Neufert
-webmaster
---
(Magic Web Design)
(email) ([EMAIL PROTECTED])
(curitiba) (pr)

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Session

2000-07-28 Thread Christian Scholz

Hi!

On Fri, Jul 28, 2000 at 05:34:52PM -0300, Diego Rodrigo Neufert wrote:
 Hi, walking trought zope.org I found a lot o Session Managers products like
 HappySession and SQLSession.
 Anyone know what's the best Session product for a production site???

I am using SQLSession here and haven't had any problems by now.
(using it with cookies and with sessionid in the url).

I've heard that someone had problems with FSSession, though.

About the rest I dunno anything ;-)

-- christian

--
Christian Scholz   MrTopf@IRC
COM.lounge  http://comlounge.net/
communication  design   [EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )