Re: [Zope-dev] skinscript and URL traversal question

2001-01-21 Thread Aaron Payne
Hi all, A solution has been found. woohoo. A not found error was produced with direct URL traversal. Steve Spicklemire sent this solution off list. The process is split into two steps: Do the query to 'load the object on traversal': WITH QUERY searchBy_Name(name=self.id) COMPUTE name Do

[Zope-dev] Specialist/Rack scalability

2001-01-21 Thread Michael Bernstein
After comsidering the fedback I got from the previous 'Massive scalability thread, I decided to split my queries into two areas: Rack scalability and ZCatalog scalability. This email deals with the former. It seems clear that indexing and searching are more of a botleneck than storage/retreival.

[Zope-dev] ZCatalog scalability

2001-01-21 Thread Michael Bernstein
After comsidering the feedback I got from the previous 'Massive scalability' thread, I decided to split my queries into two areas: Rack scalability and ZCatalog scalability. This email deals with the latter. Partial match (wildcard) searches have already been identified as a resource hog,

Re: [Zope-dev] Specialist/Rack scalability

2001-01-21 Thread Steve Alexander
Hi Michael, Michael Bernstein wrote: It seems clear that indexing and searching are more of a botleneck than storage/retreival. Nevertheless, so far I have not heard of anyone trying to store more than 60,000 objects in a rack. I need to know if there is any reason to suspect that storage

Re: [Zope-dev] ZCatalog scalability

2001-01-21 Thread Steve Alexander
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) that uses string.replace to change '*' and '?' to ''.

Re: [Zope-dev] ZCatalog scalability

2001-01-21 Thread Michael Bernstein
Steve Alexander wrote: 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) that uses

Re: [Zope-dev] ZCatalog scalability

2001-01-21 Thread Michael Bernstein
Erik Enge wrote: [Michael Bernstein] | I need to know how far the ZCatalog will scale using this indexing | and search strategy. Does anyone have anectodal or benchmark data to | suggest if (and when) I will hit a 'wall' regarding the number of | objects being indexed and searched?

Re: [Zope-dev] Specialist/Rack scalability

2001-01-21 Thread Michael Bernstein
Steve Alexander wrote: Hi Michael, Michael Bernstein wrote: It seems clear that indexing and searching are more of a botleneck than storage/retreival. Nevertheless, so far I have not heard of anyone trying to store more than 60,000 objects in a rack. I need to know if there is

Re: [Zope-dev] Specialist/Rack scalability

2001-01-21 Thread Steve Alexander
Michael Bernstein wrote: There is some question in my mind if accessing any attribute (such as the thumbnail version) causes all attributes to be loaded into memory. If so, displaying a list of images with thumbnails may result in many large objects being loaded into memory. Make sure

Re: [Zope-dev] ZCatalog scalability

2001-01-21 Thread Erik Enge
[Michael Bernstein] | I need to know how far the ZCatalog will scale using this indexing | and search strategy. Does anyone have anectodal or benchmark data to | suggest if (and when) I will hit a 'wall' regarding the number of | objects being indexed and searched? I'm going to try to stuff 27

Re: [Zope-dev] Specialist/Rack scalability

2001-01-21 Thread Michael Bernstein
Steve Alexander wrote: Michael Bernstein wrote: There is some question in my mind if accessing any attribute (such as the thumbnail version) causes all attributes to be loaded into memory. If so, displaying a list of images with thumbnails may result in many large objects being

Re: [Zope-dev] Specialist/Rack scalability

2001-01-21 Thread Steve Alexander
Michael Bernstein wrote: Make sure that each large attribute is an instance of a class that derives from Persistent. Ok, I'll give that a try. Since Photo is a Python Product, what will happen to current instances if I make this (and only this) change? I don't know. I can think of

Re: [Zope-dev] CSS file serving

2001-01-21 Thread richard
Casey Duncan wrote: [EMAIL PROTECTED] wrote: I've ended up hacking a version of special_dtml / ClassicHTMLFile that serves up CSS. Has anyone got a better way of doing it (that detects changes in the file and serves it up with the correct Content-Type)? Check out:

