Re: [Zope-dev] case insensitive sorts

2001-01-04 Thread Dieter Maurer
Chris Withers writes: > Dieter Maurer wrote: > > > > Chris Withers writes: > > > Andrew > > > bart > > > David > > > sophie > > > Wayne > > Why in hell do you switch caseness for similar objects? > > Wh

Re: [Zope-dev] Product dev

2001-01-04 Thread Dieter Maurer
Tim McLaughlin writes: > I'm building a Product in Python and seem to be having some issues with the > new registerClass method of Product registering. If I build it all fine as > noted in Shane's recent HowTo, the product does not show up in the control > panel. Then after much other chasin

Re: [Zope-dev] RFE: Make PythonScripts.standard available from DTML _.standard

2001-01-05 Thread Dieter Maurer
Steve Alexander writes: > I like your idea. It is one way to implement my recent "lobbying" request with minimal effort. Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HT

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

2001-01-05 Thread Dieter Maurer
Chris Withers writes: > And I suppose the other part of my wishlist: > > class MyClass(Acquisition.Implicit): > # your_attribute will be acquied > > # index_html won't > index_html = None No, that is not enough! As a side effect to turn off acquisition, you defined the a

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

2001-01-08 Thread Dieter Maurer
Martijn Pieters writes: > On Mon, Jan 08, 2001 at 10:10:34AM +, Chris Withers wrote: > > You wouldn't need to have index_html = None if it is inherited, since > > the inherited idnex_html would be used before one is acquired, surely? > > Yup. If you don't want to have any index_html *at

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

2001-01-08 Thread Dieter Maurer
Chris Withers writes: > Dieter Maurer wrote: > > > > Chris Withers writes: > > > And I suppose the other part of my wishlist: > > > > > > class MyClass(Acquisition.Implicit): > > > # your_attribute will be acquied > >

Re: [Zope-dev] filename extensionboundary="------------865D189079029FB9A426EFA9"

2001-01-08 Thread Dieter Maurer
Olaf Zanger writes: > Dies ist eine mehrteilige Nachricht im MIME-Format. > --865D189079029FB9A426EFA9 > Content-Type: text/plain; charset=us-ascii > Content-Transfer-Encoding: 7bit Please do not post MIME messages! > expr="fac_browse_method.sql(id=10)"> zope gernerates an error.

Re: [Zope-dev] ZCatalog and 'fuzzy logic'

2001-01-09 Thread Dieter Maurer
Morten W. Petersen writes: > Is there anyone who could try to give an estimate of how long it would > take to add fuzzy logic (regexp-like) searching capability to the > ZCatalog? I do not think that "fuzzy logic" is strongly related to "regexp-like". Anyway. Fuzzy searching often means "findi

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

2001-01-09 Thread Dieter Maurer
Martijn Pieters writes: > > It would be much clearer, when "Item" could declare, > > it does not want to acquire the methods without > > providing a definition. > > And then inherit the fact that your parent class doesn't acquire? You > always have to pay attention to what order you use whe

Re: [Zope-dev] Re: ComputedAttribute

2001-01-10 Thread Dieter Maurer
Chris Withers writes: > Martijn Pieters wrote: > Now I think I know the answer to this one, but I'll ask just to be sure: > > class MyClass(Persistent Acquisition.Explicit): > > def _set_your_attribute (self,value): > self._v_your_attribute = value > > def _get_your_attr

Re: [Zope-dev] ZCatalog and 'fuzzy logic'

2001-01-10 Thread Dieter Maurer
Morten W. Petersen writes: > It seems I misunderstood the term fuzzy logic myself. Fuzzy logic means > if I search for a word, for example 'programmer', it will return matches > to the words 'program', 'programming','programmable' etc. This, usually, is called "stemming". Though, your examples

RE: [Zope-dev] New UI for 2.3

2001-01-12 Thread Dieter Maurer
Brian Lloyd writes: > ... > But is it really so bad > to > make a 32 pixel-high concession to a small pittance of > branding? I can spare 32 pixels in height, but the current 32 pixels are worthless for me as I cannot read what is there. I do not know at what design schools one learns that

[Zope-dev] Computed Attributes (was: [Zope-dev] How do I create a folder with subfolders, docs etc?)

2001-01-12 Thread Dieter Maurer
Espen Sorbye Frederiksen writes: > I have truble with the permissions (get the message: "Authorization > failed. Retry?") when I do the following: > > > An FAQ! Anwser found via a search in the searchable list archive (though it would be a bit difficult). Anwser: An attribute name must

Re: [Zope-dev] How would I keep _v_* attributes from getting thrown away?

2001-01-22 Thread Dieter Maurer
John D. Heintz writes: > I am using ZODB along with CORBA to expose peristent objects. Some of > my objects have per-connection/session state. > ... > My initial idea is to have a _v_position attribute ... Using "_v_" attributes for session state is a very bad idea. They are thread(!) local

Re: [Zope-dev] ZCatalog scalability

2001-01-22 Thread Dieter Maurer
Steve Alexander writes: > Michael Bernstein wrote: > > > > Also, is there a way to disable wildcards in full text > > searches? > > Do not allow direct queries to search the catalog. Instead, make > searches go through an external method (or a PythonScript with Proxy > permissions) t

Re: [Zope-dev] CSS file serving

2001-01-23 Thread Dieter Maurer
[EMAIL PROTECTED] writes: > That (or rather Image.File) was where I started. I decided to go with > HTMLFile as a basis so we could have some DTML in the CSS file - but > overrode it so we weren't forced to have the .dtml extension (much happier > web designers that way :) Thus, the only thing

Re: [Zope-dev] Passing arguments to DTML Methods

2001-01-25 Thread Dieter Maurer
Espen Sorbye Frederiksen writes: > How do you pass on variables to a DTML Method. > If I would use a python method I would use var2)">. This does not work with DTML Methods. First of all why? Secondly > how is it possible to get around the problem? DTML Methods have 2 positional and arbitrary

Re: [Zope-dev] asynchat producer ready() method patch.

2001-01-28 Thread Dieter Maurer
Donovan Baarda writes: > I remember reading ages ago on a wishlist for ZServer that someone was > thinking of adding blocking support to producers. This patch adds support > for just that in a non-intrusive way. I haven't tried applying this patch to > ZServer, but it _should_ work. What does

Re: [Zope-dev] 2.3.0 release badnessboundary="------------F1F4CF9CD0D0AF0E5520717B"

2001-01-29 Thread Dieter Maurer
[EMAIL PROTECTED] writes: > This is a multi-part message in MIME format. > --F1F4CF9CD0D0AF0E5520717B > Content-Type: text/plain; charset=us-ascii > Content-Transfer-Encoding: 7bit Do you already know that we do not like MIME messages in this list? > I've just updated to 2.3.0 r

Re: [Zope-dev] asynchat producer ready() method patch.

2001-01-29 Thread Dieter Maurer
Donovan Baarda writes: > On Sun, Jan 28, 2001 at 09:31:07PM +0100, Dieter Maurer wrote: > > Donovan Baarda writes: > > > I remember reading ages ago on a wishlist for ZServer that someone was > > > thinking of adding blocking support to producers. This patch ad

Re: [Zope-dev] Umlaut in ZCatalog as break character

2001-02-07 Thread Dieter Maurer
Arno Gross writes: > I'm trying to index german news items with > ZCatalog. But ZCatalog seems to take german Umlaute > as separator characters. Start Zope with the "-L" option. This will make Zope (and the splitter/lexicon/ZCatalog) Locale-aware. It will know your letters. Dieter __

Re: [Zope-dev] Possible 'bad' with Client.py and urllib

2001-02-08 Thread Dieter Maurer
Chris Withers writes: > urllib & Client block Zope That would suggest a bug in Python's socket implementation: its "makefile().read" method would not release the global interpreter lock. Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED

Re: [Zope-dev] ZSQL using LIKE operator

2001-02-08 Thread Dieter Maurer
Schmidt, Allen J. writes: > how to resolve a query which I need to read: > > SELECT * FROM table WHERE keywords LIKE '%keywords_variable%' > > has 'op=like' and when set to 'type=string' produces the LIKE > operation in the query, with single quotes, but I cannot get it to 'wrap' >

Re: [Zope-dev] Zope newbie question

2001-02-08 Thread Dieter Maurer
Bryan Baszczewski writes: > Within my dtml, I am retrieving a text field from a database and passing > this field to a javascript function. However, the text field can be any > length of characters and dtml keeps cutting the text off at no pre-set limit > making it impossible to pass this fie

Re: [Zope-dev] Stop words/vocabulary

2001-02-08 Thread Dieter Maurer
Arno Gross writes: > Can I apply stop words in a ZCatalog? You can: ZCatalog's "Lexicon"'s (--> SearchSupport.Lexicon.Lexicon) have a method "set_stop_syn" to provide a mapping for synonyms and stop word. I think, the source documentation is wrong: It says, the mapping would map wo

Re: [Zope-dev] Zope dumping core

