Re: [Zope-dev] Methods through the Web (security?)

2000-05-18 Thread Chris Withers
Martijn Faassen wrote: Various things. What you'd need is turn off 'view' permission by default for just about *everything* except possibly DTML Documents, otherwise it's just too easy to set up a site that exposes too much. Exposure to URLs should be turned off by default. Well, this is why

Re: [Zope-dev] Re: Superuser ownership (was Adding LoginManager at the root)

2000-05-22 Thread Chris Withers
Robin Becker wrote: [stuff about 2.2] You can't create any objects except User Objects as the superuser. Create a manager, re-login as that manager and then add yoru objects. Can't speak for TinyTables but make sure the Anonymous role has the 'access TinyTables contents' permission. A lot of

Re: [Zope-dev] Re: Superuser ownership (was Adding LoginManager at the root)

2000-05-22 Thread Chris Withers
Robin Becker wrote: What steps should I try to allow my currently unowned documents/tinytables to be made accessible. When I press the change ownership button I get a help browser with an error message in the content frame. That sounds like a 2.2 bug to me... oh well... it is Alpha so fair

Re: [Zope-dev] Please Help!!! - HelpSys

2000-05-24 Thread Chris Withers
Lena wrote: I actually need to create a simple web-editor, something very similar to HelpSys, but I need to link tree items to the folders I create dynamically in Zope. I'd suggest looking at the ZWiki Product, it may be exactly what you want: http://www.zope.org/Members/simon/ZWiki cheers,

[Zope-dev] ZCatalog and Unique IDs

2000-05-24 Thread Chris Withers
Hi, I hope this is a stupid question but why does ZCatalog use the URL of an object to uniquely identify it? Why not just use a reference to the object? Persistent object identifiers must exist for the ZODB so why not use them instead? cheers, Chris PS: This would solve all the problems with

Re: [Zope-dev] [Fwd: ZCatalog.. Again.. I know..]

2000-05-24 Thread Chris Withers
Michel Pelletier wrote: I'm looking into this right now... Many thanks :-) As you may have gathered from my posts, I've been having a bit of a ZCatalog/SiteAccess (not to mention MIME) nightmare today... ...I took a day off work to try and get Squishdot 0.4.0 out and have spent the day

[Zope-dev] Re: ZCVS Mixin class... feedback sought.

2000-05-24 Thread Chris Withers
Jerry Spicklemire wrote: [snip] Steve, please clarify any of the concepts I've managed to mangle! Now this sounds like something I waffled about a few weeks back... ...cool :-) I don't think I'm gonna have a chance to play though :S I'll jump in at 1.0.0 though and I'm there in spirit now

Re: [Zope-dev] Observer / Notification Interface Proposal

2000-05-25 Thread Chris Withers
Evan Simpson wrote: This exists! (sort of). ObjectManager.superValues accepts a list of meta_types, and returns a list of all objects of those meta_types which can be found in any ObjectManager in the current one's acquisition context. and has done for ages... the original Squishdot code

Re: [Zope-dev] Observer / Notification Interface Proposal

2000-05-25 Thread Chris Withers
Michel Pelletier wrote: There allready exists such a thing, superValues([meta_type]). But I think this is too weak to use as a discovery protocol. An observable may not know or care what type of observer it wants to discover. Also, when it finds a number of various resources, catalogs lets

Re: [Zope-dev] Re: ZCatalog and Unique IDs

2000-05-25 Thread Chris Withers
Michel Pelletier wrote: At the moment this is true, but Jim and I have discussed the possibility of ZCatalog being treating the paths less atomically and more as a sequence of nodes from root to the target, this way, you could ask the catalog for all objects below a certain point that match

Re: [Zope-dev] Proposed change in the authentication

2000-05-25 Thread Chris Withers
Jim Fulton wrote: http://www.zope.org/Members/jim/ZopeSecurity/ProposalToAuthenticateDuringURLTraversal I wonder whether this would fix the following problem: http://zope.nipltd.com/public/lists/dev-archive.nsf/ByKey/82AE22A20C7E88AE What I reckon is happening is that HTTP is being dumb and

Re: [Zope-dev] [Fwd: ZCatalog.. Again.. I know..]

2000-05-28 Thread Chris Withers
"R. David Murray" wrote: On Wed, 24 May 2000, Chris Withers wrote: This is weird... the bit of code in question was: lib/python/SearchIndex/Lexicon.py line 132: [...] Now Michel's patch was to change this to: else: self.counter = self.counter + 1

[Zope-dev] Case Insensitive TextIndices

2000-05-28 Thread Chris Withers
Since www.zope.org and classic.zope.org (not to mention digicool.com) all seem to be down, I'll dump my feature request here (although given the lack of mail this morning, maybe mailman is down too ;-) Could it at least be an option, my view is that it should be the default option ;-), for text

Re: [Zope-dev] Re: ZCatalog and Unique IDs

2000-05-28 Thread Chris Withers
Tres Seaver wrote: who's the CTO? Jim is. Okay, I get the joke now :-) * "persistent" references are effectively required to be immortal: it is _mandated_ that one be able to stringify the IOR, copy it to a piece of paper, put the paper in a bottle, and cast it on the waves;

Re: [Zope-dev] Calling DTML methods from Python

2000-05-29 Thread Chris Withers
Kevin Dangoor wrote: I believe this is in the Collector... My guess is that no one has yet figured out a good way to make the client and namespace be passed in automatically. This may not be desirable anyhow, because there may be times when you want to change the client... I've actually done

Re: [Zope-dev] New Help System in 2.2

2000-05-30 Thread Chris Withers
Shane Hathaway wrote: 1) Enahnce the permissions system to include "Accessible via HTTP", "Accessible via FTP", etc. Add to that 'execute in DTML method' ( + python methods perl methods;-) and you've got what I've been asking for for so long I've atoped trying :( This would prevent the nasty

[Zope-dev] Interfaces Wiki Changes

2000-06-06 Thread Chris Withers
Hi Michel, I've been good and documented what I learned from the docs discussion in the interfaces wiki. Can you check and correct as appropriate please: http://www.zope.org/Members/michel/Projects/Interfaces/ACPermissions http://www.zope.org/Members/michel/Projects/Interfaces/QueryObject

Re: [Zope-dev] Confera fix

2000-06-28 Thread Chris Withers
Hmmm, you could just use Squishdot 0.4.1 with the 'plain' style, it looks and behaves pretty much identically to Confera except it works (although I'm sure it has bugs ;-) and is maintained (by me ;-) which, sadly, I don't think Confera is. HTH, Chris

[Zope-dev] Comments on ZPatterns

2000-06-28 Thread Chris Withers
"Phillip J. Eby" wrote: At 02:33 PM 6/11/00 -0600, Shane Hathaway wrote: I believe I have come to understand the basics of ZPatterns and would like to be sure I understand correctly, as well as help others understand also. Feel free to flame me if I've got this wrong, but: I've

Re: [Zope-dev] Product Data Storage

2000-06-30 Thread Chris Withers
Loren Stafford wrote: In that case we decided to put the Schedule in the root folder. There is no more global data than the catalog itself, but if there were it could be stored in the catalog folder, since catalogs are folderish. Hmm, this is messy. Could the Catalog not be stored in your

Re: [Zope-dev] ZPatterns Specialist Question

2000-07-03 Thread Chris Withers
Steve Alexander wrote: I think you're getting your levels of abstraction confused with your meta-levels of abstraction :-) Confused? when talking about ZPatterns? n e v e r ;-) Chris ___ Zope-Dev maillist - [EMAIL PROTECTED]

[Zope-dev] Zope Add-on Installation

2000-07-03 Thread Chris Withers
Hi, Zope currently has two ways of distributing products: 1. Tarballs containing python products 2. .zexps containing methods, ZClass products and the like. Things are now getting bad as products are emerging (PTK, Tracker, etc) which require both of these to get a single product working which

Re: [Zope-dev] More Image Errors

2000-07-03 Thread Chris Withers
Chris Withers wrote: I'm going to knock up a patch for this anyway and chuck it in the collector. The patch (which is for the latest CVS, but shouldn't be too hard to modify for other versions ;-) Chris === RCS file: /cvs

[Zope-dev] More comments on ZPatterns

2000-07-03 Thread Chris Withers
From a mail about the LinuxTag conference: P.S. ABout ZPatterns: everyone I spoke to was thought the basic idea behind ZPattern was good and sound and nice and so on. But _everyone_ complained about it being too pretentious (with all the computer science claims and theory behind it) and

Re: [Zope-dev] Zope Add-on Installation

2000-07-03 Thread Chris Withers
Jimmie Houchin wrote: It would be nice to have a single unified way of preparing apps, products or whatever for distribution. The process be nicely automated or provide a user interface for building the distributable. The install process would also need to be just as painless. Totally agree.

