Re: [Zope] Session without cookies.

2005-04-11 Thread Chris McDonough
On Mon, 2005-04-11 at 16:35, Fernando Lujan wrote: Hi everyone, Is there possible to use a Session control without cookies? Yes. I already changed the browser_id_manager and unchecked the cookies and checked the Automatically Encode Zope-Generated URLs With A Browser Id option. But

Re: [Zope] The Zope Book

2005-04-12 Thread Chris McDonough
No, sorry. THe canonical version is on the web. - C On Tue, 2005-04-12 at 04:10, Dario Lopez-Ksten wrote: Chris McDonough wrote: I don't think anyone has given much thought to actually documenting all these nice nifty features in 2.9. Which is no change from the norm

Re: [Zope] ZEO and Sessions.

2005-04-12 Thread Chris McDonough
Yes. All the information in that article is geared for Zope 2.5 which had no facility for using mounted databases from a config file... everything up until At this time you should be able to navigate to the /session_storage folder... in that article can be done by reconfiguring ZEO using zeo.conf

Re: [Zope] ZEO and Sessions.

2005-04-12 Thread Chris McDonough
On Tue, 2005-04-12 at 18:23, Fernando Lujan wrote: Please, take a look in what I've done! Is that right? It works pretty fine here! :-) If it works for you, it's right. ;-) If this is right, are there a desire for a how-to? I think I can write one, once it's pretty simple as you said.

Re: [Zope] ZEO and Sessions.

2005-04-12 Thread Chris McDonough
On Tue, 2005-04-12 at 19:08, Richard Jones wrote: Is there a viable non-versioned alternative to the filestorage approach? My sessions database grows ridiculously quickly. I'm also fairly sure it's causing problems when my site gets ~5 requests a second (yes, that low) You could use

Re: [Zope] ZEO and Sessions.

2005-04-12 Thread Chris McDonough
On Tue, 2005-04-12 at 20:01, Richard Jones wrote: On Wed, 13 Apr 2005 09:44 am, you wrote: On Tue, 2005-04-12 at 19:08, Richard Jones wrote: Is there a viable non-versioned alternative to the filestorage approach? My sessions database grows ridiculously quickly. I'm also fairly sure

Re: [Zope] Memory management problems

2005-04-19 Thread Chris McDonough
Many things could be going on here. I don't know of any outstanding memory leaks in Zope itself. There may be one in Plone or another 3rd-party product you're using. Or you may have created one within your own code. Tracking down memory leaks is hard and it's not clear to even tell you where

Re: [Zope] ZODB.POSException.ReadConflictError

2005-05-03 Thread Chris McDonough
This is actually normal. See the end of http://www.plope.com/Books/2_7Edition/Sessions.stx (Conflict Errors) for a short explanation. On Tue, 2005-05-03 at 08:00 -0700, [EMAIL PROTECTED] wrote: I'm getting a ZODB.POSException.ReadConflictError on my Plone 2.0.5 site (Zope 2.7.3, Python 2.3.4

Re: [Zope] ZODB.POSException.ReadConflictError

2005-05-03 Thread Chris McDonough
On Tue, 2005-05-03 at 11:58 -0400, Tim Peters wrote: [Chris McDonough] This is actually normal. See the end of http://www.plope.com/Books/2_7Edition/Sessions.stx (Conflict Errors) for a short explanation. Conflict errors are certainly normal, but IIUC the OP is seeing site errors

Re: [Zope] ZODB.POSException.ReadConflictError

2005-05-03 Thread Chris McDonough
On Tue, 2005-05-03 at 09:18 -0700, [EMAIL PROTECTED] wrote: I cc'ed Tim Peters on this, perhaps to his chagrin, but he seemed to be interested in this. ;-) Thank you for that reference (I have an older dead trees version). Now I understand that these errors happen, but what I don't understand

Re: [Zope] Is it possible to extend Zopes WebDAV authentication?

2005-05-07 Thread Chris McDonough
Web Folders pass cookies around too, FWIW, so it's probably not strictly necessary to use http basic auth. But without using http basic auth, there is no way to log in unless you have them go to the web interface first, then launch a web folder, so maybe impractical. - C On Sat, 2005-05-07 at

Re: [Zope] Debugging product init with zopectl?

2005-05-07 Thread Chris McDonough
On Fri, 2005-05-06 at 12:48, J Cameron Cooper wrote: I agree, it would be nice to have zLOG work on startup, but I don't know how easy/possible that is. FWIW, the reason zLOG doesn't start writing to the log at an earlier time is that it waits until the process can switch effective users. If

Re: [Zope] ZEO and session variables.

2005-05-10 Thread Chris McDonough
/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) -- Chris McDonough [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists

Re: [Zope] Answer's Time

2005-05-19 Thread Chris McDonough
You may want to use a tool like wget or curl to examine the response from the server for the clicked URL. This could be many things. - C On Thu, 2005-05-19 at 18:37 -0300, Fernando Lujan wrote: I'm having the following problem and wanna know whether it can be associated with Zope. I have

Re: [Zope] Keyword index search

2005-05-20 Thread Chris McDonough
On Fri, 2005-05-20 at 12:41 +0200, Garito wrote: Hi all I have a ZCatalog object with a keywordindex called keywords I would like to search some objects with keywords ['k1', 'k2', k3', 'k4'] for that I use: return context.catalog({'keywords': {'query': ['k1', 'k2', k3', 'k4'],

Re: [Zope] Re: how to accumulate data using ZPT

2005-05-20 Thread Chris McDonough
Use two things: a page template and a Python script... here's an example: page template body -- div tal:define=L python: [1,2,3,4]; A python: context.sum_of(L) div tal:repeat=V L tal:content=V1/div div tal:content=Atotal/div /div python script

Re: [Zope] Webdav and emacs, eldav, nd problem.

2005-05-20 Thread Chris McDonough
Does a (Script) Python object actually get created or is it another object type like DTML Document when it is initially created? As far as I can tell, it would have to be the latter, as Python Scripts don't allow you to change their content-types (at least via the ZMI). On Fri, 2005-05-20 at

Re: [Zope] Modifying __bases__

2005-05-20 Thread Chris McDonough
You might also be able to do the __bases__ hack with Zope 2.8 (as long as Python 2.3+ allows you to assign to it), as it reimplements ExtensionClass using metaclasses instead of custom C hackery. On Fri, 2005-05-20 at 14:46 -0400, Paul Winkler wrote: On Fri, May 20, 2005 at 01:48:46PM -0400, Dan

Re: [Zope] Silly question

2005-06-02 Thread Chris McDonough
The DWIM of not disallowing traversal of underscore names is useful (because it makes it easy to conventionally mark attrs as private) but it can definitely be a drag if you really do want to publish something that begins with an underscore; this happens a lot when you need to deal with allowing

RE: [Zope] Silly question

2005-06-02 Thread Chris McDonough
could either specify the exact items that start with '_', or have a method determine it on the fly. This way you would not automatically make all attributes that start with an underscore accessible, and the developer could specify exceptions. -Original Message- From: Chris

Re: [Zope] ZEO, sockets and Session bug

2005-06-06 Thread Chris McDonough
There are no known bugs in Zope itself after Zope 2.7.3 consistent with what I *think* your observations are. There can be issues caused by not repersisting mutable data, as Malcom described. But that said, I'm not sure I understand what you mean when you say: - I have my zope running with a

Re: [Zope] Zope - WinXP pro x64

2005-06-06 Thread Chris McDonough
I'm pretty sure there's none meant to be. Are you having a problem or are you just doing due diligence? On Mon, 2005-06-06 at 13:33 +0300, George Tesseris wrote: R there any known compatibility issues regarding Zope(2.7.6) on Windows XP Pro x64? Thanks, George

Re: [Zope] ZEO recommended for single-cpu?

2005-06-14 Thread Chris McDonough
Typically it's because: - Zope starts faster in a ZEO setup. - You can use zopectl debug to get into a debugger session without shutting down Zope first if you use ZEO. - C On Tue, 2005-06-14 at 11:03 +0200, gabor wrote: hi, i understand that you need to use ZEO when running ZOPE on a

Re: [Zope] accessing session data error

2005-06-20 Thread Chris McDonough
Hi Leticia, Thanks for the detailed bug report. I have tried to replicate the bug as you indicate below but cannot. I've gone through the process you describe ten times without errors (in Zope 2.7.6). If it's possible to simplify the steps to recreate the error, that would be helpful in further

[Zope] New External Editor release 0.9

2005-06-20 Thread Chris McDonough
Since Casey Duncan, the original author of Zope External Editor is happily hacking away on other things at a new job, I figure I might as well pick up maintenance of this product. The new location for External Editor releases will be: http://plope.com/software/ExternalEditor/ A new release

Re: [Zope] New External Editor release 0.9

2005-06-21 Thread Chris McDonough
(or whatever it was exactly) but when I tried doubleclicking it it complained about being corrupt. Has anybody else had similar problems? On 6/21/05, Chris McDonough [EMAIL PROTECTED] wrote: Since Casey Duncan, the original author of Zope External Editor is happily hacking away

Re: [Zope] Zope External Editor Problem

2005-06-21 Thread Chris McDonough
Where is the ZopeEdit.ini file you're editing? According to the 0.8 code it should pick up the editor defined in the config file up and use it exclusively in preference to any extension- or content/type- related executables. The code first looks in: os.path.expanduser('~\\ZopeEdit.ini') (which

Re: [Zope] Zope External Editor Problem

2005-06-21 Thread Chris McDonough
Yeah, apparently 0.8 (and 0.9) writes some defaults into the homedir file if it doesn't find it there instead of copying over what exists. Maybe it should not do this. On Tue, 2005-06-21 at 13:06 -0600, [EMAIL PROTECTED] wrote: Hi Chris. The ini that I was editing is located at: c:\program

Re: [Zope] ZPT tutorial

2005-06-22 Thread Chris McDonough
The Zope Book says this in its preface FWIW: To make effective use of the book, you should know how to use a web browser and you should have a basic understanding of HTML (Hyper Text Markup Language) and URLs (Uniform Resource Locators). You don't need to be a highly-skilled programmer in order

Re: [Zope] Re: External editor for ZMI

2005-06-27 Thread Chris McDonough
On Mon, 2005-06-27 at 21:14 +0200, Josef Meile wrote: Do you mean this? http://plope.com/software/ExternalEditor Are there any screen shots of it in action? I'm not exactly sure how it works, but have feeling it won't work for me. Yes, that's what Paul meant. I tried it once and

Re: [Zope] Re: WebDAV

2005-06-28 Thread Chris McDonough
On Tue, 2005-06-28 at 03:57 -0400, Tres Seaver wrote: The Windows WebFolder implementation has been non-compliant with the DAV spec from the beginning, and further broken in various ways in each version. The usual recommendation is to buy an alternative, e.g. Enfold Systems' PloneDesktop, or

Re: [Zope] Re: External editor for ZMI

2005-06-28 Thread Chris McDonough
I've been following this discussion with some interest as I have never been able to get ExternalEditor to work for me. Now, that said, I have it confiured enough that it will present me with an editor and a file (WinWord) by clicking on the pencil. But I am confused on two points: 1.) When

Re: [Zope] WebDAV

2005-06-28 Thread Chris McDonough
Note that MS has a Webfolders fixer program, see: http://chapters.marssociety.org/webdav (beginning Some Windows XP machines have a broken Web Folders installation. Microsoft includes a Web Folders repair utility built in to Windows to correct the problem. Use the following steps to fix the

Re: [Zope] zopectl debug, 2.8.0 local zeo, Data.fs.lock file locking error

2005-07-04 Thread Chris McDonough
File permissions. The user who is the effective user does not have permission to overwrite the Data.fs.lock file. On Mon, 2005-07-04 at 15:29 +, Jeff Kowalczyk wrote: I am trying to use 'zopectl debug' for the first time with zope-2.8.0, local ZEO setup. It worked fine with zope-2.7.x and

Re: [Zope] Re: zopectl debug, 2.8.0 local zeo, Data.fs.lock file locking error

2005-07-04 Thread Chris McDonough
If you dont think it's file permissions, one thing this could also be... is your data.fs on an NFS partition? flock doesn't work well on NFS. On Mon, 2005-07-04 at 21:38 +, Jeff Kowalczyk wrote: Chris McDonough wrote: File permissions. The user who is the effective user does not have

Re: [Zope] where is Zope-2.7.6

2005-07-09 Thread Chris McDonough
I think you're going to need to guess the URL at the moment (shouldn't be too hard)... the releases are there, they just don't show up in the old releases list. On Sat, 2005-07-09 at 15:31 -0700, Dennis Allison wrote: The download list at zope.org does not have any releases between 2.7.3 and

Re: [Zope] Does Plone need the Zope CMF?

2005-07-27 Thread Chris McDonough
Yes, it does (heavily). See http://plone.org/documentation/how-to/setup-from-source - C On Wed, 2005-07-27 at 20:57 +0100, michael nt milne wrote: Hi This isn't clear to me. I've installed Zope and Python from source but do I need to also install the Zope CMF for Plone to run properly?

Re: [Zope] Zope 2.8 and conflict errors

2005-08-01 Thread Chris McDonough
Hi Maciej, I can't speak to the 500 errors you're receiving but Zope 2.8.0 ships with a TemporaryStorage implementation (used by sessions in the default configuration) which does not implement MVCC. The one in 2.8.1 (now in beta) and better will implement MVCC, so you *should* see performance

Re: [Zope] Zope 2.8 and conflict errors

2005-08-03 Thread Chris McDonough
On Wed, 2005-08-03 at 23:02 +0200, Maciej Wisniowski wrote: Previously you've written that: Zope 2.8.0 ships with a TemporaryStorage implementation (used by sessions in the default configuration) which does not implement MVCC. The one in 2.8.1 (now in beta) and better will implement

Re: [Zope] ZODB BTrees File Storage error on start up

2005-08-08 Thread Chris McDonough
Hmm... not sure what causes this (did you upgrade ZODB versions?) but you may try: 1. Shut down Zope (or ZEO if you use that). 2. find your Data.fs file 3. Delete the file beside it named Data.fs.index 4. Restart Zope (or ZEO). See if the error goes away.. FileStorage builds an index of oid