2001-02-08 Thread Dieter Maurer
Dario Lopez-Kästen writes: > I am runing zope 2.2.5 on a Solaris box, and it is dumping core (suspect: > SQL MEthods with oracle, FTP server). > > I am using it in conjunction with oracle. Could this be the culprit? We have had that behaviour when we used an old DCOracle to connect to an Orac

Re: [Zope-dev] Stop words/vocabulary

2001-02-10 Thread Dieter Maurer
Hi Arno, Arno Gross writes: > I have now a german stop word list and would like to > apply it for my current ZCatalog 'NewsCatalog'. But how? > Or should I copy my list to the source (no good idea)? I have told you, you can have stop words. I did not tell you that you should not have them:

Re: [Zope-dev] manage_ methods

2001-02-12 Thread Dieter Maurer
Chris Withers writes: > Is it true that you have to have the Manager role to use any methods that start > with manage_? No. "manage_" methods are mapped to permissions (as are any other methods). You can decide which roles have which permissions. If you like, you can 'Anonymous' (or any

Re: [Zope-dev] The structure of lib/python/*

2001-02-17 Thread Dieter Maurer
Erik Enge writes: > I've been reading a lot of Zope code the last couple of years, but > still I really don't see any overall structure of lib/python. Is this > documented somewhere? I find the names quite self explanatory. Yes, I am a person that believes in self explanatory names and minima

Re: [Zope-dev] Zope 2.2.4 Dying

2001-02-20 Thread Dieter Maurer
Andre Schubert writes: > my problems are going on :( and i need help. > ... > 2001-02-19T20:21:07 ERROR(200) zdaemon zdaemon: Mon Feb 19 21:21:07 2001: Aiieee! > 20154 exited with error code: 13 This is a SIGPIPE. Zope probably has opened a communication (socket or pipe) with an external proc

Re: [Zope-dev] DTML Documents/Folders in ZClasses fail to access anything

2001-02-21 Thread Dieter Maurer
Itai Tavor writes: > I got a ZClass 'Test', with a DTML Method 'view' containing id>, and a DTML Document 'view2' with the same line. instance/view > works. instance/view2 returns (ZDebug output): > > Error type: Unauthorized > Error value: The object /test/view2, which is contained in >

Re: [Zope-dev] ZCatalog Lazy Results

2001-02-22 Thread Dieter Maurer
Tres Seaver writes: > 'getObject' forces you to "wake up" the catalogued object; > in a large enough result set, the price is pretty punitive, > compared to serving the results as cached metadata. You can batch large result sets: "getObject" would just be applied to the objects in the batch. T

Re: [Zope-dev] Setting vars in expression eval() namespace

2001-02-22 Thread Dieter Maurer
Julio Maia writes: > I'm trying to create a tag to evaluate the expression passed to it, adding in the >expression eval namespace a variable that contains the result of dtml processing of >the tag's block. For instance, the following construct: > > >some text > > > would invoke

Re: [Zope-dev] REQUEST acting up and misplacing form elements in other

2001-02-23 Thread Dieter Maurer
Morten W. Petersen writes: > I've been wondering what may be causing the REQUEST object to > store form values in the other dictionary. Is this a new > feature or simply a bug? It is an optimization. For efficiency reasons, REQUEST lookup looks only in "other" and the "environ". "cookies" and

Re: [Zope-dev] 'inheritedAttribute' vs. 'call of superclass'

2001-02-28 Thread Dieter Maurer
Gregor Heine writes: > I have two Python classes, say A and B, where B subclasses A. > If I want to call a method in A from an overridden method in B I can either > use: > > B.inheritedAttribute('method_in_A')(self. *args) > or: > A.method_in_A (self, *args) > > Can anybody explain me t

Re: [Zope-dev] Possible 'bad' with Client.py and urllib

2001-02-28 Thread Dieter Maurer
Chris Withers writes: > Dieter Maurer wrote: > > > > Chris Withers writes: > > > urllib & Client block Zope > > That would suggest a bug in Python's socket implementation: > > > > its "makefile().read" method wo

Re: [Zope-dev] strip_html?

2001-02-28 Thread Dieter Maurer
R. David Murray writes: > I searched the NIP archives but didn't get any hits on strip_html. Is the > code for this beast (used by zope.org to strip html out of partial text > included from another page) available anywhere? I do not know about "strip_html" but you may find something similar i

Re: [Zope-dev] dtml-in: next-batches

2001-03-02 Thread Dieter Maurer
Brett Carter writes: > I'm running Zope 2.2.2, and I'm trying to use the batching stuff for > the dtml-in tag, however, I can't seem to access any attributes off > the 'next-batches' or 'previous-batches' mapping object that's > supposed to be available, with the attributes 'batch-start-index'

Re: [Zope-dev] ZDebug conflicts with MailHost?

2001-03-02 Thread Dieter Maurer
Itai Tavor writes: > On Zope 2.3.0 and 2.3.1b1, the following method produces an error > when ZDebug is installed; If I remove ZDebug, it works fine. > A long time ago, there was firm evidence that ZDebug does not play well with "sendmail" (-> list archives). But, I had thought, this had

Re: [Zope-dev] Increased system CPU cycles under heavy load?

2001-03-02 Thread Dieter Maurer
Erik Stephens writes: > Does anyone know what kinds of operations fall under 'system'? Task > switching, paging, these kinds of things? The computer can execute instruction being part of the operating system (usually priviledged code) or of user processes. The first would be accounted for as sy

Re: [Zope-dev] DB connection pooling

2001-03-03 Thread Dieter Maurer
Erik Stephens writes: > I've been working on an implementation of connection pooling for the > MySQLDA. Basically, Zope connections will be pooled by connection > string to reduce the number of unecessary connections to MySQL. Isn't that trivial with Zope (thanks to acquisition)? Just insta

Re: [Zope-dev] ZCatalog hackery

2001-03-05 Thread Dieter Maurer
R. David Murray writes: > ... > The issue is that parts of the database get updated periodically from an > external source. That is, the author and book tables get replaced > wholesale. But the Book and Author objects are cataloged using > ZCatalog, doing a full text index on a combination

[Zope-dev] Apology! (was: [Zope] Problems with DTML-IN patch!!!)

2001-03-05 Thread Dieter Maurer
John Morton writes: > On Fri, 2 Mar 2001 20:55:40 +0100 (CET) Dieter Maurer <[EMAIL PROTECTED]> > wrote: > > > Chris Withers writes: > > > John Morton wrote: > > > > > > > > It doesn't appear to be defined in DT_In.py in 2.2

Re: [Zope-dev] Attribute providers for Specialists

2001-03-07 Thread Dieter Maurer
Johan Carlsson writes: > SGksDQpBcyBJIHVuZGVyc3RhbmQgaXQgU3BlY2lhbGlzdCBjYW4ndCBnZXQgdGhlcmUgYXR0cmli > dXRlcyBmcm9tIGEgcHJvdmlkZXI/DQoNCkZvciBpbnN0YW5jZSwgdGhlIExvZ2luTWFuYWdlciBr > If you would not post MIME messages, I would be able to read your posts. I know what I get is base64 encod

Re: [Zope-dev] dtml-in: next-batches

2001-03-08 Thread Dieter Maurer
Brett Carter writes: > I tried accessing keys off the 'data' object, and I just get an > 'unathorized' error. > Dieter> The attributes your are looking for are in fact keys > Dieter> of the mapping 'data'. Sorry for the misleading answer. "data" is not supposed to be used directly. "

Re: [Zope-dev] Permission problems

2001-03-14 Thread Dieter Maurer
morten writes: > I've been struggling with some permission problems, and I'd appreciate > some help... Maybe, you take a look at URL:http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html Perhaps, its security section make some aspects clearer. Dieter _

Re: [Zope-dev] Organizing modules in a python product

2001-03-16 Thread Dieter Maurer
Itai Tavor writes: > ... abbreviated references to sibling subproducts ... > Is there any way to set this up so imports like 'import Utils' and > 'import Module2' would work in Module1? As a bonus, can I also get > __init__.py files in each module directory to be executed? You can manipulate

Re: [Zope-dev] (no subject)

2001-03-16 Thread Dieter Maurer
Menno Brandsen writes: > I'm trying to insert (and retrieve) images into a mysql database I use a > standard upload form and a normal insert statement in the sql. > The output i get is this : 86550c8> which is clearly not the correct data To get the file content, you call the object's "read" m

Re: [Zope-dev] Comment on CVS change of default textindex search operator

2001-03-20 Thread Dieter Maurer
R. David Murray writes: > >To: [EMAIL PROTECTED] > >Date: Mon, 19 Mar 2001 19:47:31 -0500 (EST) > >From: [EMAIL PROTECTED] (Chris McDonough) > >Subject: [Zope-Checkins] CVS: Zope2 - UnTextIndex.py:1.33.2.9 > > > >Update of /cvs-repository/Zope2/lib/python/SearchIndex > >In directory korak

Re: Subject: Re: [Zope-dev] Comment on CVS change

2001-03-21 Thread Dieter Maurer
Tres Seaver writes: > > Given that any site manager can override the policy trivially, using > only two lines of DTML, should we really be switching the (admittedly > arbitrary) existing polciy embedded in the core? > > Tres. > > P.S. > >search_with_and="_.string.

Re: [Zope-dev] More ZSQL weirdness (this time with Python Scripts ;-)

2001-03-22 Thread Dieter Maurer
Chris Withers writes: > I had the following line in a dtml method, x_report, generated by 'Add Z Search > Interface': > > > where x is a ZSQL Method that takes one parameter: sec > > Now, when I try to call x_report from a python script, my_ps, as follows: > > return container.x_r

Re: [Zope-dev] Images and Products

2001-03-26 Thread Dieter Maurer
Andre Schubert writes: > I have a little Problem on using Images in my Product. > If i'am logged in as Manager i can View the Image, but if logged in as > Anonymous i can't view the Image. > The View permission is assigned to Anonymous Role and the Image Foo is > assing to the View Permission

Re: [Zope-dev] Memory problems with ParsedXML ?

2001-03-28 Thread Dieter Maurer
Godefroid Chapelle writes: > I have imported about 2500 xml files in ParsedXML objects through the > use of : > ... > But when trying to browse the folder containing the ParsedXML instances, > a whole lot of memory is used by Zope and it took my machine down. Are you sure, you want to browse

Re: [Zope-dev] Zope/OpenBSD: Too many open files

2001-03-28 Thread Dieter Maurer
Ricardo Bermell writes: > Zope (started from a shell) in OpenBSD gets locked > too easyly because of the low default limit for > open file descriptors (64). Most operating systems allow you to increase this number (either at runtime or through a kernel recompilation). Dieter ___

Re: [Zope-dev] ZCatalog phrase indexing revisited

2001-03-29 Thread Dieter Maurer
Oren Yosifon writes: > ... phrase searches ... > Can anyone help me ? URL:http://www.dieter.handshake.de/pyprojects/zope/near.pat is a patch that made near searches work ages ago for me. The patch is old (against Zope 2.1.6). As todays ZCatalog is quite different, it will not be easy to

Re: [Zope-dev] Medusa and HTTP/1.1

2001-03-30 Thread Dieter Maurer
Seb Bacon writes: > In the case of the ZServer, I guess the correct behaviour would be to > have every page object return a Last-modified header, which defaults to > the modified date of the newest component of the page. This behaviour > could then be modified using cache managers like the Ac

Re: [Zope-dev] ANN: Proposal for ZCatalog "drop-in" indexes

2001-03-30 Thread Dieter Maurer
Chris McDonough writes: > I'd like comments on this proposal if you've got the time: > > http://dev.zope.org/Wikis/DevSite/Proposals/DropInIndexes Looks good. When you are changing the indexing and catalog stuff: * make the interface "index" public, such that it can be used from outs

Re: [Zope-dev] Bug in ZMI?

2001-04-09 Thread Dieter Maurer
E. Seifert writes: > I think I encountered a problem with the ZMI. > Everytime I added a new property to the memory cache object the list doesn't > display them correctly. > They are concatenated; no space between them. > > Is this a known bug? It is a bug - in the latest CVS, too. Put it

Re: [Zope-dev] Proxy Roles Problem

2001-04-09 Thread Dieter Maurer
Chris Withers writes: > > Anyway, it appears that proxy roles are [not] 'carried on' > > What gives? Is this how its intended? It is intended. Was changed with the big Zope 2.2 security policy shakeup. You may find some explanation for the change on zope.org. Dieter

Re: [Zope-dev] ZODBCA questions...

2001-04-09 Thread Dieter Maurer
Andy McKay writes: > According to the Database Adapter RoadMap > (http://www.zope.org/Members/petrilli/DARoadmap), ZODBCA will be level 2 > compliant at one point. Yet ZODBCA hasnt been touched since 1999. Is ZODBCA > level 2 compliant? Recent posts to the list suggest that not (--> mail archi

Re: [Zope-dev] How do I call an HTMLFile in context provided by a path?

2001-04-11 Thread Dieter Maurer
Itai Tavor writes: > I have a method that receives a path: > '/MyApp/SomeSpecialist/some_id/edit_html' and has to call edit_html > in the context of some_id. If edit_html is a DTML Method, I can do > this: > > obj = REQUEST.traverse(path) I would use "restrictedTraverse" instead of

RE: [Zope-dev] memory leak

2001-04-11 Thread Dieter Maurer
Marco Nova writes: > > have you checked the debug page in the control panel and > > noted any refcounts > > increasing? > > Class April 10, 2001 9:17 am April 11, 2001 8:34 am > > Products.ParsedXML.DOM.Core.Text 3241 27318 +24077 > Products.ParsedXML.DOM.Core.Ele

Re: [Zope-dev] Custom dtml tag ... parameters not evaluated

2001-04-12 Thread Dieter Maurer
Romain Slootmaekers writes: > I'm trying to create a custom dtml tag > ... evaluating attribute valued ... Look at the attribute "branches_expr" in "TreeDisplay.TreeTag" as an example... Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED] http://

Re: [Zope-dev] Security Management

2001-04-12 Thread Dieter Maurer
Andre Schubert writes: > ... direct access to authentication credentials ... You cannot ask Zope about the user identity because it does not visit the authenticating user folder in the described case. If you use basic authentication (the Zope default), then you can read "REQUEST._auth" to get th

Re: [Zope-dev] How do I call an HTMLFile in context provided by a path?

2001-04-12 Thread Dieter Maurer
Itai Tavor writes: > P.S Now that aq_parent is working... why can't I do absolute_url() on > DTMLFiles :-( "absolute_url" is provided by the class "OFS.Traverable". Apparently, "DTMLFile" is not derived from it. Dieter ___ Zope-Dev maillist - [EM

Re: [Zope-dev] getattr'ing proxy object's methods

2001-04-13 Thread Dieter Maurer
Kent Polk writes: > I do not understand your goal precisely... However, the surrogate technique used in "CMFCore.DirectoryView.DirectoryView" may come near to your proxie objects. Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.z

Re: [Zope-dev] REQUIRING Python 2.1??

2001-04-14 Thread Dieter Maurer
anser writes: > Second, I am MYSTIFIED (there's no better word) that DC is in such a rush > to REQUIRE the use of Python 2.1 for Zope 2.4, when we're still waiting for > Py 2.1 final to even come out. Why put all your eggs in that basket, and > why force the community to choose between chan

Re: [Zope-dev] Query on ZODB handling of class variables

2001-04-14 Thread Dieter Maurer
Bob Weiner writes: > ... > So how does one get class attributes (one attribute instance per class) > stored into and restored from ZODB? I fear, it will not go. But, you can take the object from the class and put it as an object with a specific name (maybe derived from the class name) in

RE: [Zope-dev] un-own an object

2001-04-14 Thread Dieter Maurer
Tim McLaughlin writes: > my problem is that I need to be able to construct a zclass built by a user > who no longer exists. My suspicion is that "nobody" does not have those > privileges, and so it seems that I may be SOL :-( My memory says: everything under "control_panel" (this includes

Re: [Zope-dev] How to handle "special" sub-directories

2001-04-17 Thread Dieter Maurer
Remi Delon writes: > Thanks Chris. > > PathHandler is indeed what I needed. But I have one last > problem: It looks like I need to create a PathHandler object > (called "ph" for instance), and then the url is > www.website.com/ph/member_name > > What if I want it to work at the root of

[OT] Re: [Zope-dev] Introducing a New Concept on Advanced Garbage Treatment Process

2001-04-20 Thread Dieter Maurer
zwj writes: > Introducing a new concept on advanced garbage treatment process, and licensing >patents > For details, please reference the web site: > http://zwj5382.3322.net > http://zwj5382.163.net > The inventor would like to assign exclusive patent license to anyone who is >interested

Re: [Zope-dev] Call me stupid (login form Howto & other Q)

2001-04-20 Thread Dieter Maurer
Romain Slootmaekers writes: > I have a logon form with user & passwd, > but what do have to do after the user has submitted this? In order to use your own login form, you cannot use HTTP basic authentication (Zope's default and what the standard user folder supports). You need to use a cookie b

[Zope-dev] "pydoc" for Zope - another great documentation finding tool

2001-04-22 Thread Dieter Maurer
I installed Python 2.1 and checked what great new things are there: they are numerous! As you know, I am a fan of documentation - reliable documentation, if possible directly extracted from the source. Therefore, the new Python documenter "pydoc" was very attractive for me. I had to tweak "Zop

Re: [Zope-dev] "pydoc" for Zope - another great documentation finding tool

2001-04-22 Thread Dieter Maurer
Zopista writes: > Yes please, I want to integrate pydoc in to the SourceCodeBrowser which is > at zopezen.org and I'm just to about to release as a product. The (minor) modification to let "pydoc" work with Zope can be found via URL:http://www.dieter.handshake.de/pyprojects/zope/pydoc.html "

Re: [Zope-dev] deepcopy of file object

2001-04-25 Thread Dieter Maurer
Chris Withers writes: > ... copying ZODB objects ... I use the following function: def _clone(o): """clone an object. Currently, a deep copy is used; maybe we should use a shallow copy instead.""" c= cPickle.loads(cPickle.dumps(o.aq_base,1)) c._p_oid= None return c Dieter __

Re: [Zope-dev] 27 million objects.

2001-04-26 Thread Dieter Maurer
Erik Enge writes: > I've just finished adding a somewhat small number of objects: 5000. > For every 1000th object, the Data.fs seemed to grow to about 900MB; that's > when things started going slow, in a non-linear fashion (this is more a > hunch than something I payed much attention to). >

Re: [Zope-dev] url traversal

2001-04-27 Thread Dieter Maurer
Brett Carter writes: > I have the classic problem of wanting my method 'foo' to work like: > http://localhost/foo/a/b/c > where a,b,c are parameters passed to foo. I've found some info in the > mailing list archives, namely: > http://lists.zope.org/pipermail/zope-dev/2000-May/005197.html >

Re: [Zope-dev] Trying to set roles/permissions programmatically - Now I have a headache!

2001-04-27 Thread Dieter Maurer
Danny William Adair writes: > I want to set the roles of a permission and turn acquisition of a permission > (mapping) on and off programmatically. And of course I want to get a > permission by its name. This looks definitely more complex than simply > changing an object's property! My standar

Re: [Zope-dev] makerequest.py

2001-04-27 Thread Dieter Maurer
Chris Withers writes: > I do have memories that REQUEST.AUTHENTICATED_USER has been deprecated. In > which, case, how should you get hold of the current user's object and can this > be made to work in a testing environment? Your company is hosting these great searchable list archives? They help

Re: [Zope-dev] ZCatalog comments

2001-04-27 Thread Dieter Maurer
Chris Withers writes: > > +- an empty query mapping (or a bogus REQUEST) returns all > > + items in the > > +catalog. > > Is it only me that finds this really irritating? Surely a blank query mapping > should return nothing, not everything? > (at the le

Re: [Zope-dev] Zope Server hanging :-(

2001-04-29 Thread Dieter Maurer
Erik Enge writes: > When, in my Zope Python Product, I call a method that does not exist, Zope > dies, restarts and then is fine again. If something (another method or a > browser perhaps) is calling this method again and again, Zope does a die, > restart, rinse, repeat. > > I think the pr

Re: [Zope-dev] Opening the Zope repository...

2001-04-29 Thread Dieter Maurer
Brian Lloyd writes: > http://dev.zope.org/Wikis/DevSite/Proposals/OpenTheZopeRepository Nice that the open repository should come! Apart from that the document does not yet say very much. I have no strong preferences for the specific hosting (SourceForge versus bayMountain) other than that Sou

Re: [Zope-dev] CST 0.8 Updater Fixed...

2001-04-29 Thread Dieter Maurer
Chris Withers writes: > Chris McDonough wrote: > > > > This is due to the relationship between ZServer and the publisher. > > Sometimes it can be a bad thing... especially when there's an expensive > > method that folks fire off that takes a long time.. nothing comes back to > > their brows

Re: [Zope-dev] another Zope hanging..

2001-05-03 Thread Dieter Maurer
Christian Scholz writes: > I also now have some problems with a hanging zope. > > I got something like this in my stupid logfile: > > 2001-05-03T13:44:39 ERROR(200) ZServer uncaptured python exception, closing channel > (exceptions.OSError:[Errno 11] Die Ressource ist >zur Zeit nicht ve

Re: [Zope-dev] catalog and versions

2001-05-04 Thread Dieter Maurer
Stefane Fermigier writes: > It seems to me that when I create a CatalogAware objet in a version, > it doesn't get into the catalog after the version is committed (in fact, > it doesn't event get into the catalog inside the version).=20 > > Am I right? Is this considered normal behavio(u)r? A

Re: [Zope-dev] Can't access manage_access ...

2001-05-06 Thread Dieter Maurer
Joachim Werner writes: > It happens when I want to access a folder's "manage_access" page > > Error Type: AttributeError > Error Value: __getitem__ > > Traceback (innermost last): > > File /var/lib/zope/iuvenoProducts/lib/python/AccessControl/Role.py, line > 177, in > Attrib

Re: [Zope-dev] change ownership

2001-05-09 Thread Dieter Maurer
Magnus Heino (Rivermen) writes: > Is it not possible to change ownership of an object? It is. > I can only find methods to take ownership... You do not look good enough or do not use the right tools, such as e.g. URL:http://www.dieter.handshake.de/pyprojects/zope/DocFinder.html "DocFinder"

Re: [Zope-dev] Building custom DTML tags and accessing _.

2001-05-09 Thread Dieter Maurer
Morten W. Petersen writes: > ... evaluated attribute values in custom DTML tags -- how? ... Look as one of the "*_expr" parameters in e.g. "Products.MIMETools.MIMETag". They do what you want and you can see, how it is implemented. Dieter ___ Zope-D

Re: [Zope-dev] xmlrpc "500 Internal Server Error"

2001-05-10 Thread Dieter Maurer
[EMAIL PROTECTED] writes: > ... > File "/usr/lib/python1.5/xmllib.py", line 227, in goahead > self.syntax_error('illegal character in content') > File "/usr/lib/python1.5/xmllib.py", line 748, in syntax_error > raise RuntimeError, 'Syntax error at line %d: %s' % (self.lineno, > m

Re: [Zope-dev] Question about import code

2001-05-11 Thread Dieter Maurer
Shane Hathaway writes: > Fred Wilson Horch wrote: > > > Importing multiple objects simultaneously could result in a fair amount > > > of confusion... > > > > Can you elaborate? When you import a folder, for example, it imports > > the folder and all objects in it. > > If there are some

Re: [Zope-dev] Zope Server hanging :-(

2001-06-05 Thread Dieter Maurer
> Erik Enge wrote: > > On Sun, 29 Apr 2001, Erik Enge wrote: > > I figured it out, I think. Let's say I have these two methods: > > > > def a(): > > b() > > > > def b(): > > a() > > > > If I call a(), then Zope dies and restarts without giving me any error > > at

Re: [Zope-dev] Bug in Zope VersionControl

2001-06-08 Thread Dieter Maurer
Christian Theune writes: > Internet Explorer and Netscape ignore the path of the cookie > and assume '/'. Who told you that? We use code explicitly setting the cookie path and it appears both IE and Netscape handle this correctly. > Second: > > Opera is conform to the rfc of http 1.1, and

Re: [Zope-dev] explicit/controlled/filtered acquisition for Folders?

2001-06-10 Thread Dieter Maurer
Michael Halle writes: > * ExplicitAcquisitionFolders would act as "limits" or "stops" that > isolate different zope application trees from each other. > > * Controlled or filtered acquisition folders could have a property > that declares which methods would be acquired, much like "impo

Re: [Zope-dev] Cookie with dictionary as content

2001-06-10 Thread Dieter Maurer
[EMAIL PROTECTED] writes: > I'm developing the ZPivotTable product. For implementing the drilldown > mechanism, I need to store the information about which columns and rows > are open in a cookie. I thougt of storing this information in form of > a dictionary, which would be stored in a cookie

Re: [Zope-dev] multiple servers!

2001-06-11 Thread Dieter Maurer
Stian Jenssen writes: > I wan't to run two webservers on the same machine one, zope/apache an one > apache. > Can I set it up with 2 ports eg. 8080 and 80 but how do I do it? You can control the ports used by parameters to "z2.py" (usually called in "start"). Be careful, as Zope usually does

Re: [Zope-dev] aq_explicit isn't?

2001-06-11 Thread Dieter Maurer
Chris Withers writes: > Dieter Maurer wrote: > > > > What you probably need: > > > > derive a new ObjectManager from Acquisition.Explicit and > > the current ObjectManager. > > > > provide an interface to manage the attribu

Re: [Zope-dev] Acquisition Filtered Folder stuff

2001-06-12 Thread Dieter Maurer
Chris Withers writes: > Dieter Maurer wrote: > > You may be successful, if you override "__of__". > > It is this method that (usually) builds the acquisition wrapper. > > When does it not build the wrapper? If it is not the "__of__" defined by &quo

Re: [Zope-dev] How to aquire from Context?

2001-06-17 Thread Dieter Maurer
Matt Hamilton writes: > > According to the ZDG (Great read, > thanks guys!): > > -- snip -- > > (Acquisition works by: ) Containment Before Context > > > Now that makes perfect sense to me and I can see why it happens as > such. However what if I want (Context Before Conta

RE: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-17 Thread Dieter Maurer
[EMAIL PROTECTED] writes: > A lot of folks who do "power searches," say, librarians or other trained > researchers, familiar with the bells and whistles of more powerful search > engines, will want a simple operator for proximity, with the ability to > specify proximity depth: > > For examp

Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-18 Thread Dieter Maurer
Rik Hoekstra writes: > This raises the question how dependent the splitter on the paticularities of the > document source - I do not really see how different splitters could be useful > for one single document. This is perhaps less obvious than it appears, as you > may want to use different sp

<    1   2   3   4   5   6   7   8   9   10   >