Re: [Zope-dev] Help needed: why is this DTML not working in zope 2 ?

2000-07-04 Thread Chris Withers
You could try moving stuff to the new dtml style for starters: dtml-var standard_html_header and the like. That might help, if not let us know.. cheers, Chris Gilles Lavaux wrote: Hello, I am a little bit disappointed not getting any echo from my previous question, so I report it.

Re: [Zope-dev] Help needed: why is this DTML not working in zope 2 ?

2000-07-04 Thread Chris Withers
Gilles Lavaux wrote: But I found something: In my 'PUBLIC_Doc' document I display image with a !--# var image_name-- tag, my problem disappear if I use !--#var "image_name"--, someone can explain this?? Are you sure the space after the # isn't your problem? I would STRONGLY recommend

Re: [Zope-dev] ZCatalog lexicon bug is back?

2000-07-04 Thread Chris Withers
Dieter Maurer wrote: I am very interested in ZCatalog. I promiss that I will look into it, when I come to 2.2. Thanks, Documentation of the cool stuff which is already there, and making it work 100% reliably are the two main things... cheers, Chris

[Zope-dev] Overriding a method in an instance.

2000-07-10 Thread Chris Withers
Hi, I guess this should be a feature request for the collector but I thought I'd see what other people thought first... I'd really like to be able to override methods in an instance of an object. Examples I can think of are Squishdot and the Tracker. In Squishdot, or any ZCatalog for that

Re: [Zope-dev] Overriding a method in an instance.

2000-07-10 Thread Chris Withers
Monty Taylor wrote: Make a folder that contains the overridden methods and call things through the context of that folder. Neat trick :-) We love acquisiton, but it won't quite do it :( The default index_html will get called, unless you put /folder/ on the end of your URL. which is horrible :(

[Zope-dev] NASTY error. Why?

2000-07-10 Thread Chris Withers
Hi, I'm trying to do a tree walk and copy with: dtml-in objectValues dtml-call "REQUEST['where'][-1].manage_addFolder(id)" Created dtml-var id in dtml-var "REQUEST['where'][-1].id"BR dtml-if "meta_type=='Folder'" dtml-call "REQUEST['where'].append(this())" dtml-var iterate dtml-call

Re: [Zope-dev] NASTY error. Why?

2000-07-10 Thread Chris Withers
Evan, Thanks, that worked... Evan Simpson wrote: From: Chris Withers [EMAIL PROTECTED] dtml-call "REQUEST['where'][-1].manage_addFolder(id)" Error Type: TypeError Error Value: read-only character buffer, Python Method Looks like the 'id' of something along the line i

Re: [Zope-dev] NASTY error. Why?

2000-07-10 Thread Chris Withers
Chris Withers wrote: Can someone please tell me why folder.id is a method and everything-else.id is a string? Sorry, that should be folder.id is a string and everything-else.id is a method. cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED

Re: [Zope-dev] manage_clone? (amongst others!)

2000-07-11 Thread Chris Withers
Shane Hathaway wrote: Chris Withers wrote: I'm still not clear on this. Why would I need access to the product factory when where.manage_addFolder(id,title) works just fine? I thought manage_addFolder was the product factoy method? manage_addFolder() is to be considered a shortcut

[Zope-dev] User not in User Folder problem solved! :-)

2000-07-11 Thread Chris Withers
Brian Lloyd wrote: That's a problem. Root index_html is viewable by Anonymous user - Zope should not complain about wrong (not in acl_users) login/password. It seems Zope doesn't like being presented with Authentication information it knows nothing about. A more graceful way of

[Zope-dev] External Method Missery

2000-07-12 Thread Chris Withers
I think this is a bgu so I'll chuck it into the collector unless someone tells me otherwise... I have an external method called navTree (dtml-tree was too broken to fix in the time frame :( ) with a spec as follows: def navTree(self,start): It's called in some DTML as: dtml-var

[Zope-dev] Another mystery for you ;-)

2000-07-12 Thread Chris Withers
Hi Steve, Since you found the external methods arguments thing interesting, here's another challenge for you... ;-) (it's actually from the same nav_tree method) I was trying to use 'if o in REQUEST.PARENTS' to expand branches on the way to the currently displayed object and was running into

Re: [Zope-dev] Re: Another mystery for you ;-)

