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
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
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
-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.
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
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
+---[ 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
[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
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
+---[ 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
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
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
+---[ 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
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
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 -
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
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?
--
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
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 =
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 =
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
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
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.
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
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,
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
--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
]
-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
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
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
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
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'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
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
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
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
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
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
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 -
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.
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!
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
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
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
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
-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?
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
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,
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
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.
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
--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
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
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:
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
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
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
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
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
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
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
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)
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
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
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
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
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
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
L 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
: 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
apping
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
ECTED]
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-fe
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/
-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()&qu
ris 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 foun
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
Donough" [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:
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
CTED]; "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:
: [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&q
: 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
Donough" [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 :
Attri
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
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)
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
85 matches
Mail list logo