Re: [Zope3-dev] zope.app.twisted.ftp tests

2006-01-30 Thread Michael Kerrin
On Monday 30 January 2006 02:23, Andrew Bennetts wrote: On Sat, Jan 28, 2006 at 09:44:44PM +, Michael Kerrin wrote: Hi All, I have just fixed issue #533 and it just reminded me that I have some test for the twisted ftp server written using the Twisted trial testing framework.

Re: [Zope3-dev] zope.app.twisted.ftp tests

2006-01-30 Thread Andrew Bennetts
On Mon, Jan 30, 2006 at 11:07:50AM +, Michael Kerrin wrote: On Monday 30 January 2006 02:23, Andrew Bennetts wrote: [...] With sufficiently recent Twisted (possibly 2.1, but definitely SVN), it should be possible to run these tests with the standard zope testing framework. Trial is now

Re: [Zope3-dev] zope.app.twisted.ftp tests

2006-01-30 Thread Michael Kerrin
Hi Jim, If you are happy to wait a few days more, before including these into buildbot, I will create a branch to get these tests back into the same zope testing framework. From what Andrew Bennetts said in his response, this is very possible but will probable require a update of Twisted to

Re: [Zope3-dev] zope.app.twisted.ftp tests

2006-01-30 Thread Jim Fulton
Michael Kerrin wrote: Hi Jim, If you are happy to wait a few days more, before including these into buildbot, I will create a branch to get these tests back into the same zope testing framework. From what Andrew Bennetts said in his response, this is very possible but will probable

Re: [Zope3-dev] Re: xmlrpc:view (and jsonrpc:view)

2006-01-30 Thread Paul Winkler
On Sun, Jan 29, 2006 at 12:19:24PM +0100, Balazs Ree wrote: So this is where I see the importance of this: allow access to a method/template via RPC only, and disallow the method to be called directly from the browser. I'm curious. How do you distinguish between a jsonrpc request and a direct

Re: [Zope3-dev] My Experiences using Interface invariants with Formlib

2006-01-30 Thread Gary Poster
On Jan 30, 2006, at 3:21 AM, Michael Howitz wrote: Hi, as suggested in #zope3-dev I'll post my experiences with interface invariants and formlib here. I have an interface with two password fields which should be equal: class IUser(Interface):

Re: [Zope3-dev] My Experiences using Interface invariants with Formlib

2006-01-30 Thread Jim Fulton
Fred Drake wrote: On 1/30/06, Michael Howitz [EMAIL PROTECTED] wrote: I have an interface with two password fields which should be equal: class IUser(Interface): password=zope.schema.Password(title=upassword) password2=zope.schema.Password(title=upassword again) Gary outlined one

Re: [Zope3-dev] My Experiences using Interface invariants with Formlib

2006-01-30 Thread Gary Poster
On Jan 30, 2006, at 12:11 PM, Jim Fulton wrote: Fred Drake wrote: On 1/30/06, Michael Howitz [EMAIL PROTECTED] wrote: I have an interface with two password fields which should be equal: class IUser(Interface): password=zope.schema.Password(title=upassword)

Re: [Zope3-dev] Question about re-authentication

2006-01-30 Thread Chris Withers
Stephan Richter wrote: On Wednesday 25 January 2006 05:40, Christian Theune wrote: I'm quite sure that part b) isn't written yet, but I'm not sure what the state of part a) is. (a) is done. It is indeed the default Zope behavior. I'd love for this to be configurable somehow... The pop up

Re: [Zope3-dev] Deploying WSGI Apps with Zope 3.2+

2006-01-30 Thread Chris Withers
Sidnei da Silva wrote: What I think is that the Zope ZConfig schema should have something just like 'package-includes' is for ZCML. A place where you can drop a snippet of ZConfig schema and it will get picked up at boot time. Try having a play with MailingLogger in Zope 2. Both the .conf and

Re: [Zope3-dev] Re: Deploying WSGI Apps with Zope 3.2+

2006-01-30 Thread Chris Withers
Tres Seaver wrote: +1 to that. I think Chris doesn't really believe in the Second Law of Python (according to the prophet Peters). Urm, can you refresh for someone with hazy knowledge of PSU epistles? Shane Hathaway wrote: No, Chris just doesn't like XML namespaces. You can still have

Re: [Zope3-dev] Re: Deploying WSGI Apps with Zope 3.2+

2006-01-30 Thread cstrong
I remember that Jim once presented two XML samples and asked which one was more readable. I preferred many elements over many attributes. He preferred the opposite. I thought he was crazy, and as I recall, he thought I was crazy, too. :-) Elements vs Attributes is an age old debate. Some

Re: [Zope3-dev] Re: Correction to RFC

2006-01-30 Thread Chris Withers
Tres Seaver wrote: Thought so! I'm just not sure whether this is intended behaviour. What's the current policy about displaying tracebacks to the end-user in Zope 3? The policy seems to be that the end user should *never* see the traceback, unless she selects the '++skin++Debug' skin *and*

Re: [Zope3-dev] Re: Deploying WSGI Apps with Zope 3.2+

2006-01-30 Thread Paul Winkler
On Mon, Jan 30, 2006 at 09:36:12PM +, Chris Withers wrote: Tres Seaver wrote: +1 to that. I think Chris doesn't really believe in the Second Law of Python (according to the prophet Peters). Urm, can you refresh for someone with hazy knowledge of PSU epistles? [EMAIL PROTECTED] ~ $

Solved: [Zope3-dev] persistent data in (not local) utilitiy

2006-01-30 Thread Markus Leist
Ok, getUtility() doesn't work, but: def bootStrapSubscriberDatabase(event): [...] db, connection, root, root_folder = getInformationFromEvent(event) if ( ensureUtility(root_folder, IIkAdminUtility, 'IkAdminUtility', IkAdminUtility, '') ) : logger.info(Ensure unnamed

Re: [Zope3-dev] Re: Correction to RFC

2006-01-30 Thread Jim Fulton
Chris Withers wrote: Tres Seaver wrote: Thought so! I'm just not sure whether this is intended behaviour. What's the current policy about displaying tracebacks to the end-user in Zope 3? The policy seems to be that the end user should *never* see the traceback, unless she selects the