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 kind of idiotic permissions model is this where God cannot create anything? What is the function of the super user if not to manage? The super user is not god, that was seen to be an insecure thing. The super user is a facilitator for creating god... ;-) Seems to be

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] Q2: ZCatalog Intelligent Objects

2000-05-22 Thread Chris Withers
Steve Alexander wrote: In PTK, PortalContent-derived classes have the method def SearchableText(self): "text for indexing" So, if I get this correctly, Catalog will index both attributes and methods(that have only the self argument?) with the same name as an index? If so, then

Re: [Zope-dev] how to download a entire ZWiki site?

2000-05-22 Thread Chris Withers
Jephte CLAIN wrote: Hello, Where I work, I do not have access to the internet, and as such, I have to move software and docs back and forth to my office. I understand that it is better for collaborative work to use ZWikis, but I wonder, how do I download the entire site to view it

[Zope-dev] Strange, Random Error

2000-05-23 Thread Chris Withers
Can anyone shed any light on the following? It's got me stumped... It has only happened from 1 request so far, although it triggered off the same error for all the images on the page... ?!? Chris Zope reported an error for: http://www.nipltd.net/www/niplogo.gif Error Type: Invalid

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] Re: ZCatalog and Unique IDs

2000-05-25 Thread Chris Withers
Evan Simpson wrote: There are generally two ways (at least) to think about "object identifiers". You can think of them as unique labels for specific objects, without regard for location ("Jim Fulton") Me too... or as addresses or slots in which objects can be found ("the CTO"). who's

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

[Zope-dev] TextIndex Questions

2000-05-28 Thread Chris Withers
From http://www.zope.org/Members/AlexR/KeywordIndexes: Text Index: property values are applied against a lexicon object that stems, stops, and parses the value into a full text index. The index may be queried with a simple boolean query language that allows 'and', 'or', phrasing,

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] Traversal Stuff

2000-05-31 Thread Chris Withers
Hi, I just remembered, something I really miss from my Mason days are dhandlers. What this offers is having a URL like: http://mysite.com/folder/object/some/parameters processed by the 'object' object with a parameter of '/some/parameters' or better still a 'URL objects' list as a parameter.

[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] FWIW, ZCVSMixin now at 0.0.9... and rising. ;-)

2000-06-07 Thread Chris Withers
cool :-) Keep up the good work... How long before Zope is a web-accessible CVS repository? (also accessible by FTP, WebDAV, XML-RPC, etc...) Chris PS: When WinCVS can CICO of Zope, I will be a happy man ;-) Steve Spicklemire wrote: Hi Folks, ZCVSMixin is now reaching a

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

[Zope-dev] More Image Errors

2000-07-03 Thread Chris Withers
Hi, does anyone know what's causing the following problems? I'm going to knock up a patch for this anyway and chuck it in the collector. As a rule, I don't think a browser providing duff information should cause Zope to throw errors... cheers, Chris Automatic Zope Response wrote: Zope

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

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

2000-07-11 Thread Chris Withers
I was going to title this 'I should give up using Zope' but I thought I'd give it one last go... Yesterday's 6hrs failing to do a tree-walk-and-copy in DTML failed, so I thought I'd try in an external method today... ..well, that proved to be just as stupid. Okay, firstup, has anything

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
Shane Hathaway wrote: that last algorithm falls to pieces. The solution is to always provide the "self" argument. When calling or in the signature of your external method? If the former, then would that have to be: dtml-var "external_method(this(),...other args..." ? cheers, Chris

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

2000-07-12 Thread Chris Withers
Steve Alexander wrote: Does the method aq_inContextOf() do what you want? Not really, sicne it's not linked to the URL traversal, which PARENTS is. Or am I getting that wrong? ;-) However, someone could write a Product with a class that doesn't support Acquisition. I think I'd consider that

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
Chris Withers wrote: ...which doesn't give quite what I want objects[-1] should be the object getting rendered, however, for folders getting rendered where index_html is a DTML document, it is the index_html document. Well, I think I solved it for now, but this is horrible! ;( def navTree

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] Errors causing half rendered pages

2000-07-14 Thread Chris Withers
Hi, I'm still debugging and writing the navtree code I've mentioned before and I've noticed that not infrequently, when rendering a page that causes and error, I get a half rendered page rather than a nice Zope error page. This is a bit waffly to put into the collector so I was wondering if

[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

Re: [Zope-dev] Errors causing half rendered pages

2000-07-16 Thread Chris Withers
Dieter Maurer wrote: I saw this only when buggy HTML was generated. When I viewed the HTML source my Netscape browser sometimes showed me blinking parts that located the errors. Nope, this was with IE... I viewed source and sure enough, it ended after a few lines. I guess it might have

[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
Shane Hathaway wrote: Can you see any weirdities that might occur from having an object as an attribute of more than one object manager / folder? The recursion problem, for one. Hmmm, how much of Zope would need changing to use the visitor interface? Also, if you change the object in

Re: [Zope-dev] Errors causing half rendered pages

2000-07-17 Thread Chris Withers
Martijn Pieters wrote: THis rings vague bells of IIS or some other proxy server or somthing converting LF tp CRLF but not updating the Content-Length header, thus having your browser drop part of the transmission. I could be talking absolute nonsense of course. To much work on ZopeStudio I

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] Request for amplification on new Product permissions API.

2000-07-18 Thread Chris Withers
Brian Lloyd wrote: So, what do I need to do to allow controlled access to this object? I understand that Shopper, inheriting from SimpleItem, already has the access to unprotected subobjects flag. And I'd rather protect the object correctly, anyway grin. I tried adding an

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] Expanded access file (was Re: LoginManager patch consideredharmful)harmful)

2000-07-18 Thread Chris Withers
"Phillip J. Eby" wrote: Maybe, maybe not. I think perhaps the most compelling argument from Digital Creations' viewpoint for having an expanded "access" file might be the simplification of the setup process for customers. And it would also make it easier to: 1) Phase out unownedness

Re: [Zope-dev] Expanded access file (was Re: LoginManagerpatch consideredharmful)harmful)

2000-07-19 Thread Chris Withers
"Phillip J. Eby" wrote: You speak in the past tense. This is only a suggestion and a possibility. It's not as important as some other feature requests. Patch opportunity, perhaps? :) Ty and I would do it, no problem. Heck, I've been tempted to do it as a LoginManager function, since

Re: [Zope-dev] Re: Acquisition (was: [Zope-dev] Overriding a method in an instance.)

2000-07-19 Thread Chris Withers
Shane Hathaway wrote: P.S. I wouldn't mind if someone posted this as a HOWTO. :-) Done :-) cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related

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] ZPatterns: missing docstring in getItem()

2000-07-19 Thread Chris Withers
"Phillip J. Eby" wrote: The local roles stuff is the ability to have a DataSkin get local role information from "local role providers", thus allowing rules-based local roles to exist/co-exist with the standard Zope persistently-managed local roles. How does this fit in / compare / contrast

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] Re: ZCallable the Renderable Folders Patch

2000-07-19 Thread Chris Withers
Shane Hathaway wrote: Offhand I would say that putting a __call__ method in standard folders would break a lot of DTML. Remember that a namespace lookup tries to execute the value before returning it. But don't take my word for it, add a __call__ method to ObjectManager and see what happens.

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] several permissions for the same method

2000-07-20 Thread Chris Withers
Jephte CLAIN wrote: snip different security for same method You could just check for the permissions specifically, here's a quote from Folder.py in Zope 2.2: checkPermission=getSecurityManager().checkPermission if createUserF: if not checkPermission('Add User Folders', ob): raise

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] getting request variables values

2000-07-20 Thread Chris Withers
Evan Simpson wrote: The value you're after is stored in the 'environ' section of the request. Unlike 'other' and 'cookies' keys, 'environ' keys can't generally be fetched as attributes or keys of REQUEST. You need to access them as REQUEST.environ['keyname']. Heh, I thought so, I presume

[Zope-dev] Incorrect Padding?

2000-07-24 Thread Chris Withers
Does anyone know what this means? The page views fine for me and this is the first error of this type I've seen since we launched the archives. I wonder what WebWhacker is doing to cause this? cheers, Chris Automatic Zope Response wrote: Zope reported an error for:

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

  1   2   3   4   5   6   7   8   9   10   >