Re: [Zope-dev] ClientCache and Large Files

2002-12-16 Thread Casey Duncan
On Monday 16 December 2002 10:53 am, Guido van Rossum wrote: We're running ZEO with Zope 2.5.1. We currently have a ZEO Cache (ClientCache) of 200 meg. Occasionally someone will download a 300 meg file that completely blows away the client cache. Is there a way to prevent this? You're

Re: [Zope-dev] Infuriating ZClass registry Heisenbug

2002-12-16 Thread Casey Duncan
On Monday 16 December 2002 11:55 am, Evan Simpson wrote: My trunk and 2.6 sandboxes are now behaving themselves. Thanks, guys! Ok, then it must be time for some more beautification... ;^) Idle hands are the work of the devil you know. -Casey ___

Re: [Zope-dev] Infuriating ZClass registry Heisenbug

2002-12-16 Thread Casey Duncan
Yes, except I would argue that such work is best left on the HEAD rather than applied to a maintenance branch until necessitated by bug reports on that branch, or at least the knowledge that such a bug definitely exists and can be reproduced on that branch. I'm all for improving the code base.

Re: [Zope-dev] BUG: ValueError while changing height of the template edit window

2002-12-11 Thread Casey Duncan
On Wednesday 11 December 2002 03:43 am, Dmitry Vasiliev wrote: Casey Duncan wrote: On Tuesday 10 December 2002 03:14 pm, Guido van Rossum wrote: Can we get the same patch without the generic except:, please? the last thing I want is a database corruption caused by resizing the Edit box

Re: [Zope-dev] Infuriating ZClass registry Heisenbug

2002-12-11 Thread Casey Duncan
On Wednesday 11 December 2002 11:13 pm, Shane Hathaway wrote: On Wed, 11 Dec 2002, Evan Simpson wrote: I think I've fixed my ZGlobals, but there's definitely a problem in coptimizations. I made Connections.py use the Python persistent_id, restarted twice, and ZGlobals was fine on the

Re: [Zope-dev] BUG: ValueError while changing height of the template edit window

2002-12-10 Thread Casey Duncan
Please submit a collector issue for this http://collector.zope.org/Zope so the patch doesn't get lost. Thanks. -Casey On Tuesday 10 December 2002 10:07 am, Dmitry Vasiliev wrote: Hi All! Zope 2.6: pressing of Taller or Shorter buttons of the page template edit window raises ValueError.

Re: [Zope-dev] BUG: ValueError while changing height of the template edit window

2002-12-10 Thread Casey Duncan
On Tuesday 10 December 2002 03:14 pm, Guido van Rossum wrote: Can we get the same patch without the generic except:, please? the last thing I want is a database corruption caused by resizing the Edit box... Why would this particular except clause cause database corruption? I think

Re: [Zope-dev] wrapping unexistent objects

2002-12-03 Thread Casey Duncan
another getattr call) As for examples, there is a complex one in the CMF Skinnable module and a simpler one in the Document module of my DocumentLibrary product. -Casey On Tuesday 03 December 2002 10:58 am, Maurizio Boriani wrote: Casey == Casey Duncan [EMAIL PROTECTED] writes: Casey

Re: [Zope-dev] wrapping unexistent objects

2002-12-03 Thread Casey Duncan
Can you just use acquisition? On Tuesday 03 December 2002 01:11 pm, Maurizio Boriani wrote: Casey == Casey Duncan [EMAIL PROTECTED] writes: Casey Its easy to create an infinite loop. To avoid these, do Casey attribute lookups from the instance __dict__ rather than Casey

Re: [Zope-dev] What do I get from 'cvs co Zope'?

2002-12-02 Thread Casey Duncan
Yes, cvs co Zope checks out the HEAD, which is 2.7 and requires python 2.2.x. Try: co -r Zope-2_6-branch Zope Which will give you the 2.6 maintenance branch. hth, -Casey On Monday 02 December 2002 10:42 am, Stefan H. Holek wrote: It appears that when I currently do 'cvs co Zope' I get a

Re: [Zope-dev] Collector 697 should be critical!!!

2002-12-02 Thread Casey Duncan
If this is critical for you, then you will probably need to develop a patch for it in order for it to make it into 2.6.1; unless anyone else wants to volunteer. I don't feel comfortable enough with the unicode converters to do this. -Casey On Monday 02 December 2002 05:46 am, Maik Jablonski

Re: [Zope-dev] wrapping unexistent objects

2002-12-02 Thread Casey Duncan
If you want an object to be able to handle calls to undefined methods, you'll probably need to use a __getattr__ hook. They can be a little tricky to get right (you want to filter out names that start with _ or aq or else you'll be in trouble), and they don't have access to acquisition, but

