Re: [Zope-dev] using WSGIPublisher

2012-10-30 Thread Ross Patterson
Martin Aspeli optilude+li...@gmail.com writes: On 7 June 2012 07:20, Michael Howitz m...@gocept.com wrote: Am 06.06.2012 um 19:58 schrieb Hanno Schlichting: […] As I said above, my main concern is keeping publisher events and exception views intact. Some of these events need to happen in

[Zope-Checkins] SVN: Zope/trunk/src/Zope2/Startup/__init__.py Another place where Windows raises a different exception

2012-10-21 Thread Ross Patterson
Log message for revision 128097: Another place where Windows raises a different exception Changed: U Zope/trunk/src/Zope2/Startup/__init__.py -=- Modified: Zope/trunk/src/Zope2/Startup/__init__.py === ---

[Zope-Checkins] SVN: Zope/trunk/doc/CHANGES.rst Add changelog entry for windows lock/pid file fixes

2012-10-21 Thread Ross Patterson
Log message for revision 128098: Add changelog entry for windows lock/pid file fixes Changed: U Zope/trunk/doc/CHANGES.rst -=- Modified: Zope/trunk/doc/CHANGES.rst === --- Zope/trunk/doc/CHANGES.rst 2012-10-21 15:50:38 UTC

[Zope-Checkins] SVN: Zope/branches/2.13/ Merge trunk r128097 and r128098. Windows lock/pid file fixes

2012-10-21 Thread Ross Patterson
Log message for revision 128099: Merge trunk r128097 and r128098. Windows lock/pid file fixes Changed: U Zope/branches/2.13/doc/CHANGES.rst U Zope/branches/2.13/src/Zope2/Startup/__init__.py -=- Modified: Zope/branches/2.13/doc/CHANGES.rst

[Zope-Checkins] SVN: Zope/trunk/src/Zope2/Startup/__init__.py Fix lockfile handling on Windows. Different exception:

2012-10-20 Thread Ross Patterson
Log message for revision 128087: Fix lockfile handling on Windows. Different exception: ... File ...\eggs\zope2-2.13.15-py2.7.egg\Zope2\Startup\run.py, line 72, in make_wsgi_app starter.prepare() File ...\eggs\zope2-2.13.15-py2.7.egg\Zope2\Startup\__init__.py, line 83, in

[Zope-Checkins] SVN: Zope/branches/2.13/src/Zope2/Startup/__init__.py Merge trunk@128087. Windows lock file fix.

2012-10-20 Thread Ross Patterson
Log message for revision 128088: Merge trunk@128087. Windows lock file fix. Changed: U Zope/branches/2.13/src/Zope2/Startup/__init__.py -=- Modified: Zope/branches/2.13/src/Zope2/Startup/__init__.py === ---

Re: [Zope-dev] We need to change how code ownership works.

2012-08-20 Thread Ross Patterson
Wolfgang Schnerring w...@gocept.com writes: * Lennart Regebro rege...@gmail.com [2012-08-19 13:01]: On Sun, Aug 19, 2012 at 10:30 AM, Jens Vagelpohl j...@dataflake.org wrote: As far as I understand it, the legal lynchpin is that using Github (strongly) encourages merging code contributions of

Re: [Zope-dev] We need to change how code ownership works.

2012-08-20 Thread Ross Patterson
Charlie Clark charlie.cl...@clark-consulting.eu writes: Am 20.08.2012, 12:27 Uhr, schrieb Robert Niederreiter r...@squarewave.at: https://github.com/popular/starred i doubt that github i willing to get into the doghouse by doing really nasty things - and thus getting into risk of loosing

Re: [Zope-dev] [Checkins] SVN: zc.buildout/ Moved to github

2012-08-19 Thread Ross Patterson
Robert Niederreiter r...@squarewave.at writes: On 19.08.2012 10:30, Jens Vagelpohl wrote: On Aug 19, 2012, at 10:17 , Lennart Regebro rege...@gmail.com wrote: And since it becomes ever easier to accept code from unknown sources (e.g. pull requests) legal code ownership becomes an issue

[Zope-Checkins] SVN: Zope/branches/2.13/ Fix lock file cleanup if there's an error early in startup.

2012-06-07 Thread Ross Patterson
Log message for revision 126683: Fix lock file cleanup if there's an error early in startup. Changed: U Zope/branches/2.13/doc/CHANGES.rst U Zope/branches/2.13/src/Zope2/Startup/__init__.py U Zope/branches/2.13/src/Zope2/Startup/run.py -=- Modified:

[Zope-Checkins] SVN: Zope/branches/2.13/ Cleanup lock and pid files if the process dies early in startup.

2012-05-24 Thread Ross Patterson
Log message for revision 126494: Cleanup lock and pid files if the process dies early in startup. Changed: U Zope/branches/2.13/doc/CHANGES.rst U Zope/branches/2.13/src/Zope2/Startup/run.py -=- Modified: Zope/branches/2.13/doc/CHANGES.rst

[Zope-Checkins] SVN: Zope/branches/2.13/src/Zope2/Startup/run.py Place lock file cleanup in a better place, run() already has a finally clause

2012-05-24 Thread Ross Patterson
Log message for revision 126495: Place lock file cleanup in a better place, run() already has a finally clause Changed: U Zope/branches/2.13/src/Zope2/Startup/run.py -=- Modified: Zope/branches/2.13/src/Zope2/Startup/run.py

Re: [Zope-dev] Adding broken/missing support to zope.interface?