Re: [Zope] large installations and conflict errors

2005-08-08 Thread Chris McDonough
I can't provide any specific advice but you may want to read the Scaling Zope proposal that this points to: http://www.plope.com/Members/chrism/scalingzope/view Note that sessions are a frequent source of conflict errors. If you use them, you may want to upgrade to Zope 2.8.1, which has MVCC

Re: [Zope] Database Connections

2005-08-10 Thread Chris McDonough
There is probably a (real) RDB connection per Zope thread times the number of database connection objects that are in use in your ZODB. Or something equally baffling. ;-) - C On Wed, 2005-08-10 at 16:41 -0400, Asad Habib wrote: Has anyone had problems with Zope hanging on to database

Re: [Zope] funny-looking events in the event.log

2005-08-10 Thread Chris McDonough
This typically is indicative of a user pressing their stop button on a page before it has been fully downloaded. I really should take time out to figure out how to prevent it from logging this scary message, but in the meantime it's assumed to be harmless. - C On Wed, 2005-08-10 at 17:38

Re: [Zope] Help need for a Zope presentation to java lovers...

2005-08-17 Thread Chris McDonough
Zope excels at providing web services via XML-RPC. Basically: - You need to do exactly nothing to make a Zope application accessible via XML-RPC. - When Zope isn't responsible for rendering HTML, it can be quite fast. - Zope is capable of interfacing transactionally with many data

RE: [Zope] Help need for a Zope presentation to java lovers...

2005-08-17 Thread Chris McDonough
On Wed, 2005-08-17 at 16:02 +0100, Pascal Peregrina wrote: Hi Chris, Ooops... Reading your reply shows me that I was unclear ;) Zope will be the CMS system of the architecture (so it will render HTML). Ah. Well, it's not too bad at doing that either. ;-) I only meant that it would get

Re: [Zope] Zope scalabilty and problems

2005-09-01 Thread Chris McDonough
Your tranaaction blocked error messages seem to imply that either or both of the following is true: - some transactions are taking a long time (any more than, say, 200 milliseconds is a long time) - you have a very high transaction volume. That said, these messages are informational rather

RE: [Zope] Zope scalabilty and problems