2000-07-12 Thread Chris Withers
Steve Alexander wrote: Smells like an Acquisition Wrapper misunderstanding :-) You should change your name to Jim... ...or have you been bitten by this before? Do you know if objects in PARENTS are acquisition wrapped? cheers and much we're-not-worthy'ing, Chris

Re: [Zope-dev] Re: Another mystery for you ;-)

2000-07-12 Thread Chris Withers
Steve Alexander wrote: Do you know if objects in PARENTS are acquisition wrapped? I'm pretty sure that they are. They are indeed, in fact, pretty much everything is :( The only way to check if o is in PARENTS appears to be: if o.aq_base in map (lambda o : o.aq_base,PARENTS): ..nice... :/

[Zope-dev] Aquisition, in, == and is

2000-07-12 Thread Chris Withers
Chris Withers wrote: Steve Alexander wrote: Do you know if objects in PARENTS are acquisition wrapped? I'm pretty sure that they are. They are indeed, in fact, pretty much everything is :( The only way to check if o is in PARENTS appears to be: if o.aq_base in map (lambda o

Re: [Zope-dev] External Method Missery

2000-07-12 Thread Chris Withers
Steve Alexander wrote: Both. def external_method(self, ...other args...): dtml-var "external_method(this(),...other args..." ? I'll go with this advice since I still can't make heads or tails which of the two Shane thinks I need to do ;-) Of course, it's not documented like this. I think

Re: [Zope-dev] External Method Missery

2000-07-13 Thread Chris Withers
Shane Hathaway wrote: Here's the logic: ExternalMethod sets up func_* attributes so it can masquerade as a function. The trick works well enough to convince ZPublisher's mapply() to pass in a "self" argument as the first argument when needed. What 'self' does mapply pass? I always though it

Re: [Zope-dev] External Method Missery

2000-07-13 Thread Chris Withers
Steve Alexander wrote: Ah... but are you calling the external method from a DTML method? These are all methods, and therefore you'd expect the "self" object to be the object the methods are subobjects of. The exact turn of events is that index_html is a DTML method which shows a DTML

[Zope-dev] Re: ZCallable

2000-07-14 Thread Chris Withers
Yup, This looks good, as did your earlier post. However, it raises a question :( Something like a ZCatalog or a Squishdot Site (which I have a passing interest in ;-) are both folderish. However, their __call__ method does something quite different: it returns the results of searching the

[Zope-dev] Multi-homed objects?

2000-07-17 Thread Chris Withers
Is there any reason why an object cannot be contained in more than one Folder in the ZODB? Apparently what I'm talking about is very similar to hard linking in UNIX... I can't think of any reasons why this would be bad but I can't think how to implement an 'Add hard link to this object'

Re: [Zope-dev] Multi-homed objects?

2000-07-17 Thread Chris Withers
Oleg Broytmann wrote: Hardlinks are prohibited on directories; and 5 minutes ago you said all objects are foldersih :) I'm not sure if my statement applies in this situation... ;-) Hardlinks are prohibited on directories because it'd cause infinite loops on traversing. Hmm, would

Re: [Zope-dev] Multi-homed objects?

2000-07-17 Thread Chris Withers
Terry Kerr wrote: Where would the object aquire its attributes from? Would it try one of its folders, then the other? Which order would it choose? Now that's a very good question ;-) Probably from the folder you referenced it from and then normal acquisition from then on... cheers,

Re: [Zope-dev] Re: Comments on ZPatterns

2000-07-18 Thread Chris Withers
"Phillip J. Eby" wrote: Yep, like "Acquisition" and "object publishing". :) Seriously, that is very much the level we're talking about here. I know, there are docs explaining acquisition and object publishing has an implicit meaning. Things like 'Specialist' and 'DataSkin' don't have

Re: [Zope-dev] Comments on ZPatterns

2000-07-18 Thread Chris Withers
Ty Sarna wrote: In article [EMAIL PROTECTED], Chris Withers [EMAIL PROTECTED] wrote: 1. Too much jargon... by far... Lots of complicated words that are meanlingless to the layman and don't help to convey the concepts. This Can you point out some examples of which ones you think

Re: [Zope-dev] Zope Add-on Installation

2000-07-18 Thread Chris Withers
Dieter Maurer wrote: What is needed is a new way of installing Zope stuff for the following categories: 1. Python Base Products (Like ZPatterns, PTKBase and TrackerBase) 2. Instantiatable Products (like TinyTables, Squishdot and Tracker) 3. Interface Skins (none right now,

Re: [Zope-dev] More comments on ZPatterns

2000-07-18 Thread Chris Withers
"Phillip J. Eby" wrote: 2) I need a good way to make the methods overrideable without any subclassing (whether in Python or ZClasses), Ah, so it's not just me who wants this ;-) I think this may relate to an existing interest of yours regarding specification of interfaces and overriding

Re: [Zope-dev] Overriding a method in an instance.

2000-07-19 Thread Chris Withers
Shane Hathaway wrote: I have an idea: the _objects attribute of ObjectManagers could include a "configurable" flag, which would tell _checkId that the object can be overridden. Shane, Is this what became the ConfigurableInstances thing at:

Re: [Zope-dev] Redirecting from the manage interfaces.

2000-07-19 Thread Chris Withers
Erik Enge wrote: call, it won't redirect. So you should be able to achieve the same results just by invoking manage_addImage without including the REQUEST object. But I have to pass something with the REQUEST, or else it won't add the image, right? This is the problem we've

[Zope-dev] ZCallable the Renderable Folders Patch

2000-07-19 Thread Chris Withers
Steve Alexander wrote: The __call__ method is what gets invoked when you call the method, either through the magic of dtml-var Catalog or with dtml-var "Catalog(client, namespace, args*)". Now you see, this is what confuses me... dtml-var dtml_method renders that method, implying in my mind

Re: [Zope-dev] Zope Add-on Installation

2000-07-19 Thread Chris Withers
Bill Anderson wrote: I believe he is talkin gabout the __init__ function checking to see if the .zexp has been imported, and if not, importing it for you. It's an idea I have kicked around, but haven't tried yet. IIRC, the 'Distribution' tab creates all this for you... It creates a binary

Re: [Zope-dev] Zope Add-on Installation

2000-07-20 Thread Chris Withers
Shane Hathaway wrote: I've created a patch that allows you to create redistributable archives with the distribution tab. It's checked in to CVS on a branch. This is what was needed for us to start using the distribution tab more frequently. Great :-) Thanks again Shane... Is the patch

Re: [Zope-dev] Redirecting from the manage interfaces.

2000-07-20 Thread Chris Withers
Erik Enge wrote: On Wed, 19 Jul 2000, Chris Withers wrote: Why I'm asking is 'cos it'd be really nice not to have to keep re-writing UI when there's perfectly good stuff available in the management interface, things like add forms, edit forms, etc... Exactly. Great, so how do we

Re: [Zope-dev] Security Strangeness

2000-07-24 Thread Chris Withers
Johan Carlsson wrote: First, you can't delegate the permissionto add and delete user except by assigning the user the role "manager". IMHO this is to limiting. Second, if you give a user the permission to Change Persmissions, that user can change permissions that she doesn't have the right

Re: [Zope-dev] Incorrect Padding?

2000-07-24 Thread Chris Withers
Steve Alexander wrote: My guess is that the argument "auth" passed to validate() has some trailing characters. Either that, or WebWhacker passed just "Basic " as an auth string. Yuk, that sounds like a Zope bug. Collector time with patch? A judicious string.strip should solve the problem,

Re: [Zope-dev] Incorrect Padding?

2000-07-24 Thread Chris Withers
Chris Withers wrote: Steve Alexander wrote: My guess is that the argument "auth" passed to validate() has some trailing characters. Either that, or WebWhacker passed just "Basic " as an auth string. Yuk, that sounds like a Zope bug. Collector time with patch? A jud

Re: [Zope-dev] Incorrect Padding?

2000-07-24 Thread Chris Withers
Steve Alexander wrote: snip excellent patches Well, I think Brian Lloyd'd have to make the call... Nice work though, 2 for 2 on the day, that's pretty good going, are DC paying you yet? ;-) cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] ZODB : mystery

2000-07-24 Thread Chris Withers
Every time you create a Zope object, such as a DTML document or Folder, it gets stored in the ZODB. Perhaps you could be a little more specific in your aims? cheers, Chris [EMAIL PROTECTED] wrote: Hi, I've a question : How could I store and retrieve object in the ZoDB ? I know that I

Re: [Zope-dev] Zope 2.2.0 and SiteAccess 2.0.0b2 -- doesn't work?-- FIXED

2000-07-24 Thread Chris Withers
Michael Monsen wrote: When I created the SiteRoot object I was using the superuser account, I thought this wasn't supposed to be possible in the first place?! Chris ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] Zope bug (w/ patch): hard coded Unix separator in special_dtml.py

