[Zope] Session question

Allen Schmidt Sr aschmidt at fredericksburg.com
Mon Oct 4 16:47:44 EDT 2010


  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, larrymcdonnell at 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 at 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 )
>
>


More information about the Zope mailing list