2005-09-01 Thread Chris McDonough
with a bout 1000 objects being created a day (Lots of creates) -Original Message- From: Chris McDonough [mailto:[EMAIL PROTECTED] Sent: Thursday, September 01, 2005 12:51 PM To: Kennamore, Matthew G [NTK] Cc: zope@zope.org Subject: Re: [Zope] Zope scalabilty and problems Your

Re: [Zope] Finding and killing the POSKeyError in ZODB

2005-09-03 Thread Chris McDonough
Apparently app is a function in wherever you're doing that, which just isn't right. If you use zopectl debug, app should be a Zope Application object. If it isn't... uh... well... something else besides the POSKeyErrors are wrong. ;-) On Sat, 2005-09-03 at 16:23 -0400, Jake wrote: I have been

Re: [Zope] writing permissions broken

2005-09-04 Thread Chris McDonough
If you're on Linux/UNIX, try doing this from a command line: zopectl adduser admin2 admin2 And try to log in as admin2, admin2. On Sep 5, 2005, at 1:08 AM, Michael Lindner wrote: Hi, for some reason I can no longer use any scripts to create zope objects, including the example scripts.

Re: [Zope] writing permissions broken

2005-09-05 Thread Chris McDonough
Hi, please try to keep this on the list (if only to give other folks the benefit of being able to read the conclusion, if there gets to be one ;-) I don't know what with a newly installed page nor the old one in your sentence below means. Can you explain? On Mon, 2005-09-05 at 16:28 +1000,

Re: [Zope] ERROR(200) KeywordIndex unindex_object could not remove documentId -702398584 from index workitems_from. This should not happen.

2005-09-09 Thread Chris McDonough
This is actually nothing to worry about. The error message doesn't take into account that the error it's reporting could be a conflict error (these are normal errors seen during Zope execution). The catalog probably shouldn't bother logging the error in this case. On Sep 9, 2005, at 4:16

Re: [Zope] Determining user from session object - who is logged in?

2005-10-12 Thread Chris McDonough
On Wed, 2005-10-12 at 19:32 +0200, Gaute Amundsen wrote: I thought the place to start wold be: /temp_folder/session_data/ I have built a small little thing to play with the contents of that. External method and script below. However I have not been able to figure out a way to connect

Re: [Zope] Determining user from session object - who is logged in?

2005-10-12 Thread Chris McDonough
On Oct 12, 2005, at 4:50 PM, Gaute Amundsen wrote: On Wednesday 12 October 2005 20:19, Chris McDonough wrote: On Wed, 2005-10-12 at 19:32 +0200, Gaute Amundsen wrote: I thought the place to start wold be: /temp_folder/session_data/ I have built a small little thing to play

Re: [Zope] Determining user from session object - who is logged in?

2005-10-13 Thread Chris McDonough
On Thu, 2005-10-13 at 00:26 +0200, Gaute Amundsen wrote: Well, I know that ther might easily be login less sessions, but, is it possible to log have session less logins? Yes. In fact, this is the default for Zope out of the box. Zope's default user folder uses HTTP basic authentication,

Re: [Zope] resolving conflict errors

2005-10-14 Thread Chris McDonough
On Fri, 2005-10-14 at 09:27 -0700, Dennis Allison wrote: Zope 2.7.6 I am a bit confused. I have a Zope DTML method that is generating ZODB conflict errors. The DTML method identified as producing the conflicts is a list of calls to other methods, conditionally executed. Most

RE: [Zope] Error on starting and stopping Zope 2.8.2

2005-10-16 Thread Chris McDonough
On Sun, 2005-10-16 at 12:29 -0700, Dennis Allison wrote: What does concern me is the way in which the recommendation to use (at the moment) Python 2.3.5 is explained. I may be willing to accept the risks of using a system which has not yet been audited in terms of security, but I want to

Re: [Zope] NTUserFolder still useful?

2005-10-17 Thread Chris McDonough
Proably easier and faster to try it than to wait for a response. ;-) On Mon, 2005-10-17 at 12:46 -0500, Sean Dunn wrote: I’m running Zope on WindowsXP with plans to run it on server 2003. Instead of creating user accounts I’d like to leverage NT authentication.. And NTUserFolder looks like it

