[Zope-dev] hurry.workflow class based work flows.

2009-06-22 Thread Michael Shaw
Hello, I have been working with hurry.workflow in a project and had some questions about making hurry.workflow work with different work flows. For this project each class can have a different work flow with it's own set of states and transitions. All of the instances of a given class share the

[Zope-dev] repoze.component and repoze.configuration

2009-06-22 Thread Chris McDonough
I have released two new packages to PyPI. These packages were inspired by (design almost entirely stolen from) zope.component and zope.configuration. I don't really expect them to get much use, but writing them was enlightening. Maybe they'll be interesting to someone who wants to introduce pe

Re: [Zope-dev] RFC: ZTK custom publications, zope.app.publication, and zope.traversing

2009-06-22 Thread Martijn Faassen
Jim Fulton wrote: [snip[ > I made it possible to override proxying by overriding the proxy > method. At this point, I think zope.app.publication provides a pretty > reasonable base class for custom publication implementations, although > the module arrangement could be made a bit simpler. C

Re: [Zope-dev] tabs in the source

2009-06-22 Thread Gary Poster
On Jun 22, 2009, at 1:16 PM, Adam GROSZER wrote: > Hello, > > Maybe it's time for an svn commit police squad? > 22 .py files have tabs... and I grepped only zope.* packages. FWIW, to state the probably obvious, other projects handle this with varying degrees of increased control. Some require

Re: [Zope-dev] tabs in the source

2009-06-22 Thread Benji York
On Mon, Jun 22, 2009 at 1:16 PM, Adam GROSZER wrote: > Hello, > > Maybe it's time for an svn commit police squad? /me readies the tear gas. -- Benji York Senior Software Engineer Zope Corporation ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.z

[Zope-dev] tabs in the source

2009-06-22 Thread Adam GROSZER
Hello, Maybe it's time for an svn commit police squad? 22 .py files have tabs... and I grepped only zope.* packages. -- Best regards, Adam GROSZER mailto:agros...@gmail.com -- Quote of the day: Selfishness is the most basic motivation __

Re: [Zope-dev] RFC: ZTK custom publications, zope.app.publication, and zope.traversing

2009-06-22 Thread Brian Sutherland
On Mon, Jun 22, 2009 at 09:01:16AM -0400, Jim Fulton wrote: >>> - Create zope.publication from zope.app.publcatiobn >>> - use webtest rather than zope.app.testing. >> >> What's webtest? > > http://pythonpaste.org/webtest/ > > It's sort of like zope.app.testing.functional or zope.testbrowser but >

Re: [Zope-dev] RFC: ZTK custom publications, zope.app.publication, and zope.traversing

2009-06-22 Thread Stephan Richter
On Monday 22 June 2009, Jim Fulton wrote: > 2 examples: > > - Use a Python-based proxy that's good enough for supporting access   > control in trusted code. (It wouldn't protect against devious   > untrusted code, but most applications don't really need to run   > untrusted code.) > > - Use a bette

Re: [Zope-dev] RFC: ZTK custom publications, zope.app.publication, and zope.traversing

2009-06-22 Thread Tim Hoffman
Hi Jim Yeah I meant my ugly hacks getting rid of the 'c' in zope.proxy and zope.security aren't going to get supported by anyone, whereas having a supported way of substituting proxies and security would be great. All the import dependancies that existed when I went through the excercise meant ug

Re: [Zope-dev] RFC: ZTK custom publications, zope.app.publication, and zope.traversing

2009-06-22 Thread Jim Fulton
On Jun 22, 2009, at 9:22 AM, Tres Seaver wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Jim Fulton wrote: >> On Jun 22, 2009, at 7:11 AM, Tim Hoffman wrote: >> >>> Big +1 from me on this. >> >> Cool. >> >>> I had to do a whole lot of hacks to get this stuff running on app >>> engine

Re: [Zope-dev] RFC: ZTK custom publications, zope.app.publication, and zope.traversing

2009-06-22 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jim Fulton wrote: > On Jun 22, 2009, at 7:11 AM, Tim Hoffman wrote: > >> Big +1 from me on this. > > Cool. > >> I had to do a whole lot of hacks to get this stuff running on app >> engine and basically >> had to gut zope.proxy which was ugly > >

Re: [Zope-dev] RFC: ZTK custom publications, zope.app.publication, and zope.traversing

2009-06-22 Thread Jim Fulton
On Jun 22, 2009, at 7:11 AM, Tim Hoffman wrote: > Big +1 from me on this. Cool. > > I had to do a whole lot of hacks to get this stuff running on app > engine and basically > had to gut zope.proxy which was ugly How so? > and obviously unsupported. I don't think so. What makes you think i

Re: [Zope-dev] RFC: ZTK custom publications, zope.app.publication, and zope.traversing

2009-06-22 Thread Jim Fulton
On Jun 21, 2009, at 1:32 PM, Tres Seaver wrote: ... >> Thoughts? > > +1. I would also like to be able to break the current > zope.app.publication dependencies within Zope2: > > - ZPublisher.BaseRequest uses zope.app.publication for the > EndRequestEvent class > > - Products.Five.compuonent like

Re: [Zope-dev] RFC: ZTK custom publications, zope.app.publication, and zope.traversing

2009-06-22 Thread Jim Fulton
On Jun 22, 2009, at 4:08 AM, Brian Sutherland wrote: > On Sun, Jun 21, 2009 at 11:55:50AM -0400, Jim Fulton wrote: >> - It aggressively proxies objects using >> zope.security.checker.ProxyFactory. Some people don't want >> to use proxies and those that do might want to use a different >> proxy

[Zope-dev] Zope Tests: 7 OK, 1 Failed

2009-06-22 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list. Period Sun Jun 21 12:00:00 2009 UTC to Mon Jun 22 12:00:00 2009 UTC. There were 8 messages: 8 from Zope Tests. Test failures - Subject: FAILED (failures=1) : Zope-2.11 Python-2.4.6 : Linux From: Zope Tests Date: Sun Jun 21 21:02:17 EDT 2009

Re: [Zope-dev] RFC: ZTK custom publications, zope.app.publication, and zope.traversing

2009-06-22 Thread Tim Hoffman
HI Big +1 from me on this. I had to do a whole lot of hacks to get this stuff running on app engine and basically had to gut zope.proxy which was ugly and obviously unsupported. After getting this running which was a big task I decided to go with repoze.bfg which just didn't have the security prox

Re: [Zope-dev] REQUEST vs. request

2009-06-22 Thread Patrick Gerken
Hi, thank you for all that answers, this was really helpful! On Mon, Jun 22, 2009 at 12:18, Hanno Schlichting wrote: > On Tue, Jun 16, 2009 at 10:35 PM, Patrick Gerken > wrote: > > A testcase in my code fails, and after a lot of digging, I am finding > that > > the reason are wrong results from

Re: [Zope-dev] REQUEST vs. request

2009-06-22 Thread Hanno Schlichting
On Tue, Jun 16, 2009 at 10:35 PM, Patrick Gerken wrote: > A testcase in my code fails, and after a lot of digging, I am finding that > the reason are wrong results from the catalog. The catalog returns bad > results because he caches the results in the request. > My test consists of a number of ste

Re: [Zope-dev] RFC: ZTK custom publications, zope.app.publication, and zope.traversing

2009-06-22 Thread Jim Fulton
On Jun 21, 2009, at 9:40 PM, Stephan Richter wrote: > On Sunday 21 June 2009, Jim Fulton wrote: >> Thoughts? > > +1. Sounds really good! > > BTW, I would love to hear about a practical example for overriding > proxy() > other than turning off security altogether. 2 examples: - Use a Python-b

Re: [Zope-dev] [Checkins] SVN: zope.traversing/trunk/src/zope/traversing/ Moved the publicationtraverse module from zope.app.publication and added tests.

2009-06-22 Thread Jim Fulton
On Jun 21, 2009, at 3:38 PM, Laurence Rowe wrote: > Jim Fulton wrote: >> I don't agree. The semantics are different. For example, you often >> want to traverse to things in a template that you don't want to >> expose >> via URL. We currently (or last time I checked) expose ++resource+ >> +name

Re: [Zope-dev] REQUEST vs. request

2009-06-22 Thread Reinout van Rees
On 2009-06-16, Patrick Gerken wrote: > > A testcase in my code fails, and after a lot of digging, I am finding that > the reason are wrong results from the catalog. The catalog returns bad > results because he caches the results in the request. > My test consists of a number of steps, for multiple

Re: [Zope-dev] RFC: ZTK custom publications, zope.app.publication, and zope.traversing

2009-06-22 Thread Brian Sutherland
On Sun, Jun 21, 2009 at 11:55:50AM -0400, Jim Fulton wrote: > - It aggressively proxies objects using > zope.security.checker.ProxyFactory. Some people don't want >to use proxies and those that do might want to use a different > proxy or checker implementation. Grok's publication sub-clas