2012-04-11 Thread Ross Patterson
Hanno Schlichting ha...@hannosch.eu writes: On Mon, Apr 9, 2012 at 10:33 PM, Tres Seaver tsea...@palladion.com wrote: Persistent component registries are not a good enough reason to add such coupling (I'd be in favor of splitting support for persistent registries out of zope.component, too,

[Zope-dev] Adding broken/missing support to zope.interface? (was: experimental.broken - Graceful handling of broken interfaces and components in the ZODB)

2012-04-08 Thread Ross Patterson
Ross Patterson m...@rpatterson.net writes: I've done some more work on this and I've gotten the component registrations fully working now with one exception that I'm having real trouble with. I'd like some help with that, more below. I'm also a bit more clear on what might be appropriate

Re: [Zope-dev] [Plone-developers] experimental.broken - Graceful handling of broken interfaces and components in the ZODB

2012-04-08 Thread Ross Patterson
Raphael Ritz r.r...@biologie.hu-berlin.de writes: On 11/7/11 10:36 AM, Malthe Borch wrote: On 7 November 2011 09:17, Ross Pattersonm...@rpatterson.net wrote: The intention of this package is to see if the implementation of broken object handling is correct and robust enough to merge into

Re: [Zope-dev] Context priority as an alternative to configuration directive overrides

2010-12-04 Thread Ross Patterson
Malthe Borch mbo...@gmail.com writes: I always found configuration overrides (e.g. ZCML's includeOverrides directive) to be difficult to manage and hard to get right. How about an alternative where you can put a priority on a configuration context like so: adapter zcml:priority=100 ... /

Re: [Zope-dev] Zope 3 porting sprint?

2010-11-25 Thread Ross Patterson
Lennart Regebro rege...@gmail.com writes: OK, I've run out of steam for this run of trying to port zc.buildout to Python 3. I got pretty far, in fact. Of course, if we wait too long, somebody will make big changes, and all will be messy and the branch will rot and we might as well start over.

[Zope-Checkins] SVN: Zope/branches/2.12/ Use cProfile where possible for the

2010-11-18 Thread Ross Patterson
Log message for revision 118469: Use cProfile where possible for the Control_Panel/DebugInfo/manage_profile ZMI view. This has been available since Python 2.5 and we no longer support Python 2.4 so there's little reason not to use the faster profiler. Changed: U

[Zope-Checkins] SVN: Zope/branches/2.12/src/ The Control_Panel/DebugInfo/manage_profile ZMI view fixes were

2010-11-18 Thread Ross Patterson
Log message for revision 118470: The Control_Panel/DebugInfo/manage_profile ZMI view fixes were accumulating successive prints of stats. Changed: U Zope/branches/2.12/src/App/ApplicationManager.py U Zope/branches/2.12/src/ZPublisher/Publish.py -=- Modified:

[Zope-Checkins] SVN: Zope/branches/2.13/ Merge Control_Panel/DebugInfo/manage_profile ZMI view fixes from

2010-11-18 Thread Ross Patterson
Log message for revision 118471: Merge Control_Panel/DebugInfo/manage_profile ZMI view fixes from svn+ssh://svn.zope.org/repos/main/Zope/branches/2.12 r118262:118470 Changed: U Zope/branches/2.13/doc/CHANGES.rst U Zope/branches/2.13/src/App/ApplicationManager.py U

Re: [Zope-dev] Zope3 sessions and database conflicts

2010-03-04 Thread Ross Patterson
Hermann Himmelbauer du...@qwer.tk writes: Hi, For quite some time I see messages like this in my z3.log: 2010-03-02T16:27:14 WARNING ZopePublication Competing writes/reads at /BSPSite/act/++vh++http:zis.act.at:80/bankneu/++/images/sponsor_logo.png: database conflict error (oid 0x063f,

Re: [Zope-dev] Adding W3C validating to zope.testbrowser

2010-02-28 Thread Ross Patterson
Brian Sutherland br...@vanguardistas.net writes: On Tue, Feb 23, 2010 at 04:57:02PM +0200, Marius Gedminas wrote: On Tue, Feb 23, 2010 at 08:57:09AM -0500, Benji York wrote: On Sat, Feb 20, 2010 at 7:53 AM, Ross Patterson m...@rpatterson.net wrote: I started a branch for doing W3C HTML

Re: [Zope-dev] Adding W3C validating to zope.testbrowser

2010-02-21 Thread Ross Patterson
Ross Patterson m...@rpatterson.net writes: I started a branch for doing W3C HTML validation on responses to zope.testbrowser requests: svn://svn.zope.org/repos/main/zope.testbrowser/branches/rossp-validator The idea is to be able to flip a switch and run all my functional zope.testbrowser

[Zope-dev] Adding W3C validating to zope.testbrowser

2010-02-20 Thread Ross Patterson
I started a branch for doing W3C HTML validation on responses to zope.testbrowser requests: svn://svn.zope.org/repos/main/zope.testbrowser/branches/rossp-validator The idea is to be able to flip a switch and run all my functional zope.testbrowser tests and see validation failures as test

Re: [Zope] Product loading during ZopeTestCase startup

2010-01-18 Thread Ross Patterson
Encolpe Degoute encolpe.dego...@quadra-informatique.fr writes: Hello, since few days i'am facing a strange problem with egg loading in tests. One egg called project.site_policy is never loaded in the Products namespace: the ZopeLite.hasPackage('project.site_policy') always returns False.

[Zope-dev] zope.testing.testrunner.debug.post_mortem and try/finally

2009-12-02 Thread Ross Patterson
When a try/finally clause is (appropriately) used to do cleanup after an exception during a test run, it often tears down parts of the fixture that are needed in order to do useful post_mortem debugging of the exception, such as closing the request or db connections. What is the best way to do

Re: [Zope-dev] zope.testing.testrunner.debug.post_mortem and try/finally

2009-12-02 Thread Ross Patterson
Tres Seaver tsea...@palladion.com writes: Ross Patterson wrote: When a try/finally clause is (appropriately) used to do cleanup after an exception during a test run, it often tears down parts of the fixture that are needed in order to do useful post_mortem debugging of the exception

Re: [Zope-dev] zope.testing.testrunner.debug.post_mortem and try/finally

2009-12-02 Thread Ross Patterson
Benji York be...@zope.com writes: On Wed, Dec 2, 2009 at 1:22 PM, Ross Patterson m...@rpatterson.net wrote: I'm sorry, I was unclear, the try/finally clauses are not necessarily in *test tearDown* methods (though I used that language), they are often a part of the application being tested

Re: [Zope-dev] improving the utility and adapter lookup APIs

2009-11-25 Thread Ross Patterson
Marius Gedminas mar...@gedmin.as writes: On Wed, Nov 25, 2009 at 01:29:25PM -0500, Tres Seaver wrote: Matthew Wilkes wrote: On 2009-11-25, at 1601, Benji York wrote: I'm not sure I like the following suggestion better than the above, but throwing it out there anyway: Multiadapter:

Re: [Zope-dev] Zope and Cygwin

2009-03-26 Thread Ross Patterson
Cesar Canassa cesar.cana...@gmail.com writes: I am trying to run Zope using cygwin and Windows XP. I started by downloading the Python 2.4.6 sources and compiling it with: ./configure make make install After that I downloaded the Zope-2.11.2-final sources and compiled it with:

Re: [Zope] Regarding ZODB

2009-03-25 Thread Ross Patterson
amol kumbhar amol.kumbha...@gmail.com writes: I am trying to execute following code import ZODB from Persistence import Persistent class Employee(Persistent):     def setName(self, name):     self.name = name but getting following error Error Type: ImportError Error Value:

Re: [Zope-dev] zc.recipe.cmmi shared builds

2009-03-24 Thread Ross Patterson
Wolfgang Schnerring w...@gocept.com writes: I'd like to extend zc.recipe.cmmi to support shared build directories. Use case example: we use lxml in a lot of our projects, which currently means having to build libxml and libxslt over and over again, since the buildout needs to be standalone

Re: [Zope-dev] zope.index

2008-12-02 Thread Ross Patterson
Benji York [EMAIL PROTECTED] writes: On Tue, Dec 2, 2008 at 6:48 AM, Dan Korostelev [EMAIL PROTECTED] wrote: 2008/12/2 Marius Gedminas [EMAIL PROTECTED]: On Tue, Dec 02, 2008 at 02:04:39AM +0300, Dan Korostelev wrote: I just removed zope.testing from the zope.index dependency and replaced

Re: [Zope] Anyone know of a tool to restore/cleanup/reset security/role settings?

2008-12-01 Thread Ross Patterson
Alexander Limi [EMAIL PROTECTED] writes: On Sat, 29 Nov 2008 15:19:10 -0800, Ross Patterson [EMAIL PROTECTED] wrote: Yeah, I did see that and no it doesn't look like it resets anything. It also looks like it's only concerned with local roles and I need to reset the role mappings too

Re: [Zope] Anyone know of a tool to restore/cleanup/reset security/role settings?

2008-11-29 Thread Ross Patterson
Alexander Limi [EMAIL PROTECTED] writes: On Fri, 28 Nov 2008 19:10:48 -0800, Ross Patterson [EMAIL PROTECTED] wrote: Does anyone know of an existing tool for restoring all security settings/rolemaps from the ground up? Obviously I can use rolemap.xml where applicable and update workflow

[Zope] Anyone know of a tool to restore/cleanup/reset security/role settings?

2008-11-28 Thread Ross Patterson
Does anyone know of an existing tool for restoring all security settings/rolemaps from the ground up? Obviously I can use rolemap.xml where applicable and update workflow security. I want to first restore the Zope root to code defaults and restore the whole hierarchy to just acquire. I'm going

Re: [Zope] FunctionalTestCase commits transactions

2008-11-05 Thread Ross Patterson
Peter Bengtsson [EMAIL PROTECTED] writes: 2008/11/4 Dieter Maurer [EMAIL PROTECTED]: Ross Patterson wrote at 2008-11-3 16:04 -0800: ... If memory serves, a *functional* test fixture calls the Zope publisher when a testbrowser request is made. The publisher opens a new transaction

Re: [Zope] FunctionalTestCase commits transactions

2008-11-04 Thread Ross Patterson
Dieter Maurer [EMAIL PROTECTED] writes: Ross Patterson wrote at 2008-11-3 16:04 -0800: ... If memory serves, a *functional* test fixture calls the Zope publisher when a testbrowser request is made. The publisher opens a new transaction, as it should. Really? When I wrote a functional test

Re: [Zope] FunctionalTestCase commits transactions

2008-11-03 Thread Ross Patterson
Peter Bengtsson [EMAIL PROTECTED] writes: I'm trying to get zope.testbrowser to work in Zope 2.10. After a lot of guesswork (easy_install zope.testbrowser broke my environment, Zope 2.11 isn't setting up session container, used various blogs tips to get adapters right) I got it running and I

[Zope-dev] zope.app.keyreference adds IPersistent objects to connections inappropriately? (was: five.intid and DirectoryView)

2008-06-29 Thread Ross Patterson
it should get that might not be valid. Here's the thread: http://thread.gmane.org/gmane.comp.web.zope.plone.product-developers/2309 Thoughts? Ross Ross Patterson [EMAIL PROTECTED] writes: Tres Seaver [EMAIL PROTECTED] writes: Martijn Pieters wrote: On Fri, Jun 27, 2008 at 6:53 PM, Ross

[Zope] Re: help debugging a can't pickle error deep within a catalog reindex

2008-06-18 Thread Ross Patterson
Rob Miller [EMAIL PROTECTED] writes: Ross Patterson wrote: Rob Miller [EMAIL PROTECTED] writes: hi, i'm trying to perform a ZCatalog.refreshCatalog() on a catalog with over 29,000 indexed objects. it churns for a good long time, and eventually fails with a long set of tracebacks

[Zope] Re: help debugging a can't pickle error deep within a catalog reindex

2008-06-17 Thread Ross Patterson
Rob Miller [EMAIL PROTECTED] writes: hi, i'm trying to perform a ZCatalog.refreshCatalog() on a catalog with over 29,000 indexed objects. it churns for a good long time, and eventually fails with a long set of tracebacks, of which i've included a sample at the end of this message. i

[Zope-Checkins] SVN: Zope/branches/2.10/lib/python/zope/app/EXTERNALS.txt sync with svn:externals

2008-03-09 Thread Ross Patterson
Log message for revision 71984: sync with svn:externals Changed: U Zope/branches/2.10/lib/python/zope/app/EXTERNALS.txt -=- Modified: Zope/branches/2.10/lib/python/zope/app/EXTERNALS.txt === ---

[Zope] Re: ZPL and GPL: What should one consider when choosing a license?

2007-12-26 Thread Ross Patterson
Ross Patterson [EMAIL PROTECTED] writes: Chris McDonough [EMAIL PROTECTED] writes: On Dec 21, 2007, at 3:53 PM, Ross Patterson wrote: Now I've gotta run out of here before a licensing discussion breaks out. ;-) I suppose this topic is just too volatile, but it would be great to have

[Zope] ZPL and GPL: What should one consider when choosing a license?

2007-12-21 Thread Ross Patterson
Recently, someone wrote to me regarding one of my z3c packages which is licensed under the GPL. They asked me to license them under the ZPL saying that the ZPL would allow the widest range of use for those packages. They also implied that using the GPL impacted the licensing of other code that

[Zope] Re: ZPL and GPL: What should one consider when choosing a license?

2007-12-21 Thread Ross Patterson
Chris McDonough [EMAIL PROTECTED] writes: On Dec 21, 2007, at 3:53 PM, Ross Patterson wrote: Unfortunately, the comment by Chris McDonough mentioned in the latter doesn't seem to be accessible any more. I'd love to read it. It said: I don't think Plone is bad because it uses the GPL. I

[Zope] Re: ZPL and GPL: What should one consider when choosing a license?

2007-12-21 Thread Ross Patterson
for the heads up. Ross Ross Patterson wrote: Recently, someone wrote to me regarding one of my z3c packages which is licensed under the GPL. They asked me to license them under the ZPL saying that the ZPL would allow the widest range of use for those packages. They also implied that using the GPL

[Zope-dev] Re: unregistering components?

2007-11-24 Thread Ross Patterson
Chris Withers [EMAIL PROTECTED] writes: Hi All, Does the component architecture support un-registering adapters and the like? From zope.component.interfaces: class IComponentRegistry(interface.Interface): Register components snip... def unregisterUtility(component=None,

[Zope-PAS] Re: Test layers for pastc

2007-11-19 Thread Ross Patterson
Tres Seaver [EMAIL PROTECTED] writes: Ross Patterson wrote: I'd love to convert PAS's tests to layers for test setUp and tearDown. Any objections? Layers are all about sharing setup across a set of tests, which means they risk breaking test isolation. I normally don't use layers

[Zope-dev] Re: Zope 3 catalog

2007-11-02 Thread Ross Patterson
Roché Compaan [EMAIL PROTECTED] writes: Where can one find Zope 3 catalog? Or is it simply zope.index? I think zope.app.catalog is what you're looking for. Ross ___ Zope-Dev maillist - Zope-Dev@zope.org

[Zope-dev] Re: Zope 3 catalog

2007-11-02 Thread Ross Patterson
Roché Compaan [EMAIL PROTECTED] writes: On Fri, 2007-11-02 at 11:44 -0700, Ross Patterson wrote: Roché Compaan [EMAIL PROTECTED] writes: Where can one find Zope 3 catalog? Or is it simply zope.index? I think zope.app.catalog is what you're looking for. Thanks. I was looking at the Zope

[Zope-dev] Re: zc.recipe.egg and 'install' instead of 'develop'?

2007-10-31 Thread Ross Patterson
Jim Fulton [EMAIL PROTECTED] writes: On Oct 31, 2007, at 4:58 PM, Sidnei da Silva wrote: On 10/31/07, Jim Fulton [EMAIL PROTECTED] wrote: On Oct 31, 2007, at 12:45 PM, Sidnei da Silva wrote: Is there a recipe that will 'install' a distutils package from source instead of doing 'develop'?

[Zope-dev] Re: zcml entry points

2007-10-17 Thread Ross Patterson
Martin Aspeli [EMAIL PROTECTED] writes: Fred Drake wrote: On 10/17/07, Martin Aspeli [EMAIL PROTECTED] wrote: The main win, IMHO, is to avoid the requirement for people to install slugs for third party products. Slugs suck - they are confusing to explain and people forget them all the time.

[Zope] ANN: z3c.recipe.egg - Recipes based on zc.recipe.egg for working with source distributions

2007-10-01 Thread Ross Patterson
I just bundled up and released some zc.buildout recipes I've found useful. Attached is the README.txt. http://cheeseshop.python.org/pypi/z3c.recipe.egg Ross == z3c.recipe.egg == Recipes based on zc.recipe.egg for working with source distributions. Editable

[Zope] ANN: Generating svn:externals by inspecting a repository - z3c.repoexternals

2007-09-30 Thread Ross Patterson
z3c.repoexternals recursively retrieves subversion directory listings from the url or path and matches directories against a previous set of svn:externals if provided then against regular expressions and generates qualifying svn:externals lines. The defaults generate a set of svn:externals for

[Zope] Re: z3c.offlinepack

2007-09-27 Thread Ross Patterson
Philipp von Weitershausen [EMAIL PROTECTED] writes: Ross Patterson wrote: Also, I can't seem to get the ReStructuredText in the long_description on the pypi page to display as ReStructuredText instead of just displaying as test. Anyone got any pointers? I assume you're generating

[Zope] z3c.offlinepack

2007-09-26 Thread Ross Patterson
I wrote a small script for packing ZODB storages without running zope complete with buildout support for quick deployment without modifying the system. Attached is the README for more details. I hope this is useful for some. Also, I can't seem to get the ReStructuredText in the long_description

[Zope] z3c.offlinepack

2007-09-26 Thread Ross Patterson
I wrote a small script for packing ZODB storages without running zope complete with buildout support for quick deployment without modifying the system. Attached is the README for more details. I hope this is useful for some. Also, I can't seem to get the ReStructuredText in the long_description

Re: [Zope] Deploying with buildout

2007-08-28 Thread Ross Patterson
Chris McDonough [EMAIL PROTECTED] writes: On Aug 27, 2007, at 10:59 PM, Ross Patterson wrote: We have a Plone 3.0/Zope 2.10 application that we need to develop on, maintain and deploy to a ZEO server and multiple ZEO clients. Currently we use svn bundles of Zope and Plone and our own

Re: [Zope] Deploying with buildout

2007-08-28 Thread Ross Patterson
Chris McDonough [EMAIL PROTECTED] writes: On Aug 28, 2007, at 5:55 PM, Ross Patterson wrote: Putting these packages in your Zope instance home's lib/python directory should get them found before the others. For Products, you can use an additional products-path directive in zope.conf and put

[Zope] Deploying with buildout (was: buildout, instancemanager, and eggs)

2007-08-27 Thread Ross Patterson
We have a Plone 3.0/Zope 2.10 application that we need to develop on, maintain and deploy to a ZEO server and multiple ZEO clients. Currently we use svn bundles of Zope and Plone and our own packages and products in one big svn:externals definition. We also use some more recent versions of

[Zope-dev] Getting PAS users to show up in the access log/Z2.log

2007-08-23 Thread Ross Patterson
It seems like ZServer/medusa/http_server.py is responsible for logging requests to the access log/Z2.log and it only extracts the user from the HTTP basic auth header. I'd like to have the Z2.log reflect my PAS users so I started a branch at

[Zope-dev] Re: Getting PAS users to show up in the access log/Z2.log

2007-08-23 Thread Ross Patterson
Ross Patterson [EMAIL PROTECTED] writes: It seems like ZServer/medusa/http_server.py is responsible for logging requests to the access log/Z2.log and it only extracts the user from the HTTP basic auth header. I'd like to have the Z2.log reflect my PAS users so I started a branch at http

[Zope-dev] Re: [Plone-developers] Getting PAS users to show up in the access log/Z2.log

2007-08-23 Thread Ross Patterson
Wichert Akkerman [EMAIL PROTECTED] writes: Previously Ross Patterson wrote: Ross Patterson [EMAIL PROTECTED] writes: It seems like ZServer/medusa/http_server.py is responsible for logging requests to the access log/Z2.log and it only extracts the user from the HTTP basic auth header

[Zope-dev] Re: [Plone-developers] Getting PAS users to show up in the access log/Z2.log

2007-08-23 Thread Ross Patterson
Wichert Akkerman [EMAIL PROTECTED] writes: Previously Ross Patterson wrote: Wichert Akkerman [EMAIL PROTECTED] writes: Previously Ross Patterson wrote: Ross Patterson [EMAIL PROTECTED] writes: It seems like ZServer/medusa/http_server.py is responsible for logging requests

[Zope-PAS] Getting PAS users to show up in the access log/Z2.log

2007-08-23 Thread Ross Patterson
It seems like ZServer/medusa/http_server.py is responsible for logging requests to the access log/Z2.log and it only extracts the user from the HTTP basic auth header. I'd like to have the Z2.log reflect my PAS users so I started a branch at

[Zope-dev] Is if sys.exc_info()[2].tb_next is not None: raise Evil? Concerns Products.GenericSetup, zope.configuration and others

2007-08-03 Thread Ross Patterson
While trying to use zope.app.modul.ZopePersistentModuleImporter, I ran across an interaction with code that uses the following hack to try and discern where an exception was raised. if sys.exc_info()[2].tb_next is not None: raise The problem is occurs when an application provides

[Zope-dev] How can I tell if an object in a ZODB is being activated? Concerns zope.app.module.importer.

2007-08-03 Thread Ross Patterson
I'm working on zope.app.module.ZopePersistentModuleImporter. As noted in zodbcode.module.PersistentModuleImporter.__doc__, if the persistent module registry which is consulted on import queries a persistent site manager then the site manager must be activated before being queried or a circular

[Zope-dev] Re: ZClassNG proposal makes Archetypes Easy.

2007-04-24 Thread Ross Patterson
Laurence Rowe [EMAIL PROTECTED] writes: I actually think TTW schema generation has some validity (so content types can be easily generated by users). Restricted Python (in python scripts) just kind of sucks though for being almost python but a little different. You could keep python code on

[Zope-dev] Re: Why are ZClasses Dead

2007-04-18 Thread Ross Patterson
Christopher Lozinski [EMAIL PROTECTED] writes: I keep getting these negative email messages. Here is the most recent example. I think you should stop dreaming and face the reality. There is almost nobody interested of the developer community in ZClasses.. I have no idea what your goal

[Zope-Checkins] Re: [Zope3-checkins] SVN: Zope3/branches/3.3/src/zope/app/ Merge PersistentInterfaceClass fix from trunk r72109 as described in

2007-01-22 Thread Ross Patterson
Christian Theune ct-w5oghCfH6z/[EMAIL PROTECTED] writes: I didn't spot a comment in the CHANGELOG for this. Ah, sorry. There are some holes in my best practices. Happy to correct though. Shall I just fashion a CHANGELOG entry after the existing ones? Or is there some spcific documentation

[Zope-Checkins] Re: [Zope3-checkins] SVN: Zope3/branches/3.3/src/zope/app/ Merge PersistentInterfaceClass fix from trunk r72109 as described in

2007-01-22 Thread Ross Patterson
Christian Theune [EMAIL PROTECTED] writes: Am Montag, den 22.01.2007, 00:25 -0800 schrieb Ross Patterson: Christian Theune ct-w5oghCfH6z/[EMAIL PROTECTED] writes: I didn't spot a comment in the CHANGELOG for this. Ah, sorry. There are some holes in my best practices. Happy to correct

[Zope-dev] Re: [Z3d] 747/ 2 Comment zope.app.interface PersistentInterfaceClass dependents broken

2007-01-12 Thread Ross Patterson
I've submitted a patch for zope.app.interface.PersistentInterfaceClass and it looks like I could use the approach of zodbcode ModuleManagers and zope.app.interface.PersistentInterfaceClass instances for what I need. Over the course of this work, however, I noticed

[Zope-dev] Persistent Interfaces

2007-01-09 Thread Ross Patterson
I'm building a Zope2.10/Plone3 project using the CA wherever I can. I'm relying heavily on marker interfaces and I'm at a point where I need to allow a site administrator to create new marker interfaces to be used to mark content. I've looked at zodbcode, zope.app.module, and then finally found

[Zope-PAS] Re: Duplicate pulgin types created by PluginRegistry.exportimport._updatePluginRegistry

2006-12-19 Thread Ross Patterson
Tres Seaver [EMAIL PROTECTED] writes: Thanks! Can you please add to the PAS collector so we don't lose the patch: http://www.zope.org/Collectors/PAS Will do. I don't understand the need for this handler, or why your overrides.zcml uses it for IPluginRegistry. The normal handers for PAS

Re: [Zope] How to do this trick..

2006-03-27 Thread Ross Patterson
tal:repeat repeat=group groups/existing/high option tal:define=js_arg python:sp_info[group]; tal:content=group tal:attributes=onmouseover string:doTooltip(event, '${js_arg}/common_name}') onmouseout=hideTip() /option /tal:repeat The

Re: [Zope-dev] Re: PDBDebugMode 0.1 Release

2006-03-16 Thread Ross Patterson
You should really try using a editor/IDE that automatically shows the corresponding code along side the debugger, like Emacs' gud-mode which can be invoked with M-x pdb. It rocks! I do that sometimes, but I lack sufficient wizardry to make it work with through-the-web scripts :-) But then,

Re: [Zope-dev] Re: PDBDebugMode 0.1 Release

2006-03-14 Thread Ross Patterson
I've only just tried PDBDebugMode, very handy since you don't have to put set_trace() in your code (and remember to remove it). Glad you like it :) I have also sometimes used Chris Withers' zdb product, http://www.simplistix.co.uk/software/zope/zdb, which has some overlap in that it allows

[Zope-dev] PDBDebugMode 0.1 Release

2006-03-13 Thread Ross Patterson
development instance, I'll restart the production instance in debug-mode with pdb in emacs, reproduce the error, inspect the call stack. Ross Patterson ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts

[Zope-dev] Re: Python Base Classes, ZObjectManager, and Subobjects

2002-01-29 Thread Ross Patterson
it. My working *.py files are quoted below the quoted history. On Mon, 28 Jan 2002, Ross Patterson wrote: Nobody's really answering and I keep getting both closer and further looking at the ZClasses code. As I understand it now, ZClasses.ZClass.createZClassForBase is supposed to address the ZClass

[Zope-dev] Python Base Classes, ZObjectManager, and Subobjects (fwd)

2002-01-28 Thread Ross Patterson
ProjectPartBase ( PartBases ) : Base Class for ZCP Project Parts - | Ross Patterson[EMAIL PROTECTED] | | Programmer/Analyst(831)459-2792 | | Physical Planning

[Zope-dev] Re: Python Base Classes, ZObjectManager, and Subobjects

2002-01-28 Thread Ross Patterson
in such a way that the final ZClass and any other ZClasses that subclass it have a subobjects tab in the management view of the ZClass. Thanks. On Sun, 27 Jan 2002, Ross Patterson wrote: I'm transitioning a product from pure ZClasses to a hybrid product python base classes and ZClasses. So this is my