Re: [Zope] help - my zope build exits with compile errors :-(

2005-10-27 Thread Chris McDonough
Use gnutar to unpack the Zope source tarball. On Oct 27, 2005, at 4:50 PM, David H wrote: Thomas Wolf wrote: Hi, I'm trying to build Zope-2.7.4-0 from source (I can't use a different version because of the releas of Plone we're using.) I ran ./configure

[Zope] Basket 0.1 (New Zope Packaging Regime Product) Released

2005-11-11 Thread Chris McDonough
Basket is a Zope 2 product which allows you to employ the Python Egg format to deploy other Zope 2 products. The Python Egg packaging format is described at http://peak.telecommunity.com/DevCenter/ setuptools . The development of Basket was funded by the Goldegg initiative described at

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

2005-11-13 Thread Chris McDonough
On Sun, 2005-11-13 at 01:39 -0800, Dennis Allison wrote: Zope 2.8.4 ZEO 3.4.2 ZODB 3.4.2 Python 2.4.2 or 2.3.5 MySQL 4.0.20 MySQL-Python 1.2.0 MYSQLDA 2.0.9 We have just moved from Zope 2.7.6 to Zope 2.8.4 motivated, in part, but the ability to avoid read conflicts under ZODB 3.4.2.

Re: [Zope] still having problems

2005-11-14 Thread Chris McDonough
On Nov 14, 2005, at 9:21 PM, Dennis Allison wrote: ZEO 3.4.2 Zope 2.8.4 ZODB 3.4.2 as relesed with Zope 2.8.4B 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

Re: [Zope] conflicts, sessions, and programming best practices guidelines

2005-11-15 Thread Chris McDonough
On Nov 15, 2005, at 5:54 PM, Dennis Allison wrote: Has anyone prepared a set of best practice guidelines on the techniques to use to minimize conflicts? It is becoming clear that we need to do to refactor some of our code to get us out of our current conflict pickle. A quick google

Re: [Zope] conflicts, sessions, and programming best practices guidelines

2005-11-16 Thread Chris McDonough
On Nov 16, 2005, at 6:18 PM, Dennis Allison wrote: Chris, I am aware that using ZEO to back session database is likely to increase the opportunity for conflicts, but using a single session database seems to be reaquired if you want, as we do, to distribute out interactive application

Re: [Zope] conflicts, sessions, and programming best practices guidelines

2005-11-16 Thread Chris McDonough
may need to rethink this simplistic architecture. On Tue, 15 Nov 2005, Chris McDonough wrote: On Nov 15, 2005, at 5:54 PM, Dennis Allison wrote: Has anyone prepared a set of best practice guidelines on the techniques to use to minimize conflicts? It is becoming clear that we need to do

Re: [Zope] conflicts, sessions, and programming best practices guidelines

2005-11-17 Thread Chris McDonough
storage in favor of a local temp storage. That should make things a bit better. Good idea... - C On Wed, 16 Nov 2005, Chris McDonough wrote: Changing the architecture will likely get you the most bang but note also that there are a few knobs that you can turn on the transient object

Re: [Zope] Problem with multiple Browser Id Managers

2005-11-18 Thread Chris McDonough
Hi Pablo, On Thu, 2005-11-17 at 22:47 -0300, Pablo Ziliani wrote: Unfortunately, my Zope instance holds multiples virtual sites, so I can't simply change the root BMI that comes with Zope's installation; instead I need to create inner BMI instances. So I did, giving the new instance a

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

2005-11-20 Thread Chris McDonough
Hi Dennis, I notice that line 389 of db.py of the most recent ZMySQLDA (2.0.8) doesn't match the traceback you show. No mutex locking at all is done in the 2.0.8 version of that module (or any other module in that product). Are you using an older version? - C On Nov 20, 2005, at 9:57

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

2005-11-20 Thread Chris McDonough
that is. On Nov 20, 2005, at 1:55 PM, Chris McDonough wrote: Hi Dennis, I notice that line 389 of db.py of the most recent ZMySQLDA (2.0.8) doesn't match the traceback you show. No mutex locking at all is done in the 2.0.8 version of that module (or any other module in that product

Re: [Zope] minimizing conflict errors

2005-11-20 Thread Chris McDonough
On Nov 20, 2005, at 12:16 PM, Dennis Allison wrote: The structure of the naviagation method is simple enough. Everything is wrapped in a dtml-let which sets a number of parameters mostly by reading them from the SESSION (with an interface function) or plucking them from the relational

Re: [Zope] unlinking stale socket?

2005-11-22 Thread Chris McDonough
Note that Zope likely started. Did it? Did you try zopectl stop and zopectl start again? If so, did it work? - C On Nov 22, 2005, at 9:52 AM, michael nt milne wrote: Hi My zopeinstance went down and I was getting an 'upstream server' unknown message from apache. On restarting zope

Re: [Zope] unlinking stale socket?

2005-11-22 Thread Chris McDonough
, at 10:57 AM, michael nt milne wrote: Yes, I noticed that the deamon wasn't running and so re-started it. It started up fine but that was the message I received. Just wondered what happened etc.. On 11/22/05, Chris McDonough [EMAIL PROTECTED] wrote: Note that Zope likely started. Did

Re: [Zope] Re: DateTime mess

2005-11-22 Thread Chris McDonough
On Nov 22, 2005, at 11:27 AM, Gabriel Genellina wrote: At Tuesday 22/11/2005 05:50, Jürgen Herrmann wrote: one more question (to the public!): do we REALLY need dates 1900 / 2036 ? using unix timestamps for storage and as the base for all conversions would make things a lot easier! Sure.

Re: [Zope] Zope 2.8.4 strange behavior

2005-11-27 Thread Chris McDonough
On Nov 27, 2005, at 8:13 PM, Dennis Allison wrote: here to begin to track this one down. The failure is spontaneous and apparently not triggered by any readily distinguishable inputs or pattern of inputs. The behavior smells a bit of resource limits or process synchronization problems,

Re: [Zope] Re: Zope 2.8.4 strange behavior

2005-11-27 Thread Chris McDonough
Does this mean that you haven't seen the errors since installing Andy's patch? If not, I'd declare victory and forget about using the deadlock debugger (unless you want to do it for learning purposes only). On Nov 27, 2005, at 8:46 PM, Dennis Allison wrote: Just went throught that

Re: [Zope] Zope 2.8.4 strange behavior

2005-11-27 Thread Chris McDonough
Chris, A helpful suggestion. The commit errors I've been seeing have to do with the intereaction of the ZODB, MySQL, session variables, and conflicts. So the patch that Andy sent over is a fix that prevents the mysql adapter from raising an error when a conflict exception occurs? Do you

Re: [Zope] Python Classes and Zope.

2005-12-01 Thread Chris McDonough
So far I have not had any success with anything else than writing special methods in my Classes that converts the objects to dictionaries before passing them to the zpt or Script(Python) in question. But that feels like a very awkward way of doing things, and it makeas it *very*

Re: [Zope] Python Classes and Zope.

2005-12-02 Thread Chris McDonough
On Dec 2, 2005, at 9:49 AM, Paul Winkler wrote: You know, some days I wonder why it is that Zope is the only framework around that needs to distinguish between trusted and untrusted code. Nobody else seems to be looking at us with envy in this regard. Historically I know it was because there was

Re: [Zope] resolving conflict errors

2005-12-08 Thread Chris McDonough
On Dec 8, 2005, at 9:29 PM, Dennis Allison wrote: On Fri, 14 Oct 2005, Chris McDonough wrote: The problem I am trying to resolve appears to be load related. The observed symptom is that (some) session variables spontaneously disappear. There appears to be some connection to conflicts

Re: [Zope] Re: [ZF] Zope Foundation IRC - Reminder

2005-12-09 Thread Chris McDonough
haven't seen it yet: Chris McDonough has a transcript of this morning's chat up at: http://plope.com/Members/chrism/foundation_dec9 BTW, I'm sorry I couldn't make it this morning: I was waiting to board a plane in Birmingham. Tres

[Zope] Re: Triggering the persistence mechanism

2005-12-15 Thread Chris McDonough
There is nothing that needs to be done here. It's only if you *mutate* values stored in the session that you need to do explicit persistence triggering. I provided an example of doing this in my last email. - C On Dec 15, 2005, at 4:20 PM, Dennis Allison wrote: Chris McDonnough

[Zope] Re: Triggering the persistence mechanism

2005-12-15 Thread Chris McDonough
session variables. What I want to be able to do is have the coders call getSessionVariable(name) to get the current value of the session variable and setSessionVariable(name, value) to save the value. The type of the variable should be transparent to the programmer--that

Re: [Zope] Zope Persistence (was: XML-RPC within ZOPE)

2005-12-16 Thread Chris McDonough
I don't understand the problem. How is using XML-RPC incompatible with persistence? What are you trying to exclude? - C On Dec 16, 2005, at 6:40 AM, Jan-Ole Esleben wrote: Thanks; this is a problem we are well aware of. Our solution is to increase the amount of workers, obviously.

Re: [Zope] Zope Persistence (was: XML-RPC within ZOPE)

2005-12-16 Thread Chris McDonough
On Dec 16, 2005, at 8:02 PM, Jan-Ole Esleben wrote: I don't understand the problem. How is using XML-RPC incompatible with persistence? What are you trying to exclude? I'm sorry, but I don't understand _that_ question. What am I trying to _exclude_? You said: it would most certainly be

Re: [Zope] Zope Persistence (was: XML-RPC within ZOPE)

2005-12-16 Thread Chris McDonough
The problem setup is this; I explained it above, but it this has become a long thread: I write a ZOPE product. I want to make use of other software on the internet and the services that software provides. So I use the methods exposed by that software via SOAP, XML-RPC, whatever. One of those

Re: [Zope] ERROR BeforeTraverse Error while invoking hook

2005-12-19 Thread Chris McDonough
You might have a access rule in there that expects to be able to call something that's missing? On Dec 19, 2005, at 4:29 AM, Maciej Wisniowski wrote: Hi! After upgrading our Zope instances from Zope 2.7.2 to 2.8.4 we've noticed new kind of errors in event.log on one of our servers. Error

Re: [Zope] Re: [Zope-dev] Re: sessions in the presence of conflicts

2005-12-20 Thread Chris McDonough
Trimmed Zope-dev from this (cross-posts are bad)... Dennis, Lets just put the question out there: Does: SESSION['someKey'] = someValue Force a commited transaction? As opposed to ... someDict = Session['SomeKey'] someDict['aKey'] = 'aNewValue' Neither forces a committed transaction, but

Re: [Zope] More on understanding conflicts

2005-12-20 Thread Chris McDonough
The structure of the method is simple enough: there is a large dtml-let block which populates local variables with data from the session variables dtml-let foobar=getSessionVariable('foobar') ... with the body of the dtml-let containing 300 lines or so of dtml,

Re: [Zope] More on understanding conflicts

2005-12-21 Thread Chris McDonough
Write conflicts happen for a transaction. In Zope, there is one transaction per request. There are two distinct sections to the navigation_box transaction. There's a transaction for something named navigation_box? Is this an IFRAME? One where the session variables are read and a

Re: [Zope] More on understanding conflicts

2005-12-21 Thread Chris McDonough
On Dec 21, 2005, at 10:32 AM, Dennis Allison wrote: Thanks again Chris for the helpful comments. The navigation_box, in this context is just a table which is rendered into a frame in our standard frameset. It is not an iframe. So you do use frames! That's a huge clue. I wish I didn't feel

Re: [Zope] More on understanding conflicts

2005-12-21 Thread Chris McDonough
On Dec 21, 2005, at 11:38 AM, Dennis Allison wrote: Chris, You asked about frames a while back and I responded in the affirmative. I am sure I mentioned that we use frames and framesets and explained that we use a bit of Javascript to manage loading individual frames rather than

Re: [Zope] More on understanding conflicts

2005-12-21 Thread Chris McDonough
On Dec 21, 2005, at 12:40 PM, Dennis Allison wrote: Chris W, The issue here has had to do with session variables and their iteraction with the persistence mechanism and conflicts and multiple threads for the same session. Chris McDonough has pointed out that session variables can cause

Re: [Zope] More on understanding conflicts

2005-12-21 Thread Chris McDonough
On Dec 21, 2005, at 1:07 PM, Dennis Allison wrote: Sorry if I appeared unresponsive--the fact that we use frames is hardly a secret. I suppose that it would be helpful to make up soem summary of features for ongoing threads like this one. It was a secret to me (again, perhaps because of

Re: [Zope] More on understanding conflicts

2005-12-21 Thread Chris McDonough
On Dec 21, 2005, at 2:17 PM, Dennis Allison wrote: I have begun to think that the Zope session variable mechanism, as implemented, addresses a different part of the storage spectrum than we need. A small number of per user parameters (3 to 10) are used by almost every request. Most of the

Re: [Zope] Managing Content Access and Multiple Users

2005-12-23 Thread Chris McDonough
Hi Francisco, This may not be what you *want* to read ;-), but this is how I (and many others) do it: http://www.plope.com/Members/chrism/zope_collab - C On Dec 23, 2005, at 2:16 PM, Francisco Chamorro wrote: Hi everyone, I have a process question and wanted to know what tools are

Re: [Zope] LocalFS

2006-02-01 Thread Chris McDonough
If you're developing at the Python Product level (rather than at the through the web level), this blob product might help: http://www.plope.com/software/blob On Feb 1, 2006, at 5:22 PM, Rakotomandimby Mihamina wrote: Hi, In order to learn developping for Zope, I want to learn manipulate

Re: [Zope] Re: raw trace log format

2006-02-02 Thread Chris McDonough
This little bit of code has some clues: def put(self, code, t, desc): if code not in ('A', 'B', 'I', 'E'): raise unknown request code %s % code if code == 'B': self.start = t self.method, self.url = desc.strip().split() elif code ==

Re: [Zope] ZEO disconnects, Zope auto restarts (via zopectl)

2006-02-03 Thread Chris McDonough
On Feb 3, 2006, at 1:06 PM, Paul Winkler wrote: If I were in your shoes the first thing I'd do is bump up the log levels on both zope and zeo to BLATHER. Adds overhead I know, but you need to find the problem somehow... it's a weird one, I've never seen zope restart for no reason. This

Re: [Zope] unbuffered response.write through Apache 2.0 reverse proxy?

2006-02-18 Thread Chris McDonough
Apache does its own buffering IIRC. Look for ProxyReceiveBufferSize/ ProxyIOBufferSize. On Feb 18, 2006, at 3:59 AM, Christoph Berendes wrote: To prevent browser timeout during a long running process, I've got the following code to work nicely,when the browser accesses Zope directly

[Zope] Re: [Zope3-Users] Re: [Zope3-dev] The Zope Software Certification Program and Common Repository Proposal

2006-02-21 Thread Chris McDonough
I hate to cross-post this, but would it be possible to limit this discussion to a single list (e.g. zope3-dev, maybe)? I'm interested in this topic, but my mail client isn't smart enough to filter it out to only one place and I'm sure there are a lot of other people with the same issue.

Re: [Zope3-Users] Re: [Zope] Debugging doctests

2006-02-23 Thread Chris McDonough
I dunno about sucking because they are quite good for documentation, but I tend to write plain-old unittests instead of doctests when I'm testing without any pretense towards writing documentation. If you test internals of a class in a doctest, the doctest body gets pretty cluttered,

<    1   2   3   4   5   6   7   8   9   10   >