[Zope] Removing Zope and Python version info from request header

2013-01-08 Thread Allen Schmidt Sr.
I know I have seen this in the past but can't find any references as to how
to do this.
Anyone have a quick pointer?
___
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 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 )


Re: [Zope] zope changes : dtml-var

2010-02-16 Thread Allen Schmidt Sr.
Ha. Yup, I missed that. Makes sense now. Just did not look at the whole 
thing, just the dtml-var part.

On 2/16/2010 2:10 AM, Jaroslav Lukesh wrote:
 I think that problenm is in the name of formfield - it begins with an _

 - Original Message -
 From: Allen Schmidt Sr.aschm...@fredericksburg.com
 To:zope@zope.org
 Sent: Monday, February 15, 2010 11:44 PM
 Subject: Re: [Zope] zope changes : dtml-var



 ...but why wouldn't the dtml version also work as he has it below? I
 have hundreds of form uses just like thatand we have never used the
 entity syntax.

  

 td
 input name=_valuename size=20 value=dtml-var person_name
 /td
  
 ___
 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 )


Re: [Zope] zope changes : dtml-var

2010-02-15 Thread Allen Schmidt Sr.
...but why wouldn't the dtml version also work as he has it below? I 
have hundreds of form uses just like thatand we have never used the 
entity syntax.

-Allen


On 2/15/2010 5:17 PM, Tres Seaver wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Martin Krallinger wrote:

 Hi,

 it seems that there some of the options in zope had been changed. I have
 been looking
 in the documentation but did not find any explanation on what I am
 trying to do, which
 results in a formatting error message in new zope version, but worked
 fine in the older one.

 I have an input form, to which I provided a dtml-var as value,something
 like:

 td
 input name=_valuename size=20 value=dtml-var person_name
 /td


 How can I provide as value now the variabledtml-var person_name  ? It
 seems that
 there are substantial changes here. I
  
 You want to use the entity syntax for attributes:

input name=_valuename size=20 value=dtml-person_name; /

 Note that 'person_name' must be available to the template, either in the
 request or as an attribute of the context of the template.


 Tres.

___
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] persistent sessions with ZEO not working

2009-11-13 Thread Allen Schmidt Sr.
What we did was create a Session.fs and added to the zope and zeo conf 
files. Then after restarting the zopes and zeo, in the ZMI, create a 
ZODB mount point and it should see the Session.fs and build the parts in 
the root of the ZMI that you need. Been a long time but I think those 
are the steps. That way the session data is its own data.fs file and is 
persistent across zopes and restarts, etc. The problem is that it IS a 
data.fs file and therefore an undoing storage. You will have to pack it 
the same as your main data file. Not a big deal for us as its not used 
much. Just pack back a couple days so you don't whip any session data 
that could be going on at that moment.

Anyone please chime in if I am missing something. Just taking a shot at 
an answer based on our set up.
Your mileage may vary.

Allen


Marko Kruijer wrote:
 I'm maintaining a ZEO cluster setup that currently consists of 2 Zope 
 clients and 1 ZEO server (Zope version is 2.10.5.)

 I'm using sessions on the hosted site and am having trouble sharing them 
 across the 2 servers.

 I've done a config as described here: 
 http://www.zopelabs.com/cookbook/1061234337

 Everything runs fine, except my sessions 'change' randomly. For example 
 if I output my SESSION data I notice that the sessions ID is not 
 persistent over i.e. 10 page loads.
 The contents of the sessions also change, of course.

 Am I missing something here? The central storage of the sessions should 
 fix this if i'm correct, but it doesn't.
 Is this impossible to do, or is another issue causing this stange behaviour?

 best regards,
 Marko


 ___
 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 )


Re: [Zope] persistent sessions with ZEO not working

2009-11-13 Thread Allen Schmidt Sr.
Do you have the ZODB mount point set up and pointing to your session_folder?

Marko Kruijer wrote:
 That's not my problem, the session is in it's own .fs file, and it is 
 persistent.
 The problem is that the two zope clients use different sessions id's 
 for the same user, that's not supposed to happen imo.

 Allen Schmidt Sr. wrote:
 What we did was create a Session.fs and added to the zope and zeo 
 conf files. Then after restarting the zopes and zeo, in the ZMI, 
 create a ZODB mount point and it should see the Session.fs and build 
 the parts in the root of the ZMI that you need. Been a long time but 
 I think those are the steps. That way the session data is its own 
 data.fs file and is persistent across zopes and restarts, etc. The 
 problem is that it IS a data.fs file and therefore an undoing 
 storage. You will have to pack it the same as your main data file. 
 Not a big deal for us as its not used much. Just pack back a couple 
 days so you don't whip any session data that could be going on at 
 that moment.

 Anyone please chime in if I am missing something. Just taking a shot 
 at an answer based on our set up.
 Your mileage may vary.

 Allen


 Marko Kruijer wrote:
 I'm maintaining a ZEO cluster setup that currently consists of 2 
 Zope clients and 1 ZEO server (Zope version is 2.10.5.)

 I'm using sessions on the hosted site and am having trouble sharing 
 them across the 2 servers.

 I've done a config as described here: 
 http://www.zopelabs.com/cookbook/1061234337

 Everything runs fine, except my sessions 'change' randomly. For 
 example if I output my SESSION data I notice that the sessions ID is 
 not persistent over i.e. 10 page loads.
 The contents of the sessions also change, of course.

 Am I missing something here? The central storage of the sessions 
 should fix this if i'm correct, but it doesn't.
 Is this impossible to do, or is another issue causing this stange 
 behaviour?

 best regards,
 Marko


 ___
 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 )


Re: [Zope] [Zope-Annce] ZClasses resurrected

2009-10-04 Thread Allen Schmidt Sr.
So...we are on 2.8.10 and our biggest app on our site is a ZClass based 
news object. How close will this provide functionality to just drop our 
data.fs into 2.12 and have those zclasses work?
This is huge news! Thanks Dieter

-Allen


Dieter Maurer wrote:
 The Zope developers have ripped out the ZClasses functionality from
 the Zope core in version 2.12.

 As promised, I have collected the former code in a new package
 (dm.zopepatches.zclasses on PyPI). When imported, this package
 uses monkey patching to restore the ZClasses functionality.
 New tests verify the functionality as formerly described in the
 Zope book (2.7 edition).

 To make ZClasses available again,
 the ZODB root database requires dm.zopepatches.zclasses.ClassFactory
 as class-factory option in the Zope configuration file.
 When this option is processed, the package is imported
 and the monkey patching takes place.


 The current version does not yet restore the distribution functionality
 (of Zope products). Let me know when you need this functionality.

   
___
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] Reconnection session_data to own Session.fs storage

2009-08-05 Thread Allen Schmidt Sr.




Dieter Maurer wrote:

  Allen Schmidt Sr. wrote at 2009-8-4 13:45 -0400:
  
  
...
In the ZMI, there are:

/session_folder/  ( a regular folder )
   session_data  ( Transient Object Container )

/session_data_manager ( Session Data Manager )


All the parts seem right but its not workingsession writes wind up 
as anonymous transactions in the main ZODB.

Any ideas?

  
  
Verify that "session_folder" is a mount point and not a regular
folder.

This is not trivial as a mount point, once mounted, tries hard to
become the mounted object (this happens in its "__of__" method).
You must avoid acquisition to check that it is indeed a mount point.
One way is to use "app._p_activate(); app.__dict__['session_folder']".
This must return a mount point, not a folder.
  

I verified using your process that it is indeed just a folder. So I
deleted the session_folder in the root and then tried to add a ZODB
mount point in the root and it showed the session_folder was ready to
be created. I made sure that option was checked and clicked Ok. It
reloaded the root folder and the new session_folder was there, but it
still seems like it is just a regular folder and does not identify
itself as a mount point. I also added the session_data object into that
folder as a Transient Object Container as it was before.

Does the session_data_manager that points to that session_data folder
also have to be removed in this process? Could be holding it up somehow?


___
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] Reconnection session_data to own Session.fs storage

2009-08-04 Thread Allen Schmidt Sr.
Dieter Maurer wrote:
 Allen Schmidt Sr. wrote at 2009-3-5 10:34 -0500:
   
 Somehow, and not sure how, our session_data objects got deleted. No one 
 admits doing it so no idea what happened.
 I recreated the objects with the same IDs and even setup the ZODB mount 
 point to point to the right parts. But our SESSION calls won't write the 
 the separate Session.fs storage and it writes every SESION usage to our 
 main Data.fs as an anon transaction.

 We are on 2.8.10 running ZEO on one server and 5 zope clients on two 
 other servers. The Session.fs file sits along with the Data.fs file but 
 never gets used.

 Any idea how to reconnect the parts again?
 

 The so called session_data_manager tells Zope where the
 session_data is located.

 Apparently, your session_data_manager does not look at
 the place of your mount point or your mount point does not work/is not
 active.

 First verify the session_data_manager configuration (this easy -- look
 in the ZMI).
 If this is correct, verify the mount point.
 That is not so easy. The best way is to start an interactive
 Python interpreter (bin/zopectl debug on *nix).
 Then use

  folder = app.unrestrictedTraverse('path_to_folder_containing_the_mount')
  folder._p_activate() # load the folder
  folder.__dict__['Id_of_your_mount_point']

 You should see an ZODBMountPoint (or something along this lines).

 If you really see a mount point, verify its configuration
 (that's easy again -- thus, you can do that before the more
 difficult step): is the mount point really in the storage you want?
I completely missed this response.
Still having this issue so going back over this again.
Can you identify which things and where for the items above?
  path_to_folder_containing_the_mount and ID_of_your_mount_point

This is in the zope.conf:

 zodb_db session
   mount-point /session_folder
   zeoclient
 server blahblah.com:
 storage session
 name session
 client session
 var $INSTANCE/var
   /zeoclient
 /zodb_db


This is in the zeo.conf:

filestorage session
  path $INSTANCE/var/Session.fs
/filestorage


In the ZMI, there are:

/session_folder/  ( a regular folder )
session_data  ( Transient Object Container )

/session_data_manager ( Session Data Manager )


All the parts seem right but its not workingsession writes wind up 
as anonymous transactions in the main ZODB.

Any ideas?
Thanks!
-Allen
___
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] Cheap Zope hosting

2009-07-31 Thread Allen Schmidt Sr.
Now that HighSpeedRails is closing down at midnight tonight, does anyone 
have any low-cost suggestions for hosting a handful of low-traffic 
domains in a single Zope??
Thanks
-Allen

___
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] Compare String to Integer

2009-04-21 Thread Allen Schmidt Sr.
dtml-in getTable
  OPTION VALUE=dtml-var brand_id 
dtml-if brand_id==int(pid)SELECTED
 /dtml-if / dtml-var brand_name
/dtml-in getTable

That should do it.
-Allen


Bobby wrote:
 Hi,

 I can't compare a string (pid) to an integer (brand_id); what's is wrong with 
 my code below? pid is being passed in the URL as pid= , brand_id is an 
 integer from a database table. Could someone help me with this so that I 
 could make the if statement comparison work? Thanks.  

 dtml-in getTable()
   OPTION VALUE=dtml-var brand_id 
 dtml-if expr=brand_id==pidSELECTED
  /dtml-if / dtml-var brand_name
 /dtml-in getTable


   
 ___
 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] Reconnection session_data to own Session.fs storage

2009-03-17 Thread Allen Schmidt Sr.
I ran the debug to verify the mount point and got this:

  folder.__dict__['session_data']
TransientObjectContainer at session_data
 


And in the session_folder object in the root, the session_data objects 
shows as a TransientObjectContainer and not a ZODB Mount Point.



