RE: [Zope3-dev] Form framework, adapters and pau

2005-04-05 Thread Garrett Smith
Jim Fulton wrote: Garrett Smith wrote: I don't understand the pushback against location proxying security-proxied objects. LocationProxy does actually play well with security-proxied objects. That was not our experience in the recent past. I'll have to document the problems, assuming

RE: [Zope3-dev] Form framework, adapters and pau

2005-04-06 Thread Garrett Smith
Jim Fulton wrote: Subject: Re: [Zope3-dev] Form framework, adapters and pau Here's an alternate proposal: Let's put the proxying in the trusted adapter factory. Let's make the trusted adapter factory add the proxy if the adapter doesn't set ILocation. Then the form code stays clean

RE: [Zope3-dev] problems with Win buildinstall

2005-04-06 Thread Garrett Smith
Adam Groszer wrote: I'm trying to build install the Zope 3 trunk on Win2K. I'm having some problems with it. May I post them here or is it too early for the upcoming release? Adam ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub:

RE: [Zope3-dev] RFC: Change in automatic detection of providedinterfaces

2005-04-06 Thread Garrett Smith
Jim Fulton wrote: A recent simplification was made to adapter and utility registration. When registering adapters, the provided interface can be ommitted if the registered factory implements a single interface. Similarly, when registering utilities, the provided interface can be ommitted if

RE: [Zope3-dev] New preferences package

2005-04-08 Thread Garrett Smith
Stephan Richter wrote: On Thursday 07 April 2005 19:43, Garrett Smith wrote: I suggest that new packages like this should be as decoupled from zope/app as possible until it's clear that they belong in the core. If apidoc is in the core, the preference will be too. :-) It's not currently

RE: [Zope3-dev] Changes to transaction management API

2005-04-16 Thread Garrett Smith
Jim Fulton wrote: Garrett Smith wrote: Recent changes to the transaction management API seem to have come out of the blue and without warning. Perhaps I missed an announcement. Are we to expect breakages of this sort on occasion? Was there breakage? If there was, it was unintended

RE: [Zope3-dev] Changes to transaction management API

2005-04-16 Thread Garrett Smith
Tim Peters wrote: [Jim Fulton] Was there breakage? If there was, it was unintended. [Garrett] IDataManager was completely restructured. This was not accurate -- the restructuring happened a while ago and I didn't catch it. I assumed this change was made along with the one I list below. If

RE: [Zope3-dev] Input widgets do too much

2005-04-25 Thread Garrett Smith
Jim Fulton wrote: I'd like to make some changes to the widget API. http://www.zope.org/Zope3/MoreCleanupOfWidgets proposes some cleanup, but I'd like to go farther. I think widgets, especially IInputWidget have too much responsibility, namely: - validation - applying changes

RE: [Zope3-dev] Data manager interface -- tpc_begin and other changes

2005-04-25 Thread Garrett Smith
Jim Fulton wrote: This is for people who've implemented ZODB data managers. Data managers are components that manage persistent data under transaction control, We've recently tried to clean up and document the data-manager interfaces. In addition, over the weekend, I implemented

RE: [Zope3-dev] Missing ObjectContentModifiedEvent

2005-05-03 Thread Garrett Smith
From the interface docs, it's not clear to me what the difference between the events are: class IObjectModifiedEvent(IObjectEvent): An object has been modified class IObjectContentModifiedEvent(IObjectModifiedEvent): An object's content has been modified What is the difference between

[Zope3-dev] Sublocation notifications

2005-05-03 Thread Garrett Smith
We currently dispatch some object events to sublocations. I think there's a problem with the current approach. If I subscribe to IObjectModifiedEvent with something like this: def handle(object, event): ... I'll get notifications where object and event.object are different. This

RE: [Zope3-dev] Sublocation notifications

2005-05-03 Thread Garrett Smith
Gary Poster wrote: On May 3, 2005, at 5:39 PM, Garrett Smith wrote: We currently dispatch some object events to sublocations. I think there's a problem with the current approach. ... Why not just have your own app listen for (object, event) and then do this additional dispatch? That's

RE: [Zope3-dev] Missing ObjectContentModifiedEvent

2005-05-03 Thread Garrett Smith
Uwe Oestermeier wrote: But I could also live with ObjectModifiedEvents only. IMO, the second event type, if it doesn't have a clear distinction, should be removed. A more radical approach would be to specify in each ObjectModifiedEvent which aspects of an object changed. By aspect I mean the

RE: [Zope3-dev] Missing ObjectContentModifiedEvent

