Re: [Zope-dev] Is there a function to get the object type?

2006-04-12 Thread Lennart Regebro
On 4/11/06, Takahashi, Michael [EMAIL PROTECTED] wrote: I'm trying to write a function that checks to see if the current object is a 'Folder'. several ways: isinstance(object, Folder) # does not work in python scripts or object.meta_type == Folder # does work in python scripts or

[Zope-dev] Re: Is there a function to get the object type?

2006-04-12 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lennart Regebro wrote: On 4/11/06, Takahashi, Michael [EMAIL PROTECTED] wrote: I'm trying to write a function that checks to see if the current object is a 'Folder'. several ways: isinstance(object, Folder) # does not work in python

Re: [ZWeb] Zope Collector policies?

2006-04-12 Thread Rob Page
Hi Clemens and Simon: On Apr 12, 2006, at 8:41 AM, Simon Michael wrote: Does anyone share my point of view the collector overview page should state the requirements explicitely? If they must be so demanding, then yes, very much so. Also you raised this just where I'd expect to see it.

Re: [Zope] ExtFile and TextIndexNG issues

2006-04-12 Thread Stefan H. Holek
This however is *exactly* the problem. Please use 1.5. ExtFile 1.4.4's index_html writes to the request regardless of how it was called (by publisher or script). Stefan On 11. Apr 2006, at 19:24, Palermo, Tom wrote: I haven't tried upgrading to ExtFile 1.5 from the svn trunk yet but I

[Zope] creating users in zope. Login error

2006-04-12 Thread JulianRead
Hi i have created a plone site and now i want to create a user using zope and give them ownership rights to plone. At the moment i have created a user using the acl users button on the left menu bar and given them ownership rights Once i have created the user i am unable to log into zope using

RE: [Zope] ExtFile and TextIndexNG issues

2006-04-12 Thread Palermo, Tom
Oh. Thanks :-) -Tom Palermo -Original Message- From: Stefan H. Holek [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 12, 2006 4:06 AM To: Palermo, Tom Cc: 'zope@zope.org' Subject: Re: [Zope] ExtFile and TextIndexNG issues This however is *exactly* the problem. Please use 1.5.

Re: [Zope] same object in different containers

2006-04-12 Thread gf
On 4/11/06, Dieter Maurer [EMAIL PROTECTED] wrote: gf wrote at 2006-4-11 04:27 -0600: I am interested in having the same object appear as the child of two different containers. These containers may distant from each other in the object hierarchy. In particular, I autogenerate a list of

[Zope] Css product

2006-04-12 Thread Garito
Hi all! Do you know any product for css that works with zope 2.9.1? I try to use ZStyleSheet product but seems doesn't work on this version of Zope What I'm trying to know is all the styles on my css objects (or files) to pass them to the WYSIWYG editor Is this possible? Thanks in

[Zope] Re: where's the XML?

2006-04-12 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Erik Myllymaki wrote: I want to access numerous methods/functions on a zope server via Javascript. Zope has xml built-in right? Zope is about publishing *Python objects*; any available XML support which is focused on that (e.g., you can export

[Zope] Strategies for testing generated sql?

2006-04-12 Thread Paul Winkler
This is a very general question: I'm looking for ideas on how to effectively test dynamically generated sql queries. Both unit and functional test ideas welcome. We have a bunch of views (in the zope 3 / Five sense, but that's not really relevant) which typically construct a

Re: [Zope] Strategies for testing generated sql?

2006-04-12 Thread Marco Bizzarri
The problem is what you want to test. I'm not familiar with Zope 3, therefore I'm talk on the base of ZSQLMethod.SQL.SQL from Zope 2. If I understand correctly, you've some high level construct which creates an nvSQL instance. Now, if you put yourself at the end of the line, what you need to do

Re: [Zope] Strategies for testing generated sql?

2006-04-12 Thread Andreas Jung
--On 12. April 2006 12:32:29 -0400 Paul Winkler [EMAIL PROTECTED] wrote: How do people test this sort of thing? Do you go whole-hog and fire up MySQL or whatever? Or use gadfly? sqlite? or what? I've had a project some yrs ago where we had to parse some kind of query language and

Re: [Zope] TAL page whitespace removal

2006-04-12 Thread Robert (Jamie) Munro
Dieter Maurer wrote: Robert (Jamie) Munro wrote at 2006-4-10 13:14 +0100: For example, I downloaded the www.plone.org home page and it was 47704 bytes. I removed all whitespace from the beginning and end of lines, and then removed blank lines, and it was down to 35087 bytes - that's a

Re: [Zope] Strategies for testing generated sql?

2006-04-12 Thread Paul Winkler
On Wed, Apr 12, 2006 at 06:51:18PM +0200, Marco Bizzarri wrote: The problem is what you want to test. I'm not familiar with Zope 3, therefore I'm talk on the base of ZSQLMethod.SQL.SQL from Zope 2. If I understand correctly, you've some high level construct which creates an nvSQL instance.

Re: [Zope] calling a product with xmlrpc

2006-04-12 Thread Dieter Maurer
Paul Winkler wrote at 2006-4-11 20:06 -0400: ... I do think it's odd he got NotFound One gets NotFound with debug-mode off, one gets a message describing that a docstring is missing with debug-mode on. It was an error to switch to debug-mode off by default... -- Dieter

Re: [Zope] TAL page whitespace removal

2006-04-12 Thread Floyd May
Robert (Jamie) Munro wrote: Dieter Maurer wrote: Robert (Jamie) Munro wrote at 2006-4-10 13:14 +0100: For example, I downloaded the www.plone.org home page and it was 47704 bytes. I removed all whitespace from the beginning and end of lines, and then removed blank lines, and it was down

Re: [Zope] Re: zope 2.8.6 on Mac Intel

2006-04-12 Thread manuel spuhler
Hello, I re-installed Tiger on my Mac from scratch, and tried to compile Zope (with python from Fink). Hopefully, everything went fine this time. Then I succeeded to instanciate Zope. And I started Zope, and it failed, bouhouhou. As I am totally new in Python/C I don't know what the error