[Zope-dev] Re: ZCatalog fast as admin, dog slow as anonymous and other users

2004-02-01 Thread Jason Spisak
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

2004-01-30 Thread Jason Spisak
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

2004-01-30 Thread Jason Spisak
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

2004-01-30 Thread Jason Spisak
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

2004-01-30 Thread Jason Spisak
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

2004-01-30 Thread Jason Spisak
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

2004-01-30 Thread Jason Spisak
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

2004-01-30 Thread Jason Spisak
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

2004-01-30 Thread Jason Spisak
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,

2002-04-24 Thread Jason Spisak

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

2002-04-24 Thread Jason Spisak

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

2002-04-24 Thread Jason Spisak

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

2002-04-23 Thread Jason Spisak

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

2002-04-23 Thread Jason Spisak

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

2002-04-23 Thread Jason Spisak

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

2002-04-23 Thread Jason Spisak

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

2002-04-23 Thread Jason Spisak

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

2002-04-23 Thread Jason Spisak

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

2002-04-23 Thread Jason Spisak

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

2002-04-23 Thread Jason Spisak

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

2002-04-23 Thread Jason Spisak

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

2002-04-23 Thread Jason Spisak

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

2001-01-08 Thread Jason Spisak

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

2001-01-05 Thread Jason Spisak

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

2001-01-05 Thread Jason Spisak

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

2001-01-05 Thread Jason Spisak

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

2001-01-04 Thread Jason Spisak

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

2000-12-20 Thread Jason Spisak

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

2000-12-20 Thread Jason Spisak

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

2000-12-19 Thread Jason Spisak

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

2000-11-02 Thread Jason Spisak

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

2000-10-25 Thread Jason Spisak

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

2000-10-25 Thread Jason Spisak

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

2000-10-24 Thread Jason Spisak

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

2000-10-24 Thread Jason Spisak

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

2000-10-17 Thread Jason Spisak

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

2000-10-16 Thread Jason Spisak

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 )




[Zope-dev] Programatically trying to create recursive folders

2000-10-13 Thread Jason Spisak

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-dev] Back from the dead xmlc

2000-09-11 Thread Jason Spisak

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-dev] Request for comments: Directory storage

2000-06-07 Thread Jason Spisak

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)

2000-06-07 Thread Jason Spisak

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-dev] RE: Memory issue 2.1.1 wrap up (Long)

2000-05-31 Thread Jason Spisak

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-dev] Memory 2.1.4-2.1.6 a.k.a. how to get objects out of the cache

2000-05-30 Thread Jason Spisak

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

2000-05-30 Thread Jason Spisak
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

2000-05-30 Thread Jason Spisak

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

2000-05-30 Thread Jason Spisak

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

2000-05-30 Thread Jason Spisak

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

2000-05-30 Thread Jason Spisak

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-dev] DateTime objects's and ZCatalog

2000-05-26 Thread Jason Spisak

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 )




[Zope-dev] Memory 2.1.1

2000-05-22 Thread Jason Spisak

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

2000-05-22 Thread Jason Spisak

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

2000-05-22 Thread Jason Spisak

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 )




[Zope-dev] Re: Memory 2.1.6

2000-05-22 Thread Jason Spisak

Shane,

Well I lied.  The memory is now fluctuating.  It went as high as 12MB
available (out of a gig) and down to 2MB.  This seems fine, it's just that
I'm scraping the bottom of the barrel.  Also, I really am curious why
flushing the cache doesn't reclaim memory, too.

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

2000-05-22 Thread Jason Spisak

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

2000-05-22 Thread Jason Spisak

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

2000-05-18 Thread Jason Spisak

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 )