Dieter Maurer wrote:
 Allen Schmidt Sr. wrote at 2009-3-5 10:34 -0500:
 Somehow, and not sure how, our session_data objects got deleted. No one 
 admits doing it so no idea what happened.
 I recreated the objects with the same IDs and even setup the ZODB mount 
 point to point to the right parts. But our SESSION calls won't write the 
 the separate Session.fs storage and it writes every SESION usage to our 
 main Data.fs as an anon transaction.

 We are on 2.8.10 running ZEO on one server and 5 zope clients on two 
 other servers. The Session.fs file sits along with the Data.fs file but 
 never gets used.

 Any idea how to reconnect the parts again?
 
 The so called session_data_manager tells Zope where the
 session_data is located.
 
 Apparently, your session_data_manager does not look at
 the place of your mount point or your mount point does not work/is not
 active.
 
 First verify the session_data_manager configuration (this easy -- look
 in the ZMI).
 If this is correct, verify the mount point.
 That is not so easy. The best way is to start an interactive
 Python interpreter (bin/zopectl debug on *nix).
 Then use
 
  folder = app.unrestrictedTraverse('path_to_folder_containing_the_mount')
  folder._p_activate() # load the folder
  folder.__dict__['Id_of_your_mount_point']
 
 You should see an ZODBMountPoint (or something along this lines).
 
 If you really see a mount point, verify its configuration
 (that's easy again -- thus, you can do that before the more
 difficult step): is the mount point really in the storage you want?
 
 
 
___
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] Reconnection session_data to own Session.fs storage

2009-03-05 Thread Allen Schmidt Sr.
Somehow, and not sure how, our session_data objects got deleted. No one 
admits doing it so no idea what happened.
I recreated the objects with the same IDs and even setup the ZODB mount 
point to point to the right parts. But our SESSION calls won't write the 
the separate Session.fs storage and it writes every SESION usage to our 
main Data.fs as an anon transaction.

We are on 2.8.10 running ZEO on one server and 5 zope clients on two 
other servers. The Session.fs file sits along with the Data.fs file but 
never gets used.

Any idea how to reconnect the parts again?

Thanks

Allen

___
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-DB] [Zope] Stored Procedures Versus ZSQL Methods

2009-02-18 Thread Allen Schmidt Sr.




I understand. Thanks.
Did not realize there was a new version of the python/zmysqlda
available. Thanks for that info. Would really like to use the mx
connectors but at this point if I can use an updated free one and it
works, then I need to do that.

And no, all our stuff is in the ZODB as ZSQL methods. Always has been.
We do some stuff in straight python on the filesystem and some external
methods but the vast majority is still done the same old way. Currently
running on 2.8.9.1

Thanks for the info.

Allen


Charlie Clark wrote:

  Am 18.02.2009, 20:24 Uhr, schrieb Allen Schmidt Sr. aschm...@fredericksburg.com:

  
  
Hey Charlie,

  
  
  
  
What timing. I am having my server guys drop the trial egenix zope da in  
place as I write this. Seeing too many errors and oddities with the  
ancient MySQLDA we use now. Planning on converting all our mysql  
connections to the mxodbc connectors, but utilize the exact same name so  
we don't have to change every ZSQL method. Is this a sound practice? Or  
do you have any other solutions.

  
  
If MySQL is to stay as your RDBMS then this work perfectly. It's one of the nice things about Zope that you tend to overlook: some replacement components really can just be dropped in - the ZSQL methods just know the id of the connection. To be honest the 3.0 version of the ZMySQLDA isn't bad and some of the errors may be related to other things - I've recently had a project with key errors on cached ZSQL results which are independent of the DA. But I'm pretty confident that the mxODBC Zope DA is the best around but being able to access more of the underlying driver can be a real life-saver. One thing I would recommend is moving all you ZSQL to the file system if you haven't already done this.

  
  
 Thanks and sorry for bothering you directly. Please let me know if not  
appropriate.

  
  
While I don't mind the e-mail at all. It's always good to keep discussions like this on list so to that others can join in or benefit.

Charlie
  



___
Zope-DB mailing list
Zope-DB@zope.org
http://mail.zope.org/mailman/listinfo/zope-db


[Zope] Question about URL lookups

2008-12-29 Thread Allen Schmidt Sr.
Sorry if this is too generic a question but thought I would throw it out.
Interested in doing a page that does a ZSQL lookup based URL parts but 
not like a normal db lookup.
I want another way to do:

domain.com/LocalSearchFolder/lookup?category=27state=vacity=Fredericksburg
More like this:
domain.com/LocalSearchFolder/L-Fredericksburg/S-VA/C-Plumbing

And that page (u...DTML preferably) would display the lookup results 
for Plumbing contractors in Fredericksburg, VA.

Any pointers to ideas??

Thanks!
-Allen

___
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] POSKeyError

2008-12-02 Thread Allen Schmidt Sr.




Is is ok to just run this anytime as a preventive measure? We had a
POSkeyerror that would show up now and again but we could never nail it
down.
Are there any drawbacks to running this on a production server? 
Thanks
-Allen


Dieter Maurer wrote:

  Rupesh P Raj wrote at 2008-12-2 13:46 +0530:
  
  
I am getting the following POSKeyError. Can anyone please tell me, what is
the reason for this error, and how can I rectify it:

2008-12-02T03:16:11 ERROR ZODB.Connection Couldn't load state for 0x18fb01
Traceback (most recent call last):
 File "/opt/Zope-2.8.8/lib/python/ZODB/Connection.py", line 704, in
setstate
   self._setstate(obj)
 File "/opt/Zope-2.8.8/lib/python/ZODB/Connection.py", line 740, in
_setstate
   p, serial = self._storage.load(obj._p_oid, self._version)
 File "/opt/Zope-2.8.8/lib/python/ZEO/ClientStorage.py", line 746, in load
   return self.loadEx(oid, version)[:2]
 File "/opt/Zope-2.8.8/lib/python/ZEO/ClientStorage.py", line 769, in
loadEx
   data, tid, ver = self._server.loadEx(oid, version)
 File "/opt/Zope-2.8.8/lib/python/ZEO/ServerStub.py", line 192, in loadEx
   return self.rpc.call("loadEx", oid, version)
 File "/opt/Zope-2.8.8/lib/python/ZEO/zrpc/connection.py", line 536, in
call
   raise inst # error raised by server
POSKeyError: 0x18fb01

  
  
Your ZODB contains an object referencing another object with object id
"0x18fb01" but this object is missing (not in the ZODB).
I.e., you have a dangling (persistent) reference.

You can use the "fsrefs" utility to check for such dangling references.
It will tell you about the referencing object and its broken references.
You can fetch the referencing object and try to fix it (there is a
HowTo somewhere how you can approach this).



  



___
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] Was Problem using nested dtml-in with zsql

2008-11-08 Thread Allen Schmidt Sr.