2000-07-24 Thread Chris Withers
Yves-Eric Martin wrote: Does that sound right to you? If no one disagrees, I'll fill a bug report w/ patch in the Collector. Sounds great, is it in the collector yet? Chris ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] getting request variables values

2000-07-24 Thread Chris Withers
Steve Alexander wrote: def __getitem__/__getattr__ from HTTPRequest.py: """Get a variable value Return a value for the required variable name. The value will be looked up from one of the request data categories. The search order is environment variables,

Re: [Zope-dev] Request for amplification on new Product permissions API.

2000-07-24 Thread Chris Withers
Brian Lloyd wrote: Yes - basically any class that defines *or inherits from a class that defines* permissions should do this to make sure that the permissions along the inheritance heirarchy are cobbled together correctly at class initialization time. I'm sure someone said recently that this

Re: [Zope-dev] Incorrect Padding?

2000-07-24 Thread Chris Withers
Martijn Pieters wrote: Oops. You took out the strip. But IIRC, base64 does a strip as well. Not according to the original error which started this thread :( Chris ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] Incorrect Padding?

2000-07-24 Thread Chris Withers
Steve Alexander wrote: Martijn Pieters wrote: Oops. You took out the strip. But IIRC, base64 does a strip as well. So it does! from base64 import * s = encodestring('foo') decodestring(s) 'foo' decodestring(s+' ') 'foo' decodestring(' '+s) 'foo' So what was causing the

Re: [Zope-dev] Incorrect Padding?

2000-07-24 Thread Chris Withers
Martijn Pieters wrote: So what was causing the original error then? Buggy client? If so, surely Zope should just return an Unauthorized error rather than exposing its internals?! If you're a server and the client is buggy, tell it so, but don't look like you just screwed up really badly

[Zope-dev] Standard Error Messages (was Re: [Zope-dev] Incorrect Padding?)

2000-07-25 Thread Chris Withers
Steve Alexander wrote: ! raise 'InternalError', request.response._error_html( Can someone enlighten me as to what this does? Does it reset the HTTP response code? Is _error_html something that gets the acquired standard_error_message? If not, it should do ;-) Has anyone made

[Zope-dev] Stuff hanging off user not in cookies

2000-07-25 Thread Chris Withers
Hi, small rant (no change there for me ;-) Is there are reason why configuration info for the user doesn't hang off the user object and is instead stored in cookies? I'm thinking of the dimensions/etc of the edit boxes and the like. I do a lot of work through virtual domains and it's a real

Re: [Zope-dev] Re: [Zope] Bi-directional update of Data.fs

2000-07-27 Thread Chris Withers
Steve Alexander wrote: Don't see why not. When an object is changed, the new object is just appended to the end of Data.fs. Unless you use undo, or you pack the Data.fs. You missed the problem ;-) Technically, there is no problem... Logically, what happens if one user updates and object on

Re: [Zope-dev] Bi-directional update of Data.fs

2000-07-27 Thread Chris Withers
Steve Alexander wrote: What does Lotus Notes offer to do if you get such a conflict? Save both versions and ask the user to delete the one which isn't needed, or merge the changes... Use Jim's new conflict resolution algorithm to try to settle conflicts. Urm? First I heard of this and it

Re: [Zope-dev] Re: [Zope-PTK] PROPOSAL: Splitting ZPatterns into two products

2000-07-28 Thread Chris Withers
Steve Alexander wrote: "Phillip J. Eby" wrote: So, I am thinking perhaps I should split ZPatterns into two products: PlugIns and DataSkins. If 'PlugIns' includes plugins, plugin groups and plugin containers, then that's a pretty good name :-) (If I've missed bits out and the like, please

Re: [Zope-dev] Re: [Zope-PTK] PROPOSAL: Splitting ZPatternsinto two products

2000-07-28 Thread Chris Withers
"Phillip J. Eby" wrote: DataSkins themselves, Okay, I'm being dumb again, but could someone explain to me how the name DataSkin came about and how it relates to what these objects do? :S That might be, but the PlugIns part isn't really where it should be before it could even be proposed to

Re: [Zope-dev] Re: [Zope-PTK] PROPOSAL: Splitting ZPatterns into two products

2000-07-28 Thread Chris Withers
Steve Alexander wrote: An object that has DataSkin as a base class allows a DataManager to look after its data storage requirements. The DataManager stores all the propertysheets and attributes, and works out what to do and who to notify when things change. Okay, makes sense... There are

[Zope-dev] [Re: [Zope-dev] ZPatterns Documentation]

2000-07-28 Thread Chris Withers
"Phillip J. Eby" wrote: Despite the implications of the bait-and-switch subject line, I have not yet written any substantial amounts of documentation. I have, however, written this: http://www.zope.org/Members/pje/Wikis/ZPatterns/DataSkinsOverview Which was actually exceptionally useful,

Re: [Zope-dev] New Client.py bug(?) in 2.2.0 affects ZScheduler

2000-07-28 Thread Chris Withers
Loren Stafford wrote: Does anyone know what was the motivation for the change in the syntax for the call to connect? To make it Python 2 compatible, but this shouldn't cause these errors since connect is supposed to be able to takea tuple now. Confusedly, Chris

[Zope-dev] MethodGeddon

2000-07-29 Thread Chris Withers
http://www.zope.org/Wikis/zope-dev/MethodGeddon Just been reading about this and I was wondering how is coming along... Is it in the fishbowl under another name or should it be in the fishbowl? Shane, would the argument list be a management tab for methods? That sounds cool to me :-) I reckon

[Zope-dev] AcquisitionMadness

2000-07-29 Thread Chris Withers
Evan, I wonder if the changes Shane suggested in MethodGeddon would make Simplified Acquistion suffice for what Steve was asking about? Also can you explain how from the example: Two path acquisition: A contains B1 and C1, B1 contains B2, C1 contains C2 How (Natural Acquisition): A.B1.B2.C1 ==

[Zope-dev] Ids starting with _

2000-07-30 Thread Chris Withers
Dieter Maurer wrote: I wonder why starting folders with _ is so bad in Zope? In the time, when everything was allowed what was not explicitely forbidden, an easy way was necessary to forbid access. Jim (and, therefore, Zope) used: anything starting with "_" is private: no DTML access,

[Zope-dev] Acquisition Confusion :S

2000-07-31 Thread Chris Withers
Hi Jim, (or any zope-dev'ers who can explain this ;-) I've just been reading: http://www.zope.org/Members/jim/Info/IPC8/AcquisitionAlgebra ...and I've got confused on the 'Getting the containment wrapper' section. In anser to 'What is A.B.C.D?' I can't see how you can get: ((D o (C o A)) o (B

Re: [Zope-dev] Ids starting with _

2000-07-31 Thread Chris Withers
Toby Dickenson wrote: Almost all zope-manageable classes (and certainly Folders, that Dieter mentioned) use the old rule. This happens because they derive from SimpleItem.Item, which has __allow_access_to_unprotected_subobjects__=1 1) Why does SimpleItem still have this?! Since so much, IIRC,

Re: [Zope-dev] Acquisition Confusion :S

2000-07-31 Thread Chris Withers
I still don't get this :( Here's the situation: A has attributes B and C, C has attribute D my old working: A.B.C.D = (B o A) : .C.D now, since C is found in A: = ((C o A) o (B o A)) : .D again since D is found in C: = ((D o C) o ((C o A) o (B o

Re: [Zope-dev] topics for products

2000-08-01 Thread Chris Withers
ethan mindlace fremen wrote: The product page is now topic-ized. Please check your product to ensure that it's in the categories you want it to be in. A product can have more than one topic. Cool :-) The actual pages still aren't very legible though :( Can the top row for each product be

Re: [Zope-dev] Acquisition Confusion :S

2000-08-02 Thread Chris Withers
Evan Simpson wrote: Here are the two and a half rules for deriving acquisition from a dotted expression: 1. A.B == (B o A), where A is an unwrapped object 2. (self o parent).B == a. (self.B o (self o parent)), if B is found in 'self' b. (parent.B o (self o parent)), if B is

Re: [Zope-dev] MethodGeddon

2000-08-02 Thread Chris Withers
Shane Hathaway wrote: http://dev.zope.org/Wikis/DevSite/Proposals/DTMLExpressionSyntax Hmm. No, that's not really related. How so? Can you list the differences and if they're orthogonal try and explain it to me? You 'get' this but I sadly don't :( (yet.. ;-)

[Zope-dev] ZCatalog and ZSearch Interface

2000-08-03 Thread Chris Withers
Hi there, While playing with Squishdot to make it more ZSearch-friendly, I noticed that ZCatalog isn't actually ZSearch friendly either. I think the following patch corrects that, if peopel agree, I'll stick it in the collector. cheers, Chris ___

Re: [Zope-dev] ZCatalog and ZSearch Interface

2000-08-03 Thread Chris Withers
D'Oh! Here's the file... Chris --- ZCatalog.py.old Thu Aug 3 15:17:05 2000 +++ ZCatalog.py Thu Aug 3 15:21:25 2000 @@ -392,7 +392,7 @@ def _searchable_result_columns(self): r = [] -for name in self._catalog.indexes.keys(): +for name in

Re: [Zope-dev] Acquisition Confusion :S

2000-08-07 Thread Chris Withers
Evan Simpson wrote: So, is the working below now correct? (I feel like I'm back in School doing maths ;-) Yes. Cool :-) Where is the order of simplification defined? In the Acquisition machinery, which simplifies upwards because that's the way it constructs the wrappers. okay...

Re: [Zope-dev] Re: Replaceable Property question

2000-08-07 Thread Chris Withers
Shane Hathaway wrote: Will it re-appear when the replacement is deleted? That could be confusing... No, and I think it's really not confusing, since it's quite a strange and rare thing to set __replaceable__=ObjectManager.REPLACEABLE on a normal instance. :-/ Very true :-) Think of

Re: [Zope-dev] Re: Replaceable Property question

2000-08-07 Thread Chris Withers
Shane Hathaway wrote: but Brian and Jim have stated before that should the need arise, releasing a second-dot version can happen at any time. That sounds promising :-) OTOH __replaceable__ support has just been checked into the trunk and if you're working from the CVS repository, just do a

Re: [Zope-dev] remote procedure calls to manage functions

2000-08-09 Thread Chris Withers
andrew wrote: Have been delving into ZPublisher.Client to make remote procedure calls under Zope 2.2.1. Did someone slip 2.2.1 without mentioning it?! I thought XML-RPC was now favoured over ZClient? cheers, Chris ___ Zope-Dev maillist -

[Zope-dev] __setattr__

2000-08-09 Thread Chris Withers
I'm building a DataBlob class (which inherits from SimpleItem.Item, Persistent and RoleManager), a generic object for storing data is such that you can do the following in a form-processing method: dtml-with "manage_addProduct['DataBlob']" dtml-call "manage_addDataBlob(id='Fred')" dtml-call

Re: [Zope-dev] __setattr__

2000-08-09 Thread Chris Withers
Chris Withers wrote: snip last idea At Steve Alexander's suggestion, I'm going to try subclassing DataBlob from PersistentMapping. So now I need to add attribute support... How do the following three methods sound: def __getattr__(self,name): try: return

Re: [Zope-dev] __setattr__

2000-08-09 Thread Chris Withers
Chris Withers wrote: def __setattr__(self,name,value): self.__setitem__(self,name,value) Erk... first problem, why does a Zope __setattr__ take four arguments?! DataBlob.py, line 62, in __setattr__: Error Type: TypeError Error Value: too many arguments; expected 3, got 4 Do either

Re: [Zope-dev] __setattr__ -- Zope Crash :S

2000-08-09 Thread Chris Withers
Steve Alexander wrote: The application, ./python.exe, generated an application error The error occurred on 8/ 9/2000 @ 11:48:41.189 The exception generated was c0fd at address 7800118b (lock) DrWatson also said this was a Stack Overflow error. Now what am I doing wrong? ;-)

Re: [Zope-dev] ZCatalog brains

2000-08-10 Thread Chris Withers
Steve Alexander wrote: Is there any good reason that the "brains" returned by ZCatalog searches don't have a standard property that reflects the URL of the object they have meta-data from? That sounds like a good idea :-) This would seem to me to be more object-oriented, and would save

Re: [Zope-dev] Acquisition Confusion :S

2000-08-14 Thread Chris Withers
Steve Alexander wrote: That makes for a lot of security checks. There are possible optimisations, though. But this starts to get even more complicated. Does that mean it won't work, would be very slow, or both? ;-) cheers for looking though... Chris

Re: [Zope-dev] Acquisition Confusion :S

2000-08-14 Thread Chris Withers
Michel Pelletier wrote: A.B.C.D Look for D in C, if it's not there, look in B if it's not there, look in A Someone correct me if I'm wrong here, but... This is a linear search, which is the way acquisition *used* to work. Which Zope version? ;-) Consider: A / B/ C/

  1   2   3   4   5   6   7   8   9   10   >