Re: [Zope] Large BTreeFolder2 batching/pagination

2009-11-08 Thread Ken Ara
I take your suggestion to find a Catalog-based solution. I have set the subtransactions very low (100). But I have got the following error: Traceback (innermost last): Module ZPublisher.Publish, line 119, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, li

Re: [Zope] Large BTreeFolder2 batching/pagination

2009-11-02 Thread Ken Ara
get the next or previous id in such a case? --- On Mon, 11/2/09, Andreas Jung wrote: From: Andreas Jung Subject: Re: [Zope] Large BTreeFolder2 batching/pagination To: "Ken Ara" Cc: zope@zope.org Date: Monday, November 2, 2009, 11:36 AM Am 02.11.09 11:28, schrieb Ken Ara: > I agr

Re: [Zope] Large BTreeFolder2 batching/pagination

2009-11-02 Thread Ken Ara
etter than getBatchObjectListing? Thanks Ken --- On Mon, 11/2/09, Andreas Jung wrote: From: Andreas Jung Subject: Re: [Zope] Large BTreeFolder2 batching/pagination To: "Ken Ara" Cc: zope@zope.org Date: Monday, November 2, 2009, 6:23 AM What kind of practical sense does it make to batch 400k object

[Zope] Large BTreeFolder2 batching/pagination

2009-11-01 Thread Ken Ara
We have some BTreeFolder2's containing hundreds of thousands of objects, even one containing over 2 million instances of Folder. That is really no problem in itself. Under our setup, beyond 300-400,000 contained objects, the batching provided by getBatchObjectListing becomes unusable. I've see

[Zope] ExternalFile can't read mapped network drive

2007-08-14 Thread Ken Ara
Hi, In a Windows2003 Server environment, we have been unable to get ExternalFile to read a mapped network drive that is otherwise visible from this machine. We have given admin rights to the Zope service, "Zope instance at C:\Zope\Instance\2.10.4" (uses "C:\Zope\2.10.4\Python\PythonService.exe").

re: [Zope] catching shorter URLs