+1
We love zope on our site and continue to build new things almost daily
and all with DTML and ZSQL. Not a single line of ZPT anywhere within
our 7gb Data.fs that has been making us all money and employing many
folks for almost 8 years now as a newspaper website. AND in the
birthplace of Zope www.Fredericksburg.com/Virginia/ 8^)

Cheers!
-Allen



Tim Nash wrote:
+1
Well spoken. It is painful to see all the cheers for django templates
when dtml has been around longer and is just as good, maybe better.
  
ZPT may also be fantastic but I haven't needed them yet. They seem to
be designed to solve web editing problems circa 2002.
  
-Tim
  
  
  On Sat, Nov 8, 2008 at 11:47 AM, Kees de
Brabander [EMAIL PROTECTED]
wrote:
  +1
cb

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Namens Garry
Saddington
Verzonden: zaterdag 8 november 2008 12:54
Aan: zope@zope.org
Onderwerp: Re: [Zope] Was Problem using nested dtml-in with zsql


On Saturday 08 November 2008 06:21, Andreas Jung wrote:
 Any particular reason for using DTML instead of ZPT? DTML is dead.
Firstly let me say that I do not wish to relight the ZPT vs DTML
argument,
only to make a few points.

I find this an extraordinary attitude coming from someone so important
to
this community. I am sure there are many developments out there relying
on
DTML and I am also sure that the developers are earning a living from
those
developments. Will employers be happy that the technology used for their
sites is "dead" ? Will they continue to pay these developers?

Can you give one reason why DTML is bad that is not based on personal
preference, presentation tools or the cognitive ability of developers to
understand where variables are coming from? Does it not work if used
properly?

If someone comes to Zope and prefers to use DTML then let him, don't
criticise instead of help him. Zope is a fantastic piece of software,
however it is used, and its use should be encouraged.

I prefer DTML and always have done and always will, no matter what this
list
says and I am sure there are many more like me. DTML is available and is
used, let's support it properly on this list.

While I was learning Zope I had many questions, but I had to work most
of
them out myself, not wanting to get lambasted again on this list for
using
DTML.
If help was more forthcoming I'm sure that I would have learned more
quickly
rather than in relative isolation.

Is the ZMI going to be re-written using ZPT?


Regards
Garry
___
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
)



No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.175 / Virus Database: 270.9.0/1775 - Release Date:
8-11-2008
9:56


___
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 )
  



___
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] Was Problem using nested dtml-in with zsql

2008-11-08 Thread Allen Schmidt Sr.




Of course!! That goes without saying, but I guess it does not get said
often enough. Thanks to all you hard working contributors who keep DTML
alive!!!
-Allen

Tim Nash wrote:
BTW, Andreas, It is probably extra work to maintain both
ZPT and DTML in each Zope release. We want you to know that we
appreciate the extra work and your skills.
:)
  
  
  
  
  On Sat, Nov 8, 2008 at 4:01 PM, Allen
Schmidt Sr. [EMAIL PROTECTED]
wrote:
  

+1
We love zope on our site and continue to build new things almost daily
and all with DTML and ZSQL. Not a single line of ZPT anywhere within
our 7gb Data.fs that has been making us all money and employing many
folks for almost 8 years now as a newspaper website. AND in the
birthplace of Zope www.Fredericksburg.com/Virginia/
8^)

Cheers!
-Allen



Tim Nash wrote:

  
  +1
Well spoken. It is painful to see all the cheers for django templates
when dtml has been around longer and is just as good, maybe better.
  
ZPT may also be fantastic but I haven't needed them yet. They seem to
be designed to solve web editing problems circa 2002.
  
-Tim
  
  
  On Sat, Nov 8, 2008 at 11:47 AM, Kees de
Brabander [EMAIL PROTECTED]
wrote:
  +1
cb

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Namens Garry
Saddington
Verzonden: zaterdag 8 november 2008 12:54
Aan: zope@zope.org
Onderwerp: Re: [Zope] Was Problem using nested dtml-in with zsql


On Saturday 08 November 2008 06:21, Andreas Jung wrote:
 Any particular reason for using DTML instead of ZPT? DTML is dead.
Firstly let me say that I do not wish to relight the ZPT vs DTML
argument,
only to make a few points.

I find this an extraordinary attitude coming from someone so important
to
this community. I am sure there are many developments out there relying
on
DTML and I am also sure that the developers are earning a living from
those
developments. Will employers be happy that the technology used for their
sites is "dead" ? Will they continue to pay these developers?

Can you give one reason why DTML is bad that is not based on personal
preference, presentation tools or the cognitive ability of developers to
understand where variables are coming from? Does it not work if used
properly?

If someone comes to Zope and prefers to use DTML then let him, don't
criticise instead of help him. Zope is a fantastic piece of software,
however it is used, and its use should be encouraged.

I prefer DTML and always have done and always will, no matter what this
list
says and I am sure there are many more like me. DTML is available and is
used, let's support it properly on this list.

While I was learning Zope I had many questions, but I had to work most
of
them out myself, not wanting to get lambasted again on this list for
using
DTML.
If help was more forthcoming I'm sure that I would have learned more
quickly
rather than in relative isolation.

Is the ZMI going to be re-written using ZPT?


Regards
Garry
___
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
)



No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.175 / Virus Database: 270.9.0/1775 - Release Date:
8-11-2008
9:56


___
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 )
  


  
  
  



___
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] Question about Roles

2008-08-05 Thread Allen Schmidt Sr.

Zope 2.8.9.1

I have a user in the root acl_users but no Roles set. Then I go into the 
folder I want the user to have access in and using Local Roles, I assign 
Manager. Then on the page I use:


dtml-if 'Manager' in _.SecurityGetUser().getRoles()
  show the update and delete form buttons
/dtml-if


For me, with Manager assigned in the root, I can see the buttons. But 
for this user, the buttons are not there. When I dtml-var the above 
getRoles() she only shows as 'Authenticated' but not 'Manager' and I 
show both.


Just wondering why??

Thanks

Allen


___
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] Question about Roles

2008-08-05 Thread Allen Schmidt Sr.

That worked perfectly.
Thanks Matt!

Allen


Behrens Matt - Grand Rapids wrote:

You need to check to see if said user has that role on the object in
question.  getRoles is only going to show you roles assigned in the User
Folder, not local roles.

This code is doing a similar thing on my site, with a different role:

dtml-if expr=_.SecurityGetUser().has_role('Development Manager',
this()) 


___
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] Bug in ZSQL test?

2008-07-10 Thread Allen Schmidt Sr.

I know, I know...too old to worry about...
Zope 2.8.9.1 on RedHat and MySQL5

In the Test tab of a ZSQL method, where the query has parameters, when 
we enter parameters that generate a result of more than 20 rows, we get 
the link for next 20 results. However, the parameters are not getting 
passed in and the next page shows all the rows as if no parameters passed.


Anyone else seen this?

Thanks

Allen


___
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] anyone heard of Zamasing?

2008-04-16 Thread Allen Schmidt Sr.
A reason to upgrade our 2.7.5!!!  I have been on this list for over 7 
years and have never heard of this company. I wonder how many other cool 
Zope2 things are being done quietly in the shadows. Bring your cool 
stuff into the light for others to enjoy...and pay for if needed. I for 
one have no problem buying useful tools or products for Zope.


Thanks for the tip Chris.

Allen


Tom Von Lahndorff wrote:


Thats pretty awesome. It's zamazing to me that Zope 2 is not a de 
facto platform for Web 2.0 projects. I think it has some major 
benefits over Rails and maybe even Django but there seems to be no 
interest in it from that community. This is a great start.

___
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] ZServer uncaptured python exception

2008-04-02 Thread Allen Schmidt Sr.

Thanks Chris.
Seeing tons of squid messages about the new msnbotand it is not 
following our robots.txt directive. In fact, I have even disallowed it 
completely and it still goes where it wants. And the updated version was 
supposed to have been released end of last weekabout the time our 
zeo clients started pegging 99%.


Chris Withers wrote:


Allen Schmidt Sr. wrote:


Running logtail on a ZEO client, I am seeing lots of these.
And our two public clients are pegging the server at 99% almost 
continuously. Not sure why.


2008-04-01T09:54:09 ERROR(200) ZServer uncaptured python exception, 
closing channel ZServer.HTTPServer.zhttp_channel connected 
8.7.96.136:56350 at 0xb63d7a6c channel#: 800 requests:4 
(socket.error:(104, 'Connection reset by peer') 



This exception is annoying in that it's pretty meaningless.
Clients disconnecting midway through may be quite a normal thing and 
it's annoying there's no way to catch this exception if you want to.


In your case, I'd guess that your load has recently gone way up (maybe a 
search engine spider, some other spider of people with M$ Office 
installed hammering your site for webdav requests) but I wouldn't worry 
about these...


cheers,

Chris


___
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] ZServer uncaptured python exception

2008-04-01 Thread Allen Schmidt Sr.

Running logtail on a ZEO client, I am seeing lots of these.
And our two public clients are pegging the server at 99% almost 
continuously. Not sure why.




2008-04-01T09:54:09 ERROR(200) ZServer uncaptured python exception, 
closing channel ZServer.HTTPServer.zhttp_channel connected 
8.7.96.136:56350 at 0xb63d7a6c channel#: 800 requests:4 
(socket.error:(104, 'Connection reset by peer') 
[/usr/local/lib/python2.3/asynchat.py|initiate_send|218] 
[/var/www/zope/zope275c2/lib/python/ZServer/medusa/http_server.py|send|417] 
[/usr/local/lib/python2.3/asyncore.py|send|337])

--
2008-04-01T09:54:17 ERROR(200) ZServer uncaptured python exception, 
closing channel ZServer.HTTPServer.zhttp_channel connected 
8.7.96.136:56590 at 0xb26898ac channel#: 890 requests: 
(socket.error:(104, 'Connection reset by peer') 
[/usr/local/lib/python2.3/asynchat.py|initiate_send|218] 
[/var/www/zope/zope275c2/lib/python/ZServer/medusa/http_server.py|send|417] 
[/usr/local/lib/python2.3/asyncore.py|send|337])

--



Allen

___
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] ZServer uncaptured python exception

2008-04-01 Thread Allen Schmidt Sr.

That makes sense...but I think they are still related, sort of.
The thread you offered says the error comes from clients 
disconnecting...hitting the stop button or loading a different 
page...effectively doing the same thing.


But they are hitting the stop button BECAUSE the site is slow and 
spinning.  I have Deadlockdebugger and that shows a variety of things. 
Mostly that all 4 threads are always full.


I will keep looking.

Allen


Jonathan wrote:



- Original Message - From: Allen Schmidt Sr. 
[EMAIL PROTECTED]

To: Zope Users zope@zope.org
Sent: Tuesday, April 01, 2008 10:11 AM
Subject: [Zope] ZServer uncaptured python exception



Running logtail on a ZEO client, I am seeing lots of these.
And our two public clients are pegging the server at 99% almost 
continuously. Not sure why.




2008-04-01T09:54:09 ERROR(200) ZServer uncaptured python exception, 
closing channel ZServer.HTTPServer.zhttp_channel connected 
8.7.96.136:56350 at 0xb63d7a6c channel#: 800 requests:4 
(socket.error:(104, 'Connection reset by peer') 
[/usr/local/lib/python2.3/asynchat.py|initiate_send|218] 
[/var/www/zope/zope275c2/lib/python/ZServer/medusa/http_server.py|send|417] 
[/usr/local/lib/python2.3/asyncore.py|send|337])

--
2008-04-01T09:54:17 ERROR(200) ZServer uncaptured python exception, 
closing channel ZServer.HTTPServer.zhttp_channel connected 
8.7.96.136:56590 at 0xb26898ac channel#: 890 requests: 
(socket.error:(104, 'Connection reset by peer') 
[/usr/local/lib/python2.3/asynchat.py|initiate_send|218] 
[/var/www/zope/zope275c2/lib/python/ZServer/medusa/http_server.py|send|417] 
[/usr/local/lib/python2.3/asyncore.py|send|337])



I am not sure that the error messages you are seeing are related to your 
high cpu utilization.


There is a discussion thread on your error here: 
http://aspn.activestate.com/ASPN/Mail/Message/zope-list/3492748


If you google 'debug spinning zope'  you will find links on how to track 
down cpu consumption.