Re: [Zope-dev] ZCatalog scalability

2001-01-21 Thread Chris Withers
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) that uses string.replace to change '*' and '?' to

Re: [Zope-dev] ZCatalog scalability

2001-01-21 Thread Steve Alexander
Chris Withers wrote: Wouldn't using a normal vocabulary as opposed to a globbing vocabulary prevent this as well? That would stop globbing searches for everyone. While I might want to stop users of a site making wildcard searches, I still want to keep that facility for myself :-) --

[Zope-dev] dtml-in batching

2001-01-21 Thread richard
The dtml-in batching mechanisms are quite difficult to debug - the DTML documentation I have has examples which break it and there's no indication of why. It turns out the DT_In renderwb() code gobbles all exceptions from the rendering of the previous and next blocks. I've hacked my code so that

Re: [Zope-dev] dtml-in batching

2001-01-21 Thread richard
[EMAIL PROTECTED] wrote: The dtml-in batching mechanisms are quite difficult to debug - the DTML documentation I have has examples which break it and there's no indication of why. It turns out the DT_In renderwb() code gobbles all exceptions from the rendering of the previous and next

Re: [Zope-dev] dtml-in batching

2001-01-21 Thread richard
[EMAIL PROTECTED] wrote: The dtml-in batching mechanisms are quite difficult to debug - the DTML documentation I have has examples which break it and there's no indication of why. It turns out the DT_In renderwb() code gobbles all exceptions from the rendering of the previous and next

Re: [Zope-dev] Specialist/Rack scalability

2001-01-21 Thread Phillip J. Eby
At 07:12 PM 1/21/01 +, Steve Alexander wrote: So, storing things in a Rack happens in a number of stages: Your application interacts with the Rack The Rack (perhaps) stores the object persistently in its BTree The BTree is a collection of persistent ZODB objects The ZODB objects

Re: [Zope] SQL query result set - what data structure how to access [(elements)]?

2001-01-21 Thread Andrew Kenneth Milton
+---[ Lee ]-- | Hi, | | I'm using a python method to query my database as follows, where I need | to use the result set to generate some HTML. I'm interested in result[0] | and result[1] as listed below; | | * return result[0] gives me: | [{'name': 'PRACTICALS', 'type':

Re: [Zope] MySQL connection string.

2001-01-21 Thread Joachim Werner
Indra Gunawan wrote: Hello, could anyone tell me how to make connection string to MySQL in Linux? I use Zope 2.3 and I've tried the database@[host] username password This should work. Your problem is probably somewhere else. Are you sure that the database adapter, database etc. are all

Re: [Zope] RE: Workflow and document management system in Zope

2001-01-21 Thread Hannu Krosing
Nicolas Pettiaux wrote: I am looking for a workflow (WF) linked to a electronic document management (EDM) system and a groupware email based (I have just happened to come accross aethera from the Kompany) that would be free software and preferably in Zope + Python. The WF+DEM system I am

[Zope] Index out of range

2001-01-21 Thread Tim Cook
Error Type: IndexError Error Value: list index out of range I am importing a text file via an external method. I did my testing with a file that contained 18 records. All went fine. Stepped up the testing to a file with 550 records. The real thing will have over 30,000. Now it doesn't work. :-)

[Zope] Re: Index out of range

2001-01-21 Thread Tim Cook
Tim Cook wrote: Error Type: IndexError Error Value: list index out of range OOPS! forgot the control panel info: Zope version: Zope 2.2.5b1 (binary release, python 1.5.2, linux2-x86) Python version: 1.5.2 (#10, Dec 6 1999, 12:16:27) [GCC 2.7.2.3] System Platform: linux2 Process ID:

[Zope] ZOPE and PHP - possible or not ?

2001-01-21 Thread Greg Nowak
Hi! How do I combine the PHP code with ZOPE ? How to tell Apache to parse the PHP code ? Where do I find info ? Best regards, Greg -- BEZPLATNE konto e-mail o adresie [EMAIL PROTECTED] i NIELIMITOWANEJ pojemnosci Tylko w POLAND.COM ! www.poland.com

Re: [Zope] RE: Workflow and document management system in Zope

2001-01-21 Thread Nicolas Pettiaux
Dear Mr Krosing, Thank you VERY much for the information. This application looks really neat, this is really going in the direction I want, and has indeed a lot of the features I am looking for. This IS the application I want to start with. My estonian is really poor (not to say, I don't

[Zope] Bug Export Product and inheritance (2). Any more description about XML export format?

2001-01-21 Thread Thierry Nabeth
Hello, I am still struggling to find a way to solve the bug (even manualy) relate to exporting a package in which a class inherits from a class of another package. Do you have any more details about the Import XML format ? I want to see if I can edit manually this file in order to solve the

Re: [Zope] Re: Index out of range

2001-01-21 Thread Tim Cook
Tim Cook wrote: Tim Cook wrote: Error Type: IndexError Error Value: list index out of range Well, DUH me. I forgot the last two lines of the text file (it's a dump from a database sent to me from someone else). One only had the number of rows and the other an EOF. Sorry to waste your

[Zope] TCPWatch... and closing sockets..

2001-01-21 Thread Steve Spicklemire
I'm going to try to make a long story short... and the story isn't even over... but I'm getting close. One of our clients is a 'multimedia' company and we're working with a group there that consists mostly of artists and designers who use tools like photoshop and macromedia director. They came

[Zope] patch for python configure for freeBSD and Zope

2001-01-21 Thread matt
Hi, I'm using freeBSD 4.2-RELEASE and just tried to install python-1.5.2 and Zope. If you are trying to do the same and tun into the following error when trying to start zope, then apply this patch to the configure script of python and rebuild it. ImportError: ./ExtensionClass.so: Undefined

[Zope] Object DB versus Relational DB

2001-01-21 Thread Tom Deprez
Hi, Can somebody provide me informational links of documents which present the benefits and non-benefits of both DB? eg. When to use one and when not to use one? Thanks, Tom. ___ Zope maillist - [EMAIL PROTECTED]

[Zope] ZSQL Methods in ZClasses...

2001-01-21 Thread Curtis Maloney
Green things, Am I missing something, or should I just simply not be using ZSQL methods in my ZClass? If I try to add one, I get an error about there not being a DB connection object (which makes sense) and won't let me add the object. I was planning on making the constructor find all

[Zope] Re: patch for python configure for freeBSD and Zope

2001-01-21 Thread Chris Watson
Hi, I'm using freeBSD 4.2-RELEASE and just tried to install python-1.5.2 and Zope. If you are trying to do the same and tun into the following error when trying to start zope, then apply this patch to the configure script of python and rebuild it. ImportError: ./ExtensionClass.so:

[Zope] Re: patch for python configure for freeBSD and Zope

2001-01-21 Thread matt
On Mon, 22 Jan 2001, Chris Watson wrote: Hi, I'm using freeBSD 4.2-RELEASE and just tried to install python-1.5.2 and Zope. If you are trying to do the same and tun into the following error when trying to start zope, then apply this patch to the configure script of python and rebuild

[Zope] Re: patch for python configure for freeBSD and Zope

2001-01-21 Thread Chris Watson
Sorry, to be more explicit : I built python 1.5.2 and Zope 2.2.2 from source, although the most recent stable release of Zope also gave the same error. I did not use the ports distribution of python or zope, so I don't know if the same default configure script is used by them too. Is

[Zope] Re: patch for python configure for freeBSD and Zope

2001-01-21 Thread matt
On Mon, 22 Jan 2001, Chris Watson wrote: Sorry, to be more explicit : I built python 1.5.2 and Zope 2.2.2 from source, although the most recent stable release of Zope also gave the same error. I did not use the ports distribution of python or zope, so I don't know if the same default

[Zope] LoginManager disrupts access to protected object above it

2001-01-21 Thread Itai Tavor
Hi, This problem started with failure to access Control_Panel, which I thought was due to a SiteAccess problem... but I now tracked it to a problem with an instance of LoginManager. I have the following setup: Zope 2.3.0b2 ZPatterns 0.4.3b2 LoginManager 0.8.8b1 Zope/ test1

[Zope] Re: patch for python configure for freeBSD and Zope

2001-01-21 Thread Chris Watson
No reason except that I have an install script for python, zope, and modules (including configuration) for both that I "know" form a stable environment on our production servers, whether linux, or freeBSD. I should try the ports distribution and run my unit tests to perhaps build a more

[Zope] Source to www.zope.org

2001-01-21 Thread Gerald Gutierrez
Is the source code to www.zope.org available somewhere? It would certainly be an interesting example of how to build a large web site with Zope. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts

[Zope] Login Form / User Registration Code Snippets

2001-01-21 Thread Gerald Gutierrez
I remember that someone, somewhere, has a document with code snippets to do authentication and registration of users through forms, much like how www.zope.org does it. Does anyone know where this is? Thanks ___ Zope maillist - [EMAIL PROTECTED]

Re: [Zope] Source to www.zope.org

2001-01-21 Thread Timothy Wilson
On Sun, 21 Jan 2001, Gerald Gutierrez wrote: Is the source code to www.zope.org available somewhere? At the bottom of the page there's a link called "View Source" which will give you the original DTML. You can tack 'view_source' onto the end of any www.zope.org URL to see how it was built.

[Zope] [python] creating variable names by adding 2 strings?

2001-01-21 Thread Lee
Hi there, I'm creating variables in python but I am having trouble creating them when they're *named* using other variables. Here's an example; while (p!=0): p+`p`= string.replace(component[control], ",", "") # e.g. I want 'p1 = string.replace.blah...' p=p-1

Re: [Zope] Source to www.zope.org

2001-01-21 Thread J. Atwood
Also check out the About Zope.org link on the home page. http://www.zope.org/About There is a lot of good stuff there! J At 4:39 PM -0800 1/21/01, Gerald Gutierrez wrote: Is the source code to www.zope.org available somewhere? It would certainly be an interesting example of how to build a

Re: [Zope] ZOPE and PHP - possible or not ?

2001-01-21 Thread J. Atwood
A lot came up with you just put 'PHP' in the Zope.org search box. Here are the best. http://www.zope.org/Members/Mamey/PHP http://www.zope.org/Members/Ioan/PHPObject J At 7:18 PM +0100 1/21/01, Greg Nowak wrote: Hi! How do I combine the PHP code with ZOPE ? How to tell Apache to parse

Re: [Zope] Adding to an XMLDocument through web forms

2001-01-21 Thread J. Cameron Cooper
I`m looking for a way to give a user the ability to add new data to an XMLDocument through web forms, does anyone have experience of this or would be able to point me in the direction of an example or howto? I tried to do this before, and it never worked, so I'm probably not of all that much

Re: [Zope] [python] creating variable names by adding 2 strings?

2001-01-21 Thread Steve Spicklemire
Hi Lee, You could use a dictionary for this: vars = {} while (p!=0): vars['p'+`p`] = string.replace(component[control], ",", "") p=p-1 control=control+1 then 'vars' will contain keys (e.g., 'p1', 'p2' etc.. ) and corresponding values. If that's totally not what

Re: [Zope] Source to www.zope.org

2001-01-21 Thread Gerald Gutierrez
At the bottom of the page there's a link called "View Source" which will give you the original DTML. You can tack 'view_source' onto the end of any www.zope.org URL to see how it was built. Hi Tim. Yes, I've looked at those sources, but unfortunately, they don't provide some of the backend

[Zope] dictionaries in python *methods* :-o

2001-01-21 Thread Lee
Thanks, Steve. This'll do nicely ;-) BUT... For some strange reason the following doesn't work in my Python *method*: dict = {} dict["Lee"] = 1 Error: Error Type: Python Method Error Error Value: Forbidden operation STORE_SUBSCR at line 3! -- ? Which seems very strange.

[Zope] Re: dictionaries in python *methods* :-o

2001-01-21 Thread Lee
Okay, I figured it out. - Silly Lee ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce