[Zope-Coders] Zope tests: 8 OK
Summary of messages to the zope-tests list. Period Tue Jul 12 11:01:02 2005 UTC to Wed Jul 13 11:01:02 2005 UTC. There were 8 messages: 8 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2_6-branch Python-2.1.3 : Linux From: Zope Unit Tests Date: Tue Jul 12 23:25:26 EDT 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-July/002575.html Subject: OK : Zope-2_6-branch Python-2.3.5 : Linux From: Zope Unit Tests Date: Tue Jul 12 23:26:56 EDT 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-July/002576.html Subject: OK : Zope-2_7-branch Python-2.3.5 : Linux From: Zope Unit Tests Date: Tue Jul 12 23:28:26 EDT 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-July/002577.html Subject: OK : Zope-2_7-branch Python-2.4.1 : Linux From: Zope Unit Tests Date: Tue Jul 12 23:29:56 EDT 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-July/002578.html Subject: OK : Zope-2_8-branch Python-2.3.5 : Linux From: Zope Unit Tests Date: Tue Jul 12 23:31:26 EDT 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-July/002579.html Subject: OK : Zope-2_8-branch Python-2.4.1 : Linux From: Zope Unit Tests Date: Tue Jul 12 23:32:57 EDT 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-July/002580.html Subject: OK : Zope-trunk Python-2.3.5 : Linux From: Zope Unit Tests Date: Tue Jul 12 23:34:27 EDT 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-July/002581.html Subject: OK : Zope-trunk Python-2.4.1 : Linux From: Zope Unit Tests Date: Tue Jul 12 23:35:57 EDT 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-July/002582.html ___ Zope-Coders mailing list Zope-Coders@zope.org http://mail.zope.org/mailman/listinfo/zope-coders
[Zope-dev] apelib performance
Hello All, Our application contains about 38k objects running via apelib into the filesystem using the filesystem mapper. We have been extremely happy with the ability to use version control on everything in zope which apelib affords us as well as allowing our developers to use editors/ide of choice. The problem we keep running into is performance. On even fast machines, right after zope starts up, it is extremely slow. Once the cache get's populated, the site runs as normal (we have the cache set to 10k objects). On a server, we set the scan-interval to 5 minutes or higher. But on our development boxes, we have the scan-interval set to 1s. This allows changes as they are made on the file system to show up in zope for testing immediately. This works quite well, but is very, very slow for developing under unless you have a pretty heavy duty processor. In profiling this, it doesn't appear to be I/O bound (as I would have guessed), but instead processor bound. Profiling points to Apelib as being the bottleneck (getmtime, getannotations, compile, etc). To verify this, I copied our application back into a standard zope storage and the performance after startup was night and day different. Very snappy. Has anyone found a way to make apelib faster, or have hints on performance tuning? Is there a better way then apelib to get zope objects (dtml, python scripts, zsql statements) into text files? Thanks for your time, -Chris ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] apelib performance
On Wed, Jul 13, 2005 at 02:15:48PM -0400, Chris Kratz wrote: Is there a better way then apelib to get zope objects (dtml, python scripts, zsql statements) into text files? Depends on your purposes and what kind of objects, but for code objects like you mention, I'm happy putting them in Filesystem Directory Views. -PW -- Paul Winkler http://www.slinkp.com ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope] Zope update
Hi, I want to update from Zope 2.7.4 to Zope 2.7.6 What is the easiest way? Unfortunately there is no description of how an update of Zope is done. I'm running Plone on it. I tried to newly install Zope 2.7.6 and then copied the backed-up Data.fs file and the content of the Products folder. It didn't work very well. There should be no version conflicts with Plone as I checked on the Plone web site. Thanks for any advice! Josef ___ 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] Cool monkey patch to make tracebacks more useful :-)
Hi All, Ever noticed how tracebacks from ZPT are actually quite useful when viewed through the error_log object, but totally useless when they fail, say, in a unit test? This bugged me, so I had a dig, and just discovered this cool monkey patch, to be inserted in any module that gets imported before an exception is raised: import traceback from zExceptions.ExceptionFormatter import format_exception traceback.format_exception = format_exception So now I'm mailing you lot for two reasons: 1. This makes life a lot easier when debugging failing unit tests and looking through entries in event.log that have tracebacks, so I thought I'd share it :-) 2. I wonder if there's anything bad that can happen as a result of this? If the answer to 2 is no, then I'm gonna wrap this up into a minute product... cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ 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] Cool monkey patch to make tracebacks more useful :-)
On 7/13/05, Chris Withers [EMAIL PROTECTED] wrote: Ever noticed how tracebacks from ZPT are actually quite useful when viewed through the error_log object, but totally useless when they fail, say, in a unit test? Yeah. This bugged me, so I had a dig, and just discovered this cool monkey patch, to be inserted in any module that gets imported before an exception is raised: So, could this be in the unit test module itself, for example? And a question for you: Ever noticed how it's near impossible to figure out what actually causes an error when you run functional tests? Can you fix that too? :-) I used to do this in all my functional test cases: def getTraceback(self, response): return getattr(response._response, '_text_traceback', None) def assertResponse(self, response, status, message=''): if not response.getStatus() == status: tb = self.getTraceback(response) if tb is not None: raise self.failureException, tb else: raise ValueError, Response had status %s, expected %s. %s % ( response.getStatus(), status, message) And then end all my tests with: self.assertResponse(response, 200) And that _used_ to print out any exception that had occurred, but in newer version of Zope this never happens. There sinmply never is and _text_exception on the response anymore. Any ideas on how to get a useable exception report on unit tests? -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS Content Management http://www.cps-project.org/ ___ 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] Z MySQL Database Connections
I have two Z MySQL database connection objects that I have to use in the same DTML method. How do I specify that I want to use one or the other? Any help would be appreciated. Thanks. - Asad ___ 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] Z MySQL Database Connections
Hello. Please disregard my previous message as this is specified in the Z SQL method. Thanks. - Asad On Wed, 13 Jul 2005, Asad Habib wrote: I have two Z MySQL database connection objects that I have to use in the same DTML method. How do I specify that I want to use one or the other? Any help would be appreciated. Thanks. - Asad ___ 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] About login dtml
What do I need to do inorder for me to use cookies with login dtml or python script?? can anyone some me??__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 )
Re: [Zope] About login dtml
Allen Huang wrote: What do I need to do inorder for me to use cookies with login dtml or python script?? can anyone some me?? __ 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 ) Take a look at Cookie User Folder product. ___ 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] About login dtml
--On 13. Juli 2005 08:17:48 -0700 Allen Huang [EMAIL PROTECTED] wrote: What do I need to do inorder for me to use cookies with login dtml or python script?? can anyone some me?? I might use the CookieCrumbler. You can pass username and password as form fields and CookieCrumber will authenticate you and set the __ac cookie for you. -aj pgp4lsR5jt0Mz.pgp Description: 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 )
Re: [Zope] Zope update
Josef Burger wrote: Hi, I want to update from Zope 2.7.4 to Zope 2.7.6 What is the easiest way? Unfortunately there is no description of how an update of Zope is done. I'm running Plone on it. I tried to newly install Zope 2.7.6 and then copied the backed-up Data.fs file and the content of the Products folder. It didn't work very well. There should be no version conflicts with Plone as I checked on the Plone web site. Didn't work very well is not a good description of a problem. You should be able to replace the existing Zope SOFTWARE_HOME with a new version. (I don't know if over-writing is safe; I wouldn't count on it.) This may be easiest. You should also be able to install Zope in a different location, create a new instance, and copy over the config files, products, and Data.fs of your old instance. (All this is because the instance scripts point to a specific SOFTWARE_HOME. You could also change that.) --jcc -- Building Websites with Plone http://plonebook.packtpub.com/ Enfold Systems, LLC http://www.enfoldsystems.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 )
Re: [Zope] Zope update
Wednesday, July 13, 2005, 6:22:04 PM, J Cameron Cooper wrote: Josef Burger wrote: Hi, I want to update from Zope 2.7.4 to Zope 2.7.6 What is the easiest way? Unfortunately there is no description of how an update of Zope is done. I'm running Plone on it. I tried to newly install Zope 2.7.6 and then copied the backed-up Data.fs file and the content of the Products folder. It didn't work very well. There should be no version conflicts with Plone as I checked on the Plone web site. Didn't work very well is not a good description of a problem. You should be able to replace the existing Zope SOFTWARE_HOME with a new version. (I don't know if over-writing is safe; I wouldn't count on it.) This may be easiest. You should also be able to install Zope in a different location, create a new instance, and copy over the config files, products, and Data.fs of your old instance. Recently I had to move a Zope (Plone 2.0.x) instance, and I have found that I can't just move the Data.fs. It stores several absolute paths that become broken if the paths of the things (like of some files in products) changes. So finally I have exported the objects (PloneSite objects), and imported them into the new instance. It worked, however then the user name of the last modifier of the objects was replaced with the name of the user who did the importing /-: (while the last modification date has remained intact -- strange). (Also, I seems one have to be careful to create the same users in the /acl_users than in the old instance, otherwise the exported stuff will have some strange security errors.) (All this is because the instance scripts point to a specific SOFTWARE_HOME. You could also change that.) --jcc -- Best regards, Daniel Dekany ___ 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] Long time listener, first time caller (or, So long and thanks for all the Zope?)
As announced earlier elsewhere, Hurrah, Inc. will cease all Zope hosting activities effective August 12, 2005. I sincerely thank all the members and contributors of the Zope community, past and present, and especially Zope Corp for their creation and continued support of the Zope product. I've watched quietly from the sidelines as Zope and its supporters accomplished a lot in the last six years, and I wish all the best in the years to come. I'd also like to take this opportunity to say I'm a big fan of PCGI for stable, simple, shared Zope hosting. Yes, I'm the one, and it was used on every single Zope instance I ever had my hand in creating, including Zope 2.7 versions. So the next time someone mentions that only crackpots would use PCGI, feel free to refer to me by name. I've enjoyed using it. I welcome all comments/questions/concerns at [EMAIL PROTECTED] David Elkins ___ 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] LDAPUSerFolder permission problem
I'm not sure what you mean by a 'wrapped' user. What causes a user to have a wrapper in Zope? I am getting the 'other' user via the following code: user = context.acl_users.getUserById(username) Will this cause the user to be returned with a wrapper, and if so, how would I remove the wrapper? Thanks. Jens Vagelpohl wrote: On 12 Jul 2005, at 14:03, Nicholas Watmough wrote: I'm trying to access the getProperty() method of the LDAPUser class in a Python script, in order to access the Active Directory email address of the user. There is no problem with this, if I use the method on the current active user. However, it doesn't work when I attempt to use the method on another property. The output of VerboseSecurity is: *Error Type: Unauthorized* *Error Value: Your user account does not have the required permission. Access to 'getProperty' of nwuser denied. Your user account, abuser, exists at /acl_users. Access requires one of the following roles: ['Manager']. Your roles in this context are ['Anonymous', 'Authenticated', 'User'].* It appears that the currently authenticated used has the 'View' permission (required to use getProperty) on itself, but not for other users. I'm not sure how to change this. I'm assuming that the other user is not wrapped. How are you getting that other user object? 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 )
[Zope] dtml to pdf
How do I change my webpage into pdf using dtml or python script?__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-DB] DCOracle2 and ConnectionReleasedError
Hi We are using DCOracle2 from CVS head branch, but I'm testing chrisw_fixconnectionleak_branch branch created by chrisw and I've fallen into some errors with this. First of all, is chrisw_fixconnectionleak_branch branch the recommended one? I've seen Carsten Gerner question about the version of DCOracle but the answer says only about cvs version... I have a page that renders a table with 70 rows and when I'm refreshing this page fast for a few times I'm receiving the errors like: *Error Type: ConnectionReleasedError* *Error Value: 3 I've added some debugging commands to connections.py file and the output is a bit strange for me. Below modified (with print commands) connections.py file and it's output. As far as I've analyzed this I see that 'close' function is called somehow, but I don't know why and by what. I've checked db.py and query method which calls 'close' for some kinds of exceptions but it is not this piece of code that is executed. **Any ideas what is happening? Are these leaking connections? With older version of DCOracle2 (from CVS trunk) compiled with Oracle8 there are no errors.** My Zope is 2.7.2, Python 2.3.5. Zope is running with 10 threads (I tried 4 but no difference) in ZEO. DCOracle2 is compiled for Oracle9. **#--- # Output *2005-07-13T08:16:51 INFO(0) Zope Ready to handle requests close; thread: _DummyThread(Dummy-3, started daemon) _register; thread: _DummyThread(Dummy-3, started daemon) assignConnection; creatingConnection: 0; time:1121235431.48; thread: _DummyThread(Dummy-3, started daemon) getConnection; Returned connection: 0; time: 1121235431.48; thread: _DummyThread(Dummy-3, started daemon) getConnection; Returned connection: 0; time: 1121235431.48; thread: _DummyThread(Dummy-3, started daemon) getConnection; Returned connection: 0; time: 1121235431.51; thread: _DummyThread(Dummy-3, started daemon) getConnection; Returned connection: 0; time: 1121235431.62; thread: _DummyThread(Dummy-3, started daemon) returnConnection; deleting assigned id: 0; time: 1121235431.62; thread:_DummyThread(Dummy-3, started daemon) _register; thread: _DummyThread(Dummy-3, started daemon) assignConnection; getting availaible: 0; time: 1121235431.73; thread: _DummyThread(Dummy-3, started daemon) getConnection; Returned connection: 0; time: 1121235431.73; thread: _DummyThread(Dummy-3, started daemon) getConnection; Returned connection: 0; time: 1121235431.91; thread: _DummyThread(Dummy-3, started daemon) returnConnection; deleting assigned id: 0; time: 1121235431.91; thread:_DummyThread(Dummy-3, started daemon) close; thread: _DummyThread(Dummy-3, started daemon) _register; thread: _DummyThread(Dummy-3, started daemon) assignConnection; creatingConnection: 1; time:1121235437.68; thread: _DummyThread(Dummy-3, started daemon) getConnection; Returned connection: 1; time: 1121235437.68; thread: _DummyThread(Dummy-3, started daemon) getConnection; Returned connection: 1; time: 1121235437.69; thread: _DummyThread(Dummy-3, started daemon) returnConnection; deleting assigned id: 1; time: 1121235437.69; thread:_DummyThread(Dummy-3, started daemon) _register; thread: _DummyThread(Dummy-3, started daemon) assignConnection; getting availaible: 1; time: 1121235438.23; thread: _DummyThread(Dummy-3, started daemon) getConnection; Returned connection: 1; time: 1121235438.23; thread: _DummyThread(Dummy-3, started daemon) getConnection; Returned connection: 1; time: 1121235438.44; thread: _DummyThread(Dummy-3, started daemon) getConnection; Returned connection: 1; time: 1121235438.71; thread: _DummyThread(Dummy-3, started daemon) getConnection; Returned connection: 1; time: 1121235438.96; thread: _DummyThread(Dummy-3, started daemon) getConnection; Returned connection: 1; time: 1121235439.07; thread: _DummyThread(Dummy-3, started daemon) getConnection; Returned connection: 1; time: 1121235439.07; thread: _DummyThread(Dummy-3, started daemon) getConnection; Returned connection: 1; time: 1121235439.17; thread: _DummyThread(Dummy-3, started daemon) getConnection; Returned connection: 1; time: 1121235439.84; thread: _DummyThread(Dummy-3, started daemon) getConnection; Returned connection: 1; time: 1121235440.25; thread: _DummyThread(Dummy-3, started daemon) returnConnection; deleting assigned id: 1; time: 1121235440.25; thread:_DummyThread(Dummy-3, started daemon) _register; thread: _DummyThread(Dummy-3, started daemon) assignConnection; getting availaible: 1; time: 1121235448.29; thread: _DummyThread(Dummy-3, started daemon) getConnection; Returned connection: 1; time: 1121235448.29; thread: _DummyThread(Dummy-3, started daemon) getConnection; Returned connection: 1; time: 1121235448.3; thread: _DummyThread(Dummy-3, started daemon) getConnection; Returned connection: 1; time: 1121235448.34; thread: _DummyThread(Dummy-3, started daemon) getConnection; Returned connection: 1; time: 1121235448.43; thread: