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

2000-05-24 Thread Shane Hathaway
Steve Spicklemire wrote: Hope that helps It's really shocking just how easy it was to do this makes me wonder why it hasn't been done already, and *that* makes me wonder if I'm doing something really dumb here. ;-) It seems kinda cool to me. I find that the same phenomenon keeps

Re: [Zope-dev] Expression syntax for sort= attribute in dtml-in .. tag.

2000-05-29 Thread Shane Hathaway
Adam Karpierz wrote: It's very, very... great news that Ross Lazarus's multikey sort patch for dtml-in tag is included in current Zope CVS and will be included in Zope 2.2. dtml in "foo" sort=akey,anotherkey But for me one important thing is very missed. Possibillity of use

Re: [Zope-dev] [announce] for the CVS junkies: multiple ZODB mounting product.

2000-06-01 Thread Shane Hathaway
Anthony Baxter wrote: I'm curious - could you elaborate on the security issues of this? The convenience of not having to write an External Method each time you want to mount or unmount a ZODB is high. :) Okay, I looked a little more and I see you're not allowing slashes in the filename.

Re: [Zope-dev] Repeating a piece of HTML code

2000-06-02 Thread Shane Hathaway
Alex Mendez wrote: Hello, it's the first time I write here and I'm a newbie at Zope, so maybe I'm asking a stupid question... Case is I retrieve from my movie database the value of the movie from 1 to 5 stars. I would like to repeat that n times the code img SRC="star.gif" height=15

Re: [Zope-dev] Racks and Specialists Simplified

2000-06-11 Thread Shane Hathaway
"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. Bravo! An exquisite introduction to the purpose of ZPatt

Re: [Zope-dev] package descriptions

2000-06-13 Thread Shane Hathaway
"LEE, Kwan Soo" wrote: Cool. Now it's more helpful. ... However, sorry to say, I can't read well the titles of the products. Would you make the grey lighter? I would also remove the numerous blue bars and just put them at the top and bottom of each section... but that's just me. Shane

Re: [Zope-dev] Logging for ZScheduler?

2000-06-15 Thread Shane Hathaway
"Phillip J. Eby" wrote: At 01:58 PM 6/15/00 +1000, Stuart 'Zen' Bishop wrote: Its not a problem with ZScheduler, it a problem that no one has written a plug-in logging system that is good enough for what you are trying to do. The existing zLOG API is fine (well - it could be better), but

Re: [Zope-dev] Calendar tag 0.9.6 breaks with 2.2.0b3??

2000-06-28 Thread Shane Hathaway
"Dr. Ross Lazarus" wrote: The point that I find hard to understand is that namespace in DT_Util has changed from 2.1.6 as follows ===2.1.6== class namespace_: pass def namespace(self, **kw): """Create a tuple consisting of a single instance whos

Re: [Zope-dev] FWIW, ZCVSMixin now at 0.1.1... and rising. ;-)

2000-06-30 Thread Shane Hathaway
Steve Spicklemire wrote: I don't know if anyone out there is actually trying to *use* my ZCVSMixin/ZCVS Folder stuff, but if you are you certainly want to get the latest release, ZCVSMixin-0.1.1.tgz from the zope.org site: http://www.zope.org/Members/sspickle/ZCVSMixin Hi, Steve.

[Zope-dev] BTreeFolder released

2000-07-03 Thread Shane Hathaway
Zopistas, I had some inspiration today and discovered a simple way to write a BTreeFolder implementation. http://www.zope.org/Members/hathawsh/BTreeFolder/ It works better than I thought it would. It allows you to store thousands (well, I've tested it with only 1536, but I don't know of any

Re: [Zope-dev] Proposed interface: Restricted creation

2000-07-05 Thread Shane Hathaway
Itamar Shtull-Trauring wrote: I propose a Restricted Creation Interface - when an ObjectManager constructs it's Add list in manage_main, it first checks with each addable class if it's instances can be added in this specific ObjectManager. The place where this is needed most (IMHO) is for

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

2000-07-10 Thread Shane Hathaway
Chris Withers wrote: 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

Re: [Zope-dev] LoginManager patch considered harmful

2000-07-10 Thread Shane Hathaway
"Phillip J. Eby" wrote: At 09:22 AM 7/10/00 -0400, Shane Hathaway wrote: The new security machinery actually provides a different way to solve this problem. Since we now have an execution stack, we can limit that stack, causing an exception to be thrown rather than letting it

[Zope-dev] Re: Expanded access file (was Re: LoginManager patchconsideredharmful)consideredharmful)

2000-07-10 Thread Shane Hathaway
Jim, Phillip has an idea that could make life simpler for Zope newbies. This would be intended for the next major Zope release. "Phillip J. Eby" wrote: Well, I'm hoping you'll take a look at my Collector suggestion for a new Zope feature. :) Specifically, extending the "access" file to

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

2000-07-11 Thread Shane Hathaway
Chris, I'm sorry to hear about your challenges. I've had some myself. I think you're being bitten by a bug which prevented manage_clone from working in a lot of situations, but is solved in 2.2. The problem was that when a new object was placed in a container, it didn't get a _p_jar attribute

Re: [Zope-dev] External Method Missery

2000-07-12 Thread Shane Hathaway
Steve Alexander wrote: Chris Withers wrote: 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 "nav_tree(PARENTS[-2])" which is fine, unless

Re: [Zope-dev] ZPatterns: BTree folder w/ customizer support

2000-07-13 Thread Shane Hathaway
Steve Alexander wrote: Or... I could alter Shane's BTree Folder product to split it into a mix-in class and a usable folder class. Would that work, I wonder? I just tried it and discovered some subtle problems with __getattr__. It could be the result of TransparentFolders, which is also

Re: [Zope-dev] ZEO and MountedStorage: Access DENIED!

2000-07-13 Thread Shane Hathaway
Bill Anderson wrote: I have been thinking, and I think I have got a good idea. So I figured I woudl toss it out for commentary. What we need now is a Mountable ZSS Product. This would be kind of a MountedStorage meets ZEO breed, where you would specify the ZSS host/port combo, and it could

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

2000-07-17 Thread Shane Hathaway
Chris Withers wrote: 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

Re: [Zope-dev] The Application object

2000-07-17 Thread Shane Hathaway
Chris McDonough wrote: Sorry I wasn't clear enough. The Singleton is a design pattern from the Gang of Four book that fits this situation well. It is a class that is meant to control access to the one and only instance of a global variable. I was just using that as a frame of

Re: [Zope-dev] The Application object

2000-07-18 Thread Shane Hathaway
Yves-Eric Martin wrote: Shane Hathaway [EMAIL PROTECTED] wrote: You *must* remember to close the connection: app._p_jar.close() This is not mentionned in the above document, so I was doing without so far, and did not run into any problem. Now that I see it, I believe

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

2000-07-19 Thread Shane Hathaway
Chris Withers wrote: "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:

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

2000-07-19 Thread Shane Hathaway
Chris Withers wrote: 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: http://ww

Re: [Zope-dev] Acquisition/cDocumentTemplate bug

2000-07-20 Thread Shane Hathaway
Oleg Broytmann wrote: Anyone is working on it? Should I put this into Collector or Tracker? Already there. The Zope project manager is gone for the week. Shane On Mon, 17 Jul 2000, Shane Hathaway wrote: This is an excellent bug analysis. I suggest that we create a new

[Zope-dev] Namespace passing proposal

2000-07-20 Thread Shane Hathaway
Zopistas, I've added a proposal to the fishbowl. It's a relatively safe change that would simplify a certain things, but it could break existing code and I'd like to know what you think. Please comment in the Wiki. Actually, even if you don't have anything to say you might be able to learn

Re: [Zope-dev] getting request variables values

2000-07-21 Thread Shane Hathaway
Steve Alexander wrote: My question is "why was __getitem__ of HTTPRequest.py designed this way?". Is there a good reason that it filters the keys according to membership of a standard-cgi-keys list, or whether they start with 'HTTP_' ? Would there be any disadvantage to altering

Re: [Zope-dev] Incorrect Padding?

2000-07-24 Thread Shane Hathaway
Steve Alexander wrote: Chris Withers wrote: So what was causing the original error then? string.split('basic')[-1] was returning 'basic'. base64.decodestring('basic') causes an "Incorrect padding" error. base64.decodestring('basic ') causes an "Incorrect padding" error too.

Re: [Zope-dev] Use ZODB3 and ZCatalog for indexing purposes

2000-07-25 Thread Shane Hathaway
Thomas Weholt wrote: Hi, I'm wondering about using ZODB3 and ZCatalog for a CD-indexing project. The actual cd-roms will seldom change after they've been registered, and I'd like to have some sort of auto-full-text-search feature. How does ZODB3 and ZCatalog fit in this picture? I'm NOT

Re: [Zope-dev] MethodGeddon

2000-07-31 Thread Shane Hathaway
Chris Withers wrote: http://www.zope.org/Wikis/zope-dev/MethodGeddon Just been reading about this and I was wondering how is coming along... After more pondering I decided to throw out the idea for typed arguments. I was trying to solve a difficult problem with a roundabout, and in the

Re: [Zope-dev] MethodGeddon

2000-08-01 Thread Shane Hathaway
Chris Withers wrote: Shane Hathaway wrote: After more pondering I decided to throw out the idea for typed arguments. I was trying to solve a difficult problem with a roundabout, and in the end more difficult solution. I thought that's what the following proposal was all about? :S

[Zope-dev] Re: Replaceable Property question

2000-08-07 Thread Shane Hathaway
Chris Withers wrote: Will there be any access to the method/object that is being overridden from inside the one overriding it? Something like: 'self.__class__.my_method("blah")' Depends on whether the original method comes from a ZClass or product. If so, yes. But if it's a regular

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

2000-08-07 Thread Shane Hathaway
Chris Withers wrote: Shane Hathaway wrote: Will there be any access to the method/object that is being overridden from inside the one overriding it? Something like: 'self.__class__.my_method("blah")' Depends on whether the original method comes from a ZClass

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

2000-08-07 Thread Shane Hathaway
Chris Withers wrote: Brian Lloyd wrote: So, how long before this becomes a project and gets finished? 2.2.1 would be great :-)) thanke for the great work, Chris Note that third-dot releases are bug-fix only. New features go into second-dot releases. D'oh ;-)

Re: [Zope-dev] Problems with Zap

2000-08-09 Thread Shane Hathaway
Alvaro Carneiro wrote: Apache is exiting! I must be getting tired... at first I thought I read "Apache is exciting!" :-) Shane ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML

Re: [Zope-dev] Acquisition ( slightly less Confusion ;-)

2000-08-17 Thread Shane Hathaway
Chris Withers wrote: How should I got about petitioning for dtml-var anobject aq_context to become valid syntax? There's one little (okay, big) problem with this idea: aq_context strips the security context. In fact, it could be used to confuse the security machinery. Let's say I'm Joe

[Zope-dev] Re: __ac_permissions__ question

2000-08-21 Thread Shane Hathaway
Chris Withers wrote: If I define the following in an Article class (which subclasses Posting): __ac_permissions__ = Posting.__ac_permissions__ + ( ('View', ['prev_item','next_item','showSummary','desc_items'], ('Anonymous', 'Manager')), ) You don't need to concatenate the permissions

Re: [Zope-dev] Re: __ac_permissions__ question

2000-08-21 Thread Shane Hathaway
Chris Withers wrote: Okay, Posting has the following list of methods for the 'view' permission: ['date_posted','body_len','date_created','time_created','attachment','thread_path','index_html','showBody',

[Zope-dev] New version of BTreeFolder

2000-08-28 Thread Shane Hathaway
Hi gang, This version just fixes a bug with the folder contents tab on Windows. For some reason, on Windows 95 (and perhaps other platforms) the Python interpreter behaves differently enough that if you use a class attribute from a different module and put it in your own class, you may in fact

Re: [Zope-dev] New version of BTreeFolder. Just a Newbie Question

2000-08-28 Thread Shane Hathaway
LEE Kwan Soo wrote: Oh, well, I'd bet this is a silly question. But I can not resist nor find answer by myself. Q: Why don't you BTree-fy all the subclasses of ObjectManager? Is there a reason that anyone but can a newbie see? Obviously what BTreeFolder does should be available in

Re: [Zope-dev] Transaction question

2000-08-28 Thread Shane Hathaway
Erik Enge wrote: [Shane Hathaway] | Johan Carlsson wrote: | | I just want to check if things work the way I think (hope) it does. | | In a transaction, are objects attributes safe from other threads. | | self._v_mytemp in my request does not conflict with other requests

Re: [Zope-dev] New version of BTreeFolder. Just a Newbie Question

2000-08-28 Thread Shane Hathaway
Bill Anderson wrote: Any chance at a BTree Folder w/customizer support in the near future? :) It should be quite easy to do. I vaguely recall Steve A or Steve S might have done it. Shane ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] New version of BTreeFolder

2000-08-28 Thread Shane Hathaway
Steve Alexander wrote: BTreeFolder doesn't do the from Globals import default__class_init__ default__class_init__(BTreeFolder) thing. Does that matter at all? As none of the classes it is derived from have a __init__ method, I guess not. Or, does default__class_init__ do anything

Re: [Zope-dev] New version of BTreeFolder

2000-08-29 Thread Shane Hathaway
Kapil Thangavelu wrote: semi-formal test i ran some basic tests comparing a btree folder against a folder. i'm not sure about my testing methodology but here are the results. the test code is at the end of this email. (snip) some quick conclusions. the btree folder is slower on

[Zope-dev] SynchronizationTab proposal

2000-08-30 Thread Shane Hathaway
Zopistas, I'd like to point out the new proposal at: http://dev.zope.org/Wikis/DevSite/Proposals/SynchronizationTab The goal is to integrate a UI that can be used to manage CVS, backups, other types of revision control, and coordination of development and production servers. Shane

Re: [Zope-dev] MailHost, 2.2.1, and tracebacks

2000-09-01 Thread Shane Hathaway
Bill Anderson wrote: OK, I've bee trailing this bug for quite some time, and haven't found a solution other than not use 2.2.1 :( (snip) File /local/ZopeSites/TestBed/lib/python/OFS/DTMLMethod.py, line 172, in __call__ (Object: mailPasswordTemplate) File

Re: [Zope-dev] BTree folders: opinions?

2000-09-05 Thread Shane Hathaway
Steve Alexander wrote: I've been reading the discussions on benchmarks of BTreeFolder verus standard ObjectManager dict based folders. I have a BTreeFolder w/ Customizer support that I'd like to include in the DataSkinAddons package for its next release. I'll probably release a LargeUI

[Zope-dev] Re: ZDebug questions

2000-09-06 Thread Shane Hathaway
Chris Withers wrote: Using your sample 'bad' DTML, I got the same but the 'Contains name?' column didn't show up :-( Any ideas? (yes, I was tracking down a security exception, and that column may have been really useful ;-) My guess is you're using Zope 2.1.6. ZDebug doesn't have a way to

Re: [Zope-dev] TCPWatch How-To

2000-09-06 Thread Shane Hathaway
Chris Withers wrote: Shane Hathaway wrote: TCPWatch is a simple Python script that lets you monitor a TCP connection. ...now this really is extremely useful to me, but not for Zope ;-) However, it did take me a while to wrap my head around it. So here's a little How-To/Example

Re: [Zope-dev] Acquisition in a DTML Tag

2000-09-07 Thread Shane Hathaway
Brett Carter wrote: "Brett" == Brett Carter [EMAIL PROTECTED] writes: Brett I've defined my own dtml tag (i.e. dtml-foo/dtml-foo) Brett and I am trying to look up an object depending on the Brett arguments passed to my tag. The python class that defines Brett the tag

Re: [Zope-dev] HiperDOM xmlc

2000-09-18 Thread Shane Hathaway
[EMAIL PROTECTED] wrote: So the standard_page_template default wrapping is an attempt at a compromise. It's wrong. Please elaborate your position. :-) Why is it wrong? Shane ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] FYI: preliminary Zope 2.3 plan online...

2000-09-21 Thread Shane Hathaway
Ty Sarna wrote: Brian Lloyd [EMAIL PROTECTED] wrote: http://dev.zope.org/Resources/zope_230_plan.html The discussion pages for at least two of the wikis are broken. This is especially troubling considering that it looks like you're planning on moving forward with a proposal with serious

Re: [Zope-dev] aq_base, aq_base() and infinite recursion...

2000-09-26 Thread Shane Hathaway
Chris Withers wrote: Phil Harris wrote: Have you tried Christian Tismers Stackless Python, which has 'infinite' recursion capabilities? I'm not sure this would be entirely helpful here ;-) I wonder what aq_base(), over aq_base, does that causes an infinite recursion? Maybe I

Re: [Zope-dev] ZServer and ftp port-1 data channel

2000-09-26 Thread Shane Hathaway
Here's what Sam Rushing told me regarding this issue. Shane Hathaway writes: I hear that you have found a way to get Medusa to use the correct port in active mode FTP. This could be a great benefit to the Zope community. Anything you have (diffs, modified files, or any kind of info

Re: [Zope-dev] Soft links again

2000-09-26 Thread Shane Hathaway
"Ibañez Palomar Juan David" wrote: Hi all, First, I'm using Zope 2.2.1 (Debian package). I've been trying to implement zope objects that behave like unix soft links. The message http://lists.zope.org/pipermail/zope-dev/2000-July/005963.html by Shane proposes an implementation

Re: [Zope-dev] ZServer and ftp port-1 data channel

2000-09-26 Thread Shane Hathaway
Kent Polk wrote: So you are saying ZServer just isn't ever going to support Active ftp clients in the correct port-1 manner? If so, you might want to put a LARGE BANNER disclaimer about this matter as this makes ZServer unusable from most ftp clients that try to access it from behind

Re: [Zope-dev] Soft links again

2000-09-27 Thread Shane Hathaway
Toby Dickenson wrote: On Wed, 27 Sep 2000 09:06:18 -0400, Shane Hathaway [EMAIL PROTECTED] wrote: Also, there's currently a buglet in acquisition that makes it so that you can only perform the actions on the symlink which "anonymous" is allowed to do. Woooh! So

Re: [Zope-dev] why cant i rename an object from an external method

2000-09-28 Thread Shane Hathaway
Andy McKay wrote: Heres a treat. I'm trying to write an external method to rename objects. I have approx 10,000 to rename so a script would be nice. No problem I thought, imitate a forms manage_renameObject and CopySupport.py can do the work. Rename works fine from the web form, but not

Re: [Zope-dev] Soft links again

2000-09-29 Thread Shane Hathaway
On Fri, 29 Sep 2000, Ibañez Palomar Juan David wrote: It would be great if the symbolic link could have a different id than the object referenced. But with the __of__ based solution "link.id" is always "referenced_object.id". How this could be done? I think you'd need a special kind of

Re: [Zope-dev] More almost __call__ ;-)

2000-10-13 Thread Shane Hathaway
Jim Fulton wrote: Chris Withers wrote: Toby Dickenson wrote: http://www.zope.org/Members/htrd/howto/FunctionTemplate you would use def a_method(self,md): do_stuff_with(md['param1'],md['param2']) a_method = FunctionTemplate(a_method) That looks

Re: [Zope-dev] More almost __call__ ;-)

2000-10-13 Thread Shane Hathaway
Jim Fulton wrote: The fact that ZPublisher will pass it is documented. Whether or not something else calls it is up to the something else. The method designer specified an interface that includes RESPONSE. If it requires RESPONSE, by not specifying a default, then it requires the clients to

[Zope-dev] Re: FW: [Support] [ZOPE Collector] Zope Bug entry: Ghost ZClasses

2000-10-13 Thread Shane Hathaway
Brian Lloyd wrote: A new bug entry was added with the following information: Title: Ghost ZClasses At: http://classic.zope.org:8080/Collector/1676/sview Submitter: lalo Email: [EMAIL PROTECTED] Description: Some ZClasses in a ZODB migrated from 2.1.6 did not handle the

Re: [Zope-dev] __replaceable__ or whatever it is ;-)

2000-10-26 Thread Shane Hathaway
Chris Withers wrote: I was wondering how the stuff for attributes that are replaceable in instance and singleton attributesis getting on. Itamar says the code is in the CVS for Zope, but neither of us can find any documentation. FYI I actually added the docs in two places, but they were

Re: [Zope-dev] Using the monitor_client

2000-10-31 Thread Shane Hathaway
Yves-Eric Martin wrote: I am no Zope monitor expert, but maybe you will find my newbie point For some definition of newbie... :-) of view helpful. Here is my understanding of the magic of this very helpful tool: - Zope.app() gives you a *copy* of the *real* application object. -

Re: [Zope-dev] [Ann] ZUnit released

2000-11-02 Thread Shane Hathaway
Lalo Martins wrote: Okay, the cat is out of the bag (in fact, going to Rio for the weekend) and the worms are out of the can (better worms than bugs, anyway). ZUnit, the Product all lazy programmers were so afraid of, is available for review and download from your usual shop at

Re: [Zope-dev] Fw: 2gb file size

2000-11-04 Thread Shane Hathaway
Andy, Are you running Zope 2.2.1 or later? There were pointer arithmetic errors that occurred on earlier versions, even with operating systems that support 2 GB files. Shane Chris McDonough wrote: I didn't think this was a problem on Windows? I wonder if Python needs to be compiled in a

Re: [Zope-dev] Fw: 2gb file size

2000-11-06 Thread Shane Hathaway
: [Zope-dev] Fw: 2gb file size Shane Hathaway wrote: Are you running Zope 2.2.1 or later? There were pointer arithmetic errors that occurred on earlier versions, even with operating systems that support 2 GB files. So on W2K, Zope can have 2GB databases? I'd really like

[Zope-dev] Vote on the new name for Python Methods!

2000-11-07 Thread Shane Hathaway
Being Election Day in the United States, now is a good time to vote on the new name for Python Methods. Python Methods are a relatively new concept for Zope. They give you the features of DTML, such as through-the-web editing and security, while providing a familiar, refined syntax. But before

[Zope-dev] Re: New Name for Python Methods

2000-11-09 Thread Shane Hathaway
(CC'ed to zope-dev.) Steve Jibson wrote: I just took the poll for the new name for Python Methods and so far, it looks like people like the existing name. Based on this, I have a suggestion for another name to add to the list: "pyMethod" (or "plMethod" for Perl) The same

Re: [Zope-dev] Fw: 2gb file size

2000-11-10 Thread Shane Hathaway
Itamar Shtull-Trauring wrote: Shane Hathaway wrote: Not long ago I created a wrapper around File objects which automatically splits the file before it reached a predefined limit. It could handle any number of partitioned file segements. Yes please! Perhaps it could be integrated

Re: [Zope-dev] Two glaring omissions

2000-11-14 Thread Shane Hathaway
Alexander Limi wrote: I've been working with Zope for almost two years now, and there are two things that I feel is missing in the interface: 1. The ability to add a Base class after the class is created This is a feature we'd like to have, but the way ZClasses work currently makes it

[Zope-dev] ANNOUNCE: PartitionedFileStorage

2000-11-22 Thread Shane Hathaway
For all who are interested in breaking database size barriers without moving to Oracle or Berkeley Storage, here's something to try out. http://www.zope.org/Members/hathawsh/PartitionedFileStorage I *highly* recommend you back up Data.fs before installing. What is known to work: - Reads and

Re: [Zope-dev] PartitionedFileStorage Fun @;-S

2000-11-23 Thread Shane Hathaway
On Thu, 23 Nov 2000, Chris Withers wrote: Chris Withers wrote: Error Type: AttributeError Error Value: _tstatus Problem found... Shane, you did your stuff on version 1.48 of FileStorage.py, while Zope 2.2.x uses version 1.37.12.8 of SileStorage.py Sadly, it appears the two are

Re: [Zope-dev] ANNOUNCE: PartitionedFileStorage

2000-11-27 Thread Shane Hathaway
Chris Withers wrote: Phil Harris wrote: Chris, Any hints/tips on how you did this (just to save me from having to do any work of course ;)) I just used WinZip to extract the tarball in the /ZODB directory. Sadly, it didn't work, and won't do until the next version fo Zope is

Re: [Zope-dev] fixing security problems HOW?

2000-11-28 Thread Shane Hathaway
Robin Becker wrote: How can I find out exactly what is causing my security permissioning to fail. I have put extra stuff into ZPublisher\BaseRequest.py at line 463 so I know that I'm failing on UnauthorizedYou are not authorized to access this resource.

Re: [Zope-dev] CVS emergency_user bug

2000-12-07 Thread Shane Hathaway
Robin Becker wrote: z2.py makes references to AccessControl.User.emergency_user which causes an exception. Is it ok to use SpecialUsers.super instead? No, it is not ok. :-) Have you updated AccessControl/User.py as well? If you have, this exception should not occur. Are you using special

Re: [Zope-dev] case insensitive sorts

2000-12-07 Thread Shane Hathaway
Chris Withers wrote: Who thinks the default python sort should stay like it is? Who thinks it should change? (reasons of course would be helpful, particularly if you want it to stay like it is ;-) Python's sort() lets you sort based on not only strings but also tuples, lists, and numbers,

Re: [Zope-dev] CVS emergency_user bug

2000-12-07 Thread Shane Hathaway
Robin Becker wrote: In article [EMAIL PROTECTED], Shane Hathaway [EMAIL PROTECTED] writes Robin Becker wrote: z2.py makes references to AccessControl.User.emergency_user which causes an exception. Is it ok to use SpecialUsers.super instead? No, it is not ok. :-) Have you updated

[Zope-dev] ZClass registry repair utility

2000-12-13 Thread Shane Hathaway
I've written a utility you can use to clean up the global registry of ZClasses. The registry can become corrupt through product upgrades--not ZODB corruption, but missing base classes and so forth. This utility recreates the registry. http://www.zope.org/Members/hathawsh/ZGlobalsRepair It's

Re: [Zope-dev] Local Factories in Products

2001-01-02 Thread Shane Hathaway
Itamar Shtull-Trauring wrote: Chris Withers wrote: In ZClasses it is possible to control where a ZClass instance should be permitted to be added, in other words show up in the factory listing in a ObjectManagers manage_main view. Didn't Itamar have a proposal/project on this?

Re: [Zope-dev] ANNOUNCE: PartitionedFileStorage

2001-01-02 Thread Shane Hathaway
Chris Withers wrote: Shane Hathaway wrote: I just realized I could use the "patch" command to backport. So I made a new tarball. Have fun! http://www.zope.org/Members/hathawsh/PartitionedFileStorage/PartitionedFileStorage-0.0.1-2_2.tar.gz/view great :-) It's

Re: [Zope-dev] PartitionedFileStorage - Eek!

2001-01-02 Thread Shane Hathaway
Chris Withers wrote: Shane Hathaway wrote: BTW, Evan helped me find and correct a bug. You'll only run into it if you set your partition size to less than the size of the largest ZODB objects. That's fixed in 0.0.2, right? Should be, although I just realized I don't know whether

Re: [Zope-dev] ANNOUNCE: PartitionedFileStorage

2001-01-02 Thread Shane Hathaway
Steve Alexander wrote: Shane Hathaway wrote: BTW, Evan helped me find and correct a bug. You'll only run into it if you set your partition size to less than the size of the largest ZODB objects. The new version of FileStorage.py in PartitionedFileStorage for 2.3 overwrites some

Re: [Zope-dev] case insensitive sorts

2001-01-04 Thread Shane Hathaway
Chris Withers wrote: Dieter Maurer wrote: Chris Withers writes: Andrew bart David sophie Wayne Why in hell do you switch caseness for similar objects? Who said anything about objects? I was just talking about lists of strings and in general, people prefer sorting

Re: [Zope-dev] case insensitive sorts

2001-01-04 Thread Shane Hathaway
Shane Hathaway wrote: def sort_strings(data): sortable_data = list(map(lambda s: (lower(s), s), data)) sortable_data.sort() return map(lambda s: s[1], sortable_data) ... Or better, you could pass a comparison function to sort() like Tres suggested. :-) Shane

Re: [Zope-dev] Product dev

2001-01-04 Thread Shane Hathaway
Dieter Maurer wrote: For some problems during product import, Zope decides to keep the old state rather than show the error. I wonder whether the product's version.txt might have something to do with it. Remove version.txt and see if it has any effect. Then try creating a new

Re: [Zope-dev] Product dev

2001-01-05 Thread Shane Hathaway
Chris Withers wrote: Shane Hathaway wrote: when a product has syntax errors. One of the first things I did at Digital Creations was make sure that got fixed. :-) Does this mean this bit from your average product's __init__.py isn't neeeded anymore? except: # If we can't

Re: [Zope-dev] Product dev

2001-01-05 Thread Shane Hathaway
Chris Withers wrote: Shane Hathaway wrote: when a product has syntax errors. One of the first things I did at Digital Creations was make sure that got fixed. :-) Does this mean this bit from your average product's __init__.py isn't neeeded anymore? except: # If we

Re: [Zope-dev] Acquisition wishlist :-)

2001-01-05 Thread Shane Hathaway
There's a (much) simpler way: class MyClass(Acquisition.Explicit): your_attribute = Acquisition.Acquired # index_html isn't index_html = None "Acquired" is a special object that the acquisition module looks for. However, I wasn't aware you could add a "1" to the ComputedAttribute

Re: [Zope-dev] ZDESIGN IDEAS = How to improve 'manage' ?

2001-01-08 Thread Shane Hathaway
Jason Cunliffe wrote: The need to improve the manage interface has grown urgently clear to me while using Zope myself, designing for all sorts of community and collaborative Zope-based projects, demos for a number of innocent bystanders, interested parties and potential clients. Zope

Re: [Zope-dev] PartitionedFileStorage - Eek!

2001-01-08 Thread Shane Hathaway
Jason Cunliffe wrote: Shane Hathaway [EMAIL PROTECTED] wrote: Now BerkeleyStorage is on its way and once that's ready, PartitionedFileStorage will have such a small audience that it won't be worth the trouble. Oh well, it was a fun experiment. Can you pleae expand on this.. what

Re: [Zope-dev] New UI for 2.3

2001-01-12 Thread Shane Hathaway
Andy McKay wrote: Come on, can someone post some sample screenshots? http://www.zope.org/Members/hathawsh/new_ui.png Shane -- Andy McKay. - Original Message - From: "Andy Dawkins" [EMAIL PROTECTED] To: "Brian Lloyd" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday,

[Zope-dev] ANNOUNCE: CookieCrumbler product

2001-01-12 Thread Shane Hathaway
CookieCrumbler lets you set up cookie-based authentication even when your user folder does not support cookies. Zope 2.2.x or above is required since this product depends on a new publisher traversal hook. Enjoy! http://www.zope.org/Members/hathawsh/CookieCrumbler Shane

Re: [Zope-dev] mounting obj to more than one zodb location

2001-01-17 Thread Shane Hathaway
ender wrote: whats happens when you create a persistent object and mount it to multiple points on your zodb. do you get a shared ref or multiple copies of the object? It depends on the product you use for mounting, but generally you'll get a shared database with independent connections. So

Re: [Zope-dev] MountedFileStorage

2001-01-18 Thread Shane Hathaway
Steve Alexander wrote: I've just been trying out the MountedFileStorage product (by Anthony Baxter) with Zope 2.3. I've got it mostly working, by patching a couple of typos, and making the SubApplication class derive from Traversable before Application. I've *almost* got ZClasses

Re: [Zope-dev] MountedFileStorage

2001-01-18 Thread Shane Hathaway
Johan Carlsson wrote: http://www.zope.org/Members/hathawsh/ExternalMount Sound interesting. Is it possible to mount a read-only database from several different Zope-clients? Yes. The database should be inside a ZEO storage server. ExternalMount can mount ZEO ClientStorages (that's

[Zope-dev] Re: [Zope-PTK] Fw: PythonMethods and ZClass generation problem

2001-01-18 Thread Shane Hathaway
Alexander Limi wrote: From: "Shane Hathaway" [EMAIL PROTECTED] You were *SO* close. :-) I think you want this: return self.artists.manage_addProduct['Artist'].Artist_add(_.None,_) to be like this: return self.artists.manage_addProduct['Artist'].Artist_add(_.None

Re: [Zope-dev] MountedFileStorage

2001-01-19 Thread Shane Hathaway
Johan Carlsson wrote: Is it possible to mix a local storage (a filestorage as the root) and mount a ZEO server storage as a "mounted storage". Yes. It's pretty straightforward. What I really want is several independent Zope servers sharing a mounted database (containing shared resources,

Re: [Zope-dev] Problem using External Method

2001-01-24 Thread Shane Hathaway
"Espen S. Frederiksen" wrote: The problem occur when I try to split up the function as shown below. I would like to store the data list, update it if nessesary and return it when appropriate. Am I making it unessesary complex when I use the class? Is there maybe a way to declare the data

Re: [Zope-dev] Problem using External Method

2001-01-24 Thread Shane Hathaway
On Wed, 24 Jan 2001, Espen Sorbye Frederiksen wrote: I did what you suggested, but I am still a bit stuck. Maybe I call them wrong in my code. I use the call below but get an error. dtml-call expr="createdata('test1','test2','test3')" dtml-var expr="returndata()" Error Type: AttributeError

Re: [Zope-dev] Possible TransparentFolders bug?

2001-01-25 Thread Shane Hathaway
Itai Tavor wrote: The TransparentFolders Product seems to make everything transparent... not just transparent folders. Zope/ Folder_A/ method_A Folder_B/ (transparent folder) method_B I'd expect the only effect of the transparent folder to be that

  1   2   3   4   5   6   >