2005-05-04 Thread Garrett Smith
Uwe Oestermeier wrote: Garrett Smith wrote: I'd see this being something like a ValueChangedEvent that specified the object, schema, field name, old value, and new value. This would be a nice way to bolt on validation without modifying the schema. Yes, that's exactly what I need

RE: [Zope3-dev] Missing ObjectContentModifiedEvent

2005-05-06 Thread Garrett Smith
Jim Fulton wrote: Garrett Smith wrote: Uwe Oestermeier wrote: In the meanwhile we need a decision, whether the ObjectContentModifiedEvent should be used in the File._setData method. I would like to check this solution in. Any objections? The ObjectContentModifiedEvent class can be removed

RE: [Zope3-dev] Missing ObjectContentModifiedEvent

2005-05-09 Thread Garrett Smith
Uwe Oestermeier wrote: ...very good analysis of current modified event usage... Alternatively, all mentioned usages could be easily subsumed under an extended ObjectModifiedEvent definition. Some optional keywords (for the interface and the attribute that was used to change the object, and

RE: What is modification, and why do we care? (was Re: [Zope3-dev] MissingObjectContentModifiedEvent)

2005-05-26 Thread Garrett Smith
I'm not wedded to this philosophy, but I think Zope should provide as little application-specific event notifications as possible. I think even the distinction between 'content' and 'metadata' in the current implementation is dubious. (I don't believe the 'metadata' events are even used.) I'd just

RE: [Zope3-dev] Missing ObjectContentModifiedEvent

2005-05-30 Thread Garrett Smith
Jim Fulton wrote: Uwe Oestermeier wrote: ... Alternatively, all mentioned usages could be easily subsumed under an extended ObjectModifiedEvent definition. Some optional keywords (for the interface and the attribute that was used to change the object, and additional infos about the changed

RE: [Zope3-dev] Missing ObjectContentModifiedEvent

2005-05-31 Thread Garrett Smith
Florent Guillaume wrote: On 31 May 2005, at 12:39, Garrett Smith wrote: That looks good to me. Especially because, using interfaces, we could theoretically express more than just a set of attributes that have changed on an object. I'm thinking of: - having the interface itself add semantics

RE: [Zope3-dev] Missing ObjectContentModifiedEvent

2005-06-01 Thread Garrett Smith
Jim Fulton wrote: Garrett Smith wrote: :-) I guess this approach is *so* endemic to Zope 3, I must be missing something huge. What we're talking about is not very different from the way that composition is used to prevent explosition of field types. For example, we use: List(Int

RE: [Zope3-dev] Missing ObjectContentModifiedEvent

2005-06-01 Thread Garrett Smith
Garrett Smith wrote: Jim Fulton wrote: Garrett Smith wrote: :-) I guess this approach is *so* endemic to Zope 3, I must be missing something huge. What we're talking about is not very different from the way that composition is used to prevent explosition of field types. For example, we

[Zope3-dev] Choose-a-name strategy and write conflicts

2005-06-17 Thread Garrett Smith
The use of INameChooser is useful for picking names that don't conflict across serial transactions. But this approach is problematic when two or more transactions are tying to add objects to a container at the same time. Because 'choose name' relies on its isolated version of a container, multiple

RE: [Zope3-dev] Choose-a-name strategy and write conflicts

2005-06-18 Thread Garrett Smith
Jim Fulton wrote: Garrett Smith wrote: The use of INameChooser is useful for picking names that don't conflict across serial transactions. But this approach is problematic when two or more transactions are tying to add objects to a container at the same time. Because 'choose name' relies

RE: [Zope3-dev] Utility Registration was:RE: [Zope3-Users] pluggableauthentication utility

