[Zope-dev] Re: ZCatalog fast as admin, dog slow as anonymous and other users
Tres, I updated the DateIndex.py file to the one from the current 2.6 head. But I'm still getting the 'integer multiplication' error. Is there another possibility? Also, it only does this for the 'expires' index. The 'effective' index reindexed just fine. Thanks in advance, Jason Spisak Tres Seaver wrote: Jason Spisak wrote: Tres and Seb, Got rid of all the date FieldIndexes and am reindexing the new DateIndexes one at a time from the indexes tab, but I've hit a snag. when I go to reindex 'expires' I get this error immediately: Site error This site encountered an error trying to fulfill your request. The errors were: Error Details Error Type OverflowError Error Value integer multiplication Update lib/python/Products/PluginIndexesn/DateIndex/DateIndex.py to the current head of the 2.6 branch, e.g. from: As a quick workaround, you could patch CMFDefault/DublinCore.py:: 8 --- *** CMFDefault/DublinCore.py14 Nov 2002 06:48:20 - 1.19.4.3 --- CMFDefault/DublinCore.py30 Jan 2004 22:22:53 - *** *** 253,259 date = getattr( self, 'creation_date', None ) return date is None and self.__FLOOR_DATE or date ! __CEILING_DATE = DateTime( , 0 ) # never expires security.declarePublic( 'expires' ) def expires( self ): --- 253,259 date = getattr( self, 'creation_date', None ) return date is None and self.__FLOOR_DATE or date ! __CEILING_DATE = DateTime( 2037, 0 ) # never expires security.declarePublic( 'expires' ) def expires( self ): 8 --- The better fix would involve not returning the silly _CEILING_DATE at all, and then telling the index whether to treat 'None' as low or high. Tres. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] ZCatalog fast as admin, dog slow as anonymous and other users
Zopistas, My ZCatalog is fast as admin, but dog slow as anonymous and other users. Anyone had this same experience? Details: marjors: Zope 2.6.2 CMF 1.3 Plone 1.0.5 about 50,000 cataloged objects (dual xenon server, plenty of ram, RAID) User folder has 15k users in it, but admin is one of those users. i've factored it way down and a simple search with just 1 Event loaded, like: return context.portal_catalog(Type='Event') is instantaneous for the 'admin' user, but takes about 10 seconds to return 1 SINGLE object. (only 1 Event loaded) imagine the time it takes to search and display 1300 events (which is what's normally in there). ouch. i've rebuilt the indexes, and still no dice. Any help would be greatly appreciated. All my best, Jason Spisak ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] ZCatalog fast as admin, dog slow as anonymous and other users
Seb, thanks! i'll give that a shot. i also thought of adding daterange indexes for the calendar portion or things. does that also garner any speed improvement? Seb Bacon wrote: Jason Spisak wrote: Zopistas, My ZCatalog is fast as admin, but dog slow as anonymous and other users. Anyone had this same experience? Details: This is certainly to do with queries which run against FieldIndexes only for anonymous users. This is something the CMF does (e.g. expires and effective dates only applied for anonymous). FieldIndexes are really bad for DateTimes. Delete your date-related FieldIndexes and replace them with DateIndexes. seb ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] ZCatalog fast as admin, dog slow as anonymous and other users
Seb, I've replaced the following date indexes that werer FieldIndexes with DateIndexes Date effective expires modified i'll let you know what kind of speed improvement I get. Jason Spisak wrote: Zopistas, My ZCatalog is fast as admin, but dog slow as anonymous and other users. Anyone had this same experience? Details: This is certainly to do with queries which run against FieldIndexes only for anonymous users. This is something the CMF does (e.g. expires and effective dates only applied for anonymous). FieldIndexes are really bad for DateTimes. Delete your date-related FieldIndexes and replace them with DateIndexes. seb Jason Spisak ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: ZCatalog fast as admin, dog slow as anonymous and other users
Tres, You are right. I've also got that permission turned off to take advantage of that part of the CMF workflow, which compounds the problem since it's site wide. I'm building the individual DateIndexs now and when that's done, I'll check the performance (for my own edification if nothing else 8-). Then I'll add that DateRange index and patch the CMF and check again. Do you guys want metrics? If so, preferred tool/output method? (although my guess is, you already know how spiffy this makes things 8-) Tres Seaver wrote: Jason Spisak wrote: Zopistas, My ZCatalog is fast as admin, but dog slow as anonymous and other users. Anyone had this same experience? Details: marjors: Zope 2.6.2 CMF 1.3 Plone 1.0.5 about 50,000 cataloged objects (dual xenon server, plenty of ram, RAID) User folder has 15k users in it, but admin is one of those users. i've factored it way down and a simple search with just 1 Event loaded, like: return context.portal_catalog(Type='Event') is instantaneous for the 'admin' user, but takes about 10 seconds to return 1 SINGLE object. (only 1 Event loaded) imagine the time it takes to search and display 1300 events (which is what's normally in there). ouch. i've rebuilt the indexes, and still no dice. Any help would be greatly appreciated. This symptom probably has to do with the login in the CMF catalog which filters results based on the effective - expiration dates, for anybody without the View inactive content permission. I would guess that your portal_catalog is *not* using a DateRangeIndex to filter such content, but is still using the individual 'effective' and 'expires' indexes. To fix this: - Add a DateRangeIndex, 'effectiveRange', to your portal_catalog; set its start attribute to 'effective' and its stop attribute to 'expires'. - Patch CMFCore/CatalogTool.py using the attached patch file (made against the released 1.3 version). Tres. Index: CMFCore/CatalogTool.py === RCS file: /cvs-repository/CMF/CMFCore/CatalogTool.py,v retrieving revision 1.30.4.6 diff -c -r1.30.4.6 CatalogTool.py *** CMFCore/CatalogTool.py 1 Aug 2002 19:07:55 - 1.30.4.6 --- CMFCore/CatalogTool.py 30 Jan 2004 18:16:37 - *** *** 12,18 ## Basic portal catalog. ! $Id$ import os --- 12,18 ## Basic portal catalog. ! $Id: CatalogTool.py,v 1.30.4.6 2002/08/01 19:07:55 tseaver Exp $ import os *** *** 202,215 if not _checkPermission( CMFCorePermissions.AccessInactivePortalContent, self ): base = aq_base( self ) ! now = DateTime() ! if hasattr( base, 'addIndex' ): # Zope 2.4 and above ! kw[ 'effective' ] = { 'query' : now, 'range' : 'max' } ! kw[ 'expires' ] = { 'query' : now, 'range' : 'min' } ! else: # Zope 2.3 ! kw[ 'effective' ] = kw[ 'expires' ] = now ! kw[ 'effective_usage'] = 'range:max' ! kw[ 'expires_usage' ] = 'range:min' return apply(ZCatalog.searchResults, (self, REQUEST), kw) --- 202,208 if not _checkPermission( CMFCorePermissions.AccessInactivePortalContent, self ): base = aq_base( self ) ! kw[ 'effectiveRange' ] = DateTime() return apply(ZCatalog.searchResults, (self, REQUEST), kw) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Re: ZCatalog fast as admin, dog slow as anonymous and other users
Consider me awaiting my socks to be blown off. 8-) Tres Seaver wrote: Jason Spisak wrote: You are right. I've also got that permission turned off to take advantage of that part of the CMF workflow, which compounds the problem since it's site wide. I'm building the individual DateIndexs now and when that's done, I'll check the performance (for my own edification if nothing else 8-). Then I'll add that DateRange index and patch the CMF and check again. Do you guys want metrics? If so, preferred tool/output method? (although my guess is, you already know how spiffy this makes things 8-) While *I* have a gut feel for what the result should be (using DateIndexes will ease most of your pain; using a DateRange index will blow your socks off), it would be good to confirm that I'm right (or not :) in public. Tres. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Re: ZCatalog fast as admin, dog slow as anonymous and other users
Tres and Seb, Got rid of all the date FieldIndexes and am reindexing the new DateIndexes one at a time from the indexes tab, but I've hit a snag. when I go to reindex 'expires' I get this error immediately: Site error This site encountered an error trying to fulfill your request. The errors were: Error Details Error Type OverflowError Error Value integer multiplication any thoughts on how to get past this? Jason Spisak wrote: You are right. I've also got that permission turned off to take advantage of that part of the CMF workflow, which compounds the problem since it's site wide. I'm building the individual DateIndexs now and when that's done, I'll check the performance (for my own edification if nothing else 8-). Then I'll add that DateRange index and patch the CMF and check again. Do you guys want metrics? If so, preferred tool/output method? (although my guess is, you already know how spiffy this makes things 8-) While *I* have a gut feel for what the result should be (using DateIndexes will ease most of your pain; using a DateRange index will blow your socks off), it would be good to confirm that I'm right (or not :) in public. Tres. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Re: ZCatalog fast as admin, dog slow as anonymous and other users
I didn't see this come through from the list, so I'm doing a quick resend. Tres and Seb, Got rid of all the date FieldIndexes and am reindexing the new DateIndexes one at a time from the indexes tab, but I've hit a snag. when I go to reindex 'expires' I get this error immediately: Site error This site encountered an error trying to fulfill your request. The errors were: Error Details Error Type OverflowError Error Value integer multiplication any thoughts on how to get past this? Jason Spisak wrote: You are right. I've also got that permission turned off to take advantage of that part of the CMF workflow, which compounds the problem since it's site wide. I'm building the individual DateIndexs now and when that's done, I'll check the performance (for my own edification if nothing else 8-). Then I'll add that DateRange index and patch the CMF and check again. Do you guys want metrics? If so, preferred tool/output method? (although my guess is, you already know how spiffy this makes things 8-) While *I* have a gut feel for what the result should be (using DateIndexes will ease most of your pain; using a DateRange index will blow your socks off), it would be good to confirm that I'm right (or not :) in public. Tres. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Re: ZCatalog fast as admin, dog slow as anonymous and other users
Thanks. I'll update the index, since it will eventually be in proper zope anyway, it'll just be a bit ahead it's time 8-) Just to throw another wrench in, when updating the 'start' and 'end' indexes I get this error now that they are DateIndexes: Site error This site encountered an error trying to fulfill your request. The errors were: Error Details Error Type IndexError Error Value string index out of range So I'm guessing something that parses for these dates is blank and it doesn't like that too much. Technically you should never have a blank start or end date, I guess. Tres Seaver wrote: Jason Spisak wrote: Tres and Seb, Got rid of all the date FieldIndexes and am reindexing the new DateIndexes one at a time from the indexes tab, but I've hit a snag. when I go to reindex 'expires' I get this error immediately: Site error This site encountered an error trying to fulfill your request. The errors were: Error Details Error Type OverflowError Error Value integer multiplication Update lib/python/Products/PluginIndexesn/DateIndex/DateIndex.py to the current head of the 2.6 branch, e.g. from: As a quick workaround, you could patch CMFDefault/DublinCore.py:: 8 --- *** CMFDefault/DublinCore.py14 Nov 2002 06:48:20 - 1.19.4.3 --- CMFDefault/DublinCore.py30 Jan 2004 22:22:53 - *** *** 253,259 date = getattr( self, 'creation_date', None ) return date is None and self.__FLOOR_DATE or date ! __CEILING_DATE = DateTime( , 0 ) # never expires security.declarePublic( 'expires' ) def expires( self ): --- 253,259 date = getattr( self, 'creation_date', None ) return date is None and self.__FLOOR_DATE or date ! __CEILING_DATE = DateTime( 2037, 0 ) # never expires security.declarePublic( 'expires' ) def expires( self ): 8 --- The better fix would involve not returning the silly _CEILING_DATE at all, and then telling the index whether to treat 'None' as low or high. Tres. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Re: Tyring to FTP to Zope running behind firewall,
I'll try to get the KDE ftp ioslave to do PASV. We'll see. Otherwise WebDAV seems to be a rather neat way of visually going about things. Thanks for all the help Zopistas! On Wednesday 24 April 2002 7:42 am, you wrote: Make sure you're using FTP in passive mode .. Active FTP vs. Passive FTP, a Definitive Explanation http://www.slacksite.com/other/ftp.html -- Jason Spisak Marketing Director, Lycoris [EMAIL PROTECTED], http://www.lycoris.com Desktop/LX: Familiar. Powerful. Open. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] PHP vs Zope cost benefit
This means that every Update/Insert command make sthe ZODB grow, right? Has anyone had experience with Packing a site with high traffic in a case like this (RDBMS backend)? What happens? On Wednesday 24 April 2002 12:55 pm, Leonardo Rochael Almeida wrote: On Tue, 2002-04-23 at 21:36, Jason Spisak wrote: [...] 5. The transactional nature of Zope (although they didn't believe me when it came to rolling back multiple dbs) impressed them and if it really can mange a rollback from from a DB and transaction safety for inventory,etc...(which I know it can) then its a huge win. Yes, of course it can, IF you use a properly trascationed DB and adapter. Psycopg fits the bill nicely, as do DCOracle2. As for multiple DB rollback, yes, that works as advertised, and is actually really easy to believe if you explain them how it works. Truth is, Two-Phase-Commit was INVENTED (a long time ago, and not in Zope) to make it possible to commit or rollback multiple transactional entities at the same time. Zope is just an implementation of a TPC coordinator (I think, and I hope I got the vocabulary right). In the course of a Zope transaction, any object that is invoked and wants to be notified of the tpc phases registers itself in the transaction machinery. Most of them inherit from Shared.DC.ZRDB.TM.TM. When a transaction is aborted or commited, the Transaction machinery notifies all registered objects. Each registered object then calls the respective actions in their backend drivers or whatever. Cheers, Leo -- Jason Spisak Marketing Director, Lycoris [EMAIL PROTECTED], http://www.lycoris.com Desktop/LX: Familiar. Powerful. Open. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] PHP vs Zope cost benefit
Thanks Leonardo, I was confusing the two. The encapsulation, yes that makes a lot more sense. On Wednesday 24 April 2002 2:44 pm, R. David Murray wrote: On Wed, 24 Apr 2002, Jason Spisak wrote: This means that every Update/Insert command make sthe ZODB grow, right? Has anyone had experience with Packing a site with high traffic in a case like this (RDBMS backend)? What happens? No, and RDBMS update or insert does *not* cause the zodb to grow (unless zodb data is changed at the same time). Perhaps you are confusing current-transaction-rollback and Undo? Zope supports the former with RDBs, but not the latter. That is, once the transaction is *comitted*, it can't be rolled back by Zope. Might be a nice feature to add, though, for databases that support it grin. --RDM -- Jason Spisak Marketing Director, Lycoris [EMAIL PROTECTED], http://www.lycoris.com Desktop/LX: Familiar. Powerful. Open. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] PHP vs Zope cost benefit
You might remember me, I've been a big Zope fan since ZTables, and have recently been asked Why Zope?. The project is commited to PostgreSQL and leaning toward PHP. Here's the project requirements for a softwre company: Hardware Compatability List Software Compatability List Store/ECommerce User tracking and services like Pay for downloads Upgrades if they have a serial number paid up Billing/Invoicing for corporate accounts Inventory tracking CRM/Sales functions They don't see that Zope's built in security machinery would beat something home brewed for what they expect to need it for. Plus the over head of running Zope instances is greater than PHP scripts. What are the arguments for Zope in this context? All my best, -- Jason Spisak Marketing Director, Lycoris [EMAIL PROTECTED], http://www.lycoris.com Desktop/LX: Familiar. Powerful. Open. +1 425 869-2930 voice, +1 425 671-0504 fax ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] PHP vs Zope cost benefit
I am not a PHP guy by any means, but I imagine having to run an extra server (Apache, Postgres vs Apache, Zope, Postgres) means there is another server process to watch, manage, start/restart. You don't have to do those things with PHP scripts. Perhaps someone with experience with a larger PHP implementation under their belt could let us know. On Tuesday 23 April 2002 9:46 am, you wrote: Plus the over head of running Zope instances is greater than PHP scripts. Is this really ture for anything non-trivial? ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) -- Jason Spisak Marketing Director, Lycoris [EMAIL PROTECTED], http://www.lycoris.com Desktop/LX: Familiar. Powerful. Open. +1 425 869-2930 voice, +1 425 671-0504 fax ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] PHP vs Zope cost benefit
I think that's a big part of it. Using something that's already documented that has many features of a 'web app' built in already, vesus scripting those. But there are a lot of prepackaged scripts for Calendars, and database connections, shopping carts, etc... for PHP. So there's got to be more that just the prepackagedness of Zope to chose it over PHP. On Tuesday 23 April 2002 10:47 am, you wrote: I have only minor experience with PHP so this may be ignorant, but isn't programming a web application with PHP scripts more comparable to programming such an application with Python scripts? If PHP scripts are handling HTTP requests directly, that can also be done with pure Python scripts. But if I have to put together a comprehensive web application I'm going to be developing a lot of scripts, unless I use an integretaed, pre-made package of scripts. But then, that is really what Zope is, isn't it? Call me confused, Bill At 10:17 AM 4/23/02 -0700, you wrote: I am not a PHP guy by any means, but I imagine having to run an extra server (Apache, Postgres vs Apache, Zope, Postgres) means there is another server process to watch, manage, start/restart. You don't have to do those things with PHP scripts. Perhaps someone with experience with a larger PHP implementation under their belt could let us know. On Tuesday 23 April 2002 9:46 am, you wrote: Plus the over head of running Zope instances is greater than PHP scripts. Is this really ture for anything non-trivial? -- The commandments of the LORD are right, bringing joy to the heart. The commands of the LORD are clear, giving insight to life . . . For this is the love of God, that we keep His commandments. And His commandments are not burdensome. (Psalm 19:8, 1John 5:3)http://torahteacher.com/torahteacher.com --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.346 / Virus Database: 194 - Release Date: 4/10/02 -- Jason Spisak Marketing Director, Lycoris [EMAIL PROTECTED], http://www.lycoris.com Desktop/LX: Familiar. Powerful. Open. +1 425 869-2930 voice, +1 425 671-0504 fax ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] PHP vs Zope cost benefit
Excellent thinking. I'm guessing that the PyscopyDA handles that type of thing and makes sure that it doesn't get nasty. That's a big win for Zope when dealing with inventory and things like that. Thanks Oliver. On Tuesday 23 April 2002 10:33 am, you wrote: Jason Spisak wrote: You might remember me, I've been a big Zope fan since ZTables, and have recently been asked Why Zope?. The project is commited to PostgreSQL and leaning toward PHP. Here's the project requirements for a softwre company: Hardware Compatability List Software Compatability List Store/ECommerce User tracking and services like Pay for downloads Upgrades if they have a serial number paid up Billing/Invoicing for corporate accounts Inventory tracking CRM/Sales functions They don't see that Zope's built in security machinery would beat something home brewed for what they expect to need it for. Plus the over head of running Zope instances is greater than PHP scripts. What are the arguments for Zope in this context? Transaction Safety? When reading your requirements that was the first thing coming into my mind. I don't know how php does this, so I went to google and found http://www.phpbuilder.com/columns/linuxjournal29.php3 Below is one snippet, notice all the ugly //check for errors and //abort transaction. If someone knows where I misinterpret something or how php solves this, corrections welcome. But wouldn't it be nice if we had an application server which would take care of all this for us? Oh, wait ... ;-) cheers, oliver function cart_new() { //make the database connection handle available global $conn,$customer_id,$feedback; //start a transaction query(BEGIN WORK); //query postgres for the next value in our sequence $res=query(SELECT nextval('seq_customer_id')); //check for errors if (!$res || pg_numrows($res)1) { $feedback .= pg_errormessage($conn); $feedback .= ' Error - Database didn\'t return next value '; query(ROLLBACK); return false; } else { //set that value in a local var $customer_id=pg_result($res,0,0); //register the id with PHP4 session_register('customer_id'); //insert the new customer row $res=query(INSERT INTO customers (customer_id) VALUES ('$customer_id')); //check for errors if (!$res || pg_cmdtuples($res)1) { $feedback .= pg_errormessage($conn); $feedback .= ' Error - couldn\'t insert new customer row '; query(ROLLBACK); return false; } else { //commit this transaction query(COMMIT); return true; } } } -- Jason Spisak Marketing Director, Lycoris [EMAIL PROTECTED], http://www.lycoris.com Desktop/LX: Familiar. Powerful. Open. +1 425 869-2930 voice, +1 425 671-0504 fax ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] PHP vs Zope cost benefit
Curiously, if there are prepackage scripts for both, and there's less to 'mange' with PHP, that's a PHP win. I personally have CalendarTag, ZDataQueryKit and lots of yummy others runing from the downloads page. But since I'm trying to convince PHP people that using Zope is better, they just point to their yummy scripts too. I think Oliver's point about transaction safety is a big win. I might convince them just on that. But I'm still looking for more ammunition. On Tuesday 23 April 2002 11:09 am, you wrote: At 11:01 AM 4/23/02 -0700, you wrote: But there are a lot of prepackaged scripts for Calendars, and database connections, shopping carts, etc... for PHP. So there's got to be more that just the prepackagedness of Zope to chose it over PHP. Yes, that is important. Of course, there are a lot of Products (pre-packaged scripts) available for Zope that do these soft of things. Have you checked the Downloads page (http://www.zope.org/Products)? It is interesting that right now there is a sort-of batteries included topic going on in this list debating the merits of what goes into the core of a Zope release. But whatever ends up in the core, there are many, many good add-ons already out there. Bill -- The commandments of the LORD are right, bringing joy to the heart. The commands of the LORD are clear, giving insight to life . . . For this is the love of God, that we keep His commandments. And His commandments are not burdensome. (Psalm 19:8, 1John 5:3)http://torahteacher.com/torahteacher.com --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.346 / Virus Database: 194 - Release Date: 4/10/02 -- Jason Spisak Marketing Director, Lycoris [EMAIL PROTECTED], http://www.lycoris.com Desktop/LX: Familiar. Powerful. Open. +1 425 869-2930 voice, +1 425 671-0504 fax ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] PHP vs Zope cost benefit
Dirk, Thanks for that. By 'separation' I'm assuming you mean ZPT, correct? I'm new to that, but the virtues seem to be simple edit and save for layout folks. With PHP, you can create forms to publish content. You don't have to give content mamagers PHP. Zope's a win for Designers, for sure. Right now the designers are the coders, so that's more like an 'eventual' win. The database logic can be separated with PHP by just creating some php 'backend stuff' and calling those database functions you've created from the 'presentation' scripts. Just like calling a ZSQL method from a DTML method. As long as you kept the exposed calls the same, you could change Databases. It probably wouldn't be as easy to step to Oracle if they wanted to. You are right about that! ;-) On Tuesday 23 April 2002 11:24 am, you wrote: Hi Jason, what about a mix content-management-system and application-server in one server: - Zope + EasyPublisher you have a special layout. realizing that in php means editing php with html. with zope you can make application logic here and layout (presentation logic) there. you have lots of unique structured content: you can seperate the database logic from html very simple you have no limitations on the underlaying database engine, just remove the db-connector and put a new one in. we currently plan out new intranet with zope. had php content-management as an alternative, but we can't give php to our users. question you should answer to your self: which users have to work with your system in your company ? which user change things in the system ? Jason Spisak schrieb: You might remember me, I've been a big Zope fan since ZTables, and have recently been asked Why Zope?. The project is commited to PostgreSQL and leaning toward PHP. Here's the project requirements for a softwre company: Hardware Compatability List Software Compatability List Store/ECommerce User tracking and services like Pay for downloads Upgrades if they have a serial number paid up Billing/Invoicing for corporate accounts Inventory tracking CRM/Sales functions They don't see that Zope's built in security machinery would beat something home brewed for what they expect to need it for. Plus the over head of running Zope instances is greater than PHP scripts. What are the arguments for Zope in this context? All my best, -- Jason Spisak Marketing Director, Lycoris [EMAIL PROTECTED], http://www.lycoris.com Desktop/LX: Familiar. Powerful. Open. +1 425 869-2930 voice, +1 425 671-0504 fax ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) -- Jason Spisak Marketing Director, Lycoris [EMAIL PROTECTED], http://www.lycoris.com Desktop/LX: Familiar. Powerful. Open. +1 425 869-2930 voice, +1 425 671-0504 fax ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] PHP vs Zope cost benefit
Thanks Lennart, There is OO php now, which they seem to enjoy. ugh The audited security is something I believe is big win. The quickness and efficiency of Zope Corp's (still calling them DC in my head) Zope security patching is outstanding. The community really shines there. With undoable transactions, are transactions that have taken place in the Postgres Database really undo-able by undoing the Zope transaction that made them? For users, they'll be stored in Postgres, so is LoginManager (which uses the venerably weighty ZPatterns) the best way to go, or is exUserFolder sufficient for scaling to largers numbers of users? I'll ask the Jester about that directly is no on has a quick answer. The front end user/roles permissions thing is a bit hard to manage sometimes, honestly. But it's there at least, and not in PHP unless you spend time building it. Would you not get transparent scalability by adding Apache servers to the front end that just have the same PHP scripts? As far as scaling backend Postgres Database, that's the same if you use PHP or Zope. On Tuesday 23 April 2002 11:35 am, you wrote: From: Jason Spisak [EMAIL PROTECTED] I think Oliver's point about transaction safety is a big win. I might convince them just on that. But I'm still looking for more ammunition. Basic things from the top of my head: - Full OO = short development time = cheaper development. - Integrated security = less chances of unsecure scripts. - Transactational security. - Undoable transactions. - Integrated user management. - Transparent scalability. - Integrated rights/permission management. ( No, it's true that they probably do not need better permission management than they can build with PHP. But with Zope you don't have to build it at all. It's alredy there.) These are the things you get for free with Zope that you don't get with PHP. I have also probably missed out on several. -- Jason Spisak Marketing Director, Lycoris [EMAIL PROTECTED], http://www.lycoris.com Desktop/LX: Familiar. Powerful. Open. +1 425 869-2930 voice, +1 425 671-0504 fax ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] PHP vs Zope cost benefit
Dirk, One more quick question about application/business logic in one place and layout in another. Looking at ZPT, I still see expressions and condition statements in the Templates themselves. That's not really separation, it's just making it work with HTML editing tools. I'm curious is anyone can explain the true separation of business logic and presentation a bit better that exists with Zope now. I've built quite a few DTML heavy apps, and that separation wasn't there. On Tuesday 23 April 2002 11:24 am, you wrote: Hi Jason, what about a mix content-management-system and application-server in one server: - Zope + EasyPublisher you have a special layout. realizing that in php means editing php with html. with zope you can make application logic here and layout (presentation logic) there. you have lots of unique structured content: you can seperate the database logic from html very simple you have no limitations on the underlaying database engine, just remove the db-connector and put a new one in. we currently plan out new intranet with zope. had php content-management as an alternative, but we can't give php to our users. question you should answer to your self: which users have to work with your system in your company ? which user change things in the system ? Jason Spisak schrieb: You might remember me, I've been a big Zope fan since ZTables, and have recently been asked Why Zope?. The project is commited to PostgreSQL and leaning toward PHP. Here's the project requirements for a softwre company: Hardware Compatability List Software Compatability List Store/ECommerce User tracking and services like Pay for downloads Upgrades if they have a serial number paid up Billing/Invoicing for corporate accounts Inventory tracking CRM/Sales functions They don't see that Zope's built in security machinery would beat something home brewed for what they expect to need it for. Plus the over head of running Zope instances is greater than PHP scripts. What are the arguments for Zope in this context? All my best, -- Jason Spisak Marketing Director, Lycoris [EMAIL PROTECTED], http://www.lycoris.com Desktop/LX: Familiar. Powerful. Open. +1 425 869-2930 voice, +1 425 671-0504 fax ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) -- Jason Spisak Marketing Director, Lycoris [EMAIL PROTECTED], http://www.lycoris.com Desktop/LX: Familiar. Powerful. Open. +1 425 869-2930 voice, +1 425 671-0504 fax ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] PHP vs Zope cost benefit
To everyone who replied to this thread, I give a hearty congratulatory Thank you. They have decided to allow me to mock up the app in Zope and prove it's worthiness. I'm already halfway done with the first 2 modules. ;-) To recap what turned the tides were these wins: 1. Zope's security model is far more scalable and flexible than anything home brewed in PHP. 2. The scurity model is also audited by any, many people and tested and in production all over the place. ;-) 3. The ease of management for non-technical users to create and edit content was a big win since that interface is already created and ready to use in many cases. 4. The built in separation of db connectivity/transparancy is much better than taking the time to design that properly from scratch, or using connectivity tools that then needed to be 'connected' to the app in a safe and transparant way. 5. The transactional nature of Zope (although they didn't believe me when it came to rolling back multiple dbs) impressed them and if it really can mange a rollback from from a DB and transaction safety for inventory,etc...(which I know it can) then its a huge win. Thanks again to all who responded and put on their thinking caps to help be start another project using my favorite web app of all time. Thanks, Zopistas! On Tuesday 23 April 2002 11:01 am, you wrote: I think that's a big part of it. Using something that's already documented that has many features of a 'web app' built in already, vesus scripting those. But there are a lot of prepackaged scripts for Calendars, and database connections, shopping carts, etc... for PHP. So there's got to be more that just the prepackagedness of Zope to chose it over PHP. On Tuesday 23 April 2002 10:47 am, you wrote: I have only minor experience with PHP so this may be ignorant, but isn't programming a web application with PHP scripts more comparable to programming such an application with Python scripts? If PHP scripts are handling HTTP requests directly, that can also be done with pure Python scripts. But if I have to put together a comprehensive web application I'm going to be developing a lot of scripts, unless I use an integretaed, pre-made package of scripts. But then, that is really what Zope is, isn't it? Call me confused, Bill At 10:17 AM 4/23/02 -0700, you wrote: I am not a PHP guy by any means, but I imagine having to run an extra server (Apache, Postgres vs Apache, Zope, Postgres) means there is another server process to watch, manage, start/restart. You don't have to do those things with PHP scripts. Perhaps someone with experience with a larger PHP implementation under their belt could let us know. On Tuesday 23 April 2002 9:46 am, you wrote: Plus the over head of running Zope instances is greater than PHP scripts. Is this really ture for anything non-trivial? -- The commandments of the LORD are right, bringing joy to the heart. The commands of the LORD are clear, giving insight to life . . . For this is the love of God, that we keep His commandments. And His commandments are not burdensome. (Psalm 19:8, 1John 5:3)http://torahteacher.com/torahteacher.com --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.346 / Virus Database: 194 - Release Date: 4/10/02 -- Jason Spisak Marketing Director, Lycoris [EMAIL PROTECTED], http://www.lycoris.com Desktop/LX: Familiar. Powerful. Open. +1 425 869-2930 voice, +1 425 671-0504 fax ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Tyring to FTP to Zope running behind firewall, get login box but no directory listing
It would appear that their FTP implementation is not working correctly, when connecting to a Zope FTP system behind a firewall. Zope is running on port 8880 and ftp service works fine from inside the firewall on port 8821. From outside the firewall, I get a login prompt, enter my password, but then the directory listing never materializes. Since I get the login prompt, it's not a firewall packet issue. Is this a known issue? If anyone knows of any quick fixes for this, I'm wide open for ideas. -- Jason Spisak Marketing Director, Lycoris [EMAIL PROTECTED], http://www.lycoris.com Desktop/LX: Familiar. Powerful. Open. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: Spitter.c Hack
Tres: Okay, I uploaded it to my member folder. http://www.zope.org/Members/jspisak/Splitter/ I wasn't usinga sandbox for this, I just downloaded the source for 2.2.4 Here's the diff -u though: --- Zope-2.2.4-src/lib/python/SearchIndex/Splitter.cThu Jan 4 10:41:15 2001 +++ Zope-2.2.4-src/lib/python/SearchIndex/Splitter_Old.cFri Jan 5 17:29:43 2001 @@ -169,24 +169,8 @@ len = PyString_Size(word) - 1; len = PyString_Size(word); -/*if(len 2) Single-letter words are stop words! -{ - Py_INCREF(Py_None); - return Py_None; -} */ - -/* - Test whether a word has any letters. */ for (; --len = 0 ! isalpha((unsigned char)cword[len]); ); -/*if (len 0) -{ -Py_INCREF(Py_None); -return Py_None; -} - - * If no letters, treat it as a stop word. - */ Py_INCREF(word); Let me know what else I can do. Did you see my other mails regarding stats? From: "Jason Spisak" [EMAIL PROTECTED] wrote: Zopists, I finally got Splitter.c to let me index numbers and 'C++' in a TextIndex. I have about 50,000 objects in that index, and search performance is nearly instantaneous still. I am running on a big machine though. If anyone wants those changes there's really easy. Just mail me directly, since it's a long file to post. Can you post a patch, or upload it to your Zope.org member folder and post the link? cvs -q diff -u lib/python/SearchIndex/Splitter.c would do it, if you were working in a CVS sandbox for Zope. Tres. -- === Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org All my best, Jason Spisak CIO __ ___ ____ / // (_)_/_ __/__ / / ___ ___ __ _ / _ / / __/ -_) / / -_) __/ _ \(_-_/ __/ _ \/ ' \ /_//_/_/_/ \__/_/ \__/\__/_//_/___(_)__/\___/_/_/_/ 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Re: Spitter.c Hack
Zopists, I finally got Splitter.c to let me index numbers and 'C++' in a TextIndex. I have about 50,000 objects in that index, and search performance is nearly instantaneous still. I am running on a big machine though. If anyone wants those changes there's really easy. Just mail me directly, since it's a long file to post. All my best, Jason Spisak ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: Spitter.c Hack
Casey Duncan: It truely is nothing more than cutting out the two parts that eliminate single letter words and numbers: *** Zope-2.2.4-src/lib/python/SearchIndex/Splitter.c --- Zope-2.2.4-src/lib/python/SearchIndex/Splitter_Old.c *** *** 169,192 len = PyString_Size(word) - 1; len = PyString_Size(word); - /*if(len 2) Single-letter words are stop words! - { - Py_INCREF(Py_None); - return Py_None; - } */ - - /* - Test whether a word has any letters. */ for (; --len = 0 ! isalpha((unsigned char)cword[len]); ); - /*if (len 0) - { - Py_INCREF(Py_None); - return Py_None; - } - - * If no letters, treat it as a stop word. - */ Py_INCREF(word); --- 169,176 All my best, Jason Spisak CIO __ ___ ____ / // (_)_/_ __/__ / / ___ ___ __ _ / _ / / __/ -_) / / -_) __/ _ \(_-_/ __/ _ \/ ' \ /_//_/_/_/ \__/_/ \__/\__/_//_/___(_)__/\___/_/_/_/ 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: Spitter.c Hack
Erik, [Jason Spisak] | I am running on a big machine though. If anyone wants those changes | there's really easy. Just mail me directly, since it's a long file | to post. Hi. I would be interested in the file :-). Okay, here's the diff. It truely is nothing more than cutting out the two parts that eliminate single letter words and numbers: *** Zope-2.2.4-src/lib/python/SearchIndex/Splitter.c --- Zope-2.2.4-src/lib/python/SearchIndex/Splitter_Old.c *** *** 169,192 len = PyString_Size(word) - 1; len = PyString_Size(word); - /*if(len 2) Single-letter words are stop words! - { - Py_INCREF(Py_None); - return Py_None; - } */ - - /* - Test whether a word has any letters. */ for (; --len = 0 ! isalpha((unsigned char)cword[len]); ); - /*if (len 0) - { - Py_INCREF(Py_None); - return Py_None; - } - - * If no letters, treat it as a stop word. - */ Py_INCREF(word); --- 169,176 Would you also be willing to share some statistics on how many objects you have in how many indexes, and how much time "complex" searches take? I do understand if this is not possible, but it'd be appetiated if it was possible. :-) Thanks. Well, here's the some output of the "Status" tab in the Catalog. Subtransactions are Disabled Subtransactions - Index Status * 48205 object are indexed in bobobase_modification_time * 48205 object are indexed in calendar_date * 48205 object are indexed in calendar_day * 48205 object are indexed in call_date * 48205 object are indexed in curators * 48205 object are indexed in data * 48205 object are indexed in id * 48205 object are indexed in meta_type * 48205 object are indexed in resume_in * 48205 object are indexed in status * 48205 object are indexed in users_calendar The only TextIndex is the 'data' index though. It is the one that gets hammered. Let's see...time stats...hmmm I put a REQUEST.set with the ZopeTime at the top of the search page and at the bottom after the 'in' tag for the Catalog. Search terms are: los and angeles and C++ and MFC and 310 Subtracting the float of the two times I get 1.85400104523 I'm not sure what that comes out to, I think it's part of a day though because of DateTime. The server stats: Dual Intel 400mhz Xenon w/ 1MB cache each LVD RAID 5 7200 RPM disk array 1GB RAM RedHat Linux 6.1 with some kernel updates... And the best piece of open source software I know: Zope 2.2.4 binary release Hope that helps. All my best, Jason Spisak CIO __ ___ ____ / // (_)_/_ __/__ / / ___ ___ __ _ / _ / / __/ -_) / / -_) __/ _ \(_-_/ __/ _ \/ ' \ /_//_/_/_/ \__/_/ \__/\__/_//_/___(_)__/\___/_/_/_/ 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Hacking Splitter.c
Hello, I have been hard at work implementing version 2.0 of our Zope based CRM software. I need a bit of help figuring out Splitter.c (lib/python/SearchIndex/Splitter.c) I have commented out both the parts that don't index numbers and single letter words. The numbers seem to be indexing fine, but the single letter words are not. :( My goal is to be able to find 'C' and 'C++' in a TextIndex search. Can anyone tell me why '+' doesn't get indexed, and where to change that? 'C' isn't in the Lexicon stop words, and neither is the '+'. Thanks in advance. All my best, Jason Spisak CIO __ ___ ____ / // (_)_/_ __/__ / / ___ ___ __ _ / _ / / __/ -_) / / -_) __/ _ \(_-_/ __/ _ \/ ' \ /_//_/_/_/ \__/_/ \__/\__/_//_/___(_)__/\___/_/_/_/ 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] ZCatalog very unhappy
Whew! I thought something was trashed. Thanks for your prompt replies guys! All my best, Christopher Petrilli writes: Jason, This was accidentally uncommented in the 2.2.4 release, you can ignore it, or comment out the message line in UnIndex.py. It's innocuous. Chris -- | Christopher Petrilli | [EMAIL PROTECTED] - Original Message - From: "Jason Spisak" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 19, 2000 7:39 PM Subject: [Zope-dev] ZCatalog very unhappy Help! Using the Catalog in 2.2.4 2000-12-20T00:59:58 ERROR(200) UnIndex unindex_object tried to retrieve set None from index 51346800 but couldn't. This should not happen. -- 2000-12-20T01:00:00 ERROR(200) UnIndex unindex_object tried to retrieve set None from index but couldn't. This should not happen. -- 2000-12-20T01:00:10 ERROR(200) UnIndex unindex_object tried to retrieve set None from index 942134400 but couldn't. This should not happen. -- 2000-12-20T01:01:48 ERROR(200) UnIndex unindex_object tried to retrieve set None from index 51346800 but couldn't. This should not happen. -- 2000-12-20T01:01:50 ERROR(200) UnIndex unindex_object tried to retrieve set None from index but couldn't. This should not happen. -- 2000-12-20T01:02:21 ERROR(200) UnIndex unindex_object tried to retrieve set None from index 93807 but couldn't. This should not happen. -- 2000-12-20T01:02:37 ERROR(200) UnIndex unindex_object tried to retrieve set None from index 938761200 but couldn't. This should not happen. -- 2000-12-20T01:03:08 ERROR(200) UnIndex unindex_object tried to retrieve set None from index 938588400 but couldn't. This should not happen. -- 2000-12-20T01:04:57 ERROR(200) UnIndex unindex_object tried to retrieve set None from index 937551600 but couldn't. This should not happen. -- 2000-12-20T01:04:57 ERROR(200) UnIndex unindex_object tried to retrieve set None from index 937897200 but couldn't. This should not happen. -- 2000-12-20T01:06:03 ERROR(200) UnIndex unindex_object tried to retrieve set None from index 938415600 but couldn't. This should not happen. -- 2000-12-20T01:06:33 ERROR(200) UnIndex unindex_object tried to retrieve set None from index 938502000 but couldn't. This should not happen. -- 2000-12-20T01:09:19 ERROR(200) UnIndex unindex_object tried to retrieve set None from index 93375 but couldn't. This should not happen. -- 2000-12-20T01:09:22 ERROR(200) UnIndex unindex_object tried to retrieve set None from index 938674800 but couldn't. This should not happen. -- 2000-12-20T01:12:44 ERROR(200) UnIndex unindex_object tried to retrieve set None from index 937465200 but couldn't. This should not happen. Jason Spisak CIO __ ___ ____ / // (_)_/_ __/__ / / ___ ___ __ _ / _ / / __/ -_) / / -_) __/ _ \(_-_/ __/ _ \/ ' \ /_//_/_/_/ \__/_/ \__/\__/_//_/___(_)__/\___/_/_/_/ 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) Jason Spisak CIO __ ___ ____ / // (_)_/_ __/__ / / ___ ___ __ _ / _ / / __/ -_) / / -_) __/ _ \(_-_/ __/ _ \/ ' \ /_//_/_/_/ \__/_/ \__/\__/_//_/___(_)__/\___/_/_/_/ 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] ZCatalog very unhappy
Chris: You mean the -D in z2.py, right? Jason, That logging is probably slowing things down too... shut it off to see if you can get a performance increase. - Original Message - From: "Jason Spisak" [EMAIL PROTECTED] To: "Christopher Petrilli" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, December 20, 2000 9:27 AM Subject: Re: [Zope-dev] ZCatalog very unhappy Whew! I thought something was trashed. Thanks for your prompt replies guys! All my best, Christopher Petrilli writes: Jason, This was accidentally uncommented in the 2.2.4 release, you can ignore it, or comment out the message line in UnIndex.py. It's innocuous. Chris -- | Christopher Petrilli | [EMAIL PROTECTED] - Original Message ----- From: "Jason Spisak" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 19, 2000 7:39 PM Subject: [Zope-dev] ZCatalog very unhappy Help! Using the Catalog in 2.2.4 2000-12-20T00:59:58 ERROR(200) UnIndex unindex_object tried to retrieve set None from index 51346800 but couldn't. This should not happen. -- 2000-12-20T01:00:00 ERROR(200) UnIndex unindex_object tried to retrieve set None from index but couldn't. This should not happen. -- 2000-12-20T01:00:10 ERROR(200) UnIndex unindex_object tried to retrieve set None from index 942134400 but couldn't. This should not happen. -- 2000-12-20T01:01:48 ERROR(200) UnIndex unindex_object tried to retrieve set None from index 51346800 but couldn't. This should not happen. -- 2000-12-20T01:01:50 ERROR(200) UnIndex unindex_object tried to retrieve set None from index but couldn't. This should not happen. -- 2000-12-20T01:02:21 ERROR(200) UnIndex unindex_object tried to retrieve set None from index 93807 but couldn't. This should not happen. -- 2000-12-20T01:02:37 ERROR(200) UnIndex unindex_object tried to retrieve set None from index 938761200 but couldn't. This should not happen. -- 2000-12-20T01:03:08 ERROR(200) UnIndex unindex_object tried to retrieve set None from index 938588400 but couldn't. This should not happen. -- 2000-12-20T01:04:57 ERROR(200) UnIndex unindex_object tried to retrieve set None from index 937551600 but couldn't. This should not happen. -- 2000-12-20T01:04:57 ERROR(200) UnIndex unindex_object tried to retrieve set None from index 937897200 but couldn't. This should not happen. -- 2000-12-20T01:06:03 ERROR(200) UnIndex unindex_object tried to retrieve set None from index 938415600 but couldn't. This should not happen. -- 2000-12-20T01:06:33 ERROR(200) UnIndex unindex_object tried to retrieve set None from index 938502000 but couldn't. This should not happen. -- 2000-12-20T01:09:19 ERROR(200) UnIndex unindex_object tried to retrieve set None from index 93375 but couldn't. This should not happen. -- 2000-12-20T01:09:22 ERROR(200) UnIndex unindex_object tried to retrieve set None from index 938674800 but couldn't. This should not happen. -- 2000-12-20T01:12:44 ERROR(200) UnIndex unindex_object tried to retrieve set None from index 937465200 but couldn't. This should not happen. Jason Spisak CIO __ ___ ____ / // (_)_/_ __/__ / / ___ ___ __ _ / _ / / __/ -_) / / -_) __/ _ \(_-_/ __/ _ \/ ' \ /_//_/_/_/ \__/_/ \__/\__/_//_/___(_)__/\___/_/_/_/ 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Performance enhancements, ZCatalog
ZCatalog enthusiasts, I just upgraded our zope installation from 2.1.6 to 2.2.4, and the ZCatalog performance is aweful. Can someone remind me what the command for speeding up python on a dual processor machine is? python -T? I'm looking for any way to speed this up. I have a text index with 47,000 objects and a search takes about 15-18 seconds, hardly what we were used to. It used to be 2 second tops. My company is being shopped around and if we get bought I want to convince the new company that Zope and python and Linux are the way to go. I need all the help I can get. All my best, Jason Spisak CIO __ ___ ____ / // (_)_/_ __/__ / / ___ ___ __ _ / _ / / __/ -_) / / -_) __/ _ \(_-_/ __/ _ \/ ' \ /_//_/_/_/ \__/_/ \__/\__/_//_/___(_)__/\___/_/_/_/ 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Moving ZClass app to 2.2.2
Zopists, When I start up Zope with my .zexp of my ZClass based product from 2.0 I get this message. 2000-10-27T23:36:46 ERROR(200) Zope Couldn't install Staff Traceback (innermost last): File /home/jason/Zope-2.2.0/lib/python/OFS/Application.py, line 478, in install_products (Object: ApplicationDefaultPermissions) (Info: Staff) File /home/jason/Zope-2.2.0/lib/python/App/Product.py, line 435, in initializeProduct (Object: Products.Staff) File /home/jason/Zope-2.2.0/lib/python/ZODB/ExportImport.py, line 208, in importFile SystemError: Failed to import class _ZClass_for_CatalogAware from module Products.ZCatalog Everything works, I can get my data in and out. Only I get some strange behavior from the CatalogAware zclasses (they don't pay attention to the "sort" attribute of searches for example) Is there anything I can do to make the move to 2.2.2 100%? Put a phantom class in the ZCatalog folder? All my best, Jason Spisak ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Migrating from ZClasses to Python Products
Toby Dickenson: Thanks for the advice. I have looked at that before, and having a hybrid ZClass/Python product seemed to place a lot of design considerations heavily in the python base class. I've looked _holdOntoYourButts before as well. Thanks again, On Tue, 24 Oct 2000 20:16:30 GMT, "Jason Spisak" [EMAIL PROTECTED] wrote: I am trying to address shortcomings like not having a "dictionary" type property in Zope properties, etc. Aha! in that case you dont really need to convert from ZClass to python class; you only need to modify your existing ZClass so that it has an extra python base class. * No need to trawl through your database to convert each instance * No need to rewrite the bits that work well as a ZClass You can do this using the method _setBasesHoldOnToYourButts defined in ZClass.py, and you may be able to find some instructions in the list archives. (Its often safer to create a special python base class for each new ZClass, even if that class is empty, just in case) Toby Dickenson [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) Jason Spisak ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Migrating from ZClasses to Python Products
Ender writes: Point taken. Jason Spisak wrote: Ender writes: Jason Spisak wrote: The only problem I am dealing with is size. What kind of a transaction will that be? Huge, no doubt. I would run out of space to buffer it. Does Zope do subtransactions now, or is that still just the ZCatalog? zope has done subtransactions for a while, i'm not sure if this predates zcatalog or not ( i assume'd it does). just call get_transaction.commit(1) to save work. and call get_tranaction.commit() when you're done. i'm in the process of writing an advanced transaction how-to which will hopefully give some more enlightenment on this process, but i've been busy with work so i don't expect to have it public for another week. Also, I am running on stock RH6.2 linux and to double my ZODB puts me near the 2 gig file limit. Not as much of a concern as a pain in my neck. Is it faster to modify my installation to allow 2GB or create from xml/export? you could create the python product instances in a mounted db. I looked into this. The webpage is very exclamitory about it's volitility, and yet Zope.org uses it. Worth a shot. do make a backup, i hosed something in my zodb using it. kapil Jason Spisak ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Migrating from ZClasses to Python Products
And now the big question... How do you migrate and existing application from ZClasses to Python products? I've got about 50,000 objects. Can it be done or am I stuck with ZClasses? Hopefully, Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Migrating from ZClasses to Python Products
Andy McKay writes: Cool Project... That means I'm screwed. :) And now the big question... How do you migrate and existing application from ZClasses to Python products? I've got about 50,000 objects. Can it be done or am I stuck with ZClasses? Well the number of objects doesnt really matter, but migrating it from ZClass to Python - Ive never heard of that happening. It would be a cool project though. Hopefully, Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Recursive Folders
Zopsters, The line folder = Folder() was suposed to be folder = Folder.Folder() Thanks again! All my best, Jason Spisak [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Recursive folders from Python
Zopists, Yesterday I was trying to create recursive folders from DTML. I'd like to do the same from Python. 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): folder= self.manage_addFolder(str(digit), str(digit)) subfolder = self.folder.manage_addFolder(str(digit), str(digit)) All my best, Jason Spisak [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope] Need help with date comparisons
Jonathan: You can try: dtml-in "['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']" dtml-if "event_date.Month() == _['sequence-item']" dtml-var event_date /dtml-if /dtml-in The source for DateTime() is pretty easy to follow. You can look for you format's there. All my best, Hi all again. I have a blank in my mind where I hoped the answer might be to this probably straightforward exercise. I have a zclass containing a date property called event_date. I want a page that loops through the months of the year, starting with the current month, and in each loop displays all the instances from the catalog with an event_date within the month in question. I just get stuck, completely stuck, trying to get the month value from the event_date and to compare it with the current month value. Anyone done this or something like this? Is this hard or am I a bit, you know, dense? thanks Jonathan ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev ) Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Creating Recursive Folders
Dieter: Perhaps you misunderstood me. THis is an example of how convuluted DTML can get, but if you have an example of how to do it clearly, I'd love to see it. Jason Spisak writes: dtml-in expr="_.range(0, 10)" dtml-call "_.getitem(_.str(a), 1)._.getitem(_.str(a), 1).manage_addFolder(_.str(_['sequence-item']), _.str(_['sequence-item']))" Throws an unathorized no matter who I am. How can I get 3 levels of recursion. I tried using 'let' to stand for the object, with no luck. That's the just penalty for writing weird code ;-) Actually, that's the penalty for using DTML. There's a difference. When you would introduce names for destination folder and id, you could use the same pattern for *all* levels. I don't understand what you are getting at here. You and other persons would understand what you do and you would not accidentally use the attribute "_". I personally, don't like using the "_" attribute at all. But in situation like this, I don't see another way. Please enlighten me. Jason Spisak [EMAIL PROTECTED] ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope-dev] Programatically trying to create recursive folders
Zopists, In orderto get around the confliting writes issues I am experiencing, I would like to create recrusive folders like, /0/1, /0/2, etc., so that my objects will be in many different folders. I am trying to get DTML to create these pre-set drop folders automatically, but am unable to do so. The following code throws an id already in use error, because the 'with' tag is not letting the newly created object's namespace be used for the creation of the second folder. dtml-in expr="_.range(0, 2)" dtml-with "manage_addFolder(_.str(_['sequence-item']), _.str(_['sequence-item']))" dtml-in expr="_.range(0, 2)" dtml-call "manage_addFolder(_.str(_['sequence-item']), _.str(_['sequence-item']))" /dtml-in /dtml-with /dtml-in Any ideas? All my best, Jason Spisak [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope] Creating Recursive Folders
Zopists, I am trying to use DTML to create folders within folders for me 3 levels deep. Two levels works, but 3 won't. For example: This works: dtml-in expr="_.range(0, 10)" dtml-let a=sequence-item dtml-call "manage_addFolder(_.str(a), _.str(a))" dtml-in expr="_.range(0, 10)" dtml-let b=sequence-item dtml-call "_.getitem(_.str(a), 1).manage_addFolder(_.str(b), _.str(b))" /dtml-let /dtml-in /dtml-let /dtml-in But this: dtml-in expr="_.range(0, 10)" dtml-let a=sequence-item dtml-call "manage_addFolder(_.str(a), _.str(a))" dtml-in expr="_.range(0, 10)" dtml-let b=sequence-item dtml-call "_.getitem(_.str(a), 1).manage_addFolder(_.str(b), _.str(b))" dtml-in expr="_.range(0, 10)" dtml-call "_.getitem(_.str(a), 1)._.getitem(_.str(a), 1).manage_addFolder(_.str(_['sequence-item']), _.str(_['sequence-item']))" /dtml-in /dtml-let /dtml-in /dtml-let /dtml-in Throws an unathorized no matter who I am. How can I get 3 levels of recursion. I tried using 'let' to stand for the object, with no luck. BTW, I accidently sent the last post to dev, forgive me. All my best, Jason Spisak [EMAIL PROTECTED] ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Competing writes and reindexing objects
Zopists, I am trying to eliminate the competing writes that are plaguing my app at the moment. One way I know of is to make sure that people aren't creating/modifying objects in the same folder at the same time. This is becuase the parent object gets modified too. Does anyone have a "object creation/folder distribution" code that works for them that they would be willing to share? Lastly, even if I distribute my objects, doesn't reindexing any Zope object inthe Catalog at the same time create a conlict? I'd love to know if I'm fighting a losing battle here. All my best, Jason Spisak [EMAIL PROTECTED] ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Catalog and Proximity searches
Zopsters, Does anyone know if the Catalog is supposed to do proximity searches, ie: "visual basic" would return the phrase. Thanks, Jason Spisak [EMAIL PROTECTED] ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Fighting htmllib in external method
Howdy Zopsters, I want to catalog some html files but I want to strip the html tags out. htmlparser does a good job of that, but when I try to acces that from an external method, I run into trouble. import htmllib import formatter def index(self, html): fmtr = formatter.AbstractFormatter(formatter.DumbWriter(file)) p = htmllib.HTMLParser(fmtr) return p.feed(html) Since the DumbWriter uses stdout, this returns None. When I try to write to a temporary file, or pipe I get 'bad file descriptor' errors because of the way external method function I guess. Any help would really be appreciated. All my best, Jason Spisak [EMAIL PROTECTED] ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Disadvantages of using DTML
Zopists, Can anyone tell me off hand any big disadvantages to not using DTML (Caching, etc...) and using a package like HyperText http://dustman.net/andy/python/HyperText to produce html display for your objects, and use python to process it? Jason Spisak [EMAIL PROTECTED] ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Fighting htmllib in external method
Howdy Zopsters, I want to catalog some html files but I want to strip the html tags out. htmlparser does a good job of that, but when I try to acces that from an external method, I run into trouble. import htmllib import formatter def index(self, html): fmtr = formatter.AbstractFormatter(formatter.DumbWriter(file)) p = htmllib.HTMLParser(fmtr) return p.feed(html) Since the DumbWriter uses stdout, this returns None. When I try to write to a temporary file, or pipe I get 'bad file descriptor' errors because of the way external method function I guess. Any help would really be appreciated. All my best, Jason Spisak [EMAIL PROTECTED] ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Fighting htmllib in external method
Jonothan Farr, Thanks very much! I am new to Python. I coded my first Zope app in entirely DTML, so now I'm moving deeper. That's a handy thing to have. All my best, Jason Spisak [EMAIL PROTECTED] Try using a StringIO object as your file. import htmllib import formatter from cStringIO import StringIO def index(self, html): file = StringIO() fmtr = formatter.AbstractFormatter(formatter.DumbWriter(file)) p = htmllib.HTMLParser(fmtr) p.feed(html) file.seek(0) return file.read() - Original Message - From: "Jason Spisak" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 10, 2000 2:47 AM Subject: [Zope] Fighting htmllib in external method Howdy Zopsters, I want to catalog some html files but I want to strip the html tags out. htmlparser does a good job of that, but when I try to acces that from an external method, I run into trouble. import htmllib import formatter def index(self, html): fmtr = formatter.AbstractFormatter(formatter.DumbWriter(file)) p = htmllib.HTMLParser(fmtr) return p.feed(html) Since the DumbWriter uses stdout, this returns None. When I try to write to a temporary file, or pipe I get 'bad file descriptor' errors because of the way external method function I guess. Any help would really be appreciated. All my best, Jason Spisak [EMAIL PROTECTED] ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev ) ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev ) ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Disadvantages of using DTML (fwd)
Andy, I am actually just starting working with it. As long as I can have help futzing with the aq_parent stuff to get it to work, I'll be using it in my intranet app. My real desire is to find a way to construct these type of html objects from html. Like a poor man's HyperDOM. :) Cool, do I see a Zope product coming up? - Original Message - From: "Jason Spisak" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED] Sent: Tuesday, October 10, 2000 5:13 AM Subject: Re: [Zope] Disadvantages of using DTML Andy: Actually, I have been playing with it. What it does is create HTML, XHTML, XML from python objects like so: p = TABLE(bgcolor="#0", border="0", cellpadding="1", TR( TD('my stuff goes here'))) print p TABLE bgcolor="#0" border="0" cellpadding="1" TR TDmy stuff goes here/TD/TR/TABLE So I just create bit and pieces that get called to form a UI. Aquisition works too. I have a property in a containing folder, that I called as the bgcolor of the table and it worked fine. All my best, The docs I quickly looked at suggested it just parsed XHTML into HTML, nothing more. It would be interesting useful if it did do so much more... Im assuming there would be a little bit of Zope integration to do... - Original Message - From: "Jason Spisak" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED] Sent: Tuesday, October 10, 2000 4:22 AM Subject: Re: [Zope] Disadvantages of using DTML Andy: Since it would be python, can you not call objects, run python, and lots of stuff? ;) You lose out on all the wondeful help you get from this mailing list :) But seriously this is a html generator... dtml is a great deal more than just a html formatter, it can call objects, run python and lots of stuff. - Original Message - From: "Jason Spisak" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 10, 2000 2:43 AM Subject: [Zope] Disadvantages of using DTML Zopists, Can anyone tell me off hand any big disadvantages to not using DTML (Caching, etc...) and using a package like HyperText http://dustman.net/andy/python/HyperText to produce html display for your objects, and use python to process it? Jason Spisak [EMAIL PROTECTED] ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev ) All my best, Jason Spisak Jason Spisak Jason Spisak [EMAIL PROTECTED] ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Fighting htmllib in external method
Dieter: Thanks Dieter. Jason Spisak writes: I want to catalog some html files but I want to strip the html tags out. htmlparser does a good job of that, but when I try to acces that from an external method, I run into trouble. You may look at URL:http://www.dieter.handshake.de/pyprojects/zope/CatalogSupport.html It does the same as you want to do, but without the "formatter". Alternatively, you may try a "StringIO" instance as a file object. That's what I ended up doing. Finally, I can use files in external methods. You should, however, be careful as several threads can execute the same external method concurrently. Therefore, your files are better not global. That's what I was thinking. I'll stay away from a named file. All my best, Jason Spisak ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope-dev] Back from the dead xmlc
Zope Devers, THis is going to seem strange coming from someone who hasn't been on the list in a long time, but I was at the Linux Expo in San Jose, and sat in on a Web app talk. Lutris was in charge of the panel, and they talked about xmlc. I went to their booth and asked about it. I think it could be the best way to get hard-core python people to jump on zope's band-wagon, and stop the dtml frowning. If you who are in the know about zope have time, please read a quick bit on what it is. http://xmlc.enhydra.org Especially the tutorial: http://staff.plugged.net.au/dwood/xmlc/index.html Is there any obvious reason why Zope wouldn't benefit tremendously from this design and programming separation and pure python boost? All my best, Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope] Packing with cron
Andy Dawkins writes: Thanks you for your prompt reply. I knew someone had to have a solution. Would you be willing to send me the script? Better yet, put it up as content on the Zope.org site. I have a feeling a list of solutions to this would help the community. All my best, I have a python script which uses XMLRPC to call an External Method that packs the database. Not ideal, but it does allow me to pack the database a) From Zope b) From the command line c) Whilst the server is running d) During very large imports which make ZCatalog Explode (I wish CatalogAware supported Sub Transactions) -Andy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jason Spisak Sent: 03 August 2000 16:37 To: [EMAIL PROTECTED] Subject: [Zope] Packing with cron Zopists, I am attemtping to use cron to pack my ZODB. I am using lalo's cron how-to and lynx. However when I visit http://myhost:8080/Control_Panel/Database/manage_pack nothing happens. Here is the command I am using in Zope 2.1.6: lynx -auth superuser:superuserpasswd -source http://myhost:8080/Control_Panel/Database/manage_pack Is there anything obviously skewed about this? Has anyone else tried it with success? Thanks in advance, Jason Spisak ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev ) Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Packing with cron
Andy Dawkins writes: Thank you Andy. That was generous. Have you ever used this from cron? Just so I know before I try it. All my best, Jason I'm not sure if it is worthy of putting up on Zope. Although I'm sure people will correct me if I am wrong. But I have no problems in letting you have it packDb.py is the main python script. You will need to change the line that reads s=xmlrpclib.Server('http://myserver:8080/', transport=None, username='username', password='password') To reflect your correct server details. xmlrpclib.py xmlrpc Library for python. Place this in your python/libs directory, or the same directory as packDb.py packExtension.py This contains the code for the external Method. Place this in your zope/Extensions directory. Create it if it doesn't exist. You will need to add an external method to the root of your ZODB that points to packExtensions.py script If you have any problem then please let me know. -Andy Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] WebOS and Zope
Curtis Maloney writes: Is it possible to simulate this sort of environment in an XML client? Hmm... what sort of XML client did you have in mind? I may be wrong, but I suspect you may have made a similar mistake to most people who encounter XML. XML is not a whole data format, in much the same way as TCP is not a whole protocol. HTTP is a protocol that uses TCP, just as XHTML and DocBook are data formats that use XML. XML allows any XML compliant parser to PARSE the contents, but not neccesarily COMPREHEND it. So, a custom XML client could be built which would understand whatever I sent it, and display the desktop accordingly. However, an 'off the shelf' XML 'client'... who could say. I meant a custom client. Like the Jabber situation http://www.jabber.org All my best, Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] WebOS and Zope
Curtis Maloney writes: ILet me correct myself, when I said they were going to release it opensource, it looks like just their HyperOffice suite and apps, not the "OS" itself. :( On Fri, 30 Jun 2000, Jason Spisak wrote: Zopists, I have been away for a bit, and will be gone again soon, but I found this the other day: Has anyone checked out http://www.webos.com ? It's free to sign up, just use explorer 5.0 and try it. I was amazed. It has drag and drop, looks like a real desktop. Interestingly enough, I had recently been joking about with some friends about doing something like this. Simulating a Win9x desktop with ZOPE and Javascript. I don't know jack about javascript really. Is that all they are using to simulate drag and drop and a desktop? Now for the Zope angle: I am curious if anyone thinks Zope can server up content like this? XML Desktop? I figured storing most of the info in XMLDocuments would be the simplest... I think they are using ColdFusion though. An actual webtop powered by Zope. What would it take? Hmm... well, about 2 weeks of uninterrupted time and I'd suprise even myself with how much it did. (o8 And then we woke up. They say they are going to release it OpenSource on their developer page. ;) Ooh... sounds neat. All my best, Have a better one, Curtis. dtml-var standard_work_disclaimer All my best, Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZCatalog and Search Results
Aaron Payne writes: At 04:35 pm 6/12/00 +, Jason Spisak wrote: We are closing in on it. Are any of these field indexes? Vendor maybe, Zip? If the ZClass instances always have a value for them, then when you submit this search and leave one of the 'field index' input boxes blank, you'll get no results, I believe. vendor and zip are field indexes. coupon_text and categorylist are keyword indexes. If you add an instance and then try to search, no results will be found. Here's the odd thing. After I add an instance, I go to the zcatalog object in the management interface and manually hit the "update Catalog" button. If I run the search again the new instance will be found if it matches the search criteria. The search will work with one or more search criteria entered into the form fields. You were you able to find it programatically, right? If so, then it's the form. Try just searching using a form that searches the exact same proerty as the prgramatical search...example: dtml-in "Catalog(vendor='MyVendor')" dtml-var id /dtml-in form action="CatReport" method="get" h2dtml-var document_title/h2 trthVendor/th tdinput name="vendor" width=30 value=""/td/tr trtd colspan=2 align=center input type="SUBMIT" name="SUBMIT" value="Submit Query" /td/tr /table /form What happens? form action="CatReport" method="get" h2dtml-var document_title/h2 Enter query parameters:brtable trthCoupon text/th tdinput name="coupon_text" width=30 value=""/td/tr trthCategorylist/th tdinput name="categorylist" width=30 value=""/td/tr trthVendor/th tdinput name="vendor" width=30 value=""/td/tr trthZip/th tdinput name="zip" width=30 value=""/td/tr trtd colspan=2 align=center input type="SUBMIT" name="SUBMIT" value="Submit Query" /td/tr /table /form dtml-var menu dtml-var standard_html_footer Try simplifying it. Try one at a time to find out which one is forcing the no results. Jason Spisak Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZCatalog and Search Results
Aaron Payne writes: We are closing in on it. At 07:37 pm 6/9/00 +, Jason Spisak wrote: Then it has to be the search forms. Can you sned me the search and report methods. Also, you should try looking up and instance programatically right after you create it, like so: dtml-in "Catalog(myProperty='knownValue')" dtml-var id /dtml-in Jason, I used the dtml-in for the catalog(myproperyty='xyz') and I found the newly added zclass. It may be the z search forms. Thanks for your help, Aaron Yep. Let's take a look. search snipped Here is the report method: dtml-var standard_html_header Are any of these field indexes? Vendor maybe, Zip? If the ZClass instances always have a value for them, then when you submit this search and leave one of the 'field index' input boxes blank, you'll get no results, I believe. form action="CatReport" method="get" h2dtml-var document_title/h2 Enter query parameters:brtable trthCoupon text/th tdinput name="coupon_text" width=30 value=""/td/tr trthCategorylist/th tdinput name="categorylist" width=30 value=""/td/tr trthVendor/th tdinput name="vendor" width=30 value=""/td/tr trthZip/th tdinput name="zip" width=30 value=""/td/tr trtd colspan=2 align=center input type="SUBMIT" name="SUBMIT" value="Submit Query" /td/tr /table /form dtml-var menu dtml-var standard_html_footer Try simplifying it. Try one at a time to find out which one is forcing the no results. All my best, Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Getting a specific user role
Mabe, Brad writes: That did the trick. Someday I'm going to get the hang of this stuff. I have the hang of some stuff but get hung by the rest ;) Thanks, Jason. -=Brad=- -Original Message- From: Jason Spisak To: Mabe, Brad Cc: '[EMAIL PROTECTED]' Sent: 6/8/00 7:48 PM Subject: Re: [Zope] Getting a specific user role Mabe, Brad writes: Forgive me if this has been covered before. There's no real great documentation on using the security API, and it's changing a bit anyway. I am implementing a login/security scheme through the use of GUF and SQL methods. My user and role information is kept in a SQL database and a user can have more than one role assigned to him/her. What I would like to do is check if a specific role has been assigned to the current user, and then display some additional menu items if that role has been assigned. I haven't been able to figure out how to get and check the roles that have been assigned to the current user. As usual, any help will be greatly appreciated. -=Brad=- try: dtml-if "AUTHENTICATED_USER.has_role('MyRole')" My stuff /dtml-if Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev ) Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Getting a specific user role
Mabe, Brad writes: Forgive me if this has been covered before. There's no real great documentation on using the security API, and it's changing a bit anyway. I am implementing a login/security scheme through the use of GUF and SQL methods. My user and role information is kept in a SQL database and a user can have more than one role assigned to him/her. What I would like to do is check if a specific role has been assigned to the current user, and then display some additional menu items if that role has been assigned. I haven't been able to figure out how to get and check the roles that have been assigned to the current user. As usual, any help will be greatly appreciated. -=Brad=- try: dtml-if "AUTHENTICATED_USER.has_role('MyRole')" My stuff /dtml-if Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope-dev] Request for comments: Directory storage
Petru Paler: This is the embodiment of my MutliFileStorage thingy on Jim's ZODB Wiki. I droped it (Never picked it up) when Mountable Storage was announced. I'll create a ReierFS partition some time this week and try it out. Excellent! Hello all, You probably saw my yesterday post with the first alpha of ReiserStorage. One of the questions that people tend to ask about it is wheter they can use it without reiserfs. There are two problems with not using reiserfs: 1. ReiserStorage (now renamed to DirectoryStorage) stores each object in a separate file and *all* the files in a single directory. This was done in order to let the filesystem what it was meant to do: store and retrieve files quickly. While reiserfs is *extremely* good at this (it uses a btree to store directory entries), most other filesystems do linear searches when finding a file so performance is very bad when you have many files in a single directory. This problem can be solved by splitting files into multiple directories when not using reiserfs. This would add a little overhead but it is tolerable. 2. Waste of space. Typical block-allocation filesystems like ext2 and FAT will waste alot of space in the usage pattern of DirectoryStorage. ReiserFS packs small files together in the btree, so it solves the problem, but I have no ideea how this could be fixed easyly on the other fs's. Comments ? Suggestions ? PS: a new DirectoryStorage release will be done today, with bugfixes and new features. -Petru ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Recursively adding ZClasses (continued)
Rik Hoekstra writes: This currently adds recursive ZClasses for me. All ZClasses are on the top level of the Product, no nesting: cut out untested dtml-with "PermanentJobClass.createInObjectManager(REQUEST['id'], REQUEST)" dtml-call "propertysheets.PermanentJob.manage_editProperties(REQUEST)" dtml-call "propertysheets.Job.manage_editProperties(REQUEST)" dtml-call "propertysheets.Searchable.manage_editProperties(REQUEST)" dtml-with "manage_addProduct['ZGL']" dtml-with "ServiceClass.createInObjectManager(_.getitem('unique_id', 1), REQUEST)" dtml-call "propertysheets.Service.manage_changeProperties(REQUEST)" dtml-with "manage_addProduct['ZGL']" dtml-with "ItemClass.createInObjectManager(_.getitem('unique_id', 1), REQUEST)" dtml-call "propertysheets.Item.manage_changeProperties( price=REQUEST['price'], description='Placement Fee', )" dtml-with "manage_addProduct['ZGL']" dtml-with "ComponentClass.createInObjectManager(_.getitem('unique_id', 1), REQUEST)" /dtml-in default_overrides /dtml-with dtml-call reindex_object /dtml-with /dtml-with dtml-call reindex_object /dtml-with /dtml-with dtml-call reindex_object /dtml-with /dtml-with dtml-call reindex_object /dtml-with /dtml-with dtml-call "RESPONSE.redirect(URL1 + '/' + REQUEST['id'])" /cut out untsted I cut a few things out that didn't have to do with the recursing, but you bet the general picture. All my best, snip Thanks for replying Kevin, but it won't work ;-( I tried it ALL, and it _will_not_work_. The nested ZClasses will apparently solve it (I used it elsewhere), but it will get you into trouble in other situations - if you want to add an instance of the nested zclass to an existing instance of that same nested zclass. I had to change my product before because of that. I'm using nested ZClasses in KM|Net News. Take a look at the AddArticle method. In KMNN, these ZClasses are set up as nested ZClasses, so that may change things somewhat. However, it may still work. Rather than doing manage_addProduct[], you *might* be able to just directly call ZClass_add(_.None, _), because it could be in your acquisition path at the top of the product. In KMNN, that's all I had to do, but in that case the ZClass_add method was located within the ZClass that was to contain it. That sounded kind of rambling, so I hope it makes sense... No matter if you use ZClass_add directly or in dtml-with. No matter if you close the first dtml-with and open another. No matter if you redirect to get out of namespace problems (that will _really_ give strange errors). Believe me, it was a _very_ frustrating experience (and I really wanted to refrain from ranting -just couldn't help myself) thanks again for replying Rik ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope] Searching Catalog for Permissions/Roles
Zopists, Does anyone know if it's possible to create a search in the ZCatalog based on permission or role. Such as: Search of the things from the ZCatalog where the current user has the 'View' permission for the text 'smith'. I love to push the envelope. :) -- Jason Spisak [EMAIL PROTECTED] ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Current date in DTML
Ivan Raikov writes: Hey all, How can I get the current date time (preferably as a DateTime.DateTime object) in DTML? I cannot instantiate a DateTime object, because the DateTime module is not imported. dtml-var ZopeTime Thanks, Ivan Raikov ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev ) Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Strange Zope behavior/Instability (Zope going down)
Harald Ragger writes: Jason, Rob: Ive just seen your mails, and thought uuups! One of my customers is using zope (2.1.4; ms cluster server; nt4 basis). Zope has been running fine for more than three months, but on 1st of June it crashed, and didn't came up again (no response from server even the zope services seemed to be up and running). every minute or so, we got the following message in the event-view: restarting zope. Do you mean that zope wouldn't restart? Even if you restarted the server? The only chance I saw to bring Zope up again, was to reinstall the whole thing, and use the backed up Data.fs file. So far so good, its now running again, all data is ok, nothing lost. But: whats the reason for this? i simply have no idea (logs didnt show anything relevant as far as i understand). why i thought uups, was because of the same time this happend to me as to you (you also use 2.1.4). could it be a problem with 2.1.4? should we consider to upgrade to 2.1.6? It's worth a shot. I don't have any installations running on 2.1.4. Just 2.1.1 and 2.1.6. Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope must be restarted often
Josh Glover writes: Did you try the decapitation patch? Problem: http://www.zope.org/Members/tseaver/Projects/HighlyAvailableZope/IndentingDTMLSpinsZope Solution: http://www.zope.org/Members/tseaver/Projects/HighlyAvailableZope/SpinningDecapitation This would only be the problem if you have one thread that spinns out. You can tell that this is happening if one thread is chewing CPU when thet 'hang' is occuring. Here is the problem, and forgive me if this is a known issue and I just could not find it in the mailing list archive. I am running Zope 2.1.6 under FreeBSD 4-STABLE (May 15). I am running Apache 1.3.12 with mod_ssl/2.6.4 and OpenSSL/0.9.4. Also, I am running Python 1.5.2. What happens is: Zope just stops responding to a browser lookup. I try to browse to it, and Netscape just shows that the server has been contacted and it says "Waiting for reply..." until it times out. If I killall the Python processes and then run the Zope.sh start script, everything is fine again. I have been unable to tie the failure to a time or specific event as of yet. Any help would be appreciated. Thanks, Josh Glover ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev ) Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Strange Zope behavior/Instability (Zope going down)
Rob Sporleder writes: The shell was on my local machine... That's the same as tryinga browser for network purposes. Can you try bringing up a shell on the server next time and try a wget http://localhost:8080, and see if it returns anything. If so, the Zope is fine and it's that other stuff, like network cards etc... BigBrother is the monitoring software we use. The client is installed on the same server as Zope. When viewing the log files there were no connections made by BigBrother (checking for http connections). However, there were many hits from outside IP's. Thanks, Rob -Original Message- From: Jason Spisak [mailto:[EMAIL PROTECTED]] Sent: Friday, June 02, 2000 10:17 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [Zope] Strange Zope behavior/Instability (Zope going down) Rob Sporleder writes: It was the command line within the shell. Was it the shell on the 'server' serving zope or a shell on your local admin machine? Actually, I've found something that's interesting... The system clock is an hour slow. They get behind easily if your not using an time server somewhere. The logs are written 6 hours ahead. I have no idea on that. I greped the log file for BigBrother and found an hour gap with no BigBrother Is BigBrother the Zope server? entries from 06:37:53 and 07:40:23, roughly the time that the site seemed to go down. However, during this time there were hundreds of successful hits to the site. What told you there were successful hits? The Zope log? If understanding you, you are seeing confilcting things in 2 logs. One log says there was successfull hit, and the other shows nothing for that time. Is this close? Rob Sporleder writes: All of the python z2.py processes are still running. I haven't checked if I can get to it using http://localhost. The server is offsite. However, I did try an http get from the command line and it did not respond. Was it the command line on the server? from the server shell: $wget http://localhost:8080 I'm trying to narrow it down to the real culprit. We can't be sure it's Zope and not the DNS/Machine/Routing/Firewall/ or anything else. -Original Message- From: Jason Spisak [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 31, 2000 1:13 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [Zope] Strange Zope behavior/Instability (Zope going down) Rob Sporleder: I received a server not responding error. We lost connectivity twice on Friday as well. I setup a script to restart the server every X minutes so we wouldn't have to worry about it over the weekend. I removed the cronjob on Tuesday morning and it was fine until early Wednesday morning when it went down three times in 30 minutes. Thanks, Rob Wow. Ugly. Are the Zope processes still up after you've lost connectivity? If so, can you get a browser on the machine running zope to access it? http://localhost:8080, or whatever port your running on. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jason Spisak Sent: Wednesday, May 31, 2000 12:10 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [Zope] Strange Zope behavior/Instability Rob Sporleder: For reasons unknown we lost http connectivity to our Zope server three times last night. When you say lost connectivity, do you mean the browsers gave you back a 'Server Not Resonding' message, or was is as if Zope was just spinning it's wheels? If it was the latter, how long did you wait to see if you did get a response? 1 minute, 10, 30? I've checked the http logs and, as I suspected, didn't find anything unusual around the time we lost connectivity. The Python processes are still running and everything looks normal except for the connectivity problem. Does anybody have any idea what might be causing this? I haven't found anything. This happened to me, but it caused a single process to chew CPU. Since you noticed no such chewing, I'll bet it's not the DTML decapitation bug. Here are some specifics about our setup... version of python: 1.5.2 operating system: Linux 2.2.12-20smp (Redhat 6.1) services running on machine: MySQL 2 instances of Zope Python machine specifics: CPU: 0.04 MEM: 31M of 512M Swap: 528688K free Disk Space: GB's available on all partitions Hardware: 598 Mhz Pentium III, 4 17.4 GB SCSI hard disks version of Zope: 2.1.4 Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code
[Zope-dev] RE: Memory issue 2.1.1 wrap up (Long)
Thanks to everyone who gave me advise on what was going on. I think the problem was that I need some tuning in a variety of areas. (One of them being my brain) I am going to write up a little ditty on what I discovered so that people can check it before they claim leakage is occuring. I don't know enough about OS's to really put the *technical* explanations of some of the things to look for so, Matt, if you'd take a look at it when I post the url, I'd appreciate it. Just a quick rehash-- 1. I was running on an SMP machine, andthe setcheckinterval in Python wasn't helping me realize the machine's potential. This contributed to the slow down. Points:(2 physical, 1 psychological) 2. The 'Cache' tab in Zope was set to give objects a long, leisurely time in memory. This was causing Zope to rapidly claim and hold onto a ton of memory for objects it wan't even using. I adjusted it to 3 seconds. I worked the number until I found a happy medium. (BTW, I didn't really know *exactly* what this meant, and I hope there's a help system file on it in 2.2) Points:(1 physical, 1 psychological) 3. The 'Cache tab in Zope was set to allow a large amount of objects (20,000) to be a target size. This made those large amounts of objects that were lying around just happy to be there, I guess, I'm stil not sure what it does exaclty. Points:(1 physical, 1 psychological) 4. I store ton of information in my ZCatalog. The way the ZCatalog does an update (from what Shane told me) is a memory intensive task, loading lots of objects (I'd love help here), and when you combine that with 2 3, you get maxed out pretty quick. Catalog updates were taking a long time. Points:(2 physical, 2 psychological) 5. I use the standard Folder object to store 12,000 objects. Whenever a new object is added there is a huge hit on performance. Also, that object just so happens to get ZCataloged! That's turns Zope into a dog for a bit. [A good solution here is ZPatterns' RackMountable, but this is a production environment, and I want to let ZPatterns stabilize a bit. I am very excited about it though.;)] Points:(2 physical, 2 psychological) 6. The 'free' command on GNU/Linux shows just how much Linux buffers. A ton. Linux basically took my box from 1 gig of memory down to 1 MB, everytime. And that's is where it likes to stay. That's scary, but not fatal. Then the swap increased to about 40MB. When staying right on top of those numbers, it looks pretty bad while it's happening, so I believed things were headed down the drain. Zope's performance was poor (due to 1,2,3,4,5), so I thought the end was near. "If I don't restart Zope, things will only get worse." This is not true, the swap has hovered at 12MB average, and the free mem is averaging 4MB bobbing like a rubber duck. Points:(1 physical, 4 psychological) 7. There is in fact a memory leak in the SQLSession product. ;) Points:(0 physical, 2 psychological) All of these together with the fact that I learn more everyday about Zope and Linux, and you have the prime situation for Memorious Falsis. A syndrome where the hacker sees memory leaks that aren't there. Thanks wholeheartedly, -- Jason Spisak [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope] Strange Zope behavior/Instability
Rob Sporleder: For reasons unknown we lost http connectivity to our Zope server three times last night. When you say lost connectivity, do you mean the browsers gave you back a 'Server Not Resonding' message, or was is as if Zope was just spinning it's wheels? If it was the latter, how long did you wait to see if you did get a response? 1 minute, 10, 30? I've checked the http logs and, as I suspected, didn't find anything unusual around the time we lost connectivity. The Python processes are still running and everything looks normal except for the connectivity problem. Does anybody have any idea what might be causing this? I haven't found anything. This happened to me, but it caused a single process to chew CPU. Since you noticed no such chewing, I'll bet it's not the DTML decapitation bug. Here are some specifics about our setup... version of python: 1.5.2 operating system: Linux 2.2.12-20smp (Redhat 6.1) services running on machine: MySQL 2 instances of Zope Python machine specifics: CPU: 0.04 MEM: 31M of 512M Swap: 528688K free Disk Space: GB's available on all partitions Hardware: 598 Mhz Pentium III, 4 17.4 GB SCSI hard disks version of Zope: 2.1.4 Thanks, Rob ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev ) Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Strange Zope behavior/Instability (Zope going down)
Rob Sporleder writes: All of the python z2.py processes are still running. I haven't checked if I can get to it using http://localhost. The server is offsite. However, I did try an http get from the command line and it did not respond. Was it the command line on the server? from the server shell: $wget http://localhost:8080 I'm trying to narrow it down to the real culprit. We can't be sure it's Zope and not the DNS/Machine/Routing/Firewall/ or anything else. -Original Message- From: Jason Spisak [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 31, 2000 1:13 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [Zope] Strange Zope behavior/Instability (Zope going down) Rob Sporleder: I received a server not responding error. We lost connectivity twice on Friday as well. I setup a script to restart the server every X minutes so we wouldn't have to worry about it over the weekend. I removed the cronjob on Tuesday morning and it was fine until early Wednesday morning when it went down three times in 30 minutes. Thanks, Rob Wow. Ugly. Are the Zope processes still up after you've lost connectivity? If so, can you get a browser on the machine running zope to access it? http://localhost:8080, or whatever port your running on. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jason Spisak Sent: Wednesday, May 31, 2000 12:10 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [Zope] Strange Zope behavior/Instability Rob Sporleder: For reasons unknown we lost http connectivity to our Zope server three times last night. When you say lost connectivity, do you mean the browsers gave you back a 'Server Not Resonding' message, or was is as if Zope was just spinning it's wheels? If it was the latter, how long did you wait to see if you did get a response? 1 minute, 10, 30? I've checked the http logs and, as I suspected, didn't find anything unusual around the time we lost connectivity. The Python processes are still running and everything looks normal except for the connectivity problem. Does anybody have any idea what might be causing this? I haven't found anything. This happened to me, but it caused a single process to chew CPU. Since you noticed no such chewing, I'll bet it's not the DTML decapitation bug. Here are some specifics about our setup... version of python: 1.5.2 operating system: Linux 2.2.12-20smp (Redhat 6.1) services running on machine: MySQL 2 instances of Zope Python machine specifics: CPU: 0.04 MEM: 31M of 512M Swap: 528688K free Disk Space: GB's available on all partitions Hardware: 598 Mhz Pentium III, 4 17.4 GB SCSI hard disks version of Zope: 2.1.4 Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope-dev] Memory 2.1.4-2.1.6 a.k.a. how to get objects out of the cache
Bill Anderson: Jason Spisak wrote: [...] That's funny that I am experienceing the same symptoms as you, but my installation is totally different. I'm not using GUF, or any DA's, and I'm running on RH 6.1. We really need to figure this out as a community. I am willing to try just about anything short of shipping my machine somewhere off premisis. ;) Ok, let's dig up some more info ( or perhaps I missed it ). Server setup, as in pcgi/Zserver/Apache w/proxypass, etc? Nothing but straight ZServer/Medusa. Compiled on the machine, or binary distribution? Zope 2.1.1 binary distro. Not sure how it got to be 2.1.4/2.1.6, might have been the other person having problems, or my mistake. But the changes in 2.1.4 and 2.1.6 aren't anything in the Object publisher or Medusa so I don't think it makes a difference. If source, did you start with a clean tree, or did use use the diff upgrade, or did you use a new 2.1.6 tarball, and drop it on top of the 2.1.4 install? Bill RH 6.1 2.2.12smp kernel Hardware RAID dual 350mhz Xenon 1 gig ram Vanilla Zope with no DA's, no Apache. BTW, Matthew gave me some advice last Friday to use the setcheckinterval line in z2.py and the performance gains are quite impressive. Anyone who is running smp should try it. All my best, Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Memory issue 2.1.1 request for info
ess here today. Just think, with ZEO I won't have to wait until the close of business ('cause the web is never closed:) Thanks again, -- Jason Spisak [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] New Help System in 2.2
Michel, I was just browsing the help system and can I just say it is terrfic. The .py files especially. Not that python isn't that easy to read, but having the ZQR type stuff handy online is a huge win. Is that stuff updated fro mthe source on the fly? Greatfully, Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] New Help System in 2.2
Shane Hathaway writes: Jason Spisak wrote: I was just browsing the help system and can I just say it is terrfic. The .py files especially. Not that python isn't that easy to read, but having the ZQR type stuff handy online is a huge win. Is that stuff updated from the source on the fly? Almost. It's actually written in separate files that mirror the structure of the real source. And I'd like to bring up the point that I wonder why it is written that way. Wouldn't it make more sense to self-document the source? If the issue is that some methods shouldn't be callable from a URL, there are better solutions to that problem (this is written to DC mainly): Is this the reason that it's not pulling the docs from the source? That's not a good idea. With all the effort that Michel put in to work around not documenting in the source, he could have fixed it so that it pulled the docs from the source on the fly without effecting the URL access. 1) Enahnce the permissions system to include "Accessible via HTTP", "Accessible via FTP", etc. 2) Use an underscore as the first character of a docstring to indicate a non-URL-callable method. I just looked at it and that seems like doing work twice. Why not just document your source? Wonderingly, Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] New Help System in 2.2
Stephan Richter writes: At 09:09 PM 5/30/00 +, Jason Spisak wrote: Shane Hathaway writes: Jason Spisak wrote: I was just browsing the help system and can I just say it is terrfic. The .py files especially. Not that python isn't that easy to read, but having the ZQR type stuff handy online is a huge win. Is that stuff updated from the source on the fly? Almost. It's actually written in separate files that mirror the structure of the real source. And I'd like to bring up the point that I wonder why it is written that way. Wouldn't it make more sense to self-document the source? If the issue is that some methods shouldn't be callable from a URL, there are better solutions to that problem (this is written to DC mainly): Is this the reason that it's not pulling the docs from the source? That's not a good idea. With all the effort that Michel put in to work around not documenting in the source, he could have fixed it so that it pulled the docs from the source on the fly without effecting the URL access. 1) Enahnce the permissions system to include "Accessible via HTTP", "Accessible via FTP", etc. 2) Use an underscore as the first character of a docstring to indicate a non-URL-callable method. I just looked at it and that seems like doing work twice. Why not just document your source? I just talked to Amos and Michel last Friday about that and they researched for a long time, whether it would be better to document the source or to have different files. They both decided it is the best to have the documentation separately. I believe that they looked at the issue from all angles and had good reasons, why they went with the current way. I trust them implicitly. I'm sure that my gut reaction was probably the same one they had, but after careful thought they found a better solution. Furthermore, the help system will become even more than just the screen help. The .py files you see, are just the start of the new API documentation. Oooo. Furthermore, we will include a new DTML reference soon. Do you know about anything else, that should be included? Well if you really want to make it hot, the examples that are in there can keep coming. Web links might not be out of order either. The only problem is that there is no difinitive Zope online docs to link to, to get the most recent info. But when there is, it would be nice to include. Thanks, Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] New Help System in 2.2
Stephan Richter writes: At 12:02 AM 5/31/00 +, Jason Spisak wrote: Furthermore, we will include a new DTML reference soon. Do you know about anything else, that should be included? Well if you really want to make it hot, the examples that are in there can keep coming. Web links might not be out of order either. The only problem is that there is no difinitive Zope online docs to link to, to get the most recent info. But when there is, it would be nice to include. The next task after the 2.2 release is that we will look through the tutorial and see what it does not cover and then add the missing examples in tutorial form. :) Off-site links are okay, but what happens, if I sit in the plane and I need that piece. Amos leans also towards external links I think, but I would rather keep it in the distribution; it is only a couple thousand bytes more and will not increase the distro size too much. A fact is, that most of the Zope Online Help should be the most up-to-date, meaning that we try to encourage developers to update and patch the help system as they update the code. Personally, I see that same thing might happen that happened to Zope. They'll want to get the product out badly, and since the help system is separate, they'll put it off. Our goal is basically to initialize a good, well organized Zope help system, which content is maintained by the developers, read community. I think this is terrific shot at offering everyone a chance to "get it". BTW, if you find any mistakes or want to make additions to the help texts, please send them to me. I hope I will be able to upload a complete revision of *all* the help screens by the end of the week. I have only 80 documents to go. :) Excellent. I am reading it. I founfa few "not found"'s but that stuff probably just not loaded yet. Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope] Question about dtml-in sorting
Patrick J.M. Keane writes: Does sort only sort in one direction? I am looking to sort news items so that the newest items are on top, and when sorting on a date field, I get the opposite behaviour. Any easy way to reverse the sort order? Thanks pk dtml-in MyItems sort=whatever reverse Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope-dev] DateTime objects's and ZCatalog
Shane Hathaway: Jason, I've looked over your DTML and I can't quite get a fix on what's going on (then again, I'm not very familiar with dtml-calendar.) If you'd send more details I might be able to help, but only in my spare time I'm afraid... That's actually a very generous offer. Thanks. Basically I am wondering if calling my extenal method is creating the DataTime instances or the call to: _.int(date)/10 is? Here's the external method: external method: def calendar_day(self) return int(self.calendar_date)/10 The code that really matters I guess is : dtml-if "_.len(Catalog(recruiter=AUTHENTICATED_USER.getUserName(), meta_types=['Interview', 'Call', 'Appointment', 'Deal'], calendar_day=_.int(date)/10))" BTW, the memory issue is causing me to restart my *server* everyday. Even when I shut down the Zope process, the memory doesn't fall out of cache. I'm going to make this a separate message. Thanks again, Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope] Really dumb newbie question
Andy Gates writes: This one is so dumb you'll be laughing, but any help would be greatly appreciated. I need to evaluate an IF. That's all. I have a variable called Action that's a string, and it can be null, "Add", "Update" etc. I try something along the lines of: dtml-if action == "add" blah /dtml-if and whatever I try, I get "Invalid attribute name, "action", for tag Try: dtml-if "Action=='add'"" All my best, Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope-dev] Memory 2.1.1
Shane: Holy cripe! I just saw a huge drop (half the available mem) and went to the Undo tab to see what was going on. The last transaction was my /Control_Panel/Database/manage_cache_age. Then I went to the manage_debug and my DateTime.DateTime.DateTime is DateTime.DateTime.DateTime 2460 96200 +93740 while I'm writing this its up to: DateTime.DateTime.DateTime 2460 140945 +138485 Ahhh! -- Jason Spisak [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-Dev] Zope 2.1.6 Memory issue
Shane Hathaway writes: Jason Spisak wrote: Shane Hathaway writes: Jason Spisak wrote: You must have a large site. 300,000 + objects Whoa... ;-) Tell me, what are you doing with 300K objects? Shane Technical recruiting. I am the ultimate test case for ZDOB scalability. ;) I just recently started having problems thoug, so I am going back and disabling the small fixes I have made recently in my code. I just restarted Zope again. Most of the objects just sit around. Wow. There it goes again. It's got to be DateTime.DateTime.DateTime. It just shot to 118003. That's actually a natural thing to happen. DateTime objects get attached to many kinds of objects. The real problem is that so many objects are being loaded into memory. I just did some research and it looks as though garbage collection is not fully implemented in Python. I was not aware of this; do you know whether it has been corrected? No, I had no idea. After minimizing your in-memory cache, look at the manage_debug screen again. Are the refcounts still high? I bet they are... No. The ref counts drop to hundreds. Also, is see reference to 161 Products.GadflyDA.gadfly.kjparser.ParseRule, and I'm not even useing Gadfly! What the heck is that about? Anyone? Thing's seem to be a bit nicer now that I took out an External Method that returns a DateTime object the Catalog for Indexing. However, there's only about 14,000 of objects with that property in existsnce in my DB, and they don't change often. Here's the code: def calendar_day(self) return int(self.calendar_date)/100 Used to return the unique integer day. All my best, Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-Dev] Zope 2.1.6 Memory issue
Shane Hathaway writes: Well, I reduced the 'target size' from 20,000 object down to 1000, and the memory seems to be climbing. Jason Spisak wrote: After minimizing your in-memory cache, look at the manage_debug screen again. Are the refcounts still high? I bet they are... No. The ref counts drop to hundreds. That's a big relief. Okay, now we know that this isn't a memory leak, it's only related to the fact that your site requires ZODB to load a very large number of objects into memory in order to perform normal operations. Here's something to think about: whenever an object is added to or removed from a folder, all objects in all neighboring folders and below are traversed. The manage_beforeDelete and manage_afterAdd hooks are called on each object. I am hoping to use ZPatterns to stem this rapidly out of control, ObjectManger not scalable, issue. Also, there is still the issue that Python doesn't seem to be releasing memory back to the system. I wonder whether that capability has been implemented in Python. It would really put a damper on things if is wasn't. However, when I stopped my Zope process each time, it didn't seem to give me back what Ihad started with. Maybe there is a leak in the kernel I am using. It's 2.2.12-smp. Anyone? Also, is see reference to 161 Products.GadflyDA.gadfly.kjparser.ParseRule, and I'm not even useing Gadfly! What the heck is that about? Anyone? Chances are some other product is "reaching in" to Gadfly. Do you have the Zope tutorial installed? It uses Gadfly. No. This is a Data.fs that came from Zope 1. I didn't even think to get Gadfly out of the Products directory. Thing's seem to be a bit nicer now that I took out an External Method that returns a DateTime object the Catalog for Indexing. However, there's only about 14,000 of objects with that property in existsnce in my DB, and they don't change often. Here's the code: def calendar_day(self) return int(self.calendar_date)/100 Used to return the unique integer day. That code actually doesn't return a DateTime instance, just an integer. Yeah, I didn't really think is was that. ;) Keep me informed. You bet. And a thousand thanks are waiting in my cache for you. Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-Dev] Zope 2.1.6 Memory issue
Shane Hathaway writes: Okay, here's the output. (BTW is was trying manage_debug without the Control_Panel. That was not intelligent;) Class May 22, 2000 4:21 amMay 22, 2000 4:22 amDelta OIBTree.Bucket 71328135+1003 IOBTree.BTree 25702827+257 BTree.BTree 10281105+77 IIBTree.Bucket 45904619+29 DocumentTemplate.DT_With.With 273 279 +6 2nd pass: Actually there's too damn much. Shane, I'll just send you the html. If anyone else wants to help let me know. Jason, Try /Control_Panel/manage_debug ... it will tell you exactly which kinds of objects are eating memory. Take a "snapshot" then refresh the page after a couple of minutes, and the table should list at the top the name of the class that's taking up more than its fair share. Shane Jason Spisak wrote: Zopists, I am spoiled. I have a large server and until now I have never really monitored memory usage. But I noticed things slowing down a great deal and was curious. Swapping. Machine: RH 6.1 2.2.12-smp Dual Xenon 1 gig memory Zope install: Zope 2.1 Binary ZODB pure. No DA's Home grown ZClasses. 'ps' tells me Zope is the culprit. It's using 64% when things get swappy. There are no prosesses running on this machine BTW. It's just a Zope server. My Data.fs file is ~300 packed and gets to be about 1GB at the end of every day. (A lot of transactions :) Zope is eating memory at the rate of 10MB every 2 minutes. Is that appropriate? I never noticed a slowdown until I switched to 2.1, really. I've considered writing a small python progam to compare the output of 'free' to the Zope log, but I'd love to see if there is another way to nail what's eating mem. If someone can tell me the best way to narrow it down from experience, I'll do it this afternoon. Hopefully, -- Jason Spisak [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. Title: Debug Information Zope Contents Undo Control Panel at /Control_Panel Debug Information Zope version: Zope 2.1.1 (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: 2159 (5126) Running for: 1 hour 14 min 57 sec Top Refcounts: DateTime.DateTime.DateTime: 20559intSet.intSet: 12586OIBTree.Bucket: 8135IOBTree.Bucket: 5425BTree.Bucket: 5270IIBTree.Bucket: 4619IOBTree.BTree: 2827DocumentTemplate.DT_Util.Eval: 2168OIBTree.BTree: 1647OFS.DTMLMethod.DTMLMethod: 1548BTree.BTree: 1105ZClasses.Method.MW: 856ExtensionClass: 518DocumentTemplate.DT_In.InClass: 435ZClasses.ZClass.PersistentClass: 302DocumentTemplate.DT_With.With: 279AccessControl.User.User: 185OFS.Image.Image: 173Products.ZGadflyDA.gadfly.kjParser.ParseRule: 161DocumentTemplate.DT_Var.Var: 157ZClasses.Property.ZInstanceSheet: 135App.special_dtml.HTMLFi! le: 133ZClasses.ZClass.ZClass: 130OFS.SimpleItem.SimpleItem: 130ZClasses.Property.ZInstanceSheets: 129AccessControl.PermissionRole.PermissionRole: 127App.Factory.Factory: 123App.Permission.Permission: 118App.PersistentExtra.Persistent: 108DocumentTemplate.VSEval.Eval: 96OFS.Folder.Folder: 93App.ImageFile.ImageFile: 89SearchIndex.UnIndex.UnIndex: 68App.Product.Product: 65Acquisition.Acquirer: 57AccessControl.PermissionMapping.PM: 52ZClasses.ZClass.ZClassSheets: 50TreeDisplay.TreeTag.Tree: 50SearchIndex.UnTextIndex.UnTextIndex: 47Products.ZCatalog.CatalogAwareness.CatalogAware: 47re.RegexObject: 46Products.ExternalMethod.ExternalMethod.ExternalM! ethod: 42OFS.Image.File: 42Base: 41ZClasses.ZClass.ZObject: 37ZClasses.ObjectManager.ObjectManager: 37ts_regex.compile: 36ZServer.medusa.counter.counter: 36ZServer.PubCore.ZServerPublisher.ZServerPublisher: 35Missing.Missing: 35OFS.DTMLDocument.DTMLDocument: 34Acquisition.ImplicitAcquirerWrapper: 32DocumentTemplate.cDocumentTemplate.Te
Re: [Zope-Dev] Zope 2.1.6 Memory issue
R. David Murray: Since this is a very heavily used Zope install, I am getting trashed faster than you can say 'leakage'. On Mon, 22 May 2000, Jason Spisak wrote: i did it again, and now I'm down to 160 objects total. That's more liek it. But system memory is still dropping. I was at 173632 available (This is only a half our after the Zope restart BTW. It ate 100MB in under that time.) before the second pass and now I'm at 173616. I'm *very* interested in this. I have a similar setup (stock 2.1.4 + the Lexicon.py patch, no external database, no non-bundled Products, custom CatalogAware ZClass, large number of objects (~60,000). I'm running under FreeBSD 3.4-STABLE. I tried the 'minimize' trick and got down to around 200 objects, with *no* decrease in memory used. I'm not leaking memory as fast as you, but over time memory usage does go up until swapping starts and I'm forced to restart Zope. Also as (apparently) with you, manage_debug does *not* give any clues as to what is taking the memory; everything in the list looks normal and does not add up to the observed memory usage as far as I can guess. I'm glad to see someone else is observing this memory weirdness, I thought I was the only one. --RDM I'm anxious to discover what's going on too. It's will really be a boon for DC to have Zope scalable to this size of ZODB and have the stability I've come to rely on. All my best, Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope and SMP
Thilo Mezger: hi! Howdy. yesterday, i have test-driven zope on a dual-pentium smp-machine running linux 2.2 and i was very disappointed by the results. the zserver threads are running on both cpu's but it seems to scale really, really badly. i have only done some very cheap benchmarking but it seems that a single cpu is faster than 2 cpu's. but as i said, this is not proper benchmarking (yet). i wanted to ask if someone has already tried zope on more than 1 cpu and/or could point me to a direction where i could find out more about this subject? I have our intranet running off a dual Xenon 350Mhz running 2.2.12-20smp and things are terrific. I haven't ran any comparisons either, but speed isn't an issue. cheers! thilo -- [EMAIL PROTECTED] innominate AG networking people fon: +49-30-308806-0 fax: -77 web: http://innominate.de pgp: /pgp/tm All my best, Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )