Re: [Zope-dev] More useful CatalogAware class?

2000-06-13 Thread Dieter Maurer
Martijn Pieters writes: > On Mon, Jun 12, 2000 at 01:12:33PM -0700, Michel Pelletier wrote: > > ... CatalogAware successor ... > > Very interesting indeed. > > Is the CatalogAware mixin in the future going to move towards Tres' Observable > pattern? > > After initial notification of th

Re: [Zope-dev] ZCatalog text index search bugs?

2000-06-13 Thread Dieter Maurer
R. David Murray writes: > I am very confused. > > I'm looking at the SearchIndex source under 2.1.4 (2.1.6 seems to be > the same). In Lexicon.py the 'query' method defines the default_operator > to be 'or'. I can't see that TextIndex overrides this when it calls > it. > > But the resp

Re: [Zope-dev] Catalog acquisition problems?

2000-06-20 Thread Dieter Maurer
Martijn Faassen writes: > We've been experiencing some odd interactions between the ZCatalog and > acquisition. Inside the tags things seem to go > screwy. It's picking up the properties in the root folder instead of > in the subfolder (the context), where the is used. Why > would this ha

Re: [Zope-dev] Error running on port 80, different IP than default

2000-06-21 Thread Dieter Maurer
> Just installed zope from source on a fresh Linux-box. Defined a zope-user > and a zope-group to run Zope and everything works just fine if a run it with > the default z2.py. I want to run it on a different ip, an alias to eth0, > and on port 80. But when I change z2.py to reflect this I get

Re: [Zope-dev] Python 1.6

2000-06-23 Thread Dieter Maurer
Toby Dickenson writes: > I'm about to start looking at running Zope on python 1.6 (Im feeling > the need for better Unicode support). Almost surely, it will work. But it probably will not use the Unicode support automatically. Dieter ___ Zope-Dev m

Re: [Zope-dev] calling external method from external method

2000-06-26 Thread Dieter Maurer
Robert Roberts writes: > How do I call one external method from another external method? You simply call it. > Here is what I mean: > > The user has entered the id of valid external method in a form field. > (This is during setup of a Product and is not accessible anonymously) > > At a l

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

2000-06-28 Thread Dieter Maurer
Dr. Ross Lazarus writes: > Trying the new 2.2.0b3 zope. > One zclass using ty's calendar tag now breaks with an error message I > just cannot figure out - > > Error Type: TypeError > Error Value: unexpected keyword argument: linkDate > > File /usr/local/zope/zope22b3/lib/python/Doc

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

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

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

2000-07-04 Thread Dieter Maurer
Chris Withers writes: > I seem to remember Michel being a little less than happy when he saw > that code. > > Quite frankly, I still don't have much confidence in (Z)Catalog (still > no docs for all the cool stuff, dodgy bugs and few responses when > they're raised...) which is a shame sinc

Re: [Zope-dev] why does an error in my externalmethod ...

2000-07-06 Thread Dieter Maurer
Joachim Schmitz writes: > > make the folder from which it was invoked inaccessable ? > > continuing work on my external, I removed all modifications of self, so no > transactions or better modifications of the ZODB took place. During the > development cycle: editing the external methods, t

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

2000-07-10 Thread Dieter Maurer
Chris Withers writes: > I'm trying to do a tree walk and copy with: > > > > Created in > > > > > > etc... > > but I get the following truly horrible error from the manage_addFolder > > any ideas? > > Chris > > Error Type: TypeError > Error Value: r

[Zope-dev] Re: [Zope] Sorting a list

2000-07-10 Thread Dieter Maurer
RC Compaan writes: > I have a list: > mylist=[('R',31),('I',80),('A',80),('S',23),('E',35),('C',21)] > > I want to rebuild the list sorted from high to low on the sequence-item. > > When i call the list gets > sorted on the sequence-key not the sequence-item. As I understand the > alp

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

2000-07-16 Thread Dieter Maurer
Chris Withers writes: > I'm still debugging and writing the navtree code I've mentioned before > and I've noticed that not infrequently, when rendering a page that > causes and error, I get a half rendered page rather than a nice Zope > error page. > > This is a bit waffly to put into the c

[Zope-dev] Acquisition/cDocumentTemplate bug

2000-07-17 Thread Dieter Maurer
Recently, several posters have reported strange "AttributeError __call__" exceptions. The most precise was a report by Oleg Broytmann: /index_html DTML Document /standard_html_headerDTML Method /sub

Re: [Zope-dev] Optimization and speed

2000-07-17 Thread Dieter Maurer
Steve Alexander writes: > lib/python/ZPublisher/BaseResponse.py > > def write(self,data): > """\ > Return data as a stream > > HTML data may be returned using a stream-oriented interface. > This allows the browser to display partial results while >

[Zope-dev] Re: [Zope] DTML?

2000-07-17 Thread Dieter Maurer
R. David Murray writes: > On Tue, 11 Jul 2000, Chris Withers wrote: > > Tino Wildenhain wrote: > > > I want that too. When we are over it, how about replacing (or at least > > > aliasing) > > > these - variables to _ ? sequence-item, sequence-index etc. comes to > > > mind. > > > > IF you

Re: [Zope-dev] Traceback

2000-07-19 Thread Dieter Maurer
[EMAIL PROTECTED] writes: > How hard would it be to add more of the called URL to the traceback? > > ... traceback ... > > Great, I know that I have not put product_number in as a cookie or a hidden > value, and it could not be found by acquisition. It failed in rendering > index_html. Bu

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

2000-07-21 Thread Dieter Maurer
Erik Enge wrote: > > call, it won't redirect. So you should be able to achieve the same > > results just by invoking manage_addImage without including the REQUEST > > object. > > But I have to pass something with the REQUEST, or else it won't add the > image, right? I do not think so. "manage_a

[Zope-dev] Need for "aq_base" in DTML(was: Re: [Zope] Dumb DTML question - existance check of an object) (was: Re: [Zope] Dumb DTML question - existance check of an object)

2000-07-26 Thread Dieter Maurer
Satheesh Babu writes: > I have a URL, say, /sub1/sub2. How do I check in DTML > whether > 1. folder sub1 exists or not > 2. If not, create it. > 3. folder sub2 exists under sub1 > 4. If not, create it. It is easy, if you are a bit sloppy. * Access to "/": "PARENTS[-1]" * Existence

[Zope-dev] Additional Quoting; Exposing Auxiliary Tag Functions via "_"(was: [Zope-dev] dtml-var tag suggestion) (was: [Zope-dev] dtml-var tag suggestion)

2000-07-30 Thread Dieter Maurer
Casey Duncan writes: > I have been using dtml to create dynamic JavaScripts for some forms I am > creating. In doing this I came upon the standard problem of inserting > strings containing double quotes into a JavaScript such as where title = > '"Quoted String"': > > form.select.options[0].

[Zope-dev] Re: Probably ZopeFind Bug (was: Re: [Zope] all DTML Methods of current folder and subfolder)

2000-07-25 Thread Dieter Maurer
Dieter Maurer writes: > Jerome Alet writes: > > Thanks to you, the syntax you gave me is accepted by the dtml parser, but > > both > > > > > obj_expr='''not objectValues(['Folder'])''', > >

[Zope-dev] Abstract ZClasses

2000-08-03 Thread Dieter Maurer
I would find an abstract ZClass (or Meta ZClass) concept very nice (and useful). I would like to use it, e.g., for a general hieararchical view on relational databases. The view allows browsing (via the tree tag) and selection of one or more items. Most can be implemented independantly of the spe

Re: [Zope-dev] DB Connection Question

2000-08-08 Thread Dieter Maurer
Andre Schubert writes: > I have written a Product > and now i want > to use a Zope DatabaseConnection added to the same folder. Unless you are in a constructor, your product's "self" has an acquisition context. It usually contains the folder containing your product instance. Therefore, if

[Zope-dev] Re: [Zope] Permission

2000-08-09 Thread Dieter Maurer
Tom Deprez writes: > The Acq_perm column doesn't exists. Assume that acquisition of a permission > is always Active. The checkboxes of the role show their actual value > (according to the acquisition). Thus if permissionA is checked in the > parent-object, permissionA is also checked. If you w

Re: [Zope-dev] Weird Data.fs corruption...zope-dev@zope.org

2000-08-09 Thread Dieter Maurer
Martijn Pieters writes: > Ai, NFS! There is a known no-no about using NFS for Data.fs storage, it leads > to data corruptions. Zope and NFS do not mix. Huch, why that? I use Data.fs (occasionally) over NFS and did not yet have had problems. And appending to a file should work over NFS. Locking

Re: [Zope-dev] OFS.objectManager checking object Ids

2000-08-10 Thread Dieter Maurer
David C. Kankiewicz writes: > "Jay, Dylan" wrote: > > > > As I said, when the url is quoted there is no problem. > > > > http://azonia.auslabs.lucent.com/Auslabs/AuslabsFAQ/Where%20is%20X%3f > > > > causes no problems. The above object is sitting happily inside Zope with a > > question

Re: [Zope-dev] ZClass properties and DTML

2000-08-16 Thread Dieter Maurer
Carl Robitaille writes: > Is there a way to > include DTML tags in properties? If not, what are my other options? Not that I know of. Make your ZClass folderich (derive from Folder) and use DTML methods instead of properties. Dieter ___ Zope-

Re: [Zope-dev] Data.fs

2000-08-18 Thread Dieter Maurer
Andre Schubert writes: > I'am using Zope 2.1.6 and my Data.fs is going corrupted > My Questions are: is there a way to delete the last transaction from > Data.fs, There is a product "tranalyze" (or "tranalyzer", "tranalyse", "tranalyser") that allows you to analyse and fix your Data.fs. Z

[Zope-dev] ZCatalog glitches

2000-08-20 Thread Dieter Maurer
The Zope 2.1.6 ZCatalog was not bad but had a set of glitches. The Zope 2.2.1b1 ZCatalog (CVS from 2000-8-19) is much better but still has a set of glitches: * UnTextIndex(349) breaks, if the lexicon lookup returns the empty tuple --> "index out of range". * UnTextIndex(349) only looks at

[Zope-dev] Fighting with ZServer

2000-08-21 Thread Dieter Maurer
Since this afternoon, I am fighting with ZServer. Currently, it seems Zserver is winning I do not understand, what I see... At work: Zope 2.1.6, Sparc Solaris 2.7, Linux Netscape 4.51 Sometimes, images are not shown by Netscape (broken image). No "simple" reload is able to change this,

[Zope-dev] ZServer logging bug (was: Fighting with ZServer)

2000-08-21 Thread Dieter Maurer
Dieter Maurer writes: > Since this afternoon, I am fighting with ZServer. > > > At home: Zope 2.1.6, Intel Linux 2, Linux Netscape 4.5 > > All images are always shown correctly. > However, there is no log entry in "var/Z2.log" for > a

Re: [Zope-dev] Zope Content Management System

2000-08-24 Thread Dieter Maurer
Troy Coburn writes: > I need page content to be generated be users that have little or no > knowledge of HTML > Any suggestions and/or comments would be very > helpful. You may want to look at Wiki's, especially the ZWiki product. You find it (and information about Wiki) at zope.org.

Re: [Zope-dev] Converters.field2date, allow empty string to return None?

2000-09-04 Thread Dieter Maurer
Brad Clements writes: > One thing that has been bothering me is that I can't easily test my > ZSQL Methods if they accept a date type unless I completely fill all the > date arg types. > > For example, if the sqlmethod has argument type > startdate:date='' > > > and in the body I

Re: [Zope-dev] PATH_TRANSLATED delimted with backslash ?

2000-09-11 Thread Dieter Maurer
Steve Alexander writes: > > When I look at the DTML Document through the web, the "self" object > passed to the breadcrumbs external method is the folder that contains > the DTML Document. > (I thought that should only be the case for DTML Methods!) I expect, it is the folder containing

Re: [Zope-dev] aq_.* names reserved?

2000-09-15 Thread Dieter Maurer
Steve Alexander writes: > I'm hacking around with some external methods called aq_containment and > aq_context. > > I just found out that I can't call them from DTML. I can call them from > the URL line of a browser just fine. > > If I rename them to a_containment and a_context, they work

Re: [Zope-dev] RequestContainer ?

2000-09-15 Thread Dieter Maurer
Steve Alexander writes: > There's a RequestContainer instance at the top of the acquisition list, > as accessed through aq_parent or through aq_inner.aq_parent. > > Previously, with recursive acquisition hacks, you could tell that you > were at the end of the trail because aq_parent returned

Re: [Zope-dev] AUTHENTICATED_USER.has_role !!

2000-09-15 Thread Dieter Maurer
Maulin Doshi writes: > > The above code use to worked very OK with Zope version: Zope 2.1.6 (binary > release, python 1.5.2, linux2-x86). But now when I have upgraded to Zope > version: Zope 2.2.1 (binary release, python 1.5.2, linux2-x86), I dont find > "" working the way it use > to!

Re: [Zope-dev] HiperDOM & xmlc

2000-09-16 Thread Dieter Maurer
Shane Hathaway writes: > [EMAIL PROTECTED] wrote: > > The only thing I _don't_ feel good about this kind of template > > is that, in practice, we will probably lose the benefits of > > things like - meaning, when you > > want to change the header of your site, you'll have to edit all > > yo

Re: [Zope-dev] XHTML Templates comments from the peanut gallery

2000-09-28 Thread Dieter Maurer
Chris Withers writes: > > A **page** is the result of applying presentation to data in the > > object system. A page is a particular result of a URL when viewed > > under certain conditions. > > I'd like to add to this: > components used to make up 'page's should not be URL-visib

Re: [Zope-dev] Namespace trouble

2000-09-29 Thread Dieter Maurer
Martin =?ISO-8859-1?Q?Gr=F6nemeyer?= writes: > if've had little namespace problems with this code-snipped (dtml-method): > > > > > > > > > > This produces an output like this: 0,0,0,0,0,0,... When I execute your code (Zope 2.2.2), I get the expected result. For me, it

[Zope-dev] CoreSessionTracking proposal

2000-09-30 Thread Dieter Maurer
I just read the CoreSessionTracking proposal. I am very concerned about the "long living browser id". * Why should a browser id live longer than the session data maintained for the browser? This means, if the session lifetime is in the order of an hour, the cookie need not live

Re: [Zope-dev] CoreSessionTracking proposal

2000-10-01 Thread Dieter Maurer
Phillip J. Eby writes: > At 09:27 PM 9/30/00 +0200, Dieter Maurer wrote: > > * I am *VERY* suspicious whenever I get > >a cookie with an expiration date more than > >a few days in the future. > > > >If Zope tries to implement long living browse

Re: [Zope-dev] CoreSessionTracking proposal

2000-10-01 Thread Dieter Maurer
Chris McDonough writes: > The random element of the token is currently five characters. I may > need to "up" this. The secure cookie requirement is already reflected > in the use cases and in the current implementation. Anybody have any > other bright ideas about how to make session tokens

[Zope-dev] Re: CoreSessionTracking proposal

2000-10-01 Thread Dieter Maurer
Chris McDonough writes: > Dieter Maurer wrote: > > ... serious privacy concers about long living browser ids ... > > . > > This means, if the session lifetime is in the > > order of an hour, the cookie need not live > > longer than, s

[Zope-dev] CoreSessionTracking - "Access Session Data" permission

2000-10-03 Thread Dieter Maurer
Hi Chris, in an earlier message, you defended the existence of a separate permission "Access Session Data" (in the CoreSessionTracking proposal) by the following case: There may be (authenticated) users with (TTF?) scripting rights that should be prevented to screen sessi

Re: [Zope-dev] rpc-xml: Pachyderm memories needed !

2000-10-03 Thread Dieter Maurer
Nigel Head writes: > > I'll swear that a couple of weeks back, just after I got the Flash 5 upgrade I > had this running with whatever version of Zope was extant then! Unfortunately > I've been following along with the CVS checkouts without archiving them so I > can't prove it. CVS supp

Re: [Zope-dev] (no subject)

2000-10-04 Thread Dieter Maurer
[EMAIL PROTECTED] writes: > using LocalFS 0.95 war fine until trying to upgrade to Zope 2.2.2. Both > freshly installed, the following snippet raises the error: "Unauthorized", > "You are not authorized to access read.": > > > > In earlier Zope versions, a method without a permission me

Re: [Zope-dev] Need help tracking down the cause of a traceback

2000-10-04 Thread Dieter Maurer
Hi Skip, Skip Montanaro writes: > > I occasionally get tracebacks like > > No input for required field > > File /home/dolphin/skip/src/Zope/lib/python/ZPublisher/HTTPRequest.py, line >445, in processInputs > File /home/dolphin/skip/src/Zope/lib/python/ZPublishe

[Zope-dev] Re: [Zope] Container Class questions

2000-10-08 Thread Dieter Maurer
Robin Becker writes: > I would like to add properties in a property sheet, but cannot find a > neat way to see the properties on the base object and on the > propertySheet. > > So I would like my properties to show > id > title > > and the properties on my basic properties sheet. > >

[Zope-dev] Strange permissions in the (built-in) API reference

2000-10-09 Thread Dieter Maurer
I have just thouroughly looked through the API reference which is built in Zope 2.2.2. I found many strange permission statements, e.g.: * all methods of "PropertySheets" can only be used from Python * while "PropertySheet.propertyItems" can be used with permission "Access Contents Info

Re: [Zope-dev] ZPublisher.Client

2000-10-10 Thread Dieter Maurer
Andrew Edmondson writes: > I used to use Client.py quite a lot for calling zope objects through the web > from python. > > However, now that I've upgraded to Zope 2.x it fails. > __call__ > raise NotAvailable, RemoteException( > bci.NotAvailable: (111, 'Connection refused') (File: > h

Re: [Zope-dev] Inheritable properties(sheets)? Anyone? Anyone? Bueller?

2000-10-12 Thread Dieter Maurer
Alexander Schonfeld writes: > I want to inherit the properties of one zclass in another zclass, but > it seems to cause some namespace clashing... shouldn't this be possible? > Working with the instance of the class is fine, but inter-zclass > inheritance (acquisition?) would be nice... I thin

Re: [Zope-dev] Recursive folders from Python

2000-10-30 Thread Dieter Maurer
Jason Spisak writes: > Does anyonw know why this code won't create a folder within a folder. > It's tells me the id is already in use, so that means it's not > descending into the newly created folder to make another folder. > > def create(self): > for digit in range(0, 10): >

Re: [Zope-dev] Passing namespace to method

2000-11-02 Thread Dieter Maurer
Morten W. Petersen writes: > How do I construct a method of an object, so that whenever that method > is called, the current namespace is passed with it? This was discussed recently in the Zope-dev/Zope lists. Chris has opened the question, Jim answered (among others). Search the archive. Die

Re: [Zope-dev] ZCLass help

2000-11-05 Thread Dieter Maurer
Veiko Schnabel writes: > > i created a new Product calles book > with propertys writer(string), pages(int) > and a standart method called index_html to output all these > probertys > instance "my_book" > > > all i get is the id of the instance my_book > Th

Re: [Zope-dev] another debugging howto, and a question

2000-11-05 Thread Dieter Maurer
Simon Michael writes: > Here are some draft howto-like things some might find helpful > (improvements welcome) : > > http://zwiki.org/ZopeDebuggingRoadmap > http://zwiki.org/HowToDebugZopeInEmacs > > and a burning question: > > how can I invoke zserver such that I will get the interact

RE: [Zope-dev] calling dtml method with same name up the hierarchy.

2000-11-07 Thread Dieter Maurer
Casey Duncan writes: > The following should work in your nested standard_html_footer to call the > higher level one without infinite recursion: > > > > I fear this solution is very unstable. "PARENTS" is defined by the URL path (loosely spoken). This means, what "PARENTS[1]" is depen

Re: [Zope-dev] PythonMethods: Can't Slice context.REQUEST.PARENTS

2000-11-12 Thread Dieter Maurer
The Doctor What writes: > ... > Now here is my next problem. > > Using context.REQUEST.PARENTS doesn't give me the DTML Document that > called me (so to speak). > > I have: > /test/new/foo_html > > My PARENTS shows Zope, Test, and New, but doesn't show foo_html. "PARENTS" contain the

Re: [Zope-dev] unbuffered html from external method

2000-11-14 Thread Dieter Maurer
Andy McKay writes: > Is it possible to print unbuffered html output to the user from an external > method. It looks to me like I can't, output occurs upon the return and I > cant see a way of getting around that. "self.REQUEST.RESPONSE.write()" Be aware of the restriction of "HTTPResponse.

Re: [Zope-dev] PythonMethods: Can't Slice context.REQUEST.PARENTS

2000-11-14 Thread Dieter Maurer
The Doctor What writes: > Using context.this().id, self.this().id, m_self.this().id all get me > the same things: > Folder, Zope, and my method. None give me the DTML Document > foo_html. If it is indeed a DTML Document, then "this()" should reference this document. If it is a DTML Method, th

Re: [Zope-dev] PythonMethods: Can't Slice context.REQUEST.PARENTS

2000-11-14 Thread Dieter Maurer
Evan Simpson writes: > From: The Doctor What <[EMAIL PROTECTED]> > > Using context.this().id, self.this().id, m_self.this().id > all get me > > the same things: > > Folder, Zope, and my method. None give me the DTML > Document > > foo_html. > > > > This would seem to be an important thin

Re: [Zope-dev] ZopeBug: No Last-Modified for misc_/.../*.gif objects!!!!

2000-11-16 Thread Dieter Maurer
The Doctor What writes: > I was looking at the cacheability of my website in zope, and saw > that the misc_/OFSP/*.gif images (as in the icon objects) are > NOT cacheable because they don't return *any* date info. If they > *at least* returned a Last Modified, they'd be cacheable. My browser

Re: [Zope-dev] Simulate DTML-Method Proxy-Roles for python-product-methods ?

2000-11-17 Thread Dieter Maurer
Martin =?iso-8859-1?Q?Gr=F6nemeyer?= writes: > I've started to implement a small Product in Python. You mean a true Product implemented in Python (subpackage in "lib/python/Products")? > One method should be > able to access an object in a folder which isn't accessible by anonymous > but only

Re: [Zope-dev] ZopeBug: No Last-Modified for misc_/.../*.gif objects!!!!

2000-11-18 Thread Dieter Maurer
The Doctor What writes: > missing "Last-Modified" header for "App.ImageFile" objects > prevents caching Appended is a partial patch. It adds the "Last-Modified" header but does not handle "If-Modified-Since" headers in requests. I have put the patch into the locator. Dieter -

Re: [Zope-dev] RFC: Python/Zope Interfaces

2000-11-26 Thread Dieter Maurer
Michel Pelletier writes: > Also, defining the interface seperately keep the two things apart, > impementation and interface, and doesn't allow you to sneak in a new > method unless you also sneak it into the interface, thus making a > stronger "contract" with the user. I am a bit astonished by

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

2000-11-28 Thread Dieter Maurer
Robin Becker writes: > 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. > URL='http://192.1

Re: [Zope-dev] RFC: Python/Zope Interfaces

2000-11-28 Thread Dieter Maurer
Michel Pelletier writes: > Dieter Maurer wrote: > > Michel Pelletier writes: > > > Also, defining the interface seperately keep the two things apart, > > > impementation and interface, and doesn't allow you to sneak in a new > > > method unless y

Re: [Zope-dev] RFC: Python/Zope Interfaces

2000-11-28 Thread Dieter Maurer
Ken Manheimer writes: > > Dieter Maurer wrote: > > > It is a very good thing to have the specification very near > > > to the implementation -- as a permanent guide to the > > > implementor. It is even better, when big parts of the > > > specifi

Re: [Zope-dev] RFC: Python/Zope Interfaces

2000-11-28 Thread Dieter Maurer
Jim Fulton writes: > Dieter Maurer wrote: > > I cannot see, why the separation of interface and implementation > > should make the contract stronger. > > The interface *is* the contract. If someone builds a house > for me, I don't want the house to *be* the con

[Zope-dev] Re: [Zope] Question about dtml-in

2000-11-05 Thread Dieter Maurer
Sean McGrath writes: > ... "dtml-in" treats sequences of two element tuples specially ... You are right. This is to support the frequent case of iterating over item sequences. There should be a "dtml-in" argument to switch off this special treatment. If I had your problem, I would go for such a

[Zope-dev] [ANN] Zope 2.2 patch for cDocumentTemplate/Acquisition bug

2000-11-05 Thread Dieter Maurer
Appended is a patch for the cDocumentTemplate/Acquisition bug. Usually, this bug manifests itself by an "AttributeError: __call__" for a folder object. The usual context is: DTML Document: . . The patch modifies "C" code. Thi

Re: [Zope-dev] RFC: Python/Zope Interfaces

2000-11-29 Thread Dieter Maurer
Ken Manheimer writes: > The separation need not mean that the specification is hard to access from > the implementations, either for documentation or for runtime enforcement. Good! But, objection will come later. > However, it *does* run contrary to the literate programming notion of > wea

Re: [Zope-dev] Return variables from a DTML Method

2000-11-30 Thread Dieter Maurer
[EMAIL PROTECTED] writes: > I want to change some ZClass properties by getting return results > from a DTML Method. Something like this: "myzclass.propertysheets.get('Basic').manage_changeProperties(dtmlM > eth(this(),_))">. How do I get the dtmlMeth to return a Mapping? > (or should I be d

Re: [Zope-dev] case insensitive sorts

2000-12-06 Thread Dieter Maurer
Andy McKay writes: > what does anyone else think I would not like it. Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://list

Re: [Zope-dev] case insensitive sorts

2000-12-07 Thread Dieter Maurer
Chris Withers writes: > Dieter Maurer wrote: > > Andy McKay writes: > > > what does anyone else think > > > > I would not like it. > > Why not? ;-) I would not like to see this sort order in the management screens, because I use capitalizat

Re: [Zope-dev] Catalog class--does it support boolean queries?

2000-12-14 Thread Dieter Maurer
Marc Conley writes: > > Should boolean queries work using Catalog > or is it > necessary to use ZCatalog instead to get that functionality? > ZCatalog is nothing more than a thin wrapper around Catalog (to make a Catalog a persistent object in ZODB). All search facilities of ZCatal

Re: [Zope-dev] keyword indexes

2000-12-15 Thread Dieter Maurer
Josh Zeidner writes: > This should work. Alternatively: "MediaKeywords = 'ouch'". > This calls the catalog without any keyword arguments and with a single positional parameter 0. The catalog interprets this as "no search criteria" and returns all objects. Dieter _

Re: [Zope-dev] more on keyword indexes

2000-12-15 Thread Dieter Maurer
Josh Zeidner writes: > > This seems like the obvious result: BUT: it depends if you want a AND/OR > type search. ZCatalog combines several search terms for a single index with "OR" and search expressions for different indexes with an "AND". Dieter _

Re: [Zope-dev] urllib not available in Python Scripts?

2000-12-15 Thread Dieter Maurer
Itai Tavor writes: > In Python Methods I could do urllib.quote(...). This doesn't work in > Python Scripts. Is quote considered a security risk? "quote" not, but maybe "urllib". Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.o

[Zope-dev] Re: [Zope] IE5 / Medusa bug?

2000-12-15 Thread Dieter Maurer
seb bacon writes: > > the Content-length is consistently reported as 14 bytes too > short. This is regardless of the actual length of the document. > > Why this should have a knockon effect on a small subset of MS > browsers, I don't know. Especially confusingly random is the > requ

Re: [Zope-dev] more on keyword indexes

2000-12-17 Thread Dieter Maurer
Josh Zeidner writes: > OK. Is it possible to query keyword indexes for several keywords at once? Not that I know of. You either have to extend ZCatalog or wait some time. There are different people working on ZCatalog enhancements. >Again, I am reporting a bug You already know the

Re: [Zope-dev] Problem in current CVS

2000-12-17 Thread Dieter Maurer
Jimmie Houchin writes: > I just updated my current CVS build of Zope2. > > ImportError: cannont import name end_of_header_search This may be the effect of a fix for a problem discussed recently in "zope-dev": Zope looked for "" and added it, if not present. Unfortunately, it forgot

Re: [Zope-dev] IE5 / Medusa bug?

2000-12-17 Thread Dieter Maurer
seb bacon writes: > IE does not get last 11 bytes > - it's always the last 11 bytes that are missing, however large the > page is > > - I've sent exact copies of the HTTP headers to the server, using > telnet, and there's no problem there I made the experience that IE is very

Re: [Zope-dev] Changing hostname and port without SiteAccess

2000-12-18 Thread Dieter Maurer
Martin Winkler writes: > > I cannot use SiteAccess (because I need multiple ZCatalogs), and my Zope > server (port 8080) is behind squid (in http-accelerated mode - port 80). > > What I would need is changing the hostname and port in the html-responses > like this: http://localname.c

Re: [Zope-dev] more on keyword indexes

2000-12-18 Thread Dieter Maurer
Josh Zeidner writes: > > However, Dieter says that it is not yet possible to > query for more than one keyword at once. At least, it was not my intention to say such a thing. You can search for several keywords at once, but the result is the *UNION* of the results for the single ke

Re: [Zope-dev] RE: objectIds accessiblilty & and a proposal

2000-12-18 Thread Dieter Maurer
Steve Alexander writes: > On my pie-in-the-sky zope wishlist: > > What I'd like is a new tab for zope objects that allows me to say which > protocols the object is accessible from, and what to do if not. > > For example: > >access route accessible?action > >

Re: [Zope-dev] more on keyword indexes

2000-12-18 Thread Dieter Maurer
Christopher Petrilli writes: > > I do try to find things. I've also > fixed untold numbers of bugs that were easy to do (there are some that are > structural and will have to wait), and 2.3 will have a *substantially* > better Catalog. That is very good news! Dieter __

[Zope] [Zope-dev] [BUG] Background processes interfere with Zope's HTTP responses

2000-12-19 Thread Dieter Maurer
Today was again a hard Zope day. Did you ever hear, that usually (i.e. if you do not do special things) Zope renders a complete page before it starts sending the result back to the client. This implies that you should never see only half of a page. I heard it and I saw the code that does it. The

Re: [Zope-dev] RE: objectIds accessiblilty & and a proposal

2000-12-20 Thread Dieter Maurer
Toby Dickenson writes: > > ... protocol specific access rights ... > Please No. > > Zope security is complex enough without having to worry about > different security settings depending on how a method is accessed. > (And we should have a lower tolerance for complexity when it applies > to

Re: [Zope-dev] calling SQL from External Method and using acquisition

2000-12-21 Thread Dieter Maurer
Andy McKay writes: > This is just an annoying namespace issue: > - I'm calling SQL methods from External Methods by create_index_ext>. > - I can then call a SQL method by calling self.sql_method() You can pass to a Z SQL method either a single dictionary (positional) argument or a sequence of

[Zope-dev] PythonScripts

2000-12-29 Thread Dieter Maurer
I looked at ZopeCVS's PythonScripts. I mostly like it -- with the following exceptions: * Namespace binding It does not yet work, apparently: In DTML, I have: in PythonScript "pyscript": return _['a'] and I get: "KeyError: a" * Try it It i

Re: [Zope-dev] DTML Documents == DTML Methods that are anchored?

2000-12-30 Thread Dieter Maurer
The Doctor What writes: > What are the differences between DTML Documents and Methods > internally? There are too small differences: 1. DTML documents implement the "PropertyManager" interface, i.e. they can have properties other than "id" and "title". 2. DTML documents place themselves

[Zope-dev] UNEXPECTED: Acquisition.Explicit may acquire implicitly

2000-12-31 Thread Dieter Maurer
While trying to understand, what the "bself= self.aq_explicit" in "OFS.DTMLMethod.__call__" should do, I detected an unexpected behaviour: usually, this "bself" acquires implicitly from its container (though not from its context) More precisely: if "bself.aq_self" is itself an impli

Re: [Zope-dev] PythonScripts

2001-01-01 Thread Dieter Maurer
Dieter Maurer writes: > I looked at ZopeCVS's PythonScripts. > I mostly like it -- with the following exceptions: > > * Namespace binding > >It does not yet work, apparently: > Sorry! This was my fault: I had update my Zope CVS version but not y

[Zope-dev] Allowed characters in Zope ids

2001-01-02 Thread Dieter Maurer
I recently read RFC 2396 which defines the generic URI syntax and especially the URL syntax. I recognized, that * Zope forbids many characters in ids (with the error message "not allowed in URLs"), that are legal characters in URL path segments: generally allowed in URL's: -_.!~*'()

Re: [Zope-dev] Conflict Errors

2001-01-03 Thread Dieter Maurer
Chris Withers writes: > However, if anyone does know what constitutes a 'seperate object' in > ZODB terms, it be really useful to know. > I'm guessing a class which inherits from Persistent? Dictionaries don't, > 'cos they're python builtins, which I'm pretty certain was the problem > in my c

Re: [Zope-dev] "dynamic permissions" in zope

2001-01-03 Thread Dieter Maurer
Heinz-Josef Claes writes: > dynamic permissions It is not Zope's normal behaviour. Of cause, you could plug in a new UserFolder that implements the features you require (someone else recommended "LoginManager"). On the other hand, Zope is flexible enough to let you approximate the des

Re: [Zope-dev] Re: Starting ZServer

2001-01-03 Thread Dieter Maurer
[EMAIL PROTECTED] writes: > My Zserver has started at 8080 but the manage.dtml is not > accessible from the browser either as localhost or with the host name. > Please suggest me an answer the problem ASAP. You are using: http://localhost:8080/manage do you? You must not use "manage.dtm

Re: [Zope-dev] case insensitive sorts

2001-01-03 Thread Dieter Maurer
Chris Withers writes: > Andrew > bart > David > sophie > Wayne Why in hell do you switch caseness for similar objects? If you apply some naming conventions, such as "objects start with a Capital letter, verb with a lowercase letter", you may find Python's sorting order usefull. Dieter __

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

2001-01-03 Thread Dieter Maurer
Chris Withers writes: > Hmmm, I guess I like the way it is but my wishlist (damn, Christmas just > gone ;-) would be: > > for Acquisiton.Implicit, be able to do something like: > > class MyClass (Acquisition.Implicit): > > acquisition = ClassAcquisitionInfo() > > acquisitio

  1   2   3   4   5   6   7   8   9   10   >