2005-06-18 Thread Garrett Smith
Roger Ineichen wrote: pluggableauthentication utility Hi Jim, perhaps we can discuss this on zope3-dev. From: Jim Fulton [mailto:[EMAIL PROTECTED] Sent: Thursday, June 16, 2005 12:03 PM To: [EMAIL PROTECTED] Cc: 'GMane'; zope3-users@zope.org Subject: Re: [Zope3-Users] pluggable

RE: [Zope3-dev] Utility Registration was:RE: [Zope3-Users] pluggableauthentication utility

2005-06-18 Thread Garrett Smith
Roger Ineichen wrote: pluggableauthentication utility Hi Garrett From: Garrett Smith [mailto:[EMAIL PROTECTED] Sent: Saturday, June 18, 2005 7:52 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Cc: zope3-users@zope.org; zope3-dev@zope.org Subject: RE: [Zope3-dev] Utility Registration

RE: [Zope3-dev] Utility Registration was:RE: [Zope3-Users] pluggableauthentication utility

2005-06-18 Thread Garrett Smith
Roger Ineichen wrote: pluggableauthentication utility Hi Garrett From: Garrett Smith [mailto:[EMAIL PROTECTED] Sent: Saturday, June 18, 2005 7:52 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Cc: zope3-users@zope.org; zope3-dev@zope.org Subject: RE: [Zope3-dev] Utility Registration was:RE

[Zope3-dev] Traversal permission vs read permission

2005-06-20 Thread Garrett Smith
I'd like to be able to grant permission to traverse a folder, but not permission to view folder contents. This could be handled in Zope by making container.traversal.ItemTraverser a trusted adapter and protecting it with a zope.Traverse permission. I suspect this problem has been discussed

[Zope3-dev] Broken ZODB (was SVN: Zope3/trunk/src/zope/app/authentication/Eliminated all old-style classes)

2005-06-22 Thread Garrett Smith
This change has broken presisted SessionCresentials. I'm not sure why, but the unpickler is calling SessionCredentials __init__. I'm not sure what the right course is here, but I think something should be done. One of these perhaps: - Revert to old style class - Write a conversion script -

[Zope3-dev] zope.security.interfaces.ForbiddenAttribute: ('utcoffset', UTC)

2005-07-18 Thread Garrett Smith
This might be something on my end, but I figure I'd throw it out in case it's related to any changes related to naïve/non-naïve time zones. Here's the relevant part of the traceback: File /opt/aktari/zope/src/zope/i18n/format.py, line 175, in format info = buildDateTimeInfo(obj,

[Zope3-dev] Formatting dates

2005-07-18 Thread Garrett Smith
Now that dates have UTC time zones associated with them, will we be adjusting how they're displayed in various views? Somehow it doesn't seem appropriate to display UTC by default. I'd assume Zope would use the server's timezone offset. -- Garrett

RE: [Zope3-dev] zope.security.interfaces.ForbiddenAttribute: ('utcoffset', UTC)

2005-07-19 Thread Garrett Smith
This was entirely on my side -- I had a 'funny' in a security checker that cropped up with the tz change. -- Garrett -Original Message- From: Gary Poster [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 19, 2005 11:37 AM To: Garrett Smith Cc: Zope3-Dev (zope3-dev@zope.org) Subject

RE: [Zope3-dev] Formatting dates

2005-07-19 Thread Garrett Smith
'. -Original Message- From: Gary Poster [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 19, 2005 11:47 AM To: Garrett Smith Cc: Zope3-Dev (zope3-dev@zope.org) Subject: Re: [Zope3-dev] Formatting dates On Jul 19, 2005, at 12:22 AM, Garrett Smith wrote: Now that dates have UTC time

RE: [Zope3-dev] Formatting dates

2005-07-21 Thread Garrett Smith
That application of the user's timezone might be done before the datetime is actually generated, or with a datetime.replace (tzinfo=ITZInfo(request)) call. (The immutable nature of strings, datetimes, and other similar types doesn't prevent us from performing operations with them or

[Zope3-dev] Using zopectrl to restart Zope

2005-07-21 Thread Garrett Smith
I noticed some discussion along the line of using CTRL-C to stop Zope. I think the conclusion was that it was okay for development only. We use zopectrl as the base for a Linux service (using chkconfig). Does zopectrl stop allow pending transactions to complete (and presumably ignore/reject

RE: [Zope3-dev] Formatting dates

2005-07-21 Thread Garrett Smith
-Original Message- From: Fred Drake [mailto:[EMAIL PROTECTED] Sent: Thursday, July 21, 2005 12:25 PM To: Garrett Smith Cc: Zope3-Dev (zope3-dev@zope.org) Subject: Re: [Zope3-dev] Formatting dates On 7/21/05, Garrett Smith [EMAIL PROTECTED] wrote: I guess my question

RE: [Zope3-dev] [Fwd: SVN: Zope3/trunk/src/zope/app/form/browser/ Fixed a bug in SimpleInputWidget. _getFormValue had an evil side]

2005-07-21 Thread Garrett Smith
As the person who refactored SimpleInputWidget (not the author), I concur that it can be trying to use. We've actually forked that code, so I can't say whether it makes things easier or harder. There's certainly enough collective experience with forms/widgets that we could stand another round

[Zope3-dev] What is zope3-dev-bounces?

2005-07-23 Thread Garrett Smith
I'm getting mail from this list from [EMAIL PROTECTED] We just moved to a different mail server -- the word 'bounces' would seem to be a bad thing (yet I'm still receiving posts from the list). Does anyone know why I'm getting mail in this way? -- Garrett

[Zope3-dev] Debugging deadlocks in Zope3

2005-07-24 Thread Garrett Smith
Is there any info published on debugging Zope3 deadlocks? I'd like to see tracebacks of a couple threads. Has anyone done this w/Zope3? -- Garrett ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub:

RE: [Zope3-dev] Deprecation of NotFoundError (#284)

2005-07-28 Thread Garrett Smith
It's clear that NotFoundError is deprecated, but I'm not sure what to use in its place. Looking through your change (skimmed, as it's big) it looks like KeyError is is used in some places and FactoryNotFoundError in others. Could you provide some migration notes? -- Garrett -Original

[Zope3-dev] HEADS UP: PrincipalInformation - InternalPrincipal

2005-07-29 Thread Garrett Smith
On the outside chance this effects you, PrincipalInformation should now be spelled InternalPrincipal. (Deprecation warnings had not been added for this BBB class, so its deletion may catch some by surprise.) -- Garrett ___ Zope3-dev mailing list

[Zope3-dev] HEADS UP: change effecting custom authenticator search UIs

2005-07-29 Thread Garrett Smith
This affects anyone who has created a custom authenticator search UI (and if there's anyone who has done this, consider yourself a hyper super power user!) PAU queriables are now looked up by adapting an authenticator AND the PAU (prior to the recent change, only the authenticator was adapted).

Re: [Zope3-dev] Deprecation of NotFoundError (#284)

2005-08-01 Thread Garrett Smith
I think a post to this list is fine. -- Garrett On Jul 31, 2005, at 8:32 AM, Julien Anguenot wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Where would be the best place for this migration notes ? J. Garrett Smith wrote: It's clear that NotFoundError is deprecated, but I'm

[Zope3-dev] Debugging a production server

2005-08-11 Thread Garrett Smith
Does anyone have some suggestions for debugging a production server? In development mode, I'm quite accustomed to adding set_traces and restarting the server, but this is no good in a production environment. -- Garrett ___ Zope3-dev mailing list

[Zope3-dev] Viewing/downloading large files

2005-08-12 Thread Garrett Smith
From the looks of the z/a/file/File code, viewing a file will cause all of the file contents to be loaded into memory (specifically, I'm looking at line 45 of z/a/file/browser/file.py). Is there a way to provide a file-like object (no pun intended, i.e. something with streaming capabilities)

[Zope3-dev] Proxy and __slots__

2005-08-27 Thread Garrett Smith
I'd like to create a proxy where __slots__ is determined (or appended to) when the proxy is constructed. E.g. foo = Foo() bar = SomeProxy(foo, 'baz') bar.baz = 123 hasattr(foo, 'baz') False hasattr(bar, 'baz') True Is it possible to do this? -- Garrett

RE: [Zope3-dev] Proxy and __slots__

2005-08-29 Thread Garrett Smith
I ended up using 'type' to create a new proxy with a dynamically created __slots__. I haven't run into any weirdness with that approach, so far :) -- Garrett -Original Message- From: Jim Fulton [mailto:[EMAIL PROTECTED] Sent: Monday, August 29, 2005 9:03 AM To: Garrett Smith Cc

RE: [Zope3-dev] Proposed widget/schema work for the Rivah sprint (Thursday and Friday this week)

2005-08-29 Thread Garrett Smith
I'm uncomfortable with this. Right now, I think fields do too much. They have too much application logic. This would add more. The whole concept of initial value seems to be very application dependent. Maybe it would be best to just drop the default field altogether and introduce adapters

RE: [Zope3-dev] Proposed widget/schema work for the Rivah sprint (Thursday and Friday this week)

2005-08-29 Thread Garrett Smith
On Monday, August 29, 2005 4:33 PM, Gary Poster wrote: Couldn't 'initial_getter' just be implemented using a property version of 'initial'? Yes, it could. The only downside is that it wouldn't be usable as an initialization argument. I don't feel very strongly about it one way or the

RE: [Zope3-dev] Resource Library Proposal

2005-09-16 Thread Garrett Smith
Sorry for the long delay in replying. We've been using widget-specific JS and CSS for some time now and I like our approach. It's quite different from the proposal. We're using the same pattern used by forms/widgets -- i.e. the PT is responsible for explicitly including HTML fragments provided

RE: [Zope3-dev] Resource Library Proposal

2005-09-16 Thread Garrett Smith
I don't understand what you just said :-) My fault -- I haven't been plugged into the other discussion. Is there a branch somewhere that has a simple demo to help with grokability? -- Garrett On Friday, September 16, 2005 12:28 PM, Gary Poster wrote: On Sep 16, 2005, at 12:49 PM, Garrett

RE: [Zope3-dev] Resource Library Proposal

2005-09-16 Thread Garrett Smith
On Friday, September 16, 2005 3:15 PM, Benji York wrote: Garrett Smith wrote: I don't understand what you just said :-) My fault -- I haven't been plugged into the other discussion. Is there a branch somewhere that has a simple demo to help with grokability? http://www.zope.org/Wikis/DevSite

RE: [Zope3-dev] Resource Library Proposal

2005-09-16 Thread Garrett Smith
On Friday, September 16, 2005 4:05 PM, Benji York wrote: Garrett Smith wrote: If it's just a patch to get 'rich' widgets working, I'll stick with my initial impression of it being too magical. The main reasons why this isn't a problem individual widgets can solve is that 1) they can't

RE: [Zope3-dev] Resource Library Proposal

2005-09-16 Thread Garrett Smith
in the HEAD. -- Garrett On , [EMAIL PROTECTED] wrote: Garrett Smith wrote: That's right. But the view can solve these problems easily without a lot of other stuff like yet-another-ZCML directive and automagical transformation of the HTML head element. This is what we have: class

RE: [Zope3-dev] Resource Library Proposal

2005-09-16 Thread Garrett Smith
On Friday, September 16, 2005 3:58 PM, Gary Poster wrote: You could also be asking about the pipeline ideas, but that's not my first guess. :-) Yes, I suspect this is what I'm missing. There was an earlier post about Ajax. It seems an entirely new approach would be needed to solidly support

[Zope3-dev] browserDefault uses '@@' for containers

2005-09-22 Thread Garrett Smith
Why does z/a/container/traversal/ContainerTraversal include '@@' in the default view name? This is not the case in SimpleComponentTraverser (z/a/publication/traversers). Is there something special about containers that their default view should be an explicit view lookup? Or should

RE: [Zope3-dev] browserDefault uses '@@' for containers

2005-09-26 Thread Garrett Smith
On , [EMAIL PROTECTED] wrote: Hi together Behalf Of Fred Drake Sent: Friday, September 23, 2005 4:13 AM To: Gary Poster Cc: Garrett Smith; zope3-dev Subject: Re: [Zope3-dev] browserDefault uses '@@' for containers On 9/22/05, Gary Poster [EMAIL PROTECTED] wrote: I believe

[Zope3-dev] Visualization tool for profiler/hotshot

2005-09-26 Thread Garrett Smith
Does anyone know of a GUI tool for exploring stats files generated by a profiler? -- Garrett ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

[Zope3-dev] Exporting and importing specific objects/folders

2005-10-07 Thread Garrett Smith
I have a backup requirement to save a folder (a site) and be able to restore it without effecting other sites on a server. I looked briefly at Zope3's fssync but I'm not sure if it's current, or exactly how it could be used for this. Any recommendations? -- Garrett

RE: [Zope3-dev] Exporting and importing specific objects/folders

2005-10-07 Thread Garrett Smith
profound implications for TTW development. Would this not alleviate the SCM problerms of code-in-the-ZODB-black-box syndrome that Zope 2 faces? -- Garrett On , [EMAIL PROTECTED] wrote: Garrett Smith wrote: I have a backup requirement to save a folder (a site) and be able to restore it without

RE: [Zope3-dev] Exporting and importing specific objects/folders

2005-10-07 Thread Garrett Smith
On , [EMAIL PROTECTED] wrote: Garrett Smith wrote: I can spend some time on the command line tool -- that would be ideal for us anyway. Security isn't an issue, at least short term, as this is strictly for OS-level backups. In the next couple weeks I'll take a closer look. Great! Thanks

[Zope3-dev] fssync and export/import for Zope 3

2005-10-07 Thread Garrett Smith
Is anyone interested in using export/import capabilities in Zope 3? As we get more Zope 3 deployments, I think this will become an important topic. It looks like the fssync code has become only slightly stale. With a little use, this could be break-out feature for Zope 3 developers. As Jim

[Zope3-dev] ZODB mount points

2005-10-11 Thread Garrett Smith
(I think) rather than use fssync to export multiple 'sites' in a single Zope instance, I'd much rather have multiple ZODB file storage instances -- i.e. one Data.fs for each site. I have no requirement to share points or UI across these sites -- I just want to eliminate having to run a separate