HTH

Jonathan
___
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] problem migrating ZClasses from Zope 2.6.1 to Zope 2.9.8

2008-03-26 Thread Allen Schmidt Sr.
That sounds so easy. We have one ZClass but it is the basis of almost 
our entire newspaper website. The news ZClass was built in 2000 and put 
into production when we went live on Zope in Feb 2001 (just before the 
guys at Zope Corp said that ZClasss were bad). Over 7 full years of 
daily news as ZClass objects. We are in the same boat as we want to move 
from 2.7.5 to a later version. We could switch to SQL articles but then 
we would have to make sure all the old URLs still functioned as our 
content is all over the search engines...and convert everywhere there 
are tools to manage story creation, importing, editing, etc. Yuck. We 
could just make the cutover one day and just keep an instance running 
for the old stuff and all new stuff runs from SQL.


Has anyone every built tools to inspect a ZClass and produce a python 
product on the other end? That would be slick...but probably not worth 
the effort if only a few still use them.


Allen




Jens Vagelpohl wrote:


On Mar 26, 2008, at 11:19 , Yuri wrote:


Hi!

I've got a trouble importing a ZClass app to 2.9.8 from 2.6.1.



IMHO you're not investing your time wisely trying to make a ZClas  
application work on a later Zope version. They're unsupported and  dead. 
I would keep the old setup running and spend time on recreating  the 
ZClass product functionality as a real Zope product, and then  create a 
script to migrate the old ZClass instances over.


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 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] problem migrating ZClasses from Zope 2.6.1 to Zope 2.9.8

2008-03-26 Thread Allen Schmidt Sr.
No idea even where to start. I played with creating a 'boring' object a 
while back but I am pretty sure ours is a tad more complicated. All the 
parts of our site I work on are in SQL and was never involved in the 
ZClass News stuff. It just works...and continues to work...but is 
limiting us from upgrading.


So, where to start. Once we get some guidance, we could probably do it 
ourselves.  Anyone willing to a$$$ist? We don't have a budget for it but 
could scrape something together to get started. Even just to log in and 
look at what we have and say,

Ah, you need to do this and this and this, then it will work.
I know not that simple, but that is what I am trying to find out.

Thanks

Allen


Jens Vagelpohl wrote:



On Mar 26, 2008, at 12:59 , Allen Schmidt Sr. wrote:

That sounds so easy. We have one ZClass but it is the basis of  almost 
our entire newspaper website. The news ZClass was built in  2000 and 
put into production when we went live on Zope in Feb 2001  (just 
before the guys at Zope Corp said that ZClasss were bad). Over  7 full 
years of daily news as ZClass objects. We are in the same  boat as we 
want to move from 2.7.5 to a later version. We could  switch to SQL 
articles but then we would have to make sure all the  old URLs still 
functioned as our content is all over the search  engines...and 
convert everywhere there are tools to manage story  creation, 
importing, editing, etc. Yuck. We could just make the  cutover one day 
and just keep an instance running for the old stuff  and all new stuff 
runs from SQL.



When you build a real Zope product to replace the ZClasses it is no  
problem to make it behave like the old instances and put them in the  
same place as the old instance so the URL remains the same. Switching  
away from ZClasses does not mean you must change instance URLs etc.


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] problem migrating ZClasses from Zope 2.6.1 to Zope 2.9.8

2008-03-26 Thread Allen Schmidt Sr.

Thanks for the info.
Our Data.fs hovers in the 7-8 gig range and we have been running with 
Zope for 8 years. And the news parts are just a fraction of our content 
and a newspaper website with many different vertical products and 
sections. I would say that makes us married to Zope2! ;)


I appreciate the responses and info. I have been contacted offlist by 
someone who is offering assistance. We'll see where that goes.


Thanks again.

Allen


Andreas Jung wrote:




--On 26. März 2008 09:48:11 -0400 Allen Schmidt Sr. 
[EMAIL PROTECTED] wrote:



No idea even where to start. I played with creating a 'boring' object a
while back but I am pretty sure ours is a tad more complicated. All the
parts of our site I work on are in SQL and was never involved in the
ZClass News stuff. It just works...and continues to work...but is
limiting us from upgrading.

So, where to start. Once we get some guidance, we could probably do it
ourselves.  Anyone willing to a$$$ist? We don't have a budget for it but
could scrape something together to get started. Even just to log in and
look at what we have and say,
Ah, you need to do this and this and this, then it will work.
I know not that simple, but that is what I am trying to find out.




We know basically nothing about your application and needs..so we can 
basically give only highlevel advices. If you can: go with Grok if you 
can divorce from the Zope 2 world. Representing your entities like news 
items using a simple schema based implementation is not a big deal. 
Group news items and other content objects in containers is also 
straight forward...but no idea but further business logic and further 
requirements. So if you aren't married with Zope 2 and when you have the 
chance making a cut, go with Grok...but it might require a close 
analysis of your current system.


Andre
as

___
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] 2.10 and ZClasses

2008-02-26 Thread Allen Schmidt Sr.
We are still running 2.7.5 but really want to upgrade. Changes.txt in 
2.10.5 state ZClasses are deprecated. CAN they still be used?? Not at 
all or just not recommended and why? What is the highest version we can 
safely upgrade to then?


Thanks

Allen
___
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] 2.10 and ZClasses

2008-02-26 Thread Allen Schmidt Sr.
Is there anyone out there still using ZClasses on later versions of 
Zope?? Care to share any experiences? Off-list responses are fine.


Thanks!

Allen


Andreas Jung wrote:




--On 26. Februar 2008 07:30:04 -0500 Allen Schmidt Sr. 
[EMAIL PROTECTED] wrote:



We are still running 2.7.5 but really want to upgrade. Changes.txt in
2.10.5 state ZClasses are deprecated.



Deprecated means: they are still working (or at least they should).

-
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 )

___
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: 2.10 and ZClasses

2008-02-26 Thread Allen Schmidt Sr.

I understand and appreciate your responses.

Finally got some things straightened out and after changing DA settings 
to point to real database servers (instead of localhost), and commenting 
things out that were calling unneeded parts, I am able to get our site 
up (on some pages) with yesterdays news stored in the Data.fs.


I am able to view an actual news ZClass objects with our site header and 
footer wrapped around it. Not bad. That shows they do work. Long way to 
go but it's a start


But, on the page that does the catalog lookup of the day's news stories, 
it is a blank page. No errors in the error_log.


But if I go to the ArchiveCatalog (our name for our Catalog) and click 
on the Catalog tab in the ZMI, I get this error:


Traceback (innermost last):
  Module ZPublisher.Publish, line 119, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 42, in call_object
  Module Shared.DC.Scripts.Bindings, line 313, in __call__
  Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
  Module App.special_dtml, line 178, in _exec
  Module DocumentTemplate.DT_Let, line 76, in render
  Module DocumentTemplate.DT_In, line 584, in renderwb
  Module Products.ZCatalog.Lazy, line 144, in __getitem__
IndexError: list index out of range

All the other tabs work.

Allen



Andreas Jung wrote:




--On 26. Februar 2008 12:31:49 -0500 Allen Schmidt Sr. 
[EMAIL PROTECTED] wrote:



I think he just meant that others should keep their responses to me on
the list...as I offered the option to respond off-list, with the
intention of keeping the noise down to the couple guys who may benefit
and still use ZClasses.



Although I don#t care much about ZClasses I would like to hear if there are
any issues with them. Public noise is not a problem. If known issues are 
discussed in public than other people might find them later in the archive.
That's just the whole point why I would like to avoid private 
discussions about things of public interest.


Andre
as

___
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] Re: compile time optimizations for python

2008-01-19 Thread Allen Schmidt Sr.
So would this also apply to older zopes? Like 2.7.5?? Exactly where is 
that changed and in what increments are safe to increase it by?


Thanks

Allen


Tres Seaver wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Suresh V. wrote:


Tres Seaver wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1




- Tune the ZEO disk cache size (the warning sign is seen lots of
  ZEO cache flip entries in the event log).



Can you explain this some more?

1. Do we increase the cache size when we see these ZEO cache flips?



Yes  In general, keep increasing it until they are no longer noticeable.



2. What is a good rate for these cache flips?



I don't have a firm sense, but no oftener than every hour, say:  when
the cache flips, you lose half the working set (the oldest half).



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

iD8DBQFHkfTy+gerLs4ltQ4RAsrnAKCpQBnp/eARWtDLbLaVqxU6acd+NwCghkpP
oKdWmCIhDs8dUW8uNtHXk3I=
=DhiR
-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 )



___
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] SiteErrorLog

2007-07-11 Thread Allen Schmidt Sr.

or ZSQL methods and where they barf in the call.

Sounds cool Peter! Thanks

Allen



Jonathan wrote:



- Original Message - From: Peter Bengtsson [EMAIL PROTECTED]
To: zope user list zope@zope.org
Sent: Wednesday, July 11, 2007 11:16 AM
Subject: [Zope] SiteErrorLog


I've been playing with a new monkey patch product for zope 2.8 (at 
least) and I confidentally call it 'BetterSiteErrorLog'. The only two 
features I've added so far is to make the error log searchable and 
that it shows the date of errors older than one day.


What other products are there out there already that I should look at?

What other features have you guys been desiring in the error_log but 
never had the time to do something about?



Wish list item:  inclusion of line number where error occurs in a dtml 
method (or code that caused the error)


Many many thanks if you can make this happen!

Jonathan

___
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] dtml Z SQL doubt

2007-03-22 Thread Allen Schmidt Sr.

Just use REPLACE instead of INSERT.
If REPLACE statement is able to determine a unique value for a row and 
sees that that unique value exists for a row, the valued will be 
updated. If it does not exist, a new row will be inserted. This is what 
I use with MySQL.


Allen


Tino Wildenhain wrote:

Remil Mathew schrieb:


Hi all,

I need to insert a row to mysql table if the corresponding  data not 
exist, if it exist i need to update the row.


Can we do it using a single Z SQL method.



Well thats not business of ZSQL methods but rather
stuff you do with the instruments of your database.
Say SQL (or whatever SQL like mysql has there)

IIRC, mysql has some kind of UPSERT which should
handle it. If not, stored procedure or trigger
etc could do it.

Regards
Tino
___
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] pool_size

2007-01-17 Thread Allen Schmidt Sr.
Used to use the debug a lot but then when we found DeadLockDebugger 
(DLD), I was hooked...mainly because there is no 'baggage' to loading 
the page. Debug actually uses one of the threads to show you that page. 
The content of the thread sorta looks like the whole REQUEST object, 
which is helpful sometimes too.
DLD is fast (normally) and sometimes rather addictive to watch...to see 
what your servers are doing. We use ZEO and 2 public clients fronted by 
squid and a third we use as an internal admin client that is not served 
by squid. I just use a set of bookmarked tabs in FireFox and open a tab 
for each server. Then I just hit 'reload all' and see what they are all 
doing.

Just my 2 cents.

Allen


Brian Sullivan wrote:


On 1/17/07, Doyon, Jean-Francois [EMAIL PROTECTED] wrote:


This information is also available in the Control Panel's debug section.
You can see which thread is busy doing what ...

Depending on exactly how locked up it is, you can try going there, see
what the current requests are pending, and in which thread.

That panel also shows you cache information, how many objects are loaded
and so on.  This could help you determine if you're leaking references
to certain objects for instance?




When it is locked up I can't access the control panel.
___
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] Upgrading Zope

2006-10-18 Thread Allen Schmidt Sr.
If you are using any zClass objects and have them cataloged, then you 
need to run a script against them to do the reindexing, as I found out 
that changed at 2.8.


Also if you are using DTML and using any sorting within dtml-in 
segments, you will need to patch a file. Pages that use sorting on 
dtml-in throw a weird error. The patch works fine but since it sounds 
like no one who maintains core Zope uses DTML, that bug probably won't 
get really fixed. There is an outstanding ticket open on it.


Those are the things I have found so far. We are on 2.7.5 and now that 
those issues are worked out we are working on our upgrade strategy.


Allen


Nightflyer wrote:


Hi All,
I've been asked to migrate an ancient Zope server from 2.1.x to the
latest 2.x or 3.x version.

This server only have a couple of applications, both using Z SQL Methods,
DHTML methods and documents, some products and some external methods. They
don't use ZPT or Script (python) at all.

