[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

[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

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

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

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

Re: [Zope] persistent sessions with ZEO not working

2009-11-13 Thread Allen Schmidt Sr.
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

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

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

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

[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

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

Re: [Zope] Reconnection session_data to own Session.fs storage

2009-03-17 Thread Allen Schmidt Sr.
: 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

[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

Re: [Zope-DB] [Zope] Stored Procedures Versus ZSQL Methods

2009-02-18 Thread Allen Schmidt Sr.
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

[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:

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

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

Re: [Zope] Was Problem using nested dtml-in with zsql

2008-11-08 Thread Allen Schmidt Sr.
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

[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

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,

[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

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

Re: [Zope] ZServer uncaptured python exception

2008-04-02 Thread Allen Schmidt Sr.
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

[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

Re: [Zope] ZServer uncaptured python exception

2008-04-01 Thread Allen Schmidt Sr.
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

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

Re: [Zope] problem migrating ZClasses from Zope 2.6.1 to Zope 2.9.8

2008-03-26 Thread Allen Schmidt Sr.
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

Re: [Zope] problem migrating ZClasses from Zope 2.6.1 to Zope 2.9.8

2008-03-26 Thread Allen Schmidt Sr.
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

[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

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

[Zope] Re: 2.10 and ZClasses

2008-02-26 Thread Allen Schmidt Sr.
, 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

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-

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

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:

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

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

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

[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

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

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

Re: [Zope] Parameter generating an exception? (also recataloging issue)

2006-08-16 Thread Allen Schmidt Sr.
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