Re: [Zope-dev] Bugfix release?

2002-11-27 Thread Casey Duncan
I am assigned to fix this. I will make time to do it over the holiday. Time has been extremely short for me (and basically all of us at ZC) lately, so your patience is appreciated. I'm assuming we will not have bug day before 2.6.1, but perhaps one shortly thereafter is in order? -Casey On

Re: [Zope-dev] Single-threaded Zope

2002-11-22 Thread Casey Duncan
The solution to your problem is to use ZEO. This allows any number of Zope application servers to share a single ZODB storage. The app servers and storage server do not need to be on the same machine, just connected via a local network. This is the standard way to make Zope scale for large

Re: [Zope-dev] KeywordIndex and PersistentList (Bug?)

2002-11-20 Thread Casey Duncan
Just a note that this can't be put in Zope 2.6 since functions and methods don't have a __call__ in Python 2.1. -Casey On Wednesday 20 November 2002 02:33 pm, Steve Alexander wrote: Thomas Guettler wrote: Hi! In KeywordIndex the newKeywords get called if they are callable: def

Re: [ZODB-Dev] Re: [Zope-dev] Contents of Initial Data.fs in Zope Distribution?

2002-11-14 Thread Casey Duncan
On Thursday 14 November 2002 04:36 am, Steve Alexander wrote: Casey Duncan wrote: It is only there due to lack of time to take it out. We had planned to take it out for 2.6, but time was never made to replace it with code to bootstrap an empty storage with the proper root level

Re: [Zope-dev] Contents of Initial Data.fs in Zope Distribution?

2002-11-13 Thread Casey Duncan
It is only there due to lack of time to take it out. We had planned to take it out for 2.6, but time was never made to replace it with code to bootstrap an empty storage with the proper root level elements still residing in Data.fs.in. -Casey On Wednesday 13 November 2002 02:22 pm, Jeff Rush

Re: [Zope-dev] access of non html documents

2002-11-12 Thread Casey Duncan
One way to do this is to peek at the HTTP_REFERER value coming from the browser before you serve the document. If the document is in a file object, then you can use a precondition for this, which is a callable object. It could be written as follows in a python script: request = context.REQUEST

Re: [Zope-dev] What catalog/index to use ...

2002-11-08 Thread Casey Duncan
ZCTextIndex is to become the full replacement for old TextIndex. There are a couple of outstanding patches for making the ZCTextIndex splitter, etc. locale friendly. Whether those solve your problem I don't know. We are happy to improve ZCTextIndex for international use, however we at Zope

Re: [Zope-dev] What catalog/index to use ...

2002-11-08 Thread Casey Duncan
In the original design of ZCTextIndex we (PythonLabs mostly) considered stemming and found that it has been found to have dubious value in many information theorists views (The fact that Google does no stemming was also a factor in the decision). So we decided to leave it out entirely.

Re: [Zope-dev] Re: What catalog/index to use ...

2002-11-08 Thread Casey Duncan
The main reason I have not merged this already is that I lack a sample to make a new test with. If someone can provide me with some content samples that break now, but work with the patch, I will make a new test and checkin the fix for 2.7 perhaps 2.6.1 if desired. -Casey On Friday 08

Re: [Zope-dev] 2.6.1 Plan?

2002-10-31 Thread Casey Duncan
On Wed, 30 Oct 2002 13:32:59 -0700 Jeffrey P Shell [EMAIL PROTECTED] wrote: On Wednesday, October 30, 2002, at 04:22 AM, Chris Withers wrote: Ross J. Reedstrom wrote: It what world do you live, and can I move there? You miss the point ;-) The flurry to get features into a 'stable'

[Zope-dev] Re: Catalog Bugs?

2002-10-15 Thread Casey Duncan
(continuing discussion on zope-dev) I am to blame for those changes which were motivated by the addition of a bunch of new indexes. The most significant of which is ZCTextIndex which has its own brand new kind of Vocabulary object (called a Lexicon, which is what the old thing actually was).

Re: [Zope-dev] ZEO cache instrumentation -- any takers?

2002-10-03 Thread Casey Duncan
As much as I try to avoid them (especially in Zope code), they are sometimes necessary because you simply don't know what exceptions might be raised from inside Python or the standard libs. Besides, even if you stamped it out people will just use: try: ... except Exception: Besides,

Re: [Zope-dev] KeywordIndex errors: This should not happen.

2002-09-30 Thread Casey Duncan
On Monday 30 September 2002 08:36 am, Roché Compaan wrote: Don't know if this will help but these errors specifically occur with 'lines' properties with Keyword Indexes on them. What is also significant is that there are legitimate duplicates in the lines properties and that they are