I'd like to know if you think that such migration is feasible or if I'll
encounter some problems.

Do you think it is better to migrate to the latest version of the 2.x or 3.x
branch?

If you have any link on this subject is really appreciated.

Bye,

Andrew.

___
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] Zeo Client hanging

2006-10-18 Thread Allen Schmidt Sr.
I see references to asyncore.py near the end of the thread listing when 
using DeadLockDebugger and seeing a stuck thread process. The tread 
eventually clears out but sometimes an impatient user reloads, reloads, 
reloads...and then all 4 threads are stuck on exact same thing. Then you 
can see the same URL jump to the other Zope/ZEO client and same thing 
happens there. Another few reloads and one user has effectively crashed 
the siteuntil the threads clear themselves out. Usually is a catalog 
search for a news article or something spanning our 6 years of online 
news articles searching on the word 'bob' or something like that.


+1 for DeadlockDebugger... love it.

Allen




Paul Winkler wrote:


On Wed, Oct 18, 2006 at 07:32:38AM +0200, Maciej Wisniowski wrote:


zope 2.8.5 + zeo
python 2.3.4 (red hat distribution)
Red Hat RHEL 4
Plone 2.1.2

Our zeo clients hang intermittently.  We have no way of reproducing the
problem, but it occurs daily.  The client hangs and a restart seems to 
fix the

problem.


Install DeadlockDebugger and you'll be able to see what is
the state of your threads when Zope becomes unresponsive.



In the event log with tracing on we get

Trace zeo.zrpc.Connection(C) wait(16697) {server:8100} pending, async=0

There are hundreds to thousands of these until the server is restarted.

In the zeo log we get

Error caught in asyncore asyncore.py

error:(110,'Connection timed out')


I'm not sure what these errors are. Maybe firewall between zeo
server and zeo client closes the connections or something like that?



That was my guess too.
See this thread:
http://aspn.activestate.com/ASPN/Mail/Message/zope-list/2916870


___
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] dtml-in sorting bug (collector #1884)

2006-09-01 Thread Allen Schmidt Sr.

r.__cmp__(x,y) requires y to be a 'r', not a 'ImplicitAcquirerWrapper'

http://www.zope.org/Collectors/Zope/1884
I see this is a pending case but does anyone have any idea if it will be 
fixed in future releases?


Finally got a 2.8.8 instance running with our Data (from 2.7.5) and was 
able to run the catalog index fixer with help from Chris Withers 
(THANKS!!) and all was looking good. The pages that looked up news 
stories from the catalog are looking good. Then I went to a page that 
displayed Houses (from ZSQL methods) and does a sort on the results as 
is the case in MANY pages we have. The top line is the result on the 
error page. Seems its a well know bug but does not look like its an 
issue to most but it is to us.


Any ideas??

Thanks

Allen
___
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] insert_id with MySQL an Z SQL Method

2006-09-01 Thread Allen Schmidt Sr.
I have been using this successfully for a while. Don't remember where I 
found out about it though:


insert stuff...
dtml-var sql_delimiter

select alert_id from entertainment_alerts
  where alert_id = @@identity


Allen



Cliff Ford wrote:

Search the mailing list archives for July - there were several 
contributions to this question. Roughly:


insert ...
dtml-var sql_delimiter
select LAST_INSERT_ID() as table_id_seq

Cliff

Ferhat Ayaz wrote:


Hi,

I have a Z SQL Method with an insert expression. To
the inserted row will be assigned an auto_increment
id. How can I get the last inserted id?

I tryed the following both commands in one Z SQL
method. Unfortunatly this produces an error.

insert into categories (parent_id,logo,active) values
(
 dtml-sqlvar parent_id type=int,
 dtml-sqlvar logo type=string,
 dtml-sqlvar active type=int,
);

SELECT currval('table_id_seq');

Thanks for your helps

Greets,
Ferhat


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.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 )


___
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] Parameter generating an exception? (also recataloging issue)

2006-08-16 Thread Allen Schmidt Sr.

I will bounce this out since I tried this recently while testing an upgrade.

We are on 2.7.5 and our 200K+ news articles are all ZClass objects and 
are cataloged. We setup a 2.8.6 instance and made sure all Products, 
Extension, etc. were the same. Copied our Data.fs and brought up the 
instance. I could browse around the site fine until I did anything that 
utilized the catalog to look up the news articles. Did not find 
anything. I could navigate directly to an article and it displayed fine.


I then tried to clear the catalog and find objects of the zclass 
typeit found nothing.


This has been a rather large stumbling block to us upgrading.

Any ideas? No rush...no emergency ... but would like to upgrade sometime 
soon hopefully.


thanks

Allen


Jonathan wrote:



- Original Message - From: Tit-Liviu Leontin 
[EMAIL PROTECTED]

To: zope@zope.org
Sent: Wednesday, August 16, 2006 10:42 AM
Subject: Re: [Zope] Parameter generating an exception?


Thanks for the quick reply, Andreas. Please don't laugh now -- but how 
do I recatalog everything? :) I told you it's Chinese to me. Many 
thanks again,




Easy to do via the ZMI:  click on the Catalog, then use the Advanced tab 
to clear the catalog (remove all existing entries) and then use the 
Find Objects tab to 'recatalog' everything.


Warning: make a backup first!!!



Jonathan
___
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] Parameter generating an exception? (also recataloging issue)

2006-08-16 Thread Allen Schmidt Sr.
Sorry. That is what I meant I did by trying to find the objects after 
clearing. The Find tab found none of those zclass objects.


I am getting that test instance set back up again with our current 
Data.fs again and am going to try the manage_convertIndexes that 
Jonathan mentioned to see if that works.


Thanks

Allen



Dieter Maurer wrote:


Allen Schmidt Sr. wrote at 2006-8-16 11:07 -0400:


...
I then tried to clear the catalog and find objects of the zclass 
typeit found nothing.



When you clear the catalog, then it is cleared (i.e. empty). You won't
find anything thereafter.

You have to recatalog all objects that you want to be found by your catalog.
I simple cases, you can do this via the catalog's Find tab.
In more difficult cases, you need to write a script that uses
catalog_object (maybe index_object) for/on the objects to be
catalogued.




___
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 )