2007-07-08 Thread Ken Ara
Aaron, The Path Handler product (http://www.zope.org/Members/NIP/PathHandler) is your friend. Normally, you would create a path handler called 'games' and point it to your display_game method. To obtain the result you describe, you could move your display_game code into index_html and test for a

Re: [Zope] Redirection problem

2007-05-28 Thread Ken Ara
Hello, Please allow me to ask this question again, because there is still an unsolved mystery. > --On 25. Mai 2007 01:26:32 -0700 Ken Ara > <[EMAIL PROTECTED]> wrote: > > > We have a filesystem product with an edit method > that > > allows users to change some pro

Re: [Zope] Redirection problem

2007-05-25 Thread Ken Ara
t;[EMAIL PROTECTED]> wrote: > +---[ Ken Ara ]-- > | Thanks for bringing this up! I have always wanted > to > | know: since the introduction of VHM I have never > used > | this 'VirtualHostBase' business. I have only ever > used > | the mappings t

Re: [Zope] Redirection problem

2007-05-25 Thread Ken Ara
bitten by this? BTW, I always override the tags. Ken --- Andrew Milton <[EMAIL PROTECTED]> wrote: > +---[ Ken Ara ]-- > | Virtual hosting for us is limited to two lines in > the > | default VHM mappings: > | > | mysite.org/mysite > | *.my

Re: [Zope] Redirection problem

2007-05-25 Thread Ken Ara
Virtual hosting for us is limited to two lines in the default VHM mappings: mysite.org/mysite *.mysite.org/mysite This minimal arrangement has worked for several years, although Pound and ZEO are new for us. No other problems. Ken --- Andrew Milton <[EMAIL PROTECTED]> wrote: > +---

[Zope] Redirection problem

2007-05-25 Thread Ken Ara
We have a filesystem product with an edit method that allows users to change some properties. At the end, the user is redirected to the page from which they came. Our setup has Squid in front on port 80, with Pound on port 81 load-balancing to 3 ZEO clients. No matter how we define the redirect U

Re: [Zope] Upgrade woes: BTreeFolder --> BTreeFolder2

2007-05-10 Thread Ken Ara
27; but no compendium of gotchas for upgraders. By learning the use of zopectl debug I now understand that I need to fix code containing 'get_transaction'... And one important project dependent on Localizer is still broken. We are not out of the woods yet! Ken --- Dieter Maurer wrote:

Re: [Zope] Upgrade woes: BTreeFolder --> BTreeFolder2

2007-05-07 Thread Ken Ara
This kind of thing wasn't working: >>> del app.OrgDocumentLibrary['Documents'] Traceback (most recent call last): File "", line 1, in ? AttributeError: __delitem__ >>> so I tried an experiment on an empty catalog: >>> del app.OrgDocumentLibrary.Documents_catalog No complaints from zopectl deb

Re: [Zope] Upgrade woes: BTreeFolder --> BTreeFolder2

2007-05-06 Thread Ken Ara
Lawrence, As I ponder Dieter's solution I quickly tried yours... with the result as follows: >>> del app.OrgDocumentLibrary['Documents'] Traceback (most recent call last): File "", line 1, in ? AttributeError: __delitem__ >>> I'll get this eventually... Thanks Ken --- Laurence Rowe wrote: >

[Zope] Re: Upgrade woes: BTreeFolder --> BTreeFolder2

2007-05-05 Thread Ken Ara
uld not import class 'BTree' from module 'BTree' Traceback (most recent call last): File "", line 1, in ? File "/usr/local/zope/lib/python/Products/BTreeFolder2/BTreeFolder2.py", line 347, in objectIds spec = mti.keys() #all meta types AttributeError: 'NoneT

Re: [Zope] Upgrade woes: BTreeFolder --> BTreeFolder2

2007-05-04 Thread Ken Ara
attribute 'keys' An error was encountered while publishing this resource. --- Dieter Maurer <[EMAIL PROTECTED]> wrote: > Ken Ara wrote at 2007-5-3 08:56 -0700: > >I have a couple of outstanding issues following an > >otherwise successful upgrade from Zope 2.7.4 to

[Zope] Upgrade woes: BTreeFolder --> BTreeFolder2

2007-05-03 Thread Ken Ara
I have a couple of outstanding issues following an otherwise successful upgrade from Zope 2.7.4 to 2.10.3-final. One key application used the old DocumentLibrary product (http://www.zope.org/Members/Kaivo/DocumentLibrary). I have since reimplemented most of the functionality and migrated out the c

Re: [Zope] Can't stop Zope, machine hanging

2006-09-13 Thread Ken Ara
I have a new problem but it's related, so I'll keep this thread alive. To recap: possibly due to some network problems at my hosting provider, my Zope would periodically stop responding and I was unable to stop, restart or kill it, or even restart the machine remotely. I am operating within a Free

Re: [Zope] Can't stop Zope, machine hanging

2006-09-06 Thread Ken Ara
Thank you, Dieter, for your valuable insights and information. I am forwarding this to my ISP. --- Dieter Maurer <[EMAIL PROTECTED]> wrote: > Ken Ara wrote at 2006-9-5 07:47 -0700: > >... > >Of immediate concern to me is whether I can do > >anything to prevent this

Re: [Zope] Can't stop Zope, machine hanging

2006-09-05 Thread Ken Ara
SP knew where to start. I can accept that, as Dieter said, there are times when the only choice is to switch off and on the box - which I can't do remotely - but wonder if I could have done more... --- Chris Withers <[EMAIL PROTECTED]> wrote: > Ken Ara wrote: > > One and a

Re: [Zope] Can't stop Zope, machine hanging

2006-09-05 Thread Ken Ara
o to diagnose the problem? Thanks, Ken --- Dieter Maurer <[EMAIL PROTECTED]> wrote: > Ken Ara wrote at 2006-9-2 23:43 -0700: > > ... > >I can't restart or stop Zope - > >'/usr/local/www/Zope/zope01/bin/zopectl stop' just > >produces '&#x

Re: [Zope] Can't stop Zope, machine hanging

2006-09-04 Thread Ken Ara
You are right, Dieter. The ISP network admin had to restart the machine. There seems to be no way to power down and then power up the machine remotely. Fortunately everything worked out. Thanks. --- Dieter Maurer <[EMAIL PROTECTED]> wrote: > Ken Ara wrote at 2006-9-2 23:43 -0700: >

Re: [Zope] Can't stop Zope, machine hanging

2006-09-03 Thread Ken Ara
to kill... --- Andreas Jung <[EMAIL PROTECTED]> wrote: > > > --On 3. September 2006 01:18:55 -0700 Ken Ara > <[EMAIL PROTECTED]> wrote: > > > Thanks Andreas, > > > > I am logged in as root user. > > Here is the result of 'top': >

Re: [Zope] Can't stop Zope, machine hanging

2006-09-03 Thread Ken Ara
tioned, I can't even reboot the machine, the shutdown command can't kill this process either. Ken --- Andreas Jung <[EMAIL PROTECTED]> wrote: > > > --On 2. September 2006 23:43:50 -0700 Ken Ara > <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > >

[Zope] Can't stop Zope, machine hanging

2006-09-02 Thread Ken Ara
Hi all, My Zope is stuck like never before. With my server on another continent, 8 hours time difference, and on a Sunday, I am pulling out my few remaining hairs... Our box runs FreeBSD 5, Zope 2.78 (if I remember correctly) and Squid. The ISP has been preparing for a move and shifted some mac

Re: [Zope] Ignore stopwords/characters in alphabetical results

2006-02-07 Thread Ken Ara
sattr(self, 'title'): nt = re.sub('^A |^An |^The |\W', ' ', self.title) nt = join(split(nt)) return nt I then added a norm_title index to my ZCatalog for sorting. I'm a regex newbie so any improvements are welcome! Thanks, Ken

[Zope] Ignore stopwords/characters in alphabetical results

2006-02-02 Thread Ken Ara
Hi, I have been asked to improve the order of search results, so that stop words and certain characters at the beginning of a title are ignored. "Final Report", "The Final Report" and "[Final] Report" all need to appear under the letter 'F'. We are running Zope 2.7.8-final with python 2.3.5, und

re: [Zope] working with urls

2005-07-25 Thread Ken Ara
Simplest might be to point a Path Handler (http://www.zope.org/Members/NIP/PathHandler) named 'generate' at your PDF generator script. Also, a Script(Python) 'generate' containing: return traverse_subpath when called http://mysite.com/generate/foo/bar/baz returns: ['foo', 'bar', 'baz'] This co