Re: [Zope-dev] __before_publishing_traverse__ calls RESPONSE.redirect(): is there another way to change the browser URL?

2002-09-27 Thread Casey Duncan
What you are looking for sounds like stateful through-the-web functionality. I think you should use sessions to remember the form fields and/or whether the user has been to this URL before. I am suspect of an app design that makes a single URL mean different things in this way, however. I

Re: [Zope-dev] B0rked my ZODB?

2002-09-26 Thread Casey Duncan
Try doing a recompile and restart again. hth, -Casey On Thursday 26 September 2002 05:24 pm, Sidnei da Silva wrote: I was happily trying to startup my Zope2.6 instance, running from the Zope-2_6-branch with an ZODB copied from a 2.5 insance and got the following error:

Re: [Zope-dev] __before_publishing_traverse__ calls RESPONSE.redirect(): is there another way to change the browser URL?

2002-09-23 Thread Casey Duncan
- Original Message - From: Craeg K Strong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 23, 2002 10:59 PM Subject: [Zope-dev] __before_publishing_traverse__ calls RESPONSE.redirect(): is there another way to change the browser URL? Hello: I have defined a

Re: [Zope-dev] Re: [Zope-Coders] Proposal: put i18n into 2.6

2002-09-18 Thread Casey Duncan
Truth is that the Zope code has done anything but languish in the last few months. Unfortunately most people are bound by our release cycle, which has given that impression. As for i18n in 2.6, The Zope Pope gave the nod, so I consider it a done deal, assuming it gets checked in. -Casey On

Re: [Zope-dev] persistence and lists

2002-09-18 Thread Casey Duncan
Sounds like you are trying to persist a class attribute value. This is not possible because instance are persistent, not classes. This is also the reason that the values change over all the instances. You are changing a mutable attribute of the class in place. I would suggest setting the

Re: [Zope-dev] Future of StructuredText

2002-09-05 Thread Casey Duncan
On Thursday 05 September 2002 03:45 am, Max M wrote: [snip] In userland indentation is actually a hard problem. regards Max M http://lists.zope.org/mailman/listinfo/zope ) Indeed, most normal humans have trouble with understanding nested hierarchies. Something which we geeks often

Re: [Zope-dev] Fw: [Zope] xmlrpc redirect response

2002-09-03 Thread Casey Duncan
On Tuesday 03 September 2002 03:53 am, Toby Dickenson wrote: On Monday 02 Sep 2002 4:30 am, Casey Duncan wrote: What do you all think of this? Do redirects ever make sense to an xml-rpc call? In reading the spec it says (in reference to the response status value): Unless there's

[Zope-dev] Fw: [Zope] xmlrpc redirect response

2002-09-02 Thread Casey Duncan
What do you all think of this? Do redirects ever make sense to an xml-rpc call? In reading the spec it says (in reference to the response status value): Unless there's a lower-level error, always return 200 OK. Now granted this problem stems from calling a ZMI API through xml-rpc, but for

[Zope-dev] Potential Improvements for xml-rpc debugging

2002-08-30 Thread Casey Duncan
I am working on improved xml-rpc fault output because I find the current output from Zope less than useful. Basically what my version does is strip the html tags from the error value returned from Zope/standard_error_message, formats it in a simple way (basically justs trims line breaks down)

[Zope-dev] Re: [Zope-Coders] Re: [Zope-Checkins] CVS: Zope/lib/python/ZPublisher - xmlrpc.py:1.14

2002-08-30 Thread Casey Duncan
egregious offenders (like not found errors) entirely by making them a plain text message for xml-rpc. -Casey On Friday 30 August 2002 12:16 pm, Florent Guillaume wrote: Casey Duncan [EMAIL PROTECTED] wrote: Update of /cvs-repository/Zope/lib/python/ZPublisher In directory cvs.zope.org:/tmp

Re: [Zope-dev] Slow zope on windows 2000?

2002-08-28 Thread Casey Duncan
One thing to remember is that running multi-treaded Python apps on a multi-processor box is suboptimal unless you can bind all the threads to a single processor, due to the Python GIL. So, I'm not surprised that a 800MHz Athlon outperforms a dual 1GHz Piii with Zope, regardless of OS. As for

Re: [Zope-dev] installer branch

2002-08-22 Thread Casey Duncan
You rock! I'm glad this bugged you so much ;^) -Casey On Thursday 22 August 2002 12:38 am, Chris McDonough wrote: I have created (yet another, perhaps) easy Zope install branch off the current Zope trunk. It allows for a ./configure; make; make install sort of Zope installation for the

Re: [Zope-dev] PathIndex doesn't index last part of path

2002-08-18 Thread Casey Duncan
PROTECTED] To: Casey Duncan [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Sunday, August 18, 2002 2:54 AM Subject: Re: [Zope-dev] PathIndex doesn't index last part of path If you call getObject, that actually does traversal anyway. Right, in that situation it would be pointless... You rock, Casey

Re: [Zope-dev] PathIndex doesn't index last part of path

2002-08-18 Thread Casey Duncan
Yes I agree, I think it would be better if the apis were getRecordForUid, getIndexForUid since the uids can be something other than paths.Thanks for the input on that. -Casey - Original Message - From: Myroslav Opyr [EMAIL PROTECTED] To: Casey Duncan [EMAIL PROTECTED] Cc: Andy McKay

Re: [Zope-dev] PathIndex doesn't index last part of path

2002-08-17 Thread Casey Duncan
A PathIndex is designed to make it more efficient to aggregate objects at various levels of containment. Their primary use case AFAIK is to allow to to limit queries to particular places within a hierarchy. The idea is to eliminate recursive searching of leaf level folders when you want all

Re: [Zope-dev] PathIndex doesn't index last part of path

2002-08-17 Thread Casey Duncan
A PathIndex is designed to make it more efficient to aggregate objects at various levels of containment. Their primary use case AFAIK is to allow to to limit queries to particular places within a hierarchy. The idea is to eliminate recursive searching of leaf level folders when you want all

Re: [Zope-dev] Shared lexicons for ZCTextIndex (was: Re: [Zope-Checkins] CVS: Zope/lib/python/Products/ZCTextIndex - ZCTextIndex.py:1.32)

2002-08-15 Thread Casey Duncan
On Thursday 15 August 2002 09:21 am, Jim Fulton wrote: The original reason to share vocabularies was that multiple fields often came from the same human vocabulaties. The idea was that vocabularies would encompass a number of features including: - Words (or n-grams) used - Synonyms -

[Zope-dev] Shared lexicons for ZCTextIndex (was: Re: [Zope-Checkins] CVS: Zope/lib/python/Products/ZCTextIndex - ZCTextIndex.py:1.32)

2002-08-14 Thread Casey Duncan
On Wednesday 14 August 2002 06:03 pm, Guido van Rossum wrote: Fix for issue #505 ZCTextIndex is now associated by path to its lexicon. After replacing a lexicon used by an index, clear the index to make it use the new lexicon. So the semantics are that when you replace the lexicon, the

Re: [Zope-dev] to __of__ or not to __of__ ?

2002-08-14 Thread Casey Duncan
The Item class mixes in Traversable, which is probably responsible for making this work TTW. It also gives you a bunch of other stuff that many Zope classes need, like DAV support, copy support, ZMI tab support and security. It doen't mix-in acquisition tho. If you need support for acquistion

Re: [Zope-dev] XMLRPC and Basic Auth problems

2002-08-14 Thread Casey Duncan
Python's xmlrpclib doesn't support any authentication. It is easily subclassed to include it. I have successfully used it to connect with Zope and I do not have any reason to believe that Zope is broken with regard to authentication. However I do think that Python's xmlrpclib should include

Re: [Zope-dev] XMLRPC and Basic Auth problems

2002-08-14 Thread Casey Duncan
-RPC is used on top of it. And I am inclined to agree. Regards Tim On Thu, 2002-08-15 at 11:47, Casey Duncan wrote: Python's xmlrpclib doesn't support any authentication. It is easily subclassed to include it. I have successfully used it to connect with Zope and I do not have

Re: [Zope-dev] A Modest Proposal Concerning Monkey Patches

2002-08-13 Thread Casey Duncan
I know I will regret that I said this, but this is really symptomatic of a more basic need. The need to extend manage_main. This has been identified as a hot spot for products to monkey with. Why don't we go right to the source and make manage_main extensible so that monkey patching it isn't

Re: [Zope-dev] A Modest Proposal Concerning Monkey Patches

2002-08-13 Thread Casey Duncan
On Tuesday 13 August 2002 02:10 pm, [EMAIL PROTECTED] wrote: On Tue Aug 13, 2002, Jim Penny wrote: There is a large problem looming with Moneky Patches. The problem is that monkey patches are so Highlander. There can be Only One. For example, there are at least five or six products that

Re: [Zope-dev] __record_schema__ of Brains (Was: Record.pyd)

2002-08-09 Thread Casey Duncan
__record_schema__ is simply a dictionary which maps field names to column positions (ints) so that the record knows the index of each field in the record tuples. See line 154 of Catalog.py to see how it is initialized to the Metadata schema plus a few extra columns for catalog rid and scores.

Re: [Zope-dev] bad bare except in PageTemplateFile.py

2002-07-18 Thread Casey Duncan
My guess would be that it would get an OSError possible IndexError, but I'm not sure the logic in just setting the mtime to null and continuing. especially since it will likely just try and fail to open the file a few lines later... This could actually be simplified to: try: mtime =

Re: [Zope-dev] Nesting Forms

2002-07-18 Thread Casey Duncan
. Second, I'm not sure if this is the best solution. For one thing, I would prefer to keep all my dtml in separate files, rather than defining it into my methods. Any suggestions? P.S. I'd like to thank Toby Dickenson, Casey Duncan, and R. David Murray for their very helpful responses to my

Re: [Zope-dev] Nesting Forms

2002-07-18 Thread Casey Duncan
On Thursday 18 July 2002 02:06 pm, Ross Boylan wrote: Is there a way to get inheritance, so that, for example, class C(B): sect1 = DTMLFile(CSect2,globals())+B.sect1(self)? I don't think that syntax will work, but perhaps you see what I'm driving at--I want to include all the

Re: [Zope-dev] problems with accented characters - need advice

2002-06-18 Thread Casey Duncan
There is a function defined in ObjectManager.py called checkValidId. You could override this to enforce certain rules either in a subclass of OM (overridding _setObject) or by a direct monkey patch of ObjectManager.py. Then it would not be possible to supply invalid names from anywhere (ZMI,

Re: [Zope-dev] Last-modified and bobobase_modification_time

2002-06-14 Thread Casey Duncan
BTW: This list if for development *of* Zope, the [EMAIL PROTECTED] list is better for questions bout developing *with* Zope. On to your question: There is no automatic way in which DTML can do this for you. This is simply because dtml-var foo doesn't tell Zope what foo is. Is it a document or a

Re: [Zope-dev] ExternalEditor 0.3??

2002-06-14 Thread Casey Duncan
0.3 is just about ready. I have asked some ppl to help me with testing, since I only (reluctantly 8^) have win98 to test on. So far so good. I plan to do more testing (I've been using it today on Unix with no ill effect). This weekend I plan to update the documentation to reflect the many

Re: [Zope-dev] Changes to ZCatalog

2002-06-13 Thread Casey Duncan
On Thu, 2002-06-13 at 02:43, Max M wrote: Casey Duncan wrote: I made several changes yesterday to ZCatalog that may be of interest to you if you have a product that subclasses or embeds ZCatalogs/Catalogs. snip Hmm ... I have subscribed to zope-dev for the longest time now

[Zope-dev] Changes to ZCatalog

2002-06-12 Thread Casey Duncan
I made several changes yesterday to ZCatalog that may be of interest to you if you have a product that subclasses or embeds ZCatalogs/Catalogs. For eternity, ZCatalog has, when instantiated, created a set of predefined indexes and metadata. Back in the day when we had only three index types,

Re: [Zope-dev] Changes to ZCatalog

2002-06-12 Thread Casey Duncan
On Wed, 2002-06-12 at 13:32, Shane Hathaway wrote: [snip] The current code in the trunk no longer populates the ZCatalog with a predefined set of indexes or metadata. It is up to the user or application to do this now. Realizing that some products may rely on this behavior, I am

Re: [Zope-dev] How-to : Defining custom DTML-tags ??

2002-06-10 Thread Casey Duncan
I would recommend looking at a product that defines a dtml tag. Calendar tag, set tag and eval tag are all ones that come to mind. hth. Casey On Mon, 2002-06-10 at 09:35, Thomas Weholt wrote: I want to create a custom DTML-tag. How/where do I start ? My goal is to create a way to define a

Re: [Zope-dev] multiple monkeypatches

2002-06-06 Thread Casey Duncan
I really think the only way to make this work is to design the products with this in mind. Perhaps by developing a defacto standard for doing monkey patches nicely. I am going to experiment with ExternalEditor to see if I can dynamically patch manage_main reliably rather than replacing it

Re: [Zope-dev] re: First call to external method after restart fails

2002-06-06 Thread Casey Duncan
This has been fixed in CVS in the trunk and the 2.5 branch. Zope 2.6 will contain the fix. To get the fix for 2.5, run the 2.5 branch of CVS or just update the ExternalMethod product from the one in CVS. -Casey On Wed, 2002-06-05 at 23:11, Emile van Sebille wrote: I found this post from Ted

Re: [Zope-dev] How to override __getattr__ and not break acquisition

2002-06-05 Thread Casey Duncan
If your __getattr__ fails to find what it wants, it should raise an AttributeError. This will give the ball back to the acquisition machinery. Thusly: def __getattr__(self, name): if name = 'foo': return self.foo() raise AttributeError, name hth, -Casey On Tue, 2002-06-04 at

[Zope-dev] Re: __setattr__ and acquisition ( was RE: __getattr__ andacquisition)

2002-06-05 Thread Casey Duncan
AFAIK acquisition bows out quietly during __getattr__, __setattr__. You'll have to find another way to pass in the thing values before __setattr__ gets called. Maybe try an explicit self.aq_acquire('thing'). Maybe that would work. -Casey On Wed, 2002-06-05 at 09:33, Nicholas Henke wrote:

Re: [Zope-dev] __setattr__ and acquisition ( was RE: __getattr__and acquisition)

2002-06-05 Thread Casey Duncan
Why rely on __setattr__? Why not just create a regular setter function that can use acquisition instead of being clever? -Casey On Wed, 2002-06-05 at 15:24, Erik A. Dahl wrote: Yep. This is a problem for me I'm trying to find something through acquisition in my __setattr__. Self is

Re: [Zope-dev] Zope logic

2002-05-30 Thread Casey Duncan
The namspace traversal in Zope 2 severely violates the principle of least surprise IMO. Although you can use this to clever ends, it opens up many doors to misuse of a site or even significant security holes. For instance, it used to be possible to access the Control Panel (and shutdown Zope)

Re: [Zope-dev] ZODB, Catalog and actually using it

2002-05-29 Thread Casey Duncan
try: ob = r.getObject() ob.function() or if that doesn't work: ob = catalog.getobject(r.data_record_id_) ob.function() Bear in mind that getObject traverses to the object which is expensive both in time and memory if the number of results is large. hth, -Casey On Wednesday 29 May

Re: [Zope-dev] ZODB, Catalog and actually using it

2002-05-29 Thread Casey Duncan
) to do this). You might need to roll your own traverser, but it shouldn't be too hard. hth, Casey On Wednesday 29 May 2002 04:30 pm, Nicholas Henke wrote: On Wednesday 29 May 2002 04:20 pm, Casey Duncan wrote: try: ob = r.getObject() ob.function() ob gets returned as None -- I

Re: [Zope-dev] ExternalEditor Windows

2002-05-22 Thread Casey Duncan
On Wednesday 22 May 2002 04:19 am, Joachim Schmitz wrote: Hi, how do I start this, I made the changes in the browser (opera), installed the latest Python-2.2.1 with tk-support. I can start zopeedit-win32.py by dubbleclick, but than it terminates cause of missing arguments. But when I

Re: [Zope-dev] ExternalEditor Windows

2002-05-22 Thread Casey Duncan
On Wednesday 22 May 2002 09:06 am, Matt Behrens wrote: brian.r.brinegar.1 wrote: I've started a VB Script version for the Windows Scripting Host. Right now I'm in the proof of concept stage. I've got something that opens a file, spawns an editor, gets the process id, and can PUT a file

[Zope-dev] Re: ExternalEditor: Many Thanks

2002-05-22 Thread Casey Duncan
Thanks much. I'm glad you like it and find it useful. I do! -Casey On Wednesday 22 May 2002 04:51 pm, William Trenker wrote: Casey, ExternalEditor is already shaping up for my vote as Zope developer application of the year. This is a huge step forward. Thank you for this fine

Re: [Zope-dev] call file.update-data question

2002-05-21 Thread Casey Duncan
On Monday 20 May 2002 09:27 pm, ch j liu wrote: hello ,everybody. when I call file.update_data function ,zope need authenticate. even though I check all permission to a new user,but the user can not login .why ,what should I do ? thanks . zope 2.5.1 win2k professional update_data is a

Re: [Zope-dev] ExternalEditor Windows

2002-05-21 Thread Casey Duncan
, BUT NOT LIMITED TO, THE IMPLIED # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS # FOR A PARTICULAR PURPOSE. # ## # Zope External Editor Helper Application by Casey Duncan # Adapted for Win32

Re: [Zope-dev] ExternalEditor Windows

2002-05-21 Thread Casey Duncan
On Tuesday 21 May 2002 01:39 pm, Joachim Schmitz wrote: Hi, great to hear, I just wanted to write a mail to the list asking for a joint effort for bringing ExternalEditor to Windows. I personally cannot offer any help, except testing it, since I am working on linux. I have EE installed

Re: [Zope-dev] Threaded Database Access

2002-05-02 Thread Casey Duncan
ZPsycopgDA (for postgres) is definitely multi-threaded. I think zPopyDA is too. Another solution might be to setup your site using ZEO and several single threaded ZEO Clients. Then put a load balancer in front of it. Then the single-threadedness is much less of an issue, since you have

Re: [Zope-dev] range:max, date times and pluggableindexes

2002-05-02 Thread Casey Duncan
On Thursday 02 May 2002 10:48 am, Lennart Regebro allegedly wrote: In Zope 2.3.3 we did this with ZCatalog, on a field index: query['effective_date'] = ['', DateTime.now()] query['effective_date_usage'] = 'range:max' This returns all records where the

[Zope-dev] Re: death to index_html; ObjectManager?

2002-04-16 Thread Casey Duncan
The implementation adds the API to manage browser default for all objectmanagers. However, no browser_default handler is actually added to the object unless you specify a default other than index_html What was the specific undesirable effects you were seeing? If it is agreed that this

Re: [Zope-dev] how bad are per-request-write-transactions

2002-04-16 Thread Casey Duncan
This will kill performance, especially concurrent use of the site. It will also cause large amounts of database bloat. Do you need real time numbers, or is a delay (such as 24 hours) acceptable? If you can stand a delay, another approach would be to write a script which scans the z2.log file

Re: [Zope-dev] Re: death to index_html; ObjectManager?

2002-04-16 Thread Casey Duncan
'index_html', not just objectmanagers. -Casey Jeffrey P Shell wrote: On 4/16/02 8:53 AM, Casey Duncan [EMAIL PROTECTED] wrote: The implementation adds the API to manage browser default for all objectmanagers. However, no browser_default handler is actually added to the object unless you

Re: [Zope-dev] __after_publishing_traverse__

2002-04-15 Thread Casey Duncan
The request object has a hold area which keeps objects alive as long as the request lives. Although I have not tried it, you might be able to add an object to this hold area using __bobo_traverse__ defined on B. This object's class would need to have a destructor method (__del__) defined so

Re: [Zope-dev] __after_publishing_traverse__

2002-04-15 Thread Casey Duncan
Ivo van der Wijk wrote: [snip] This indeed does work. The only difference is that I'm installing the hook in __before_publishing_traverse__, so I don't have to do any traversal myself. I find it a scary solution though (though not as scary as monkeypatching __del__), so I'm not 100% sure

Re: [Zope-dev] [RFClet]: What about the request method and the client side trojan?

2002-04-11 Thread Casey Duncan
Toby Dickenson wrote: [snip] 4. Change dtml to not allow dtml-var someNonIdempotentMethod, although it should still allow dtml-var someNonIdempotentMethod() Ahhh! How do you propose to do that? I see a lot of bruised foreheads resulting from this... How many problems would this cause.

Re: [Zope-dev] [RFClet]: What about the request method and the client side trojan?

2002-04-11 Thread Casey Duncan
be committed. However, I'm not sure I want to go there. -Casey Toby Dickenson wrote: On Thursday 11 April 2002 4:39 pm, Casey Duncan wrote: Toby Dickenson wrote: [snip] 4. Change dtml to not allow dtml-var someNonIdempotentMethod, although it should still allow dtml-var

Re: [Zope-dev] RedstrictedCreation proposal

2002-04-09 Thread Casey Duncan
IMO, this comes at this at the wrong direction. Objects should not decide whether they can be added to a given folder, the folder should be the one that makes that decision. It gives me the heebie geebies to think that every time the add list is rendered, a whole slew of class methods are

Re: [Zope-dev] Re: ZMI / JavaScript brainstorm

2002-04-08 Thread Casey Duncan
What you are likely to see in Zope3 at least is the ability to synch objects to and from the filesystem. This would allow you to edit content/code (code-tent?) on the filesystem using your choice of tools and then check it back into the ZODB. Another reason for this is a vision of having all

Re: [Zope-dev] Re: [Zope3-dev] Are there Graphic Designers?

2002-04-05 Thread Casey Duncan
I agree 100% with Toby. I don't care how it looks in NS4 or (insert old non-standard browser here), so long as the functionality is still there. I think the ZMI should also work 100% with w3m. If we do that, then we are basically already taking care or accessibility. I also vote to kill

Re: [Zope-dev] ZCatalog: hiding search results from unauthorized users - hack

2002-04-02 Thread Casey Duncan
The problem with this solution is that you must wake up every object found, thus negating the performance/memory advantaged of ZCatalog's lazy result sets. Since you said (in your other message) that the restriction is by role, couldn't you just index the roles allowed to view a given object

Re: [Zope-dev] ZClass Constructor Cleanup for 2.6

2002-04-01 Thread Casey Duncan
The current Zope cvs trunk now contains these changes. Check it out and let me know if you find any gotchas! -Casey Didier Georgieff wrote: On Wed, 2002-03-27 at 17:31, Casey Duncan wrote: ZClasses have been overlooked enough. Nobody has even bothered putting a ZCatalogPathAware available

Re: [Zope-dev] How to actually submit contributions for 2.6?

2002-03-29 Thread Casey Duncan
You can, although becoming a Zope committer would be a more efficient way. See: http://dev.zope.org/CVS/FrontPage for more info. -Casey Brad Clements wrote: I have two pending suggestions on the wiki. I'm ready to submit code/patches. What is the actual mechanism I should use? Just put

Re: [Zope-dev] ZClass Constructor Cleanup for 2.6

2002-03-27 Thread Casey Duncan
Good point, I'll add that to my list. -Casey Leonardo Rochael Almeida wrote: On Wed, 2002-03-27 at 17:31, Casey Duncan wrote: I don't think this is a big enough change to warrant a real proposal, so I'll shoot this out here: Does anyone see a problem with changing the default generated

Re: [Zope-dev] two hard questions

2002-03-06 Thread Casey Duncan
are accessed TTW, then you could just use __bobo_traverse__ for this too. Maybe restate the problem in a different way. /---\ Casey Duncan, Sr. Web Developer National Legal Aid and Defender Association [EMAIL PROTECTED

[Zope-dev] WebDAV quibble -- fix in 2.6?

2002-03-06 Thread Casey Duncan
to force a login. This problem disappears if everyone must login to access WebDAV at all. So the question is: Is there a good reason why WebDAV access is granted to anonymous by default? If not I vote we change it. /---\ Casey Duncan, Sr. Web Developer

Re: [Zope-dev] Zope 2.6 and OrderedFolders

2002-03-06 Thread Casey Duncan
superfluous. /---\ Casey Duncan, Sr. Web Developer National Legal Aid and Defender Association [EMAIL PROTECTED] \---/ ___ Zope-Dev maillist - [EMAIL

Re: [Zope-dev] MonkeyPatching in the Core (was: Zope 2.6 planning)

2002-03-05 Thread Casey Duncan
should be called bonobo patches 8^) /---\ Casey Duncan, Sr. Web Developer National Legal Aid and Defender Association [EMAIL PROTECTED] \---/ ___ Zope-Dev

Re: [Zope-dev] Zope 2.6 planning - call for contributors!

2002-03-03 Thread Casey Duncan
--- Anthony Baxter [EMAIL PROTECTED] wrote: seb bacon wrote [CallProfiler] FWIW, my own opinion is that it should not take the 'MonkeyPatch' approach. Why? Any other approach means a slowdown in the Zope code regardless of whether profiling is turned on or off... monkeypatching

Re: [Zope-Coders] Re: [Zope-dev] Zope 2.6 planning - call for contributors!

2002-02-28 Thread Casey Duncan
be *really* nice to have it work like this out of the box. I think it would really improve first impressions of Zope from a site admin perspective. /---\ Casey Duncan, Sr. Web Developer National Legal Aid and Defender Association [EMAIL PROTECTED

Re: [Zope-dev] still segfaults, this time no ZMySQLDA

2002-02-28 Thread Casey Duncan
those weren't all coded in a textarea 8*). Ouch. /---\ Casey Duncan, Sr. Web Developer National Legal Aid and Defender Association [EMAIL PROTECTED

Re: [Zope-dev] FileSystem based products markup.

2002-02-14 Thread Casey Duncan
the directory on the fly by defining a getImage method or somesuch that takes a file name, and loads it on demand. That way no code changes would be necessary to add new images to the product. hth, /---\ Casey Duncan, Sr. Web Developer National

[Zope-dev] Request for IPC10 and Zope 3 Sprint Pictures

2002-02-13 Thread Casey Duncan
photographer credit in the album. Thanks a bunch! P.S. The Zope news will be coming out pretty shortly, but I will continue to add pictures to the album as I get them. /---\ Casey Duncan, Sr. Web Developer National Legal Aid and Defender Association

[Zope-dev] Re: [Zope-Checkins] CVS: Zope/lib/python/BTrees - _fsBTree.c:1.2.2.1 Setup:1.6.116.1

2002-02-13 Thread Casey Duncan
... /---\ Casey Duncan, Sr. Web Developer National Legal Aid and Defender Association [EMAIL PROTECTED] \---/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross

Re: [Zope-dev] persistent threads ?

2002-01-29 Thread Casey Duncan
the threaded task where it left off? /---\ Casey Duncan, Sr. Web Developer National Legal Aid and Defender Association [EMAIL PROTECTED] \---/ ___ Zope

<    1   2   3   4   >