From lists at andreas-jung.com Sat Jan 1 06:07:07 2005 From: lists at andreas-jung.com (Andreas Jung) Date: Sat Jan 1 06:07:38 2005 Subject: [Zope] make an image a link in STX In-Reply-To: References: Message-ID: <02AF51656293159E992A5628@[10.0.2.4]> --On Samstag, 1. Januar 2005 1:54 Uhr +0100 "Rakotomandimby (R12y) Mihamina" wrote: > Hello, > > I would like, in structured text, to make an image to be a link. > I would do something that would render: > > > "foo":img:http://www.zope.org:8080/bar.gif -aj From dave at difference.com.au Mon Jan 3 02:07:30 2005 From: dave at difference.com.au (David Cake) Date: Mon Jan 3 02:20:20 2005 Subject: [Zope] Zope2.7 on Debian install problem Message-ID: Having a problem with upgrading Zope2.7 on Debian - when I run apt-get I keep getting Setting up zope2.7 (2.7.2-0-4) ... Traceback (most recent call last): File "/usr/lib/zope2.7/debian/fhs.py", line 31, in ? os.symlink(J((shared , a) ),J((debian , libd , a) )) OSError: [Errno 17] File exists dpkg: error processing zope2.7 (--configure): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: zope2.7 E: Sub-process /usr/bin/dpkg returned an error code (1) Any suggestions? Is there a more specific place for asking zope/debian specific questions? Cheers David From apaku at gmx.de Mon Jan 3 07:36:43 2005 From: apaku at gmx.de (Andreas Pakulat) Date: Mon Jan 3 07:36:31 2005 Subject: [Zope] Zope2.7 on Debian install problem In-Reply-To: References: Message-ID: <20050103123643.GF14175@morpheus.matrix.de> On 03.Jan 2005 - 15:07:30, David Cake wrote: > Having a problem with upgrading Zope2.7 on Debian - when I > run apt-get I keep getting > Setting up zope2.7 (2.7.2-0-4) ... You should do an update, Zope 2.7 is 2.7.3 in current Debian testing and unstable and woody has no zope27 (for woody I would suggest to compile python2.3 and zope27 from source) > Traceback (most recent call last): > File "/usr/lib/zope2.7/debian/fhs.py", line 31, in ? > os.symlink(J((shared , a) ),J((debian , libd , a) )) > OSError: [Errno 17] File exists > dpkg: error processing zope2.7 (--configure): This is http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=288350 If you have the same problem with a 2.7.3 Zope2.7 I'd suggest to send a report to this bug. > Is there a more specific place for asking zope/debian > specific questions? Debian-ML of your choice of course. Andreas -- You are dishonest, but never to the point of hurting a friend. From sgraber at gmail.com Mon Jan 3 08:39:57 2005 From: sgraber at gmail.com (Shane Graber) Date: Mon Jan 3 08:40:00 2005 Subject: [Zope] repozo Message-ID: Is there an automated tool for Zope that will run repozo on a set schedule to pack a Zeo/Zope Data.fs so that you don't have to manually call the script from the command line? Shane From lists at andreas-jung.com Mon Jan 3 08:52:09 2005 From: lists at andreas-jung.com (Andreas Jung) Date: Mon Jan 3 08:52:16 2005 Subject: [Zope] repozo In-Reply-To: References: Message-ID: <1197428DA9E731711EC0977C@[192.168.0.102]> --On Montag, 3. Januar 2005 8:39 Uhr -0500 Shane Graber wrote: > Is there an automated tool for Zope that will run repozo on a set > schedule to pack a Zeo/Zope Data.fs so that you don't have to manually > call the script from the command line? Use cron. -aj From andy at nnu.com Mon Jan 3 10:06:33 2005 From: andy at nnu.com (Andy Yates) Date: Mon Jan 3 10:06:35 2005 Subject: [Zope] Zope 2.7.3 Memory Leaks Message-ID: <93ED2D3FFABD164684F73914CF2A4D68013EE941@exchange.nnu.com> Still trying to track down an apparent memory leak that started after upgrading to 2.7.3. > -----Original Message----- > From: zope-bounces@zope.org [mailto:zope-bounces@zope.org] On Behalf Of Andy Yates > Sent: Thursday, December 02, 2004 4:24 PM > To: zope@zope.org > Subject: [Zope] Zope 2.7.3 Memory Leaks > > We recently upgraded from: > Zope Version (Zope 2.6.1 (source release, python 2.1, linux2), python > 2.2.2, linux2) > Python Version 2.2.2 (#1, Feb 24 2003, 19:13:11) [GCC 3.2.2 20030222 > (Red Hat Linux 3.2.2-4)] > > To: > Zope Version (Zope 2.7.3-0, python 2.3.4, linux2) > Python Version 2.3.4 (#1, Sep 14 2004, 10:22:31) [GCC 3.2.2 20030222 > (Red Hat Linux 3.2.2-5)] > > Now it seems to leak memory (400+ Mb) to the point I have to restart > Zope every 3 days. > If Zope is not restarted python2.3 will consume all physical memory and then start using swap. The server slows to a crawl and Zope will eventually stop serving pages. I've been watching the debug page in the control panel and the refcounts fluctuate up and down by small amounts but the trend is always up. They never seem to level off, they always climb. Is this typical or does this suggest a problem? I wrote a new test script in /usr/lib/Zope-2.7/lib/python/Products/Transience/tests that creates sessions with large arrays of random data. Running this test did not seem to cause any leaks. However, if I uses sessions in Zope, Zope seems to leak. The larger my session data the faster it leaks. Here is the output from the debug control panel. # Zope version: (Zope 2.7.3-0, python 2.3.4, linux2) # Python version: 2.3.4 (#1, Sep 14 2004, 10:22:31) [GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] # System Platform: linux2 # SOFTWARE_HOME: /usr/lib/Zope-2.7/lib/python # INSTANCE_HOME: /var/zope # CLIENT_HOME: /var/zope/var # Process ID: 22575 (1326767408) # Running for: 16 hours 36 min 56 sec # sys.path: /var/zope/lib/python /usr/lib/Zope-2.7/lib/python/Zope/Startup /usr/lib/Zope-2.7/lib/python /usr/lib/python23.zip /usr/lib/python2.3 /usr/lib/python2.3/plat-linux2 /usr/lib/python2.3/lib-tk /usr/lib/python2.3/lib-dynload /usr/lib/python2.3/site-packages Class January 2, 2005 5:57 pm January 3, 2005 8:36 am Delta Products.Transience.TransientObject.TransientObject 4041 14891 +10850 BTrees.OOBTree.OOBTree 2019 11997 +9978 BTrees.OOBTree.OOBucket 1297 5512 +4215 Products.PageTemplates.Expressions.SubPathExpr 6669 9911 +3242 Products.PageTemplates.Expressions.PathExpr 2644 3858 +1214 Products.PageTemplates.ZopePageTemplate.ZopePageTemplate 1542 2027 +485 Shared.DC.Scripts.Bindings.NameAssignments 880 1333 +453 Products.PageTemplates.ZRPythonExpr.PythonExpr 1062 1411 +349 Products.PythonScripts.PythonScript.PythonScript 679 833 +154 Products.PageTemplates.Expressions.StringExpr 294 448 +154 OFS.Image.Image 488 641 +153 BTrees.IOBTree.IOBucket 74 211 +137 Shared.DC.Scripts.Signature.FuncCode 375 490 +115 RestrictedPython.PrintCollector.PrintCollector 188 303 +115 Products.ZSQLMethods.SQL.SQL 519 629 +110 Shared.DC.ZRDB.DA.SQL 117 198 +81 Shared.DC.ZRDB.Aqueduct.Args 117 198 +81 App.Extensions.NoBrains 114 194 +80 Shared.DC.ZRDB.sqlvar.SQLVar 141 217 +76 DocumentTemplate.DT_HTML.HTML 111 177 +66 OFS.Folder.Folder 547 604 +57 Products.PageTemplates.Expressions.NotExpr 200 254 +54 Persistence.PersistentMapping 106 156 +50 Shared.DC.ZRDB.sqltest.SQLTest 85 134 +49 OFS.Image.File 32 72 +40 ZPublisher.HTTPRequest.record 15 43 +28 OFS.Image.Pdata 18 44 +26 Products.XMLRPCMethod.XMLRPCMethod.XMLRPCMethod 13 37 +24 Shared.DC.ZRDB.sqlgroup.SQLGroup 35 50 +15 DocumentTemplate.DT_Util.Eval 341 353 +12 OFS.DTMLDocument.DTMLDocument 55 67 +12 Products.PlacelessTranslationService.GettextMessageCatalog.GettextMessag eCatalog 25 35 +10 App.Extensions.FuncCode 24 34 +10 AccessControl.User.User 11 20 +9 App.ApplicationManager.ApplicationManager 22 30 +8 Products.ZMySQLDA.DA.Connection 20 28 +8 Products.SiteErrorLog.SiteErrorLog.SiteErrorLog 32 37 +5 AccessControl.User.UserFolder 31 35 +4 DocumentTemplate.DT_Var.Comment 10 14 +4 Products.MailHost.MailHost.MailHost 8 12 +4 App.Product.ProductFolder 10 13 +3 Products.PlacelessTranslationService.PlacelessTranslationService.Placele ssTranslationService 9 12 +3 App.ApplicationManager.DebugManager 7 9 +2 pyrad.dictionary.Dictionary 4 6 +2 pyrad.client.Client 4 6 +2 DateTime.DateTime.DateTime 71 72 +1 ZServer.medusa.counter.counter 31 32 +1 Products.ZMySQLDA.db.DB 19 20 +1 ZServer.HTTPServer.zhttp_channel 6 7 +1 asynchat.fifo 5 6 +1 Thanks! Andy From fairwinds at eastlink.ca Mon Jan 3 11:43:12 2005 From: fairwinds at eastlink.ca (David Pratt) Date: Mon Jan 3 11:43:21 2005 Subject: [Zope] ZPT - handling empty table cells with   In-Reply-To: <93ED2D3FFABD164684F73914CF2A4D68013EE941@exchange.nnu.com> Message-ID: <8E7CB7FA-5DA6-11D9-9DC5-000A27B3B070@eastlink.ca> Probably a pretty simple question. The following gives me an &nbsp; in my output which is probably what I am telling it to do. I want a simple   so that my empty td's have contents when there is nothing in them and my tables will behave in IE.   Description goes here. Can someone advise me what I should be substituting in the string to provide the desired output. Also, is there a better way of handling empty table cells than a separate set of condition statements for each td that may be empty? Regards, David From apm13 at columbia.edu Mon Jan 3 12:11:07 2005 From: apm13 at columbia.edu (Alec Mitchell) Date: Mon Jan 3 12:11:00 2005 Subject: [Zope] ZPT - handling empty table cells with   In-Reply-To: <8E7CB7FA-5DA6-11D9-9DC5-000A27B3B070@eastlink.ca> References: <8E7CB7FA-5DA6-11D9-9DC5-000A27B3B070@eastlink.ca> Message-ID: <200501030911.07688.apm13@columbia.edu> On Monday 03 January 2005 08:43 am, David Pratt wrote: > Probably a pretty simple question. The following gives me an > &nbsp; in my output which is probably what I am telling it to do. > I want a simple   so that my empty td's have contents when there > is nothing in them and my tables will behave in IE. > > > tal:content="string:  " tal:omit-tag=""> >   > > tal:content="option_description" tal:omit-tag=""> > Description goes here. > > > > Can someone advise me what I should be substituting in the string to > provide the desired output. Also, is there a better way of handling > empty table cells than a separate set of condition statements for each > td that may be empty? You can just change 'string:  ' to 'structure string:  ', so that it is not html quoted. I would also use 'tal:replace' in place of 'tal:content' and 'tal:omit-tag', and perhaps simplify the conditions to 'tal:condition="option_description"' and 'tal:condition="not: option_description"' (unless you explicitly want to show non-string false values like 0, False, [], {}, (), None as strings, which you may). Alec Mitchell From pw_lists at slinkp.com Mon Jan 3 12:26:04 2005 From: pw_lists at slinkp.com (Paul Winkler) Date: Mon Jan 3 12:26:09 2005 Subject: [Zope] ZPT - handling empty table cells with   In-Reply-To: <200501030911.07688.apm13@columbia.edu> References: <8E7CB7FA-5DA6-11D9-9DC5-000A27B3B070@eastlink.ca> <200501030911.07688.apm13@columbia.edu> Message-ID: <20050103172604.GB2218@slinkp.com> On Mon, Jan 03, 2005 at 09:11:07AM -0800, Alec Mitchell wrote: > On Monday 03 January 2005 08:43 am, David Pratt wrote: > > Probably a pretty simple question. The following gives me an > > &nbsp; in my output which is probably what I am telling it to do. > > I want a simple   so that my empty td's have contents when there > > is nothing in them and my tables will behave in IE. > > > > > > > tal:content="string:  " tal:omit-tag=""> > >   > > > > > tal:content="option_description" tal:omit-tag=""> > > Description goes here. > > > > > > > > Can someone advise me what I should be substituting in the string to > > provide the desired output. Also, is there a better way of handling > > empty table cells than a separate set of condition statements for each > > td that may be empty? > > You can just change 'string:  ' to 'structure string:  ', so that it > is not html quoted. I would also use 'tal:replace' in place of 'tal:content' > and 'tal:omit-tag' ... (snip) WHy not leave out tal:replace or tal:content entirely?   That has the effect I think you're after. -PW -- Paul Winkler http://www.slinkp.com From ralph at ezcompany.nl Mon Jan 3 13:02:15 2005 From: ralph at ezcompany.nl (Ralph vd Houdt) Date: Mon Jan 3 13:02:19 2005 Subject: [Zope] Browser Id Cookie problem Message-ID: <41D988A7.9020404@ezcompany.nl> Hi All, I've a strange problem with the Browser Id en Internet Explorer 6 clients. Sometimes a client keeps getting a new browser id and as a result the sessioning doesn't work. This is resolved bij removing the cookies of the client, after that the client is keeping the same browser id again, but after a while the same problem can occur again. Has anyone had the same problem or anyone to know a solution to this problem? Greetings Ralph PS: Using Zope 2.7.3 From fairwinds at eastlink.ca Mon Jan 3 13:28:17 2005 From: fairwinds at eastlink.ca (David Pratt) Date: Mon Jan 3 13:28:23 2005 Subject: [Zope] ZPT - handling empty table cells with   In-Reply-To: <8E7CB7FA-5DA6-11D9-9DC5-000A27B3B070@eastlink.ca> Message-ID: <3D03E7DB-5DB5-11D9-9DC5-000A27B3B070@eastlink.ca> The solutions are good. Many thanks for ZPT help. Regards, David From dieter at handshake.de Mon Jan 3 13:30:19 2005 From: dieter at handshake.de (Dieter Maurer) Date: Mon Jan 3 13:51:06 2005 Subject: [Zope] ZPT - handling empty table cells with   In-Reply-To: <8E7CB7FA-5DA6-11D9-9DC5-000A27B3B070@eastlink.ca> References: <93ED2D3FFABD164684F73914CF2A4D68013EE941@exchange.nnu.com> <8E7CB7FA-5DA6-11D9-9DC5-000A27B3B070@eastlink.ca> Message-ID: <16857.36667.866146.806261@gargle.gargle.HOWL> David Pratt wrote at 2005-1-3 12:43 -0400: >Probably a pretty simple question. The following gives me an >&nbsp; in my output which is probably what I am telling it to do. >I want a simple   so that my empty td's have contents when there >is nothing in them and my tables will behave in IE. Indeed. Use the "structure" keyword to tell "tal:content/replace" not to perform HTML quoting... Read the Zope Book (2.6/2.7 edition, online) in case you are unfamiliar with "structure"... -- Dieter From dieter at handshake.de Mon Jan 3 13:28:42 2005 From: dieter at handshake.de (Dieter Maurer) Date: Mon Jan 3 13:51:07 2005 Subject: [Zope] Zope 2.7.3 Memory Leaks In-Reply-To: <93ED2D3FFABD164684F73914CF2A4D68013EE941@exchange.nnu.com> References: <93ED2D3FFABD164684F73914CF2A4D68013EE941@exchange.nnu.com> Message-ID: <16857.36570.203648.589178@gargle.gargle.HOWL> Andy Yates wrote at 2005-1-3 09:06 -0600: > ... >I've been watching the debug page in the control panel and the refcounts >fluctuate up and down by small amounts but the trend is always up. They >never seem to level off, they always climb. > >Is this typical or does this suggest a problem? Flush the ZODB caches ("Control_Panel --> Database Management --> --> "Flush cache" --> "minimize"). After that, all reference counts should be small. If not, you have a leak. The classes with high reference counts probably will give you glues which objects are leaking... > ... >Products.Transience.TransientObject.TransientObject 4041 14891 >+10850 It is strange that you have that many session objects... What is your session limit? What is your session exiration time? -- Dieter From andy at nnu.com Mon Jan 3 14:49:57 2005 From: andy at nnu.com (Andy Yates) Date: Mon Jan 3 14:49:59 2005 Subject: [Zope] Zope 2.7.3 Memory Leaks Message-ID: <93ED2D3FFABD164684F73914CF2A4D68013EE946@exchange.nnu.com> > -----Original Message----- > From: Dieter Maurer [mailto:dieter@handshake.de] > Sent: Monday, January 03, 2005 12:29 PM > To: Andy Yates > Cc: zope@zope.org > Subject: RE: [Zope] Zope 2.7.3 Memory Leaks > > Andy Yates wrote at 2005-1-3 09:06 -0600: > > ... > >I've been watching the debug page in the control panel and the refcounts > >fluctuate up and down by small amounts but the trend is always up. They > >never seem to level off, they always climb. > > > >Is this typical or does this suggest a problem? > > Flush the ZODB caches ("Control_Panel --> Database Management --> > --> "Flush cache" --> "minimize"). > > After that, all reference counts should be small. > If not, you have a leak. The classes with high reference counts > probably will give you glues which objects are leaking... > After flushing main and temporary Class January 2, 2005 5:57 pm January 3, 2005 12:54 pm Delta DocumentTemplate.DT_In.InClass 37 53 +16 compiler.misc.Set 10 19 +9 compiler.pyassem.PyFlowGraph 9 15 +6 compiler.visitor.ASTVisitor 8 14 +6 RestrictedPython.RCompile.RestrictedExpressionCodeGenerator 9 14 +5 compiler.ast.Compare 6 11 +5 compiler.pyassem.Block 5 9 +4 pyrad.dictionary.Dictionary 4 8 +4 pyrad.client.Client 4 8 +4 compiler.ast.Const 10 13 +3 compiler.ast.Expression 8 11 +3 DocumentTemplate.DT_With.With 8 11 +3 compiler.symbols.SymbolVisitor 3 6 +3 compiler.ast.Name 18 20 +2 App.ApplicationManager.DebugManager 7 9 +2 compiler.pycodegen.LocalNameFinder 5 7 +2 compiler.misc.Stack 5 7 +2 compiler.pycodegen.ClassCodeGenerator 4 6 +2 DocumentTemplate.DT_Var.Var 25 26 +1 compiler.pycodegen.FunctionCodeGenerator 7 8 +1 compiler.symbols.ModuleScope 4 5 +1 compiler.pyassem.LineAddrTable 4 5 +1 RestrictedPython.RCompile.RestrictedFunctionCodeGenerator 3 4 +1 OK so the numbers are small. This means there is no leak right? It may not be leaking, but python still consumes all available memory and dies unless I restart Zope every few days. ;-) > > ... > >Products.Transience.TransientObject.TransientObject 4041 14891 > >+10850 > > It is strange that you have that many session objects... > > What is your session limit? What is your session exiration time? > Maximum number of subobjects is infinite (0) Data object timeout is 45 minutes Andy From dave at difference.com.au Mon Jan 3 12:17:54 2005 From: dave at difference.com.au (David Cake) Date: Mon Jan 3 15:23:09 2005 Subject: [Zope] Zope2.7 on Debian install problem In-Reply-To: <20050103123643.GF14175@morpheus.matrix.de> References: <20050103123643.GF14175@morpheus.matrix.de> Message-ID: At 1:36 PM +0100 3/1/05, Andreas Pakulat wrote: >On 03.Jan 2005 - 15:07:30, David Cake wrote: >> Having a problem with upgrading Zope2.7 on Debian - when I >> run apt-get I keep getting >> Setting up zope2.7 (2.7.2-0-4) ... > >You should do an update, Zope 2.7 is 2.7.3 in current Debian testing >and unstable and woody has no zope27 (for woody I would suggest to >compile python2.3 and zope27 from source) > >> Traceback (most recent call last): >> File "/usr/lib/zope2.7/debian/fhs.py", line 31, in ? >> os.symlink(J((shared , a) ),J((debian , libd , a) )) >> OSError: [Errno 17] File exists >> dpkg: error processing zope2.7 (--configure): > >This is http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=288350 Yep, that was the bug I submitted - wrongly, as it appears I've been bitten by an out of date debian mirror. >If you have the same problem with a 2.7.3 Zope2.7 I'd suggest to send >a report to this bug. Thanks - that seems to have fixed it. Cheers David From pw_lists at slinkp.com Mon Jan 3 15:51:36 2005 From: pw_lists at slinkp.com (Paul Winkler) Date: Mon Jan 3 15:51:41 2005 Subject: [Zope] ANN: ZSyncer 0.6.1-beta2 released Message-ID: <20050103205136.GA15768@slinkp.com> Hiya, I'd like to ask all ZSyncer users to please try out ZSyncer 0.6.1-beta2 if you can. It's on sourceforge at: http://sourceforge.net/project/showfiles.php?group_id=28073 This release fixes or obviates all bugs I know about. I need some field testing before releasing 0.6.1-final which I would like to be very stable and usable. Thanks! -- Paul Winkler http://www.slinkp.com From ceto at gmx.ch Tue Jan 4 05:23:54 2005 From: ceto at gmx.ch (ceto@gmx.ch) Date: Tue Jan 4 05:23:57 2005 Subject: [Zope] [Newbie] MSWordDocument References: <41BBAE1B.8080303@cyr.info> Message-ID: <18012.1104834234@www21.gmx.net> Hi all I use Plone 2 with Enterprise Enhancements from CA in a Win XP sp2. It works fine (even i dont know how :) Now i tried to install Eric Barroccas MSWordDocument 0.8. I untarred the folder to ..\Plone\Data\Products\ Die Installation should work like this: ------------- MS Windows systems 1. Install Python1.5 and Win32 Extensions build 136 (win32all-136.exe). 2. Extract MSWord Document Product archive (MSWordDocument.tar.gz) in your Zope Products directory. 3. Generate Python/COM bindings: * Find and launch "makepy.py" * Select "Microsoft Word x Object Library" * Valid 4. Make sure Zope is allowed to write in C:\WINDOWS\TEMP 5. Start Zope with 'C:\PROGRA~1\PYTHON\PYTHON.EXE C:\ZOPE_ROOT\Z2.PY -D' Note: Win32 extensions are available from http://downloads.activestate.com/ActivePython/windows/win32all/win32all-136.exe ------------- 1. First of all there isnt a Win32 extension on activestates Page anymore. 2. Whats the point "valid" meaning? 3. I cant find a script named Z2.PY please help g* ceto -- +++ GMX - die erste Adresse für Mail, Message, More +++ 1 GB Mailbox bereits in GMX FreeMail http://www.gmx.net/de/go/mail From trmsw at yahoo.co.uk Tue Jan 4 11:01:37 2005 From: trmsw at yahoo.co.uk (Tom Schutzer-Weissmann) Date: Tue Jan 4 11:16:23 2005 Subject: [Zope] zopeshell Message-ID: <1104854496.26682.20.camel@expensive> Is the zopeshell kaput? Is there some replacement? I thought perhaps I could use zopectl debug, but our server is windows... Tom From tseaver at zope.com Tue Jan 4 13:34:44 2005 From: tseaver at zope.com (Tres Seaver) Date: Tue Jan 4 13:34:43 2005 Subject: [Zope] Re: zopeshell In-Reply-To: <1104854496.26682.20.camel@expensive> References: <1104854496.26682.20.camel@expensive> Message-ID: <41DAE1C4.3030700@zope.com> Tom Schutzer-Weissmann wrote: > Is the zopeshell kaput? Is there some replacement? > > I thought perhaps I could use zopectl debug, but our server is > windows... You could invoke python the same way 'debug' command of zopectl does, e.g.: $ python -c "import Zope Zope.configure( '/path/to/zope.conf' ) app = Zope.app()" -i from within a shell / batch file with the appropriate environment set up (i.e., containing PYTHONPATH, SOFTWARE_HOME, and INSTANCE_HOME). Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From sboggess at gmail.com Tue Jan 4 13:44:58 2005 From: sboggess at gmail.com (Sam Boggess) Date: Tue Jan 4 13:45:01 2005 Subject: [Zope] return a pdf from a python script Message-ID: <41DAE42A.8070405@gmail.com> Could someone please tell me how I can return a pdf from a python script? return context.blah.pdf() does not work. thanks From lists at andreas-jung.com Tue Jan 4 13:53:22 2005 From: lists at andreas-jung.com (Andreas Jung) Date: Tue Jan 4 13:53:26 2005 Subject: [Zope] return a pdf from a python script In-Reply-To: <41DAE42A.8070405@gmail.com> References: <41DAE42A.8070405@gmail.com> Message-ID: <1DF672C1C233014B12183869@[192.168.0.102]> --On Dienstag, 4. Januar 2005 10:44 Uhr -0800 Sam Boggess wrote: > Could someone please tell me how I can return a pdf from a python script? > return context.blah.pdf() does not work. > Look at the PloneCollectorNG sources -> asPDF() method. -aj From pw_lists at slinkp.com Tue Jan 4 13:53:56 2005 From: pw_lists at slinkp.com (Paul Winkler) Date: Tue Jan 4 13:53:58 2005 Subject: [Zope] return a pdf from a python script In-Reply-To: <41DAE42A.8070405@gmail.com> References: <41DAE42A.8070405@gmail.com> Message-ID: <20050104185356.GD2196@slinkp.com> On Tue, Jan 04, 2005 at 10:44:58AM -0800, Sam Boggess wrote: > Could someone please tell me how I can return a pdf from a python > script? return context.blah.pdf() does not work. that's because you're looking for the "pdf" attribute of the "blah" object. getattr(context, "blah.pdf") should get you the file object... -- Paul Winkler http://www.slinkp.com From dieter at handshake.de Tue Jan 4 14:30:17 2005 From: dieter at handshake.de (Dieter Maurer) Date: Tue Jan 4 14:48:43 2005 Subject: [Zope] zopeshell In-Reply-To: <1104854496.26682.20.camel@expensive> References: <1104854496.26682.20.camel@expensive> Message-ID: <16858.61129.922277.882567@gargle.gargle.HOWL> Tom Schutzer-Weissmann wrote at 2005-1-4 16:01 +0000: >Is the zopeshell kaput? Is there some replacement? I do not know what you mean with the "zopeshell". >I thought perhaps I could use zopectl debug, but our server is >windows... Put the definitions you find in "bin/runzope.bat" into your environment. Run python -i -c "from Zope import configure; configure('path to your config file'); import Zope; app=Zope.app()" Of course, you can put this into a batch file. -- Dieter From dieter at handshake.de Tue Jan 4 14:19:17 2005 From: dieter at handshake.de (Dieter Maurer) Date: Tue Jan 4 14:48:44 2005 Subject: [Zope] Zope 2.7.3 Memory Leaks In-Reply-To: <93ED2D3FFABD164684F73914CF2A4D68013EE946@exchange.nnu.com> References: <93ED2D3FFABD164684F73914CF2A4D68013EE946@exchange.nnu.com> Message-ID: <16858.60469.914563.15939@gargle.gargle.HOWL> Andy Yates wrote at 2005-1-3 13:49 -0600: > ... >After flushing main and temporary > ... >OK so the numbers are small. This means there is no leak right? Right -- at least not the usually leaks. The reference count list shows you only reference counts for instances (and not elementary types). You might build leaking cycles consisting only of elementary types -- but this is quite unlikely. Also, Python never releases integer objects it has constructed. Thus, once you iterated from 0 to 4 G, you have several GB of integer objects -- but it is unlikely that you do this... > It may >not be leaking, but python still consumes all available memory and dies >unless I restart Zope every few days. ;-) You did this flushing and looking at the reference counts in a process that already had run for several days (and therefore was quite huge)? Do you use C extensions that create non-Python objects (and therefore do not have reference counts and show up in the list)? Maybe, such a C extension is leaking. There are tools to analyse memory leaks (and other memory related problems). Once, I have use the (commercial and expensive!) "purify". Andreas (Jung) told me that there are free open source tools for this purpose around. Unfortunately, I forgot the details (I only create standard leaks :-) > ... >Maximum number of subobjects is infinite (0) >Data object timeout is 45 minutes Are your sessions huge? Usually, they are stored as pickles in RAM. If they were huge, some thousands of sessions might consume a considerable amount of RAM. You would not see them in the reference counts because Pickles are strings and you see only instances. -- Dieter From tim.peters at gmail.com Tue Jan 4 15:46:07 2005 From: tim.peters at gmail.com (Tim Peters) Date: Tue Jan 4 15:46:08 2005 Subject: [Zope] Zope 2.7.3 Memory Leaks In-Reply-To: <16858.60469.914563.15939@gargle.gargle.HOWL> References: <93ED2D3FFABD164684F73914CF2A4D68013EE946@exchange.nnu.com> <16858.60469.914563.15939@gargle.gargle.HOWL> Message-ID: <1f7befae050104124624e3f96b@mail.gmail.com> [Dieter Maurer] > ... > Also, Python never releases integer objects it has constructed. > Thus, once you iterated from 0 to 4 G, you have several GB > of integer objects -- but it is unlikely that you do this... But Python does reuse space allocated for integers when it can. So, for example, this causes no visible memory growth: i = 0 while i < 4*1024**3: i += 1 If it were possible (it isn't) to get away with doing range(4*1024**3) then the space for those 4 billion *simultaneously-alive* integers would indeed stick around forever. Same story for floats, BTW. It's the maximum number simultaneously alive that matters here, not the total number of ints or floats ever created. In any case, I sure agree this is unlikely to be "the problem" that's biting Andy. From dreiland at hotmail.com Tue Jan 4 22:15:07 2005 From: dreiland at hotmail.com (Doug Reiland) Date: Tue Jan 4 22:16:03 2005 Subject: [Zope] dreamwaeaver, zope, and webdav Message-ID: I can't figure out the magic needed to get dreamweaver mx 2004 and zope configured. I am sorry if this information is been already discussed, but I can only find old or disjointed information. I am using the latest 2.7.x zope. and Dreamweaver MX 2004. I have configured Dreamweaver's webdav access to my site without problems. What is the story on accessing zope's file (for example index_html) in dreamweaver? Is there other setup issues needed for Dreamweaver to handle zope's file/tags? Are there better options for external editors for zope? I see some talk about put_factory configuration from years past, but it is not clear to me what that is or if it still is needed. Again, I am sorry if this is rehash, but I would think there would be cookier cutter setup steps somewhere. Thanks in advance From lists at andreas-jung.com Wed Jan 5 01:01:55 2005 From: lists at andreas-jung.com (Andreas Jung) Date: Wed Jan 5 01:02:05 2005 Subject: [Zope] dreamwaeaver, zope, and webdav In-Reply-To: References: Message-ID: <85A72679E1C53A23CA806732@[192.168.0.102]> --On Dienstag, 4. Januar 2005 22:15 Uhr -0500 Doug Reiland wrote: > I can't figure out the magic needed to get dreamweaver mx 2004 and zope > configured. I am sorry if this information is been already discussed, but > I can only find old or disjointed information. > > I am using the latest 2.7.x zope. and Dreamweaver MX 2004. > I have configured Dreamweaver's webdav access to my site without problems. > What is the story on accessing zope's file (for example index_html) in > dreamweaver? > Is there other setup issues needed for Dreamweaver to handle zope's > file/tags? > If you have a specific problem then please give a detailed problem description and tell us *what* does not work. As a first step ensure that you are accessing Zope on the *webdav* port and *not* on the HTTP port (see zope.conf). -aj From lists at andreas-jung.com Wed Jan 5 01:13:16 2005 From: lists at andreas-jung.com (Andreas Jung) Date: Wed Jan 5 01:13:20 2005 Subject: [Zope] [Newbie] MSWordDocument In-Reply-To: <18012.1104834234@www21.gmx.net> References: <41BBAE1B.8080303@cyr.info> <18012.1104834234@www21.gmx.net> Message-ID: <50EE351407076421FC27C622@[192.168.0.102]> --On Dienstag, 4. Januar 2005 11:23 Uhr +0100 ceto@gmx.ch wrote: > MSWordDocument I know nothing about MSWOrdDocument and I could not find it through Google. The recommended way to store Word documents with Zope is using File + TextIndexNG. -aj From sgraber at gmail.com Wed Jan 5 01:22:28 2005 From: sgraber at gmail.com (Shane Graber) Date: Wed Jan 5 01:22:30 2005 Subject: [Zope] Hiding header? Message-ID: Is it possible to hide the header that Zope advertises? Currently, Zope is advertising "Server: Zope/(Zope 2.7.3-0, python 2.3.4, linux2) ZServer/1.1 Plone/2.0.5", that is forwarded as is by Apache. I know that apache can be set to hide its current version. It would be nice if we could do the same with Zope. Is this possible? Where/how do we do it? Shane From lists at andreas-jung.com Wed Jan 5 01:28:56 2005 From: lists at andreas-jung.com (Andreas Jung) Date: Wed Jan 5 01:29:01 2005 Subject: [Zope] Hiding header? In-Reply-To: References: Message-ID: --On Mittwoch, 5. Januar 2005 1:22 Uhr -0500 Shane Graber wrote: > Is it possible to hide the header that Zope advertises? > > Currently, Zope is advertising "Server: Zope/(Zope 2.7.3-0, python > 2.3.4, linux2) ZServer/1.1 Plone/2.0.5", that is forwarded as is by > Apache. > > I know that apache can be set to hide its current version. It would > be nice if we could do the same with Zope. Is this possible? > Where/how do we do it? > Likely by hacking the sources. -aj From maxm at mxm.dk Wed Jan 5 05:15:08 2005 From: maxm at mxm.dk (Max M) Date: Wed Jan 5 05:13:59 2005 Subject: [Zope] Re: dreamwaeaver, zope, and webdav In-Reply-To: References: Message-ID: Doug Reiland wrote: > I can't figure out the magic needed to get dreamweaver mx 2004 and zope > configured. I am sorry if this information is been already discussed, > but I can only find old or disjointed information. > > Are there better options for external editors for zope? It works absolutely like a charm. I don't think you can have a better combo than Zope and Dreamweaver. You have probably not started the Webdav port. But are trying to access it through port 80. That will seem to work, but it doesn't. -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science From tino at wildenhain.de Wed Jan 5 05:33:13 2005 From: tino at wildenhain.de (Tino Wildenhain) Date: Wed Jan 5 05:33:28 2005 Subject: [Zope] Re: dreamwaeaver, zope, and webdav In-Reply-To: References: Message-ID: <1104921194.4978.9.camel@sabrina.peacock.de> Hi, On Wed, 2005-01-05 at 11:15 +0100, Max M wrote: > Doug Reiland wrote: > > I can't figure out the magic needed to get dreamweaver mx 2004 and zope > > configured. I am sorry if this information is been already discussed, > > but I can only find old or disjointed information. > > > > Are there better options for external editors for zope? > > It works absolutely like a charm. I don't think you can have a better > combo than Zope and Dreamweaver. > > You have probably not started the Webdav port. > Webdav-Source port to be precise. The standard port supports webdav too. Works like a charm with the correct clients :-) > But are trying to access it through port 80. That will seem to work, but > it doesn't. What Useragent string is dreamcrapper mx 2004 sending btw? One can add a useragent string to zope.conf and have webdav source support via web port too. -- Tino Wildenhain From dreiland at hotmail.com Wed Jan 5 06:00:33 2005 From: dreiland at hotmail.com (Doug Reiland) Date: Wed Jan 5 06:01:02 2005 Subject: [Zope] dreamwaeaver, zope, and webdav References: <85A72679E1C53A23CA806732@[192.168.0.102]> Message-ID: aj, My problem: I can connect to my site via webdav using Dreamweaver, but: 1) can't get it edit files like index_html without renaming them (say index.html) 2) doesn't understand the zope tags in files and gives warnings (tal:XXX). I was using the main port (8080), but have changed it to port 1980 as described in zope.conf. From the zope console I see: Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.FTPServer.FTPServer (Port: 8021) ZServer.HTTPServer.zhttp_server (Port: 1980) Using the 1980 port, didn't make any difference. Thanks, Doug ----- Original Message ----- From: Andreas Jung To: Doug Reiland ; zope@zope.org Sent: Wednesday, January 05, 2005 1:01 AM Subject: Re: [Zope] dreamwaeaver, zope, and webdav --On Dienstag, 4. Januar 2005 22:15 Uhr -0500 Doug Reiland > wrote: > I can't figure out the magic needed to get dreamweaver mx 2004 and zope > configured. I am sorry if this information is been already discussed, but > I can only find old or disjointed information. > > I am using the latest 2.7.x zope. and Dreamweaver MX 2004. > I have configured Dreamweaver's webdav access to my site without problems. > What is the story on accessing zope's file (for example index_html) in > dreamweaver? > Is there other setup issues needed for Dreamweaver to handle zope's > file/tags? > If you have a specific problem then please give a detailed problem description and tell us *what* does not work. As a first step ensure that you are accessing Zope on the *webdav* port and *not* on the HTTP port (see zope.conf). -aj -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.zope.org/pipermail/zope/attachments/20050105/f7e2bea4/attachment.htm From dreiland at hotmail.com Wed Jan 5 06:31:47 2005 From: dreiland at hotmail.com (Doug Reiland) Date: Wed Jan 5 06:32:03 2005 Subject: [Zope] Re: dreamwaeaver, zope, and webdav References: <1104921194.4978.9.camel@sabrina.peacock.de> Message-ID: I can connect to the site via dreamweaver fine using the standard port and webdav-source port. However, how do you get dreamweaver to understand the zope files. For example, the no-extension files like index_html and zope tags inside of files. Thanks! ----- Original Message ----- From: Tino Wildenhain To: Max M Cc: zope@zope.org Sent: Wednesday, January 05, 2005 5:33 AM Subject: Re: [Zope] Re: dreamwaeaver, zope, and webdav Hi, On Wed, 2005-01-05 at 11:15 +0100, Max M wrote: > Doug Reiland wrote: > > I can't figure out the magic needed to get dreamweaver mx 2004 and zope > > configured. I am sorry if this information is been already discussed, > > but I can only find old or disjointed information. > > > > Are there better options for external editors for zope? > > It works absolutely like a charm. I don't think you can have a better > combo than Zope and Dreamweaver. > > You have probably not started the Webdav port. > Webdav-Source port to be precise. The standard port supports webdav too. Works like a charm with the correct clients :-) > But are trying to access it through port 80. That will seem to work, but > it doesn't. What Useragent string is dreamcrapper mx 2004 sending btw? One can add a useragent string to zope.conf and have webdav source support via web port too. -- Tino Wildenhain > _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.zope.org/pipermail/zope/attachments/20050105/aeb1483d/attachment.htm From garito at sistes.net Wed Jan 5 08:13:13 2005 From: garito at sistes.net (Garito) Date: Wed Jan 5 08:13:40 2005 Subject: [Zope] IIS and Zope (again) In-Reply-To: <1104921194.4978.9.camel@sabrina.peacock.de> References: <1104921194.4978.9.camel@sabrina.peacock.de> Message-ID: <41DBE7E9.2090507@sistes.net> Hi all! Some days ago I ask here for a IIS redirector to Zope Volker points to me to these url /http://freshlogic.net/ /because I need a free solution (thanks again Volker!) But recently these people don't support the redirector for free anymore Do you know any IIS redirector for free? Thanks a lot! From sgraber at gmail.com Wed Jan 5 08:35:34 2005 From: sgraber at gmail.com (Shane Graber) Date: Wed Jan 5 08:35:37 2005 Subject: [Zope] Hiding header? In-Reply-To: References: Message-ID: And where would one find the source for this information in the Zope source code? Shane On Wed, 05 Jan 2005 07:28:56 +0100, Andreas Jung wrote: > > > --On Mittwoch, 5. Januar 2005 1:22 Uhr -0500 Shane Graber > wrote: > > > Is it possible to hide the header that Zope advertises? > > > > Currently, Zope is advertising "Server: Zope/(Zope 2.7.3-0, python > > 2.3.4, linux2) ZServer/1.1 Plone/2.0.5", that is forwarded as is by > > Apache. > > > > I know that apache can be set to hide its current version. It would > > be nice if we could do the same with Zope. Is this possible? > > Where/how do we do it? > > > > Likely by hacking the sources. > > -aj > From lists at andreas-jung.com Wed Jan 5 08:47:52 2005 From: lists at andreas-jung.com (Andreas Jung) Date: Wed Jan 5 08:48:00 2005 Subject: [Zope] Hiding header? In-Reply-To: References: Message-ID: --On Mittwoch, 5. Januar 2005 8:35 Uhr -0500 Shane Graber wrote: > And where would one find the source for this information in the Zope > source code? Likely in ZServer or Medusa. grep is your friend. -aj From tino at wildenhain.de Wed Jan 5 09:07:25 2005 From: tino at wildenhain.de (Tino Wildenhain) Date: Wed Jan 5 09:07:42 2005 Subject: [Zope] Hiding header? In-Reply-To: References: Message-ID: <1104934045.4978.16.camel@sabrina.peacock.de> On Wed, 2005-01-05 at 08:35 -0500, Shane Graber wrote: > > On Wed, 05 Jan 2005 07:28:56 +0100, Andreas Jung wrote: > > > > > > --On Mittwoch, 5. Januar 2005 1:22 Uhr -0500 Shane Graber > > wrote: > > > > > Is it possible to hide the header that Zope advertises? > > > > > > Currently, Zope is advertising "Server: Zope/(Zope 2.7.3-0, python > > > 2.3.4, linux2) ZServer/1.1 Plone/2.0.5", that is forwarded as is by > > > Apache. > > > > > > I know that apache can be set to hide its current version. It would > > > be nice if we could do the same with Zope. Is this possible? > > > Where/how do we do it? > > > > > > > Likely by hacking the sources. > > And where would one find the source for this information in the Zope > source code? > > Shane > You could use apaches mod_header to filter that Header or grep the source of zope. Btw. what do you think you gain if you hide that information? Regards Tino From aschmidt at fredericksburg.com Wed Jan 5 09:12:11 2005 From: aschmidt at fredericksburg.com (Allen Schmidt) Date: Wed Jan 5 09:12:40 2005 Subject: [Zope] Hiding header? In-Reply-To: References: Message-ID: <41DBF5BB.9040009@fredericksburg.com> >From an old post I saved for such an occasion. Have not tried but but the original poster wrote back that it did work. This was a while back but should still work. --Allen > Looks like there's one line in ZServer/HTTPServer.py that does it all: > > SERVER_IDENT='Zope/%s ZServer/%s' % (ZOPE_VERSION,ZSERVER_VERSION) > > If you wanted to emulate the Apache production settings, you could change that to: > > SERVER_IDENT='Zope' > > >> Is it possible to hide the header that Zope advertises? >> >> Currently, Zope is advertising "Server: Zope/(Zope 2.7.3-0, python >> 2.3.4, linux2) ZServer/1.1 Plone/2.0.5", that is forwarded as is by >> Apache. >> >> I know that apache can be set to hide its current version. It would >> be nice if we could do the same with Zope. Is this possible? >> Where/how do we do it? From sgraber at gmail.com Wed Jan 5 09:31:54 2005 From: sgraber at gmail.com (Shane Graber) Date: Wed Jan 5 09:31:57 2005 Subject: [Zope] Hiding header? In-Reply-To: <1104934045.4978.16.camel@sabrina.peacock.de> References: <1104934045.4978.16.camel@sabrina.peacock.de> Message-ID: Added security -- same reason why you can setup Apache to not broadcast what version it is. There's no reason to broadcast what versions of software we're running. Shane On Wed, 05 Jan 2005 15:07:25 +0100, Tino Wildenhain wrote: > On Wed, 2005-01-05 at 08:35 -0500, Shane Graber wrote: > > Btw. what do you think you gain if you hide that information? > > Regards > Tino From bennetttm at appstate.edu Wed Jan 5 09:23:03 2005 From: bennetttm at appstate.edu (Thomas Bennett) Date: Wed Jan 5 09:33:30 2005 Subject: [Zope] Re: dreamwaeaver, zope, and webdav In-Reply-To: References: <1104921194.4978.9.camel@sabrina.peacock.de> Message-ID: <1104934983.4198.73.camel@bennetttm-1.library.appstate.edu> The problem is with DreamWeaver/Windows wanting to associate everything with an extension rather than content. What I have done for my users to be able to use DreamWeaver is to have index_html point to index.html by putting as the only line in index_html. You have to do this in each directory or you will pick up the index.html from the same level index_html is in if you use a url without the page name itself and don't have an index_html page. hope this lines up right for you. eg. a- |_ index.html |_ index_html |_ b |_index.html both URLs /a/ and /a/b/ would show index.html in /a/ I think you can also set the default page to be index.html instead of index_html. There have been addins in the past for DreamWeaver to edit dtml tags but that doesn't solve the no extension problem. DreamWeaver IDs the file by its extension so it can display specific tools for that type of file:xml,html,cold fusion, etc. There would need to be some way in DreamWeaver preferences to associate no extension files as html which I don't think is possible. I know many users love to use DW but I usually stick to vi or zmi. Tom On Wed, 2005-01-05 at 06:31, Doug Reiland wrote: > I can connect to the site via dreamweaver fine using the standard port > and webdav-source port. > However, how do you get dreamweaver to understand the zope files. For > example, the no-extension files like index_html and zope tags inside > of files. > > Thanks! > ----- Original Message ----- > From: Tino Wildenhain > To: Max M > Cc: zope@zope.org > Sent: Wednesday, January 05, 2005 5:33 AM > Subject: Re: [Zope] Re: dreamwaeaver, zope, and webdav > > Hi, > > On Wed, 2005-01-05 at 11:15 +0100, Max M wrote: > > Doug Reiland wrote: > > > I can't figure out the magic needed to get dreamweaver mx > 2004 and zope > > > configured. I am sorry if this information is been already > discussed, > > > but I can only find old or disjointed information. > > > > > > Are there better options for external editors for zope? > > > > It works absolutely like a charm. I don't think you can have > a better > > combo than Zope and Dreamweaver. > > > > You have probably not started the Webdav port. > > > > Webdav-Source port to be precise. The standard port supports > webdav too. > Works like a charm with the correct clients :-) > > > But are trying to access it through port 80. That will seem > to work, but > > it doesn't. > > What Useragent string is dreamcrapper mx 2004 sending btw? > One can add a useragent string to zope.conf and have webdav > source > support via web port too. > > -- > Tino Wildenhain > > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) > > > ______________________________________________________________________ > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) From jens at dataflake.org Wed Jan 5 09:44:38 2005 From: jens at dataflake.org (Jens Vagelpohl) Date: Wed Jan 5 09:44:42 2005 Subject: [Zope] Hiding header? In-Reply-To: References: <1104934045.4978.16.camel@sabrina.peacock.de> Message-ID: <534545D6-5F28-11D9-B63E-000D9368D272@dataflake.org> On Jan 5, 2005, at 15:31, Shane Graber wrote: > Added security -- same reason why you can setup Apache to not > broadcast what version it is. There's no reason to broadcast what > versions of software we're running. > > Shane > > > On Wed, 05 Jan 2005 15:07:25 +0100, Tino Wildenhain > wrote: >> On Wed, 2005-01-05 at 08:35 -0500, Shane Graber wrote: >> >> Btw. what do you think you gain if you hide that information? Ah, yes, the Micro$haft kind of security... hehe. Sorry, "security by obscurity" will not make your system any more secure. Don't delude yourself. jens --------------- Jens Vagelpohl jens@zetwork.com Software Engineer +49-(0)441-36 18 14 38 Zetwork GmbH http://www.zetwork.com/ From bennetttm at appstate.edu Wed Jan 5 09:37:09 2005 From: bennetttm at appstate.edu (Thomas Bennett) Date: Wed Jan 5 09:47:45 2005 Subject: [Zope] Hiding header? In-Reply-To: References: <1104934045.4978.16.camel@sabrina.peacock.de> Message-ID: <1104935829.4198.79.camel@bennetttm-1.library.appstate.edu> State Auditors require it here. ;-) Tom ps: haven't done it yet but might now with these replies, thanks. On Wed, 2005-01-05 at 09:31, Shane Graber wrote: > Added security -- same reason why you can setup Apache to not > broadcast what version it is. There's no reason to broadcast what > versions of software we're running. > > Shane > > > On Wed, 05 Jan 2005 15:07:25 +0100, Tino Wildenhain wrote: > > On Wed, 2005-01-05 at 08:35 -0500, Shane Graber wrote: > > > > Btw. what do you think you gain if you hide that information? > > > > Regards > > Tino > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) From tino at wildenhain.de Wed Jan 5 09:47:44 2005 From: tino at wildenhain.de (Tino Wildenhain) Date: Wed Jan 5 09:48:01 2005 Subject: [Zope] Hiding header? In-Reply-To: References: <1104934045.4978.16.camel@sabrina.peacock.de> Message-ID: <1104936464.4978.28.camel@sabrina.peacock.de> On Wed, 2005-01-05 at 09:31 -0500, Shane Graber wrote: > Added security -- same reason why you can setup Apache to not > broadcast what version it is. There's no reason to broadcast what > versions of software we're running. Why not? Its nice for statistics. Unlike Apache, you have no access to filesystem or other internals of the host via Zope. I bet you have more potential insecure services on the average server box. Mail for example... Regards Tino From akm at theinternet.com.au Wed Jan 5 09:48:42 2005 From: akm at theinternet.com.au (Andrew Milton) Date: Wed Jan 5 09:48:56 2005 Subject: [Zope] Hiding header? In-Reply-To: <534545D6-5F28-11D9-B63E-000D9368D272@dataflake.org> References: <1104934045.4978.16.camel@sabrina.peacock.de> <534545D6-5F28-11D9-B63E-000D9368D272@dataflake.org> Message-ID: <20050105144842.GD98558@camelot.theinternet.com.au> +-------[ Jens Vagelpohl ]---------------------- | | On Jan 5, 2005, at 15:31, Shane Graber wrote: | | >Added security -- same reason why you can setup Apache to not | >broadcast what version it is. There's no reason to broadcast what | >versions of software we're running. | > | >Shane | > | > | >On Wed, 05 Jan 2005 15:07:25 +0100, Tino Wildenhain | > wrote: | >>On Wed, 2005-01-05 at 08:35 -0500, Shane Graber wrote: | >> | >>Btw. what do you think you gain if you hide that information? | | Ah, yes, the Micro$haft kind of security... hehe. | | Sorry, "security by obscurity" will not make your system any more | secure. Don't delude yourself. It's not the same as posting a sign saying that your door is unlocked. -- Andrew Milton akm@theinternet.com.au From tino at wildenhain.de Wed Jan 5 09:49:47 2005 From: tino at wildenhain.de (Tino Wildenhain) Date: Wed Jan 5 09:49:59 2005 Subject: [Zope] Re: dreamwaeaver, zope, and webdav In-Reply-To: <1104934983.4198.73.camel@bennetttm-1.library.appstate.edu> References: <1104921194.4978.9.camel@sabrina.peacock.de> <1104934983.4198.73.camel@bennetttm-1.library.appstate.edu> Message-ID: <1104936587.4978.30.camel@sabrina.peacock.de> On Wed, 2005-01-05 at 09:23 -0500, Thomas Bennett wrote: > The problem is with DreamWeaver/Windows wanting to associate everything > with an extension rather than content. I remember we once used (paid :-) versions of DW years ago and reported that problem to Macromedia. But they are constantly ignorant to technical standards unfortunately. Best advice is to not buy products from them... Regards Tino From jens at dataflake.org Wed Jan 5 09:52:42 2005 From: jens at dataflake.org (Jens Vagelpohl) Date: Wed Jan 5 09:52:45 2005 Subject: [Zope] Hiding header? In-Reply-To: <20050105144842.GD98558@camelot.theinternet.com.au> References: <1104934045.4978.16.camel@sabrina.peacock.de> <534545D6-5F28-11D9-B63E-000D9368D272@dataflake.org> <20050105144842.GD98558@camelot.theinternet.com.au> Message-ID: <73916CA9-5F29-11D9-B63E-000D9368D272@dataflake.org> > | Sorry, "security by obscurity" will not make your system any more > | secure. Don't delude yourself. > > It's not the same as posting a sign saying that your door is unlocked. But that doesn't matter one bit. If there is *a door* exploits will be run against it - simply because a lot of them are automated and it's quick and easy to do so. If the exploit software exploits software X and the exploit mechanism finds out that software X is on the system it is looking at then it will try the exploit. No matter what version strings say. The script kiddies are dumb, but not that dumb. jens --------------- Jens Vagelpohl jens@zetwork.com Software Engineer +49-(0)441-36 18 14 38 Zetwork GmbH http://www.zetwork.com/ From sgraber at gmail.com Wed Jan 5 09:55:16 2005 From: sgraber at gmail.com (Shane Graber) Date: Wed Jan 5 09:55:17 2005 Subject: [Zope] Hiding header? In-Reply-To: <1104936464.4978.28.camel@sabrina.peacock.de> References: <1104934045.4978.16.camel@sabrina.peacock.de> <1104936464.4978.28.camel@sabrina.peacock.de> Message-ID: Yes, but that's no reason why not to lock down other items as well. Shane On Wed, 05 Jan 2005 15:47:44 +0100, Tino Wildenhain wrote: > > Why not? Its nice for statistics. Unlike Apache, you have no access > to filesystem or other internals of the host via Zope. > > I bet you have more potential insecure services on the average > server box. Mail for example... > > Regards > Tino > > From tino at wildenhain.de Wed Jan 5 09:56:28 2005 From: tino at wildenhain.de (Tino Wildenhain) Date: Wed Jan 5 09:56:51 2005 Subject: [Zope] Hiding header? In-Reply-To: <20050105144842.GD98558@camelot.theinternet.com.au> References: <1104934045.4978.16.camel@sabrina.peacock.de> <534545D6-5F28-11D9-B63E-000D9368D272@dataflake.org> <20050105144842.GD98558@camelot.theinternet.com.au> Message-ID: <1104936988.4978.34.camel@sabrina.peacock.de> On Thu, 2005-01-06 at 01:48 +1100, Andrew Milton wrote: > +-------[ Jens Vagelpohl ]---------------------- > | > | On Jan 5, 2005, at 15:31, Shane Graber wrote: > | > | >Added security -- same reason why you can setup Apache to not > | >broadcast what version it is. There's no reason to broadcast what > | >versions of software we're running. > | > > | >Shane > | > > | > > | >On Wed, 05 Jan 2005 15:07:25 +0100, Tino Wildenhain > | > wrote: > | >>On Wed, 2005-01-05 at 08:35 -0500, Shane Graber wrote: > | >> > | >>Btw. what do you think you gain if you hide that information? > | > | Ah, yes, the Micro$haft kind of security... hehe. > | > | Sorry, "security by obscurity" will not make your system any more > | secure. Don't delude yourself. > > It's not the same as posting a sign saying that your door is unlocked. Err. seriously, where is a Zope door unlocked? I mean, every visitor can find out with little effort if its zope running or something else. And Zope is probably one of the most secure web application solutions you could get. (Sure you can drill holes in it if you try really hard as zope admin :-) But out-of-the-box its really secure. Name any exploit you know. Regards Tino From tino at wildenhain.de Wed Jan 5 10:03:31 2005 From: tino at wildenhain.de (Tino Wildenhain) Date: Wed Jan 5 10:03:48 2005 Subject: [Zope] Hiding header? In-Reply-To: References: <1104934045.4978.16.camel@sabrina.peacock.de> <1104936464.4978.28.camel@sabrina.peacock.de> Message-ID: <1104937411.4978.37.camel@sabrina.peacock.de> On Wed, 2005-01-05 at 09:55 -0500, Shane Graber wrote: > Yes, but that's no reason why not to lock down other items as well. Paint a door just in a different color does not really mean you locked it. PS: if you follow some mailinglists, do you see a pattern how people quote emails? No? Well. ok ... ;) Regards Tino From sgraber at gmail.com Wed Jan 5 10:07:44 2005 From: sgraber at gmail.com (Shane Graber) Date: Wed Jan 5 10:07:46 2005 Subject: [Zope] Hiding header? In-Reply-To: <1104937411.4978.37.camel@sabrina.peacock.de> References: <1104934045.4978.16.camel@sabrina.peacock.de> <1104936464.4978.28.camel@sabrina.peacock.de> <1104937411.4978.37.camel@sabrina.peacock.de> Message-ID: > PS: if you follow some mailinglists, do you see a pattern how people > quote emails? No? Well. ok ... ;) Picky picky. :P (I've seen it done multiple ways) Shane From akm at theinternet.com.au Wed Jan 5 10:11:10 2005 From: akm at theinternet.com.au (Andrew Milton) Date: Wed Jan 5 10:11:31 2005 Subject: [Zope] Hiding header? In-Reply-To: <1104937411.4978.37.camel@sabrina.peacock.de> References: <1104934045.4978.16.camel@sabrina.peacock.de> <1104936464.4978.28.camel@sabrina.peacock.de> <1104937411.4978.37.camel@sabrina.peacock.de> Message-ID: <20050105151110.GE98558@camelot.theinternet.com.au> +-------[ Tino Wildenhain ]---------------------- | On Wed, 2005-01-05 at 09:55 -0500, Shane Graber wrote: | > Yes, but that's no reason why not to lock down other items as well. | | Paint a door just in a different color does not really mean you locked | it. Noone is saying, don't lock it. Noone is saying that removing version numbers is a solution by itself. But it certainly ADDS something. If it didn't there wouldn't be such an effort to prevent OS types and versions from being decoded by passive scanning. -- Andrew Milton akm@theinternet.com.au From andrew at zope.com Wed Jan 5 10:11:39 2005 From: andrew at zope.com (Andrew Sawyers) Date: Wed Jan 5 10:11:34 2005 Subject: [Zope] dreamwaeaver, zope, and webdav In-Reply-To: <85A72679E1C53A23CA806732@[192.168.0.102]> References: <85A72679E1C53A23CA806732@[192.168.0.102]> Message-ID: <41DC03AB.3020301@zope.com> dreiland@hotmail.com> wrote: >> I am using the latest 2.7.x zope. and Dreamweaver MX 2004. >> I have configured Dreamweaver's webdav access to my site without >> problems. I like Dreamweaver and have used it a lot; but I don't do much with dav - I do everything over a samba link with skin folders..... >> What is the story on accessing zope's file (for example index_html) in >> dreamweaver? Dreamweaver doesn't deal well with this case; I would avoid the lack of extensions if you plan on using dreamweaver: all files have .htm or .html extensions. >> Is there other setup issues needed for Dreamweaver to handle zope's >> file/tags? I have a plugin which registers several; if you'd like it I can pass it along. I haven't put much effort into it; but it works and others have found it useful. >> > Andrew -- Zope Managed Hosting Systems Administrator/Software Engineer Zope Corporation (540) 361-1700 From tino at wildenhain.de Wed Jan 5 10:20:31 2005 From: tino at wildenhain.de (Tino Wildenhain) Date: Wed Jan 5 10:20:56 2005 Subject: [Zope] Hiding header? In-Reply-To: <20050105151110.GE98558@camelot.theinternet.com.au> References: <1104934045.4978.16.camel@sabrina.peacock.de> <1104936464.4978.28.camel@sabrina.peacock.de> <1104937411.4978.37.camel@sabrina.peacock.de> <20050105151110.GE98558@camelot.theinternet.com.au> Message-ID: <1104938432.4978.43.camel@sabrina.peacock.de> On Thu, 2005-01-06 at 02:11 +1100, Andrew Milton wrote: > +-------[ Tino Wildenhain ]---------------------- > | On Wed, 2005-01-05 at 09:55 -0500, Shane Graber wrote: > | > Yes, but that's no reason why not to lock down other items as well. > | > | Paint a door just in a different color does not really mean you locked > | it. > > Noone is saying, don't lock it. Noone is saying that removing version numbers > is a solution by itself. But it certainly ADDS something. > > If it didn't there wouldn't be such an effort to prevent OS types and versions > from being decoded by passive scanning. Hm. most of the time - and in this case - its just overkill. The only real gain I see is you save some bytes to transfer over the web. Attackers choose the simplest way to get in - and a running zope just is not. So better spent the time in making all that other services even close to the secureness of zope. Next you can think about hiding the version number. Just my thinking :-) Regards Tino From sgraber at gmail.com Wed Jan 5 10:21:07 2005 From: sgraber at gmail.com (Shane Graber) Date: Wed Jan 5 10:21:08 2005 Subject: [Zope] Hiding header? In-Reply-To: <1104936988.4978.34.camel@sabrina.peacock.de> References: <1104934045.4978.16.camel@sabrina.peacock.de> <534545D6-5F28-11D9-B63E-000D9368D272@dataflake.org> <20050105144842.GD98558@camelot.theinternet.com.au> <1104936988.4978.34.camel@sabrina.peacock.de> Message-ID: > Name any exploit you know. > > Regards > Tino I don't know of any off the top of my head, but that's not to say that there isn't one out there that could explot zope in some way from its header info. We're just trying to be proactive about things, thus my question. Shane From akm at theinternet.com.au Wed Jan 5 10:23:45 2005 From: akm at theinternet.com.au (Andrew Milton) Date: Wed Jan 5 10:23:56 2005 Subject: [Zope] Hiding header? In-Reply-To: <1104938432.4978.43.camel@sabrina.peacock.de> References: <1104934045.4978.16.camel@sabrina.peacock.de> <1104936464.4978.28.camel@sabrina.peacock.de> <1104937411.4978.37.camel@sabrina.peacock.de> <20050105151110.GE98558@camelot.theinternet.com.au> <1104938432.4978.43.camel@sabrina.peacock.de> Message-ID: <20050105152345.GF98558@camelot.theinternet.com.au> +-------[ Tino Wildenhain ]---------------------- | On Thu, 2005-01-06 at 02:11 +1100, Andrew Milton wrote: | > +-------[ Tino Wildenhain ]---------------------- | > | On Wed, 2005-01-05 at 09:55 -0500, Shane Graber wrote: | > | > Yes, but that's no reason why not to lock down other items as well. | > | | > | Paint a door just in a different color does not really mean you locked | > | it. | > | > Noone is saying, don't lock it. Noone is saying that removing version numbers | > is a solution by itself. But it certainly ADDS something. | > | > If it didn't there wouldn't be such an effort to prevent OS types and versions | > from being decoded by passive scanning. | Attackers choose the simplest way to get in - and a running zope | just is not. So better spent the time in making all that other | services even close to the secureness of zope. Next you can think | about hiding the version number. Are you volunteering to go around to all the authors of all the products listed on the Downloads pages of zope.org (with or without a bat)? d8) -- Andrew Milton akm@theinternet.com.au From dreiland at hotmail.com Wed Jan 5 11:13:47 2005 From: dreiland at hotmail.com (Doug Reiland) Date: Wed Jan 5 11:14:08 2005 Subject: [Zope] dreamwaeaver, zope, and webdav In-Reply-To: <41DC03AB.3020301@zope.com> Message-ID: thanks for the info. Yes, I would be interested in your plugin. I am new (you can probably tell) to the web site stuff. I am pretty sure I want to use Zope. I am really interested in Plone, but starting out slow. I am trying to determine if Dreamweaver is going to make my life easier and worth the expense to manage/design as much as possible. What is the best way to change zope site to extensions? I know when I discovered DW couldn't edit index_html, I renamed it to index.html, but of course my intial zope site stopped working. Thanks! >From: Andrew Sawyers >Reply-To: andrew@zope.com >CC: Doug Reiland , zope@zope.org >Subject: Re: [Zope] dreamwaeaver, zope, and webdav >Date: Wed, 05 Jan 2005 10:11:39 -0500 > >dreiland@hotmail.com> wrote: > >>>I am using the latest 2.7.x zope. and Dreamweaver MX 2004. >>>I have configured Dreamweaver's webdav access to my site without >>>problems. >I like Dreamweaver and have used it a lot; but I don't do much with dav - I >do everything over a samba link with skin folders..... > >>>What is the story on accessing zope's file (for example index_html) in >>>dreamweaver? >Dreamweaver doesn't deal well with this case; I would avoid the lack of >extensions if you plan on using dreamweaver: all files have .htm or .html >extensions. > >>>Is there other setup issues needed for Dreamweaver to handle zope's >>>file/tags? >I have a plugin which registers several; if you'd like it I can pass it >along. I haven't put much effort into it; but it works and others have >found it useful. >>> >> >Andrew > >-- >Zope Managed Hosting >Systems Administrator/Software Engineer >Zope Corporation >(540) 361-1700 From dreiland at hotmail.com Wed Jan 5 11:16:25 2005 From: dreiland at hotmail.com (Doug Reiland) Date: Wed Jan 5 11:17:04 2005 Subject: [Zope] Re: dreamwaeaver, zope, and webdav In-Reply-To: <1104936587.4978.30.camel@sabrina.peacock.de> Message-ID: Are you using another external tool with Zope? >From: Tino Wildenhain >To: bennetttm@appstate.edu >CC: Zope >Subject: Re: [Zope] Re: dreamwaeaver, zope, and webdav >Date: Wed, 05 Jan 2005 15:49:47 +0100 > >On Wed, 2005-01-05 at 09:23 -0500, Thomas Bennett wrote: > > The problem is with DreamWeaver/Windows wanting to associate everything > > with an extension rather than content. > >I remember we once used (paid :-) versions of DW years ago >and reported that problem to Macromedia. But they are constantly >ignorant to technical standards unfortunately. Best advice >is to not buy products from them... > >Regards >Tino > >_______________________________________________ >Zope maillist - Zope@zope.org >http://mail.zope.org/mailman/listinfo/zope >** No cross posts or HTML encoding! ** >(Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) From andrew at zope.com Wed Jan 5 11:42:11 2005 From: andrew at zope.com (Andrew Sawyers) Date: Wed Jan 5 11:42:07 2005 Subject: [Zope] dreamwaeaver, zope, and webdav In-Reply-To: References: Message-ID: <41DC18E3.5030206@zope.com> Doug Reiland wrote: > thanks for the info. > Yes, I would be interested in your plugin. > I am new (you can probably tell) to the web site stuff. I am pretty sure > I want to use Zope. I am really interested in Plone, but starting out slow. In my limited experience with Plone (it powers my personal site) I wouldn't choose it again for what I need there....but I'm lazy and since I put the effort into making it work, it suffices for now. > > I am trying to determine if Dreamweaver is going to make my life easier > and worth the expense to manage/design as much as possible. That's often decided in retrospect. I think Dreamweaver is yet another tool in the developers toolbox. It has it's uses. I don't use a hammer when I need a screw driver; the skill is knowing when/what to use it for and not trying to make it more then it is. > > What is the best way to change zope site to extensions? I know when I > discovered DW couldn't edit index_html, I renamed it to index.html, but > of course my intial zope site stopped working. All my development is based on building on top of the CMF and therefore I make sure all my actions are templates with .html extensions..... > > Thanks! > I'll try to write up my madness on zope.org sometime; it definately won't work for everyone - but I think it's a solid way of using dreamweaver with Zope. I've got a way of using the Dreamweaver templating and Library objects with Zope that I think is pretty cool. At the end of the day, the tolerability factor is determined by the audience of those files. I did it for web designers - not engineers. Andrew -- Zope Managed Hosting Systems Administrator/Software Engineer Zope Corporation (540) 361-1700 From jziniti at speakeasy.org Wed Jan 5 11:45:23 2005 From: jziniti at speakeasy.org (John Ziniti) Date: Wed Jan 5 11:45:32 2005 Subject: [Zope] dreamwaeaver, zope, and webdav In-Reply-To: <41DC18E3.5030206@zope.com> References: <41DC18E3.5030206@zope.com> Message-ID: <41DC19A3.9050609@speakeasy.org> Andrew Sawyers wrote: > Doug Reiland wrote: >> I am new (you can probably tell) to the web site stuff. I am pretty >> sure I want to use Zope. I am really interested in Plone, but starting >> out slow. > > In my limited experience with Plone (it powers my personal site) I > wouldn't choose it again for what I need there....but I'm lazy and since > I put the effort into making it work, it suffices for now. > > I'll try to write up my madness on zope.org sometime; Andrew, Would you mind taking a few moments to explain why you would not go with Plone the next time? I've been resisting the move to Plone around here (mostly, I think, because it just smells funny to me), but I need more concrete reasons to make our decision more rational. Thanks in advance, JZ From sboggess at gmail.com Wed Jan 5 12:28:06 2005 From: sboggess at gmail.com (Sam Boggess) Date: Wed Jan 5 12:28:14 2005 Subject: [Zope] Re: return a pdf from a python script In-Reply-To: <20050105152059.33537203312@mail.zope.org> References: <20050105152059.33537203312@mail.zope.org> Message-ID: <41DC23A6.9010601@gmail.com> I figured out how to return a pdf from a python script: context.REQUEST.RESPONSE.setHeader('Content-Type','application/pdf') return context['blach.pdf'] Sam From andrew at zope.com Wed Jan 5 13:52:48 2005 From: andrew at zope.com (Andrew Sawyers) Date: Wed Jan 5 13:52:53 2005 Subject: [Zope] dreamwaeaver, zope, and webdav In-Reply-To: <41DC19A3.9050609@speakeasy.org> References: <41DC18E3.5030206@zope.com> <41DC19A3.9050609@speakeasy.org> Message-ID: <41DC3780.3090205@zope.com> John Ziniti wrote: > Andrew Sawyers wrote: > >> Doug Reiland wrote: >> >>> I am new (you can probably tell) to the web site stuff. I am pretty >>> sure I want to use Zope. I am really interested in Plone, but >>> starting out slow. >> >> >> In my limited experience with Plone (it powers my personal site) I >> wouldn't choose it again for what I need there....but I'm lazy and >> since I put the effort into making it work, it suffices for now. >> >> I'll try to write up my madness on zope.org sometime; > > > Andrew, > > Would you mind taking a few moments to explain why you would not > go with Plone the next time? I've been resisting the move to Plone > around here (mostly, I think, because it just smells funny to me), > but I need more concrete reasons to make our decision more rational. > > Thanks in advance, > > JZ I think Plone's great application if it's what you want. I typically want little and wish to build most of the application myself. I found that trying to go that path with Plone was harder for me, as I had to learn the Plone way/framework and I wasn't really wanting to sign up to do that for the task at hand. Plone has their way - which understandable - it's just not what I was in need of. Andrew -- Zope Managed Hosting Systems Administrator/Software Engineer Zope Corporation (540) 361-1700 From haim at babysnakes.org Wed Jan 5 13:55:51 2005 From: haim at babysnakes.org (Haim Ashkenazi) Date: Wed Jan 5 14:01:07 2005 Subject: [Zope] calling zpt from a script with options Message-ID: Hi forgive me if it's trivial, but I'm a complete zope newbie.... I read in the zope book that if I want to call zpt from a script (in my case, to render errors in a form) I do something like this: -- script: pt = context.body_content s = pt(zerror="This is an error") return s zpt: error -- This works without a problem, but it only shows the "body_content" file. this file is part of a layout (inside a folder) and I want to call the folder as the url, so it will acquire the index_html in an upper directory. I tried changing the "pt" variable to context.index_html and calling "here/index_html/options/zerror" in the template but it didn't show. how can I achieve that? thanx -- Haim From fg at nuxeo.com Wed Jan 5 14:09:02 2005 From: fg at nuxeo.com (Florent Guillaume) Date: Wed Jan 5 14:09:04 2005 Subject: [Zope] Re: return a pdf from a python script In-Reply-To: <41DC23A6.9010601@gmail.com> References: <20050105152059.33537203312@mail.zope.org> Message-ID: <20050105190902.GA26797@flo.in.nuxeo.com> Sam Boggess wrote: > I figured out how to return a pdf from a python script: > > context.REQUEST.RESPONSE.setHeader('Content-Type','application/pdf') > return context['blach.pdf'] The recommended way would be: name = 'blach.pdf' REQUEST = context.REQUEST ob = context[name] return ob.index_html(REQUEST, REQUEST.RESPONSE) Florent -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1 40 33 71 59 http://nuxeo.com fg@nuxeo.com From dieter at handshake.de Wed Jan 5 14:07:17 2005 From: dieter at handshake.de (Dieter Maurer) Date: Wed Jan 5 14:29:22 2005 Subject: [Zope] return a pdf from a python script In-Reply-To: <41DAE42A.8070405@gmail.com> References: <41DAE42A.8070405@gmail.com> Message-ID: <16860.15077.783833.503889@gargle.gargle.HOWL> Sam Boggess wrote at 2005-1-4 10:44 -0800: >Could someone please tell me how I can return a pdf from a python >script? return context.blah.pdf() does not work. return getattr(content, 'blah.pdf').index_html( container.REQUEST, container.REQUEST.RESPONSE, ) -- Dieter From dieter at handshake.de Wed Jan 5 13:43:35 2005 From: dieter at handshake.de (Dieter Maurer) Date: Wed Jan 5 14:29:23 2005 Subject: [Zope] Hiding header? In-Reply-To: References: Message-ID: <16860.13655.547220.566500@gargle.gargle.HOWL> Shane Graber wrote at 2005-1-5 01:22 -0500: >Is it possible to hide the header that Zope advertises? > >Currently, Zope is advertising "Server: Zope/(Zope 2.7.3-0, python >2.3.4, linux2) ZServer/1.1 Plone/2.0.5", that is forwarded as is by >Apache. > >I know that apache can be set to hide its current version. It would >be nice if we could do the same with Zope. Is this possible? >Where/how do we do it? Look at "CMFPlone/zserverPatch.py" how it adds the Plone version number. In fact, you should override this patch at it sets the actual server identification in a Plone installation. -- Dieter From dieter at handshake.de Wed Jan 5 12:52:45 2005 From: dieter at handshake.de (Dieter Maurer) Date: Wed Jan 5 14:29:25 2005 Subject: [Zope] Zope 2.7.3 Memory Leaks In-Reply-To: <1f7befae050104124624e3f96b@mail.gmail.com> References: <93ED2D3FFABD164684F73914CF2A4D68013EE946@exchange.nnu.com> <16858.60469.914563.15939@gargle.gargle.HOWL> <1f7befae050104124624e3f96b@mail.gmail.com> Message-ID: <16860.10605.79512.38545@gargle.gargle.HOWL> Tim Peters wrote at 2005-1-4 15:46 -0500: > ... >It's >the maximum number simultaneously alive that matters here, not the >total number of ints or floats ever created. Thank you for removing this misconception of mine! -- Dieter From bennetttm at appstate.edu Wed Jan 5 15:52:58 2005 From: bennetttm at appstate.edu (Thomas Bennett) Date: Wed Jan 5 16:02:56 2005 Subject: [Zope] Re: dreamwaeaver, zope, and webdav In-Reply-To: References: Message-ID: <1104958378.4198.244.camel@bennetttm-1.library.appstate.edu> The University here, pays for a site license for DW and other MacroMedia products so it is readily available here. My users have been using DreamWeaver since at least DW 4. The only changes I have had to make is moving from DW's ftp to WEB DAV since DW's ftp made changes with every update that wouldn't work with Zope and our network. We are now using WEB DAV with the Site portion of DW. I have one user using HotDog and we had to install DW on her machine for the WEB DAV feature since its not incorporated in HotDog. Just yesterday we started looking into (free) standalone WEB DAV clients since the new XP WEB Folders won't try to authenticate unless you create a new folder and then you can copy files to the Zope. We found many WEB DAV clients that would transfer files to Zope but that literally caused a problem, a file. Transferring a .jpg into a PhotoFolder showed up in Zope as a file(octetstream...) not a Photo object. After finding references to NetDrive from Novell (lets you map ftp,webdav, other as local drive in Windows Explorer, not IE) I downloaded that and installed it. Graphics transfered using NetDrive retain their content type when transfered to a Zope server is what I've found so far. NetDrive was designed to map a Novell drive without having to have a Novell client installed. In summary, to answer your question plain and simple is I use vi when not using the ZMI. When creating CSS pages I use Layout Master from www.westciv.com, paste source in Zope and then edit in vi or ZMI. ;-) Tom On Wed, 2005-01-05 at 11:16, Doug Reiland wrote: > Are you using another external tool with Zope? > > >From: Tino Wildenhain > >To: bennetttm@appstate.edu > >CC: Zope > >Subject: Re: [Zope] Re: dreamwaeaver, zope, and webdav > >Date: Wed, 05 Jan 2005 15:49:47 +0100 > > > >On Wed, 2005-01-05 at 09:23 -0500, Thomas Bennett wrote: > > > The problem is with DreamWeaver/Windows wanting to associate everything > > > with an extension rather than content. > > > >I remember we once used (paid :-) versions of DW years ago > >and reported that problem to Macromedia. But they are constantly > >ignorant to technical standards unfortunately. Best advice > >is to not buy products from them... > > > >Regards > >Tino > > > >_______________________________________________ > >Zope maillist - Zope@zope.org > >http://mail.zope.org/mailman/listinfo/zope > >** No cross posts or HTML encoding! ** > >(Related lists - > > http://mail.zope.org/mailman/listinfo/zope-announce > > http://mail.zope.org/mailman/listinfo/zope-dev ) > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) From andy at nnu.com Wed Jan 5 16:30:43 2005 From: andy at nnu.com (Andy Yates) Date: Wed Jan 5 16:30:45 2005 Subject: [Zope] Zope 2.7.3 Memory Leaks Message-ID: <93ED2D3FFABD164684F73914CF2A4D68013EE952@exchange.nnu.com> > > You did this flushing and looking at the reference counts in > a process that already had run for several days (and therefore was quite > huge)? > It took about 24 hours. > > Do you use C extensions that create non-Python objects (and > therefore do not have reference counts and show up in the list)? > Maybe, such a C extension is leaking. No we do not use C extensions. In fact we can reproduce this behavior on a fresh install. On a fresh system create a python script that puts data in a session object. s = context.REQUEST.SESSION t = ' ' * 1024 s['data'] = t print "foo" return printed Then call this script with your favorite bench marking program. We used apache bench (ab). This will cause python2.3 to consume all available memory and crash or lockup. The speed at which this happens depends on the amount of data you assign to 't' and how fast you call the script. The session timeout does not seem to affect the memory use. We even tried setting the session timeout to 1 minute. In a very basic sense this is all our production server does. When a user first comes to our site we query a mysql database for several hundred values. These values are then stored in the session object as a map. All other pages are built dynamically based on the values stored in the session object. Is the session object system just not supposed to be used like this? > > Are your sessions huge? > Usually, they are stored as pickles in RAM. > If they were huge, some thousands of sessions might > consume a considerable amount of RAM. You would not see > them in the reference counts because Pickles are strings > and you see only instances. > > -- > Dieter I would say they are less than 15K each. Andy From tseaver at zope.com Wed Jan 5 17:05:27 2005 From: tseaver at zope.com (Tres Seaver) Date: Wed Jan 5 17:05:22 2005 Subject: [Zope] Re: Zope 2.7.3 Memory Leaks In-Reply-To: <93ED2D3FFABD164684F73914CF2A4D68013EE952@exchange.nnu.com> References: <93ED2D3FFABD164684F73914CF2A4D68013EE952@exchange.nnu.com> Message-ID: <41DC64A7.6030307@zope.com> Andy Yates wrote: >>You did this flushing and looking at the reference counts in >>a process that already had run for several days (and therefore was > > quite > >>huge)? >> > > It took about 24 hours. > > >>Do you use C extensions that create non-Python objects (and >>therefore do not have reference counts and show up in the list)? >>Maybe, such a C extension is leaking. > > No we do not use C extensions. In fact we can reproduce this behavior > on a fresh install. On a fresh system create a python script that puts > data in a session object. > > s = context.REQUEST.SESSION > t = ' ' * 1024 > s['data'] = t > print "foo" > return printed > > Then call this script with your favorite bench marking program. We used > apache bench (ab). This will cause python2.3 to consume all available > memory and crash or lockup. The speed at which this happens depends on > the amount of data you assign to 't' and how fast you call the script. > The session timeout does not seem to affect the memory use. We even > tried setting the session timeout to 1 minute. > > In a very basic sense this is all our production server does. When a > user first comes to our site we query a mysql database for several > hundred values. These values are then stored in the session object as a > map. All other pages are built dynamically based on the values stored > in the session object. > > Is the session object system just not supposed to be used like this? We need to do some back-of-the-envelope math here: Estimated bytes / entry: 16 Estimated entries / user: 150 Estimated overhead / user: 600 ================================ Estimated bytes / session: 3000 How many simultaneous sessions are we talking about? A few hundred simultaneous users could chew up RAM pretty fast. What is your "max number of sessions" value? Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From tseaver at zope.com Thu Jan 6 10:00:33 2005 From: tseaver at zope.com (Tres Seaver) Date: Thu Jan 6 10:00:37 2005 Subject: [Zope] Re: searching in different servers In-Reply-To: <20050105105814.D7CA13B292C6@smtp3.globo.com> References: <20050105105814.D7CA13B292C6@smtp3.globo.com> Message-ID: <41DD5291.5020907@zope.com> osmarmantovani@globo.com wrote: > I read your answer to the question "how to query multiple catalogs using > search button?" at mail.zope.org and I would like to ask you another one... > Is it possible to search the catalogs in different plone servers? Sorry for the delayed response. I would recommend asking / CC'ing the list, so that you get the benefit of the whole community's experience. I have CC'ed the list. WRT to your question: I don't know of any off-the-shelf way to do what you ask. We have built solutions for such problems based around syndicating RSS from "spoke" sites to a "hub" site, but the software isn't part of any freely-available offering. Mike Pelletier has an RDF-based product which might be of interest: http://zemantic.org/ Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From Pperegrina at Lastminute.com Thu Jan 6 11:23:25 2005 From: Pperegrina at Lastminute.com (Pascal Peregrina) Date: Thu Jan 6 11:23:51 2005 Subject: [Zope] ZEO connections cache Message-ID: Hi, I am using Zope 2.7.3 with this configuration : + a ZEO instance with one ZODB + a Zope instance with Read/Write connections to the whole ZEO ZODB + several Zope instances with Read Only connections to one folder of the ZEO ZODB (+ a small local ZODB for the root folder, that never changes) It looks like some object changes (specially objects located in CMF portal_skins subfolders), are not always "seen" from one connection to another (either on the Zope instance where the changes were made or any other Zope instance). The problem is fixed when I minimize the connection caches. Anyone knows what could cause such an issue ? It appeared with Zope 2.7.3... (was ok on 2.7.2) But as we did other changes at the same time, I am 100% sure it's because of the Zope upgrade itself. Thanks a lot. Pascal ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** From jeffrey.rodriguez at gmail.com Thu Jan 6 11:30:45 2005 From: jeffrey.rodriguez at gmail.com (Jeff Rodriguez) Date: Thu Jan 6 11:30:47 2005 Subject: [Zope] Zope slow if left unused for hours Message-ID: <753ca72f050106083076c7f725@mail.gmail.com> I'm running Zope with Plone, specifically the windows installer version distributed on the Plone website. The first time I hit the site (even the ZMI) the first page takes a long time to load; everything after that is speedy. I'm thinking it's some sort of caching issue but I'm not sure where to look to remedy the probelm. I am not running debug mode either. Info from control panel: Zope Version (unreleased version, python 2.3.3, win32) Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] System Platform win32 SOFTWARE_HOME C:\Program Files\Plone 2\Zope\lib\python ZOPE_HOME C:\Program Files\Plone 2\Zope INSTANCE_HOME C:\Program Files\Plone 2\Data CLIENT_HOME C:\Program Files\Plone 2\Data\var Network Services ZServer.HTTPServer.zhttp_server (Port: 80) ZServer.HTTPServer.zhttp_server (Port: 8080) Process Id 1964 (3048) Running For 1 day 17 hours 6 min 34 sec -- Jeffrey Alan Rodriguez Jeffrey.Rodriguez@gmail.com From Pperegrina at Lastminute.com Thu Jan 6 11:37:28 2005 From: Pperegrina at Lastminute.com (Pascal Peregrina) Date: Thu Jan 6 11:37:54 2005 Subject: [Zope] Zope slow if left unused for hours Message-ID: This is because the first time you make a request to your Zope instance, it retrieves lots of objects from the ZODB (file). For subsequent requests, most of this objects are cached in a connection object cache. See your /Control_Panel/Database/manage_workspace, select a database, and then have a look at the Cache Parameters tab. There is one cache per connection, and usually there are 4 connections to the ZODB. But in general, under reasonable load on your site, the cache should be efficient. I don't know of any way of optimizing this. Hope this helps. Pascal -----Message d'origine----- De : zope-bounces@zope.org [mailto:zope-bounces@zope.org]De la part de Jeff Rodriguez Envoy? : jeudi 6 janvier 2005 17:31 ? : zope@zope.org Objet : [Zope] Zope slow if left unused for hours I'm running Zope with Plone, specifically the windows installer version distributed on the Plone website. The first time I hit the site (even the ZMI) the first page takes a long time to load; everything after that is speedy. I'm thinking it's some sort of caching issue but I'm not sure where to look to remedy the probelm. I am not running debug mode either. Info from control panel: Zope Version (unreleased version, python 2.3.3, win32) Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] System Platform win32 SOFTWARE_HOME C:\Program Files\Plone 2\Zope\lib\python ZOPE_HOME C:\Program Files\Plone 2\Zope INSTANCE_HOME C:\Program Files\Plone 2\Data CLIENT_HOME C:\Program Files\Plone 2\Data\var Network Services ZServer.HTTPServer.zhttp_server (Port: 80) ZServer.HTTPServer.zhttp_server (Port: 8080) Process Id 1964 (3048) Running For 1 day 17 hours 6 min 34 sec -- Jeffrey Alan Rodriguez Jeffrey.Rodriguez@gmail.com _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** From toolkit at magma.ca Thu Jan 6 11:51:36 2005 From: toolkit at magma.ca (Jonathan Hobbs) Date: Thu Jan 6 11:49:14 2005 Subject: [Zope] Zope slow if left unused for hours References: <753ca72f050106083076c7f725@mail.gmail.com> Message-ID: <040201c4f40f$fd34cfc0$647ba8c0@jhdesktop> From: "Jeff Rodriguez" > I'm running Zope with Plone, specifically the windows installer > version distributed on the Plone website. The first time I hit the > site (even the ZMI) the first page takes a long time to load; > everything after that is speedy. > > I'm thinking it's some sort of caching issue but I'm not sure where to > look to remedy the probelm. I am not running debug mode either. We encountered the same problem, and agree that its probably a cache-loading issue. We never discovered the cause, but we have a work-around: we run a cron job which does an http request to grab a page from the web site every 10 minutes - this seems to keep the cache 'fresh'. Jonathan From tseaver at zope.com Thu Jan 6 12:16:09 2005 From: tseaver at zope.com (Tres Seaver) Date: Thu Jan 6 12:16:17 2005 Subject: [Zope] Re: ZEO connections cache In-Reply-To: References: Message-ID: <41DD7259.3090204@zope.com> Pascal Peregrina wrote: > Hi, > > I am using Zope 2.7.3 with this configuration : > + a ZEO instance with one ZODB > + a Zope instance with Read/Write connections to the whole ZEO ZODB > + several Zope instances with Read Only connections to one folder of the ZEO > ZODB (+ a small local ZODB for the root folder, that never changes) > > It looks like some object changes (specially objects located in CMF > portal_skins subfolders), are not always "seen" from one connection to > another (either on the Zope instance where the changes were made or any > other Zope instance). > > The problem is fixed when I minimize the connection caches. > > Anyone knows what could cause such an issue ? > > It appeared with Zope 2.7.3... (was ok on 2.7.2) > But as we did other changes at the same time, I am 100% sure it's because of > the Zope upgrade itself. Are the modified objects ZODB-based skin methods, or the filesystem-based analogs in a FilesystemDirectoryView? I don't know of anything which would explain your behavior for ZODB-based objects; such staleness would imply a bug in ZODB invalidation logic. FSObject-derived items have a "proxy" stored in the ZODB, which caches the "real" method object as a volatile attribute; cache minimization would cause those volatiles to be discarded and recomputed, and might therefore contribute to the behavior you describe. Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From jeffrey.rodriguez at gmail.com Thu Jan 6 12:43:48 2005 From: jeffrey.rodriguez at gmail.com (Jeff Rodriguez) Date: Thu Jan 6 12:43:55 2005 Subject: [Zope] Zope slow if left unused for hours In-Reply-To: <040201c4f40f$fd34cfc0$647ba8c0@jhdesktop> References: <753ca72f050106083076c7f725@mail.gmail.com> <040201c4f40f$fd34cfc0$647ba8c0@jhdesktop> Message-ID: <753ca72f050106094316e3896f@mail.gmail.com> I was thinking of doing that, but it seems like such a dirty hack ;) It's on the first load and also if I leave it alone for a couple hours. Does anyone have suggestions for fixing this issue? On Thu, 6 Jan 2005 11:51:36 -0500, Jonathan Hobbs wrote: > From: "Jeff Rodriguez" > > I'm running Zope with Plone, specifically the windows installer > > version distributed on the Plone website. The first time I hit the > > site (even the ZMI) the first page takes a long time to load; > > everything after that is speedy. > > > > I'm thinking it's some sort of caching issue but I'm not sure where to > > look to remedy the probelm. I am not running debug mode either. > > We encountered the same problem, and agree that its probably a cache-loading > issue. We never discovered the cause, but we have a work-around: we run a > cron job which does an http request to grab a page from the web site every > 10 minutes - this seems to keep the cache 'fresh'. > > Jonathan > > -- Jeffrey Alan Rodriguez Jeffrey.Rodriguez@gmail.com From tim.peters at gmail.com Thu Jan 6 12:59:33 2005 From: tim.peters at gmail.com (Tim Peters) Date: Thu Jan 6 12:59:36 2005 Subject: [Zope] Zope slow if left unused for hours In-Reply-To: <040201c4f40f$fd34cfc0$647ba8c0@jhdesktop> References: <753ca72f050106083076c7f725@mail.gmail.com> <040201c4f40f$fd34cfc0$647ba8c0@jhdesktop> Message-ID: <1f7befae05010609591af96d80@mail.gmail.com> [Jeff Rodriguez] >> I'm running Zope with Plone, specifically the windows installer >> version distributed on the Plone website. The first time I hit the >> site (even the ZMI) the first page takes a long time to load; >> everything after that is speedy. Hmm. That explanation doesn't appear to match the Subject line -- and that's why you're getting explanations about initial startup. >> I'm thinking it's some sort of caching issue but I'm not sure where to >> look to remedy the probelm. I am not running debug mode either. [Jonathan Hobbs] > We encountered the same problem, and agree that its probably a cache-loading > issue. We never discovered the cause, but we have a work-around: we run a > cron job which does an http request to grab a page from the web site every > 10 minutes - this seems to keep the cache 'fresh'. Taking the Subject as being the real issue here, there's another problem that may be unique to Windows: for inscrutable reasons at inscrutable times, Windows routinely swaps out RAM that hasn't been touched by a process "for a while", and regardless of whether it actually needs the RAM for something else. You can watch this by bringing up Task Manager, and ensuring that the "VM Size" (amount of address space committed byo the process) and "Mem Usage" (amount of VM address space actually in RAM) columns are displayed. The latter can (although this is extreme) shrink to kilobytes if a process is idle "long enough", no matter how much VM the process has committed, and even if the machine is otherwise idle the whole time. In a previous life, I worked on an NT-based call-center telephone speech recognition system. That's a very intense application, requiring 100s of MBs of RAM. Machines running it ran nothing else, and had plenty of RAM. Nevertheless, in the middle of the night when call traffic was light, NT would swap the whole thing out to disk. Then a call would come in, and it could take literally minutes for NT to swap enough of the app back into RAM to process the call. I don't recall whether we ever found a slick solution. The first brute-force wormaround worked pretty well: when the app was otherwise idle, we had another process trick it into thinking it was getting a phone call and hearing speech. That kept most of it RAM all the time. From dieter at handshake.de Thu Jan 6 14:02:54 2005 From: dieter at handshake.de (Dieter Maurer) Date: Thu Jan 6 14:17:43 2005 Subject: [Zope] ZEO connections cache In-Reply-To: References: Message-ID: <16861.35678.113402.598972@gargle.gargle.HOWL> Pascal Peregrina wrote at 2005-1-6 17:23 +0100: >I am using Zope 2.7.3 with this configuration : >+ a ZEO instance with one ZODB >+ a Zope instance with Read/Write connections to the whole ZEO ZODB >+ several Zope instances with Read Only connections to one folder of the ZEO >ZODB (+ a small local ZODB for the root folder, that never changes) > >It looks like some object changes (specially objects located in CMF >portal_skins subfolders), are not always "seen" from one connection to >another (either on the Zope instance where the changes were made or any >other Zope instance). Maybe, a bug with "read only" connections? Try to switch to all "read/write" connections and see whether the problem disappears. -- Dieter From dieter at handshake.de Thu Jan 6 13:47:18 2005 From: dieter at handshake.de (Dieter Maurer) Date: Thu Jan 6 14:17:46 2005 Subject: [Zope] calling zpt from a script with options In-Reply-To: References: Message-ID: <16861.34742.475835.917033@gargle.gargle.HOWL> Haim Ashkenazi wrote at 2005-1-5 20:55 +0200: >forgive me if it's trivial, but I'm a complete zope newbie.... You must also learn how to formulate questions :-) > ... >I read in the zope book that if I want to call zpt from a script (in my >case, to render errors in a form) I do something like this: > >-- >script: > >pt = context.body_content >s = pt(zerror="This is an error") >return s > >zpt: > >error >-- > >This works without a problem, but it only shows the "body_content" file. >this file is part of a layout (inside a folder) and I want to call the >folder as the url, so it will acquire the index_html in an upper directory. I do not yet understand what you want... Usually, the overall layout is defined in a macro and individual page templates use this macro and fill slots of it. Maybe, you read about "metal:define-macro", "metal:define-slot", "metal:use-macro" and "metal:fill-slot" in the Zope Book. Otherwise, if you do not want to call "body_content" but "index_html", then you simply use "pt = content.index_html" (provided it is a ZPT, too). >I tried changing the "pt" variable to context.index_html and calling >"here/index_html/options/zerror" in the template but it didn't show. In "index_html", you would access "zerror" also via "option/zerror". When your "index_html" would call "body_content", you would need to pass "zerror" again. -- Dieter From dieter at handshake.de Thu Jan 6 14:01:24 2005 From: dieter at handshake.de (Dieter Maurer) Date: Thu Jan 6 14:17:49 2005 Subject: [Zope] Zope 2.7.3 Memory Leaks In-Reply-To: <93ED2D3FFABD164684F73914CF2A4D68013EE952@exchange.nnu.com> References: <93ED2D3FFABD164684F73914CF2A4D68013EE952@exchange.nnu.com> Message-ID: <16861.35588.641680.461650@gargle.gargle.HOWL> Andy Yates wrote at 2005-1-5 15:30 -0600: > ... >In fact we can reproduce this behavior >on a fresh install. On a fresh system create a python script that puts >data in a session object. > >s = context.REQUEST.SESSION >t = ' ' * 1024 >s['data'] = t >print "foo" >return printed > >Then call this script with your favorite bench marking program. We used >apache bench (ab). This will cause python2.3 to consume all available >memory and crash or lockup. And I am not surprised at all: You allow an unlimited number of sessions. Your session timeout is 45 minutes "ab" does not honour the "set cookie" requests for the sessioning. Thus, each request creates a new session. This way, it should not be difficult to use a large amount of RAM. My Zope serves about 500 request/s, 30.000 request/min and 1.350.000 requests in 45 min. You must expect a number of sessions in this order. > ... >In a very basic sense this is all our production server does. When a >user first comes to our site we query a mysql database for several >hundred values. These values are then stored in the session object as a >map. All other pages are built dynamically based on the values stored >in the session object. > >Is the session object system just not supposed to be used like this? We use the session system in quite a similar way -- without problems. But, we have a maximal session count of 5.000. We, too, observe some increase in memory requirements which we do not yet understand: memory seems to increase from about 300 MB to about 600 MB within a week. Therefore, we restart once every Sunday night. But, the problem has not yet been pressing and we did not yet seriously tried to understand it. -- Dieter From hbrednek at gmail.com Thu Jan 6 14:42:04 2005 From: hbrednek at gmail.com (Mike Elliott) Date: Thu Jan 6 14:42:06 2005 Subject: [Zope] New user problems with Solaris 9 Zope Message-ID: <57a3c28e050106114239aeac00@mail.gmail.com> I've been working on getting Zope running on an Ultra 1 running Solaris 9, with no real success so far. I can apparently compile and install Zope, but when I try to run it I get the following: mre@bonk$ instance/bin/runzope -X port-base=1000 Traceback (most recent call last): File "/opt/Zope-2.7/lib/python/Zope/Startup/run.py", line 50, in ? run() File "/opt/Zope-2.7/lib/python/Zope/Startup/run.py", line 18, in run opts = _setconfig() File "/opt/Zope-2.7/lib/python/Zope/Startup/run.py", line 42, in _setconfig opts.realize(doc="Sorry, no option docs yet.") File "/opt/Zope-2.7/lib/python/zdaemon/zdoptions.py", line 271, in realize self.load_schema() File "/opt/Zope-2.7/lib/python/zdaemon/zdoptions.py", line 312, in load_schema self.schema = ZConfig.loadSchema(self.schemafile) File "/opt/Zope-2.7/lib/python/ZConfig/loader.py", line 37, in loadSchema return SchemaLoader().loadURL(url) File "/opt/Zope-2.7/lib/python/ZConfig/loader.py", line 71, in loadURL return self.loadResource(r) File "/opt/Zope-2.7/lib/python/ZConfig/loader.py", line 137, in loadResource schema = ZConfig.schema.parseResource(resource, self) File "/opt/Zope-2.7/lib/python/ZConfig/schema.py", line 43, in parseResource xml.sax.parse(resource.file, parser) File "/usr/local/lib/python2.3/xml/sax/__init__.py", line 33, in parse parser.parse(source) File "/usr/local/lib/python2.3/xml/sax/expatreader.py", line 107, in parse xmlreader.IncrementalParser.parse(self, source) File "/usr/local/lib/python2.3/xml/sax/xmlreader.py", line 123, in parse self.feed(buffer) File "/usr/local/lib/python2.3/xml/sax/expatreader.py", line 207, in feed self._parser.Parse(data, isFinal) File "/usr/local/lib/python2.3/xml/sax/expatreader.py", line 300, in start_element self._cont_handler.startElement(name, AttributesImpl(attrs)) File "/opt/Zope-2.7/lib/python/ZConfig/schema.py", line 119, in startElement getattr(self, "start_" + name)(attrs) File "/opt/Zope-2.7/lib/python/ZConfig/schema.py", line 306, in start_import src = self._loader.schemaComponentSource(pkg, file) File "/opt/Zope-2.7/lib/python/ZConfig/loader.py", line 154, in schemaComponentSource __import__(package) File "/opt/Zope-2.7/lib/python/ZServer/__init__.py", line 30, in ? ZOPE_VERSION=utils.getZopeVersion() File "/opt/Zope-2.7/lib/python/ZServer/utils.py", line 18, in getZopeVersion return App.version_txt.version_txt() File "/opt/Zope-2.7/lib/python/App/version_txt.py", line 57, in version_txt _prep_version_data() File "/opt/Zope-2.7/lib/python/App/version_txt.py", line 45, in _prep_version_data dict = expr.match(s).groupdict() AttributeError: 'NoneType' object has no attribute 'groupdict' This is really tough for someone like me to debug as I have no experience with Zope or Python. Any suggestions? From jensen at portland.econw.com Thu Jan 6 14:50:40 2005 From: jensen at portland.econw.com (Dane Jensen) Date: Thu Jan 6 14:50:47 2005 Subject: [Zope] AttributeError when attempting to view a a user in acl_users Message-ID: <3E57F604-601C-11D9-B9EC-000A95ED52DA@portland.econw.com> I am trying to move a site from Zope 2.6.1 on Linux to Zope 2.7.3 on Mac OS X Server and have run into a very bizarre problem. Whenever I attempt to view a user in any acl_user folder on the XServe I get an AttributeError with 'name' being the attribute causing the error. Additionally, it does not appear that the acl_users from the site I moved is being used by Zope at all. Users that could log in on the old server are unable to do so on the new one. Here is the entry in error_log: Time 2005/01/06 11:31:53.891 US/Pacific User Name (User Id) Dane Jensen (Dane Jensen) Request URL http://portland.econw.com:8080/acl_users/manage_users Exception Type AttributeError Exception Value name Traceback (innermost last): * Module ZPublisher.Publish, line 101, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 39, in call_object * Module AccessControl.User, line 939, in manage_users * Module Shared.DC.Scripts.Bindings, line 306, in __call__ * Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec * Module App.special_dtml, line 175, in _exec * Module DocumentTemplate.DT_Util, line 198, in eval __traceback_info__: user * Module , line 0, in ? AttributeError: name The XServe is running Zope 2.7.3-0 under Python 2.3.4 on the latest version of OS X Server 10.3. I'm stumped. Any thoughts? Thanks, -Dane Jensen From hpinson at indepthl.com Thu Jan 6 15:02:16 2005 From: hpinson at indepthl.com (hpinson@indepthl.com) Date: Thu Jan 6 15:00:06 2005 Subject: [Zope] Passive FTP Trouble Message-ID: <41DD36D8.611.1AE5EA@localhost> Hello. We are having trouble with FTP behind a NAT DSL gateway. When we FTP in to port 8021, using Dreamweaver MX, we connect, but do not get a directory listing-- only the current folder is listed. No subfolders are listed so navigation is not possible. Any idea why this is, and how to solve it? Zope 2.73 on Fedora Core 2. Harlow Pinson Indepth Learning Email: hpinson@indepthl.com Web: http://www.indepthl.com Voice: 505-994-2135 FAX: 208-475-7678 From jziniti at speakeasy.org Thu Jan 6 15:10:34 2005 From: jziniti at speakeasy.org (John Ziniti) Date: Thu Jan 6 15:11:08 2005 Subject: [Zope] New user problems with Solaris 9 Zope In-Reply-To: <57a3c28e050106114239aeac00@mail.gmail.com> References: <57a3c28e050106114239aeac00@mail.gmail.com> Message-ID: <41DD9B3A.8010502@speakeasy.org> Mike Elliott wrote: > I've been working on getting Zope running on an Ultra 1 running > Solaris 9, with no real success so far. > > I can apparently compile and install Zope, but when I try to run it I > get the following: > > mre@bonk$ instance/bin/runzope -X port-base=1000 [ snip most of traceback ] > File "/opt/Zope-2.7/lib/python/App/version_txt.py", line 45, in > _prep_version_data > dict = expr.match(s).groupdict() > AttributeError: 'NoneType' object has no attribute 'groupdict' The code in question is trying to match a version number from a file called "version.txt" in $SOFTWARE_HOME, which is set in the runzope file. Check the runzope file you are running above for $SOFTWARE_HOME, then open the version.txt file and tell us what is in it. It probably does not match the regular expression: expr = re.compile( r'(?P[A-Za-z0-9]+) +(?P[0-9]+)' '\.(?P[0-9]+)\.(?P[0-9]+)' '(?P[A-Za-z]+)?(?P[0-9]+)?') You can probably get past this problem in the short term by just deleting that file. HTH, JZ From apaku at gmx.de Thu Jan 6 15:16:34 2005 From: apaku at gmx.de (Andreas Pakulat) Date: Thu Jan 6 15:16:19 2005 Subject: [Zope] New user problems with Solaris 9 Zope In-Reply-To: <57a3c28e050106114239aeac00@mail.gmail.com> References: <57a3c28e050106114239aeac00@mail.gmail.com> Message-ID: <20050106201633.GB7964@morpheus.matrix.de> On 06.Jan 2005 - 11:42:04, Mike Elliott wrote: > I've been working on getting Zope running on an Ultra 1 running > Solaris 9, with no real success so far. > > This is really tough for someone like me to debug as I have no > experience with Zope or Python. Any suggestions? Check the archive, I asked that question before christmas. The problem is the version string in a file of lib/python/... (I don't know the exact filename). Also there is an existing Bugreport, the problem is the Solaris echo-program (IIRC). Andreas -- You possess a mind not merely twisted, but actually sprained. From hbrednek at gmail.com Thu Jan 6 15:38:13 2005 From: hbrednek at gmail.com (Mike Elliott) Date: Thu Jan 6 15:38:14 2005 Subject: [Zope] New user problems with Solaris 9 Zope In-Reply-To: <57a3c28e0501061227799d42fc@mail.gmail.com> References: <57a3c28e050106114239aeac00@mail.gmail.com> <41DD9B3A.8010502@speakeasy.org> <57a3c28e0501061227799d42fc@mail.gmail.com> Message-ID: <57a3c28e05010612387470e379@mail.gmail.com> On Thu, 6 Jan 2005 12:27:04 -0800, Mike Elliott wrote: > > You can probably get past this problem in the short term by > > just deleting that file. > > I'll try it. Thanks. Yes, getting rid of the file (or renaming it, in this case) allows Zope to run. Not unsurprisingly, when I open the ZMI (see, I'm learning the buzzwords already!) the Zope version is listed as 'unreleased version'. I assume there's a way to specify that version file manually. From hbrednek at gmail.com Thu Jan 6 16:47:27 2005 From: hbrednek at gmail.com (Mike Elliott) Date: Thu Jan 6 16:47:30 2005 Subject: [Zope] User login problem: prefs_users_overview Message-ID: <57a3c28e050106134778303cd3@mail.gmail.com> OK, I got Zope up and running with the assistance of the mailing list. Thanks guys. I have successfully added a Plone site, but when I tried to create a new user through the web interface I got the following message: You have been registered Site Error This site encountered an error trying to fulfill your request. The errors were: ErrorType ValueError ErrorValue Unable to find prefs_users_overview The URL is http://...ploneSite/join_form Do I need to something else before a Plone site is usable? From robert at redcor.ch Thu Jan 6 16:54:01 2005 From: robert at redcor.ch (robert) Date: Thu Jan 6 16:54:39 2005 Subject: [Zope] calling zpt from a script with options In-Reply-To: References: Message-ID: <41DDB379.30705@redcor.ch> Haim Ashkenazi wrote: >Hi > >forgive me if it's trivial, but I'm a complete zope newbie.... > >I read in the zope book that if I want to call zpt from a script (in my >case, to render errors in a form) I do something like this: > >-- >script: > >pt = context.body_content >s = pt(zerror="This is an error") >return s > >zpt: > >error >-- > >This works without a problem, but it only shows the "body_content" file. >this file is part of a layout (inside a folder) and I want to call the >folder as the url, so it will acquire the index_html in an upper directory. > >I tried changing the "pt" variable to context.index_html and calling >"here/index_html/options/zerror" in the template but it didn't show. > > options are the parameter with the actual template was called with. Therefore here/index_html has not options since it is not called as a method. If I understand your problem correctly, you shoud do something like: script: pt = context.index_html return pt(zerror="This is an error") zpt:
robert From johan30 at easynet.be Thu Jan 6 15:59:01 2005 From: johan30 at easynet.be (johan30@easynet.be) Date: Thu Jan 6 16:59:07 2005 Subject: [Zope] virtual host monster problem Message-ID: <002001c4f432$8c626fa0$0201a8c0@SPINNEKOP> hi, I have a question of virtual host monster in combination with a virtual plone site, in combination with an apache site I have an url http://212.100.163.214:8080/help that should be directed to http://212.100.163.214/help : this means that everytime i go to the url or http://212.100.163.214/help , I should arrive to http://212.100.163.214:8080/help , which is a zope site. I have installed vhm in the root folder of http://212.100.163.214:8080 and i have as httpd.conf zope-part : LoadModule proxy_module /usr/lib/apache/1.3/libproxy.so AddModule mod_proxy.c ServerAdmin johan.boeckx@be.easynet.net DocumentRoot /opt/jffnms/htdocs ServerName managedrouters.easynet.be ServerName managedrouters.easynet.be/help ServerAdmin johan.boeckx@be.easynet.net ServerAlias managedrouters.easynet.be/help ProxyPass / http://212.100/163.214:8080/VirtualHostbase/http/managedrouters.easynet.be:80/help/VirtualHostRoot/ ProxyPassReverse / http://212.100/163.214:8080/VirtualHostbase/http/managedrouters.easynet.be:80/help/VirtualHostRoot/ Nevertheless, when i try to access http://212.100.163.214/help/ , I see in the logs of apache : [Thu Jan 6 22:53:18 2005] [error] [client 81.188.66.90] File does not exist: /opt/jffnms/htdocs/help , which is the document root of the first site, while i need to arrive on the plone-site. Anybody know what i do wrong ? Greetings, Johan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.zope.org/pipermail/zope/attachments/20050106/8b7e8e32/attachment.htm From andy at nnu.com Thu Jan 6 17:19:21 2005 From: andy at nnu.com (Andy Yates) Date: Thu Jan 6 17:19:22 2005 Subject: [Zope] Zope 2.7.3 Memory Leaks Message-ID: <93ED2D3FFABD164684F73914CF2A4D68013EE958@exchange.nnu.com> > > Andy Yates wrote at 2005-1-5 15:30 -0600: > > ... > >In fact we can reproduce this behavior > >on a fresh install. On a fresh system create a python script that puts > >data in a session object. > > > >s = context.REQUEST.SESSION > >t = ' ' * 1024 > >s['data'] = t > >print "foo" > >return printed > > > >Then call this script with your favorite bench marking program. We used > >apache bench (ab). This will cause python2.3 to consume all available > >memory and crash or lockup. > Can anybody else reproduce these results? > And I am not surprised at all: > > You allow an unlimited number of sessions. > > Your session timeout is 45 minutes > > "ab" does not honour the "set cookie" requests for the sessioning. > Thus, each request creates a new session. > Yes, I understand that ab will not set the cookie and each request will look like a new connection to Zope. That is not the point. The point is that whatever memory is used by these sessions should be released once the session has expired. This does not seem to happen. Memory use just grows and grows until the server dies. We turned on the debug output in Transient.py and the buckets seem to get expired as expected but like I said memory used just grows without bound. For example if I have ab make X requests, X new sessions are created and memory use goes up by 100MB. I also see about X objects in the transient object container. Now I wait for the sessions to expire based on the "Data object timeout value". Then I make a few calls to tickle the Transient system's garbage collection. The objects in the toc goes down but memory use does not. Some have posted that python does not release memory it just reuses it. Well, when I make X more requests the memory is not reused. Now it is using 200MB. > This way, it should not be difficult to use > a large amount of RAM. > My Zope serves about 500 request/s, 30.000 request/min > and 1.350.000 requests in 45 min. > You must expect a number of sessions in this order > > ... > >In a very basic sense this is all our production server does. When a > >user first comes to our site we query a mysql database for several > >hundred values. These values are then stored in the session object as a > >map. All other pages are built dynamically based on the values stored > >in the session object. > > > >Is the session object system just not supposed to be used like this? > > We use the session system in quite a similar way -- without problems. > But, we have a maximal session count of 5.000. > > We, too, observe some increase in memory requirements which we do > not yet understand: memory seems to increase from about 300 MB > to about 600 MB within a week. Therefore, we restart > once every Sunday night. But, the problem has not yet been pressing > and we did not yet seriously tried to understand it. > Consider the problem pressed. ;-) Well, I guess I'll just restart Zope every day for now. Could it be possible that the BTrees code which is written in C is leaking? Memory leaked here would not show up as refcounts in Zope right? It is FULL of malloc and free calls. Isn't this a fairly new addition to Zope? Thanks again for your help and insight! Andy From mettwoch at pt.lu Thu Jan 6 17:16:25 2005 From: mettwoch at pt.lu (mettwoch@pt.lu) Date: Thu Jan 6 17:20:35 2005 Subject: [Zope] Report Writer Message-ID: <20050106221625.440.73885@MARC> Hi, I'm looking for building blocks to use for our "shop"-management solution. Does anybody know a solution/product to print out from Zope structured documents like invoices, open-balances, cash-flow reports ... .In more general the tool I'm looking for should be able to build documents (even multipage) with report-headers and -footers and page-headers and -footers, running sums, sorts ... . These documents should be send immediately to the printer (not displayed in the browser and waiting for the user to hit "print"). The source of data is a MySQL database. By the way, I use MailManager to handle our mail traffic - a cool product. Thx -- mettwoch@pt.lu From stefan at epy.co.at Thu Jan 6 17:29:11 2005 From: stefan at epy.co.at (Stefan H. Holek) Date: Thu Jan 6 17:29:29 2005 Subject: [Zope] AttributeError when attempting to view a a user in acl_users In-Reply-To: <3E57F604-601C-11D9-B9EC-000A95ED52DA@portland.econw.com> References: <3E57F604-601C-11D9-B9EC-000A95ED52DA@portland.econw.com> Message-ID: <633B17CB-6032-11D9-A7B3-000D93325646@epy.co.at> This may mean you have a folder or object named 'user' around. Remove that. Treat 'user' as a reserved id. Welcome to the joys of the DTML namespace. ;-) Stefan On 6. J?n 2005, at 20:50, Dane Jensen wrote: > > Time 2005/01/06 11:31:53.891 US/Pacific > User Name (User Id) Dane Jensen (Dane Jensen) > Request URL http://portland.econw.com:8080/acl_users/manage_users > Exception Type AttributeError > Exception Value name > > Traceback (innermost last): > > * Module ZPublisher.Publish, line 101, in publish > * Module ZPublisher.mapply, line 88, in mapply > * Module ZPublisher.Publish, line 39, in call_object > * Module AccessControl.User, line 939, in manage_users > * Module Shared.DC.Scripts.Bindings, line 306, in __call__ > * Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec > * Module App.special_dtml, line 175, in _exec > * Module DocumentTemplate.DT_Util, line 198, in eval > __traceback_info__: user > * Module , line 0, in ? > > AttributeError: name > > -- The time has come to start talking about whether the emperor is as well dressed as we are supposed to think he is. /Pete McBreen/ From jensen at portland.econw.com Thu Jan 6 17:36:48 2005 From: jensen at portland.econw.com (Dane Jensen) Date: Thu Jan 6 17:36:53 2005 Subject: [Zope] AttributeError when attempting to view a a user in acl_users In-Reply-To: <633B17CB-6032-11D9-A7B3-000D93325646@epy.co.at> References: <3E57F604-601C-11D9-B9EC-000A95ED52DA@portland.econw.com> <633B17CB-6032-11D9-A7B3-000D93325646@epy.co.at> Message-ID: <7399BBF4-6033-11D9-B9EC-000A95ED52DA@portland.econw.com> On Jan 6, 2005, at 2:29 PM, Stefan H. Holek wrote: > This may mean you have a folder or object named 'user' around. Remove > that. Treat 'user' as a reserved id. Welcome to the joys of the DTML > namespace. ;-) > > Stefan Erm, I did indeed have a folder named "user," and renaming it worked like a charm. After fighting with the joys of DTML's magic namespaces for an hour yesterday, one would have thought I'd have learned my lesson. But no. Thanks! -Dane From haim at babysnakes.org Thu Jan 6 17:40:41 2005 From: haim at babysnakes.org (Haim Ashkenazi) Date: Thu Jan 6 17:40:56 2005 Subject: [Zope] Re: calling zpt from a script with options References: <41DDB379.30705@redcor.ch> Message-ID: On Thu, 06 Jan 2005 22:54:01 +0100, robert wrote: > Haim Ashkenazi wrote: > >>Hi >> >>forgive me if it's trivial, but I'm a complete zope newbie.... >> >>I read in the zope book that if I want to call zpt from a script (in my >>case, to render errors in a form) I do something like this: >> >>-- >>script: >> >>pt = context.body_content >>s = pt(zerror="This is an error") >>return s >> >>zpt: >> >>error >>-- >> >>This works without a problem, but it only shows the "body_content" file. >>this file is part of a layout (inside a folder) and I want to call the >>folder as the url, so it will acquire the index_html in an upper directory. >> >>I tried changing the "pt" variable to context.index_html and calling >>"here/index_html/options/zerror" in the template but it didn't show. >> >> > options are the parameter with the actual template was called with. > Therefore > > here/index_html has not options since it is not called as a method. > If I understand your problem correctly, you shoud do something like: > > script: > > pt = context.index_html > return pt(zerror="This is an error") > > zpt: >
> >
>
If I understand correctly, this will first print the "zerror" variable, and then the content of here/body_content. I want the error to show in the body of the form (inside body_content). anyway, I solved it like this: budy content now I can call index_html from the script and add tal:condition (not shown above) to test for the existence of "options/error" and call body_content like the example above. thanx -- Haim From haim at babysnakes.org Thu Jan 6 17:45:36 2005 From: haim at babysnakes.org (Haim Ashkenazi) Date: Thu Jan 6 17:51:22 2005 Subject: [Zope] Re: calling zpt from a script with options References: <16861.34742.475835.917033@gargle.gargle.HOWL> Message-ID: On Thu, 06 Jan 2005 19:47:18 +0100, Dieter Maurer wrote: > Haim Ashkenazi wrote at 2005-1-5 20:55 +0200: >>forgive me if it's trivial, but I'm a complete zope newbie.... > > You must also learn how to formulate questions :-) > >> ... >>I read in the zope book that if I want to call zpt from a script (in my >>case, to render errors in a form) I do something like this: >> >>-- >>script: >> >>pt = context.body_content >>s = pt(zerror="This is an error") >>return s >> >>zpt: >> >>error >>-- >> >>This works without a problem, but it only shows the "body_content" file. >>this file is part of a layout (inside a folder) and I want to call the >>folder as the url, so it will acquire the index_html in an upper directory. > > I do not yet understand what you want... > > Usually, the overall layout is defined in a macro > and individual page templates use this macro and fill slots of it. > Maybe, you read about "metal:define-macro", "metal:define-slot", > "metal:use-macro" and "metal:fill-slot" in the Zope Book. thanx, I didn't reach this part yet (I started working with zope 5 days ago), but I'll get to it now... > > Otherwise, if you do not want to call "body_content" but "index_html", > then you simply use "pt = content.index_html" (provided it is a ZPT, > too). > >>I tried changing the "pt" variable to context.index_html and calling >>"here/index_html/options/zerror" in the template but it didn't show. > > In "index_html", you would access "zerror" also via "option/zerror". > > When your "index_html" would call "body_content", you would need to pass > "zerror" again. that's how I solved it eventually: budy content thanx -- Haim From apaku at gmx.de Thu Jan 6 17:58:22 2005 From: apaku at gmx.de (Andreas Pakulat) Date: Thu Jan 6 17:58:07 2005 Subject: [Zope] virtual host monster problem In-Reply-To: <002001c4f432$8c626fa0$0201a8c0@SPINNEKOP> References: <002001c4f432$8c626fa0$0201a8c0@SPINNEKOP> Message-ID: <20050106225822.GD15508@morpheus.matrix.de> On 06.Jan 2005 - 21:59:01, johan30@easynet.be wrote: > hi, > > I have a question of virtual host monster in combination with a virtual plone site, in combination with an apache site > > I have an url http://212.100.163.214:8080/help that should be directed to http://212.100.163.214/help : this means that everytime i go to the url or http://212.100.163.214/help , I should arrive to http://212.100.163.214:8080/help , which is a zope site. I have installed vhm in the root folder of http://212.100.163.214:8080 and i have as httpd.conf zope-part : That's exactly what I do for my zope-site... > LoadModule proxy_module /usr/lib/apache/1.3/libproxy.so > AddModule mod_proxy.c > > ServerAdmin johan.boeckx@be.easynet.net > DocumentRoot /opt/jffnms/htdocs > ServerName managedrouters.easynet.be > > > ServerName managedrouters.easynet.be/help > ServerAdmin johan.boeckx@be.easynet.net > ServerAlias managedrouters.easynet.be/help > ProxyPass / http://212.100/163.214:8080/VirtualHostbase/http/managedrouters.easynet.be:80/help/VirtualHostRoot/ > ProxyPassReverse / http://212.100/163.214:8080/VirtualHostbase/http/managedrouters.easynet.be:80/help/VirtualHostRoot/ > > First thing: The ProxyPass line has an invalid IP: 212.100_/_163.214 anyway I'm using something like: LoadModule rewrite_module /usr/lib/apache/1.3/mod_rewrite.so ServerAdmin ... DocumentRoot ... ServerName ... RewriteEngine on RewriteRule ^/(.*) http://212.100.163.214:8080/VirtualHostBase/http/212.100.163.214/help/VirtualHostRoot/$1 [P] DocumentRoot ... This rewrites any access to the normal IP to the Zope/help thing and makes that the server-name again (so nobody sees that it's Zope actually serving the pages). Have a look at the doc for the RewriteRule on how to match only for serverip/help instead of everything (out off my head I think RewriteRule ^/help/(.*) ... might be the right) Andreas -- You now have Asian Flu. From tim.peters at gmail.com Thu Jan 6 18:21:20 2005 From: tim.peters at gmail.com (Tim Peters) Date: Thu Jan 6 18:21:23 2005 Subject: [Zope] Zope 2.7.3 Memory Leaks In-Reply-To: <93ED2D3FFABD164684F73914CF2A4D68013EE958@exchange.nnu.com> References: <93ED2D3FFABD164684F73914CF2A4D68013EE958@exchange.nnu.com> Message-ID: <1f7befae0501061521813b409@mail.gmail.com> [Andy Yates] > ... > For example if I have ab make X requests, X new sessions are created and > memory use goes up by 100MB. I also see about X objects in the > transient object container. Now I wait for the sessions to expire based > on the "Data object timeout value". Then I make a few calls to tickle > the Transient system's garbage collection. The objects in the toc goes > down but memory use does not. Some have posted that python does not > release memory it just reuses it. Well, when I make X more requests the > memory is not reused. Now it is using 200MB. I know as much about the gory details of Python's memory-management as anyone on Earth, so you can believe this: if anyone gives you a catchy one-line summary, don't believe them. Python has many distinct memory-management subsystems, and details are crucial. In addition, Python builds on top of the platform C library's malloc/free/realloc system, and that builds in turn on the platform operating system policies. If you pursue it, you'll discover that it's a long discussion just trying to figure out what "release memory" could possibly mean. That said, it's not generally expected that the virtual memory highwater mark (which I'm guessing you're really talking about when you say "now it is using 200MB") will grow rapidly and consistently. > ... > Could it be possible that the BTrees code which is written in C is > leaking? Yes -- and if you use an old enough version of ZODB, it's guaranteed to leak . > Memory leaked here would not show up as refcounts in Zope > right? For the most part, it should: BTrees are built out of Python objects, each with its own refcount (as is true of all Python objects). To Zope, BTree building blocks look like all other kinds of persistent Python objects. I haven't done this for a while, but when leaks in the BTree code were still suspected (they truly aren't any more), I used to run the ZODB test suite under a debug-build ZODB and a debug-build Python, for days at a time in a loop. There are special gimmicks you can use in a debug-build Python to detect leaks. This did find leaks, too. I stopped doing this after the last leak it pointed at took days to track down, and turned out to be in a BTree endcase soooooo rare that it may never have occurred in real life (but did occur once in one of the test cases for "pathological" BTrees). That doesn't mean there can't be more leaks, but it would be pretty amazing if there were still a leak on any common path thru the BTree code. > It is FULL of malloc and free calls. Isn't this a fairly new addition to Zope? No. The BTree code is really part of ZODB, and has been there (as far as I know) forever; Jeremy Hylton and I did a lot concentrated work to squash memory leaks in ZODB (including its BTree code) a couple years ago. The BTree code has been very stable (== has been changed very little) since then. From johan30 at easynet.be Thu Jan 6 17:32:38 2005 From: johan30 at easynet.be (johan30@easynet.be) Date: Thu Jan 6 18:32:45 2005 Subject: [Zope] virtual host monster problem References: <002001c4f432$8c626fa0$0201a8c0@SPINNEKOP> <20050106225822.GD15508@morpheus.matrix.de> Message-ID: <005701c4f43f$a0e51060$0201a8c0@SPINNEKOP> This is what is have now : ServerName managedrouters.easynet.be/help ServerAdmin johan.boeckx@be.easynet.net ServerAlias managedrouters.easynet.be/help ProxyPass / http://212.100.163.214:8080/VirtualHostbase/http/managedrouters.easynet.be:80/help/VirtualHostRoot/ ProxyPassReverse / http://212.100.163.214:8080/VirtualHostbase/http/managedrouters.easynet.be:80/help/VirtualHostRoot/ ServerAdmin johan.boeckx@be.easynet.net DocumentRoot /opt/jffnms/htdocs ServerName managedrouters.easynet.be RewriteEngine on RewriteRule ^/(.*) http://212.100.163.214:8080/VirtualHostBase/http/212.100.163.214/help/VirtualHostRoot/$1[P] I arrive on the plone-site, but something very weird is happening, a lot of layout has been disappeared, and the links point to the root-dir of the zope server, and not to the subdir. You can see the difference : http://212.100.163.214:8080/help http://212.100.163.214/help Greetings, Johan ----- Original Message ----- From: "Andreas Pakulat" To: Sent: Thursday, January 06, 2005 11:58 PM Subject: Re: [Zope] virtual host monster problem > On 06.Jan 2005 - 21:59:01, johan30@easynet.be wrote: > > hi, > > > > I have a question of virtual host monster in combination with a virtual plone site, in combination with an apache site > > > > I have an url http://212.100.163.214:8080/help that should be directed to http://212.100.163.214/help : this means that everytime i go to the url or http://212.100.163.214/help , I should arrive to http://212.100.163.214:8080/help , which is a zope site. I have installed vhm in the root folder of http://212.100.163.214:8080 and i have as httpd.conf zope-part : > > That's exactly what I do for my zope-site... > > > LoadModule proxy_module /usr/lib/apache/1.3/libproxy.so > > AddModule mod_proxy.c > > > > ServerAdmin johan.boeckx@be.easynet.net > > DocumentRoot /opt/jffnms/htdocs > > ServerName managedrouters.easynet.be > > > > > > ServerName managedrouters.easynet.be/help > > ServerAdmin johan.boeckx@be.easynet.net > > ServerAlias managedrouters.easynet.be/help > > ProxyPass / http://212.100/163.214:8080/VirtualHostbase/http/managedrouters.easynet.be:80/help/VirtualHostRoot/ > > ProxyPassReverse / http://212.100/163.214:8080/VirtualHostbase/http/managedrouters.easynet.be:80/help/VirtualHostRoot/ > > > > > > First thing: The ProxyPass line has an invalid IP: 212.100_/_163.214 > anyway I'm using something like: > > LoadModule rewrite_module /usr/lib/apache/1.3/mod_rewrite.so > > ServerAdmin ... > DocumentRoot ... > ServerName ... > RewriteEngine on > RewriteRule ^/(.*) > http://212.100.163.214:8080/VirtualHostBase/http/212.100.163.214/help/VirtualHostRoot/$1 > [P] > > > DocumentRoot ... > > > This rewrites any access to the normal IP to the Zope/help thing and > makes that the server-name again (so nobody sees that it's Zope > actually serving the pages). Have a look at the doc for the > RewriteRule on how to match only for serverip/help instead of > everything (out off my head I think RewriteRule ^/help/(.*) ... might > be the right) > > Andreas > > -- > You now have Asian Flu. > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) From amphigory at gmail.com Thu Jan 6 23:33:56 2005 From: amphigory at gmail.com (Sensible Chaos) Date: Thu Jan 6 23:34:02 2005 Subject: [Zope] Why am I getting "AttributeError: 'NoneType' object has no attribute 'setHeader'"? Message-ID: <39b4e96505010620333059bc0d@mail.gmail.com> Running 2.7.4rc1, I'm getting the following errors in relation to a product I'm building, and can't seem to figure out why. It appears to me that the dtml method is not getting a RESPONSE object, but I've no idea what could cause that. Any help would be GREATLY appreciated, as I'm very new to zope and really can't seem to figure this out. Thanks! Patrick ============ Errors: Site Error An error was encountered while publishing this resource. AttributeError Sorry, a site error occurred. Traceback (innermost last): * Module ZPublisher.Publish, line 175, in publish_module_standard * Module ZPublisher.Publish, line 132, in publish * Module Zope.App.startup, line 204, in zpublisher_exception_hook * Module ZPublisher.Publish, line 101, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 39, in call_object * Module Shared.DC.Scripts.Bindings, line 306, in __call__ * Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec * Module App.special_dtml, line 175, in _exec * Module Shared.DC.Scripts.Bindings, line 320, in __render_with_namespace__ * Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec * Module App.special_dtml, line 175, in _exec * Module DocumentTemplate.DT_Util, line 198, in eval __traceback_info__: RESPONSE * Module , line 0, in ? AttributeError: 'NoneType' object has no attribute 'setHeader' (Also, an error occurred while attempting to render the standard error message.) ========== Relevant Python Code: security.declareProtected('View management screens', 'manage_main') manage_main = DTMLFile("dtml/mainAnnounceIt", globals()) ========== DTML Page (dtml/mainAnnounceIt)
Title:
From lists at andreas-jung.com Fri Jan 7 01:09:13 2005 From: lists at andreas-jung.com (Andreas Jung) Date: Fri Jan 7 01:09:22 2005 Subject: [Zope] Why am I getting "AttributeError: 'NoneType' object has no attribute 'setHeader'"? In-Reply-To: <39b4e96505010620333059bc0d@mail.gmail.com> References: <39b4e96505010620333059bc0d@mail.gmail.com> Message-ID: <5FC875EC7C6912236F064D25@[192.168.0.102]> Please file a Zope collector issue for this. -aj --On Donnerstag, 6. Januar 2005 23:33 Uhr -0500 Sensible Chaos wrote: > Running 2.7.4rc1, I'm getting the following errors in relation to a > product I'm building, and can't seem to figure out why. It appears to > me that the dtml method is not getting a RESPONSE object, but I've no > idea what could cause that. Any help would be GREATLY appreciated, as > I'm very new to zope and really can't seem to figure this out. > > Thanks! > > Patrick > > ============ Errors: > > Site Error > > An error was encountered while publishing this resource. > > AttributeError > Sorry, a site error occurred. > > Traceback (innermost last): > > * Module ZPublisher.Publish, line 175, in publish_module_standard > * Module ZPublisher.Publish, line 132, in publish > * Module Zope.App.startup, line 204, in zpublisher_exception_hook > * Module ZPublisher.Publish, line 101, in publish > * Module ZPublisher.mapply, line 88, in mapply > * Module ZPublisher.Publish, line 39, in call_object > * Module Shared.DC.Scripts.Bindings, line 306, in __call__ > * Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec > * Module App.special_dtml, line 175, in _exec > * Module Shared.DC.Scripts.Bindings, line 320, in > __render_with_namespace__ * Module Shared.DC.Scripts.Bindings, line > 343, in _bindAndExec * Module App.special_dtml, line 175, in _exec > * Module DocumentTemplate.DT_Util, line 198, in eval > __traceback_info__: RESPONSE > * Module , line 0, in ? > > AttributeError: 'NoneType' object has no attribute 'setHeader' (Also, > an error occurred while attempting to render the standard error > message.) > > ========== Relevant Python Code: > security.declareProtected('View management screens', 'manage_main') > manage_main = DTMLFile("dtml/mainAnnounceIt", globals()) > > ========== DTML Page (dtml/mainAnnounceIt) > > > >
> > > > > > > > >
Title:
>
> > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) From mark at zopemag.com Fri Jan 7 09:26:17 2005 From: mark at zopemag.com (Mark Pratt) Date: Fri Jan 7 09:27:09 2005 Subject: [Zope] Zope.org Doc team needs some help Message-ID: <17C897FE-60B8-11D9-81AA-000D932A0486@zopemag.com> Hi, Morten Peterson and I have been working on a new and improved documentation section for Zope.org At this point we need one developer to help us create two very simple link items for Zope.org users. These are for articles and books that are published about Zope. Please go here to read the pdf spec of whats required: http://zope.org/Members/beehive/DocStuff/articlebook.pdf/file_view Cheers, Mark From chris.kratz at vistashare.com Fri Jan 7 09:38:05 2005 From: chris.kratz at vistashare.com (Chris Kratz) Date: Fri Jan 7 09:38:12 2005 Subject: [Zope] Zope 2.7.3 + Apelib 1.0 - Intermittent data loss in acl_users obj Message-ID: <200501070938.05964.chris.kratz@vistashare.com> Hello all, We've been using Apelib with Zope 2.7.3 for several weeks on a production site. We've been having problems with password changes disapearing intermittently from one day to the next, and whole user accounts being lost periodically. Up until today, we thought it was a bug in our own code. After being able to reproduce the problem outside of our code (using the zmi), we started looking at Zope and Apelib. We have come to the conclusion that a standard acl_users folder is not always correctly persisted when using apelib. Whether or not we are right, the following is how we understand things to be working at this point as well as an ugly hack that seems to fix the problem. We are using the file system persistence method of apelib for our test bed. Using the file system persistence and grep, it is a very simple procedure to add a user, change a password through the zope zmi and verify that the changes to acl_users were persisted by inspecting the file on the file system. There is no pattern, but almost always after several changes to a password or adding several users, the changes stopped being persisted to the file. Stopping and starting zope at any point from then on loses those user accounts or password changes that were done after the persistence stopped happening. We verified that the objects are correctly changed in memory, because subsequent use returns the modified data. Also, updating the properties on an acl_users folder (going to Properties tab and clicking Save changes) causes all changes to be written out including password changes and user account additions and removals. We are no experts on this code, but it appears that the serializing code in apelib only is inspecting the _p_changed flag on the user folder itself and not on the individual user objects persisted within. In a standard zodb, it appears that every user object is persisted separately. So, a change to the user object only marks that user object as changed, not acl_users. But in apelib, the acl_users folder is persisted as a whole with all user objects as the contents. With a standard ZODB, any updates to user objects are persisted at the user object level. The same thing appears to be happening with apelib except that it appears that apelib when persisting objects only examines the acl_users folder and none of the user objects for changes. It may be a red herring, but by adding self._p_changed=1 to _doAddUser, _doChangeUser and _doDelUsers in class UserFolder, we were no longer able to break it (ie changes were always written to file). Since apelib treats a user folder and all it's user objects as a single entity on the file system, this seems to address the problem. What's even more troubling is mixing this issue with multiple threads which caused all kinds of authentication errors when creating new accounts. We are wondering if anyone else has run into a simliar issue, and/or whether there is a better way to solve this then to modify User.py. It seems like the better approach would be to modify apelib, but we haven't been successfull up till now. -Chris From fg at nuxeo.com Fri Jan 7 10:19:29 2005 From: fg at nuxeo.com (Florent Guillaume) Date: Fri Jan 7 10:19:34 2005 Subject: [Zope] AttributeError when attempting to view a a user in acl_users In-Reply-To: <633B17CB-6032-11D9-A7B3-000D93325646@epy.co.at> References: <3E57F604-601C-11D9-B9EC-000A95ED52DA@portland.econw.com> Message-ID: <20050107151929.GA29578@flo.in.nuxeo.com> Thanks I reported this as http://collector.zope.org/Zope/1653 Florent Stefan H. Holek wrote: > This may mean you have a folder or object named 'user' around. Remove > that. Treat 'user' as a reserved id. Welcome to the joys of the DTML > namespace. ;-) > > Stefan > > > On 6. J?n 2005, at 20:50, Dane Jensen wrote: > > > > Time 2005/01/06 11:31:53.891 US/Pacific > > User Name (User Id) Dane Jensen (Dane Jensen) > > Request URL http://portland.econw.com:8080/acl_users/manage_users > > Exception Type AttributeError > > Exception Value name > > > > Traceback (innermost last): > > > > * Module ZPublisher.Publish, line 101, in publish > > * Module ZPublisher.mapply, line 88, in mapply > > * Module ZPublisher.Publish, line 39, in call_object > > * Module AccessControl.User, line 939, in manage_users > > * Module Shared.DC.Scripts.Bindings, line 306, in __call__ > > * Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec > > * Module App.special_dtml, line 175, in _exec > > * Module DocumentTemplate.DT_Util, line 198, in eval > > __traceback_info__: user > > * Module , line 0, in ? > > > > AttributeError: name > > > > > -- > The time has come to start talking about whether the emperor is as well > dressed as we are supposed to think he is. /Pete McBreen/ > > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) > -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1 40 33 71 59 http://nuxeo.com fg@nuxeo.com From tariq.rashid at uk.easynet.net Fri Jan 7 10:27:30 2005 From: tariq.rashid at uk.easynet.net (Tariq Rashid) Date: Fri Jan 7 10:29:15 2005 Subject: [Zope] groupware (like yahoo groups) for zope / plone? Message-ID: <37DB2705555B4C44842BEA017A6E80DB047F94@exch2-bllon.uk.easynet.corp> hi - i have been searching the websites and google and the zope/plone product pages for a "product" which will work like a groupware/colloration system - much like Yahoo Groups. features desired include: * email and list messaging * filestore for multi-type documents (eg pdfs) * shared calandars / meeting i have pnly recently beocme familiar with zope and plone and have a site up and running but which is "presentation only" for the pubnlic - a groupware system would be much more interactive ... i know i can install things like PloneMail or similar ... but i don't know / want to program the underlying mechanisms to propagte meeting invites etc etc ... the CPS website is not very open - i can't see a list of features or screenshots or a demo site. does anyone know if something like this exists? i am keen on a zope/plone solution because it would keep things simple and reduce the dependence on multiple platforms... i want to stick with an OS-independent zope/plone .. benefit from the zope scalable middleware and have simply replication/backup options that zope/plone gives me (data.fs?) thanks tariq From lists at andreas-jung.com Fri Jan 7 10:30:21 2005 From: lists at andreas-jung.com (Andreas Jung) Date: Fri Jan 7 10:30:30 2005 Subject: [Zope] [ANN] Zope 2.7.4 RC 2 released Message-ID: Dear Zope Community, on behalf of Zope Corporation and all Zope 2 developers and contributors I am pleased to announce the release of Zope 2.7.4 RC2. This release is a maintenance release and fixes a lot of bugs (too much to mention them all here). Zope 2.7.4 RC 2 can be downloaded from http://www.zope.org/Products/Zope/2.7.4rc2 The release notes can be found at http://www.zope.org/Products/Zope/2.7.4rc2/CHANGES.txt For informations on using Python 2.4 with Zope 2.7: see doc/INSTALL.txt Andreas Jung From andy at nnu.com Fri Jan 7 11:49:12 2005 From: andy at nnu.com (Andy Yates) Date: Fri Jan 7 11:49:14 2005 Subject: [Zope] Zope 2.7.3 Memory Leaks Message-ID: <93ED2D3FFABD164684F73914CF2A4D68013EE95A@exchange.nnu.com> > > ... > > For example if I have ab make X requests, X new sessions are created and > > memory use goes up by 100MB. I also see about X objects in the > > transient object container. Now I wait for the sessions to expire based > > on the "Data object timeout value". Then I make a few calls to tickle > > the Transient system's garbage collection. The objects in the toc goes > > down but memory use does not. Some have posted that python does not > > release memory it just reuses it. Well, when I make X more requests the > > memory is not reused. Now it is using 200MB. > > I know as much about the gory details of Python's memory-management as > anyone on Earth, so you can believe this: if anyone gives you a > catchy one-line summary, don't believe them. Let's not go into the gory details. Another discussion of the complexities of memory management will not be productive. The fact remains that if given enough time Zope will use so much memory that it crashes the server. I've reproduced this on at least 3 Linux servers with a clean install of Zope. The pattern SEEMS to be the more data I put in a session object the faster the server dies. This can not be normal behavior. I'm used to servers running for months. I have to restart Zope every 3 days at least. I need to at least have a long weekend away form this thing! ;-) Can anybody please verify my results. I've given a very simple test case. If I'm only one in the world that can cause this to happen then fine. At least that narrows my search to something internal to our system. > No. The BTree code is really part of ZODB, and has been there (as far > as I know) forever; Jeremy Hylton and I did a lot concentrated work to > squash memory leaks in ZODB (including its BTree code) a couple years > ago. The BTree code has been very stable (== has been changed very > little) since then. Please don't take offence I'm sure the BTree code is really cool. I'm just grasping at straws. When this problem started I was told the problem must be in MY code. So I removed ALL my code and made a very simple test case that reproduces the problem. Then I was told well you just don't understand how memory REALLY works. At this point I don't really care how memory really works. I just want to be able to put data in session objects without my server crashing. Run my test case and see what happens. I double dog dare you! ;-) Andy From steve at dcn.org Fri Jan 7 12:23:16 2005 From: steve at dcn.org (Steve McMahon) Date: Fri Jan 7 12:23:27 2005 Subject: [Zope] Re: ExternalFile errors In-Reply-To: <41BBB351.9010308@magma.ca> References: <41BBB351.9010308@magma.ca> Message-ID: <41DEC584.9080402@dcn.org> Two (late) solutions: 1) If you don't need the batch addition support, just comment out the section of create.pt that calls gethostname and the whole div that supports batch addition. 2) If you're more adventurous, add to __init__.py security declarations to make the needed module functions public. The code will look like: from AccessControl import ModuleSecurityInfo ModuleSecurityInfo('ExternalFile').declarePublic('gethostname') ModuleSecurityInfo('ExternalFile').declarePublic('illegalCharsAsString') ModuleSecurityInfo('ExternalFile').declarePublic('omittedDirNamesAsString') ModuleSecurityInfo('ExternalFile').declarePublic('omittedDirPrefixesAsString') ModuleSecurityInfo('ExternalFile').declarePublic('omittedDirSuffixesAsString') ModuleSecurityInfo('ExternalFile').declarePublic('omittedFileNamesAsString') ModuleSecurityInfo('ExternalFile').declarePublic('omittedFilePrefixesAsString') ModuleSecurityInfo('ExternalFile').declarePublic('omittedFileSuffixesAsString') ModuleSecurityInfo('ExternalFile').apply(globals()) Then, in www/create.pt, add a line like: change tal:content="container/gethostname" to tal:content="ef/gethostname" and ALL the code like: tal:attributes="value container/illegalCharsAsString" to tal:attributes="value python: ef.illegalCharsAsString(container)" If you don't want to mess with the security declarations, you could also just edit www/create.pt to remove the section that prints the hostname and all the "tal:attributes..." that supply default values in the batch section. Steve BTW, I don't regularly watch this list; so if you'd like my attention in a reply, please CC me. Chris H wrote: > Greets; > > Testing externalFile from collective cvs consistantly gives the > following error upon creating an instance, regardless of user that > starts the zope process. > > URL: manage_addExternalFileForm > Line 36, Column 5 > Expression: standard:'container/gethostname' > Names: > {'container': <__FactoryDispatcher__ instance at 40f65340>, > 'context': <__FactoryDispatcher__ instance at 40f65340>, > 'default': , > 'here': <__FactoryDispatcher__ instance at 40f65340>, > 'loop': , > 'modules': instance at 0x40b8fb0c>, > 'nothing': None, > 'options': {'args': ()}, > 'repeat': , > 'request': URL=http://localhost:8080/manage_addProduct/ExternalFile/create>, > 'root': , > 'template': , > 'traverse_subpath': [], > 'user': chris} > Module Products.PageTemplates.Expressions, line 201, in __call__ > Module Products.PageTemplates.Expressions, line 189, in _eval > Module Products.PageTemplates.Expressions, line 145, in _eval > __traceback_info__: container > Module Products.PageTemplates.Expressions, line 340, in restrictedTraverse > __traceback_info__: {'path': ['gethostname'], > 'TraversalRequestNameStack': []} > Unauthorized: You are not allowed to access 'gethostname' in this > context (Also, an error occurred while attempting to render the standard > error message.) > > Any suggestions on how to resolve this? > > /ch From tim.peters at gmail.com Fri Jan 7 12:25:46 2005 From: tim.peters at gmail.com (Tim Peters) Date: Fri Jan 7 12:25:50 2005 Subject: [Zope] Zope 2.7.3 Memory Leaks In-Reply-To: <93ED2D3FFABD164684F73914CF2A4D68013EE95A@exchange.nnu.com> References: <93ED2D3FFABD164684F73914CF2A4D68013EE95A@exchange.nnu.com> Message-ID: <1f7befae050107092548ee3c68@mail.gmail.com> [Andy Yates] ... > Let's not go into the gory details. Another discussion of the > complexities of memory management will not be productive. I agree. > The fact remains that if given enough time Zope will use so much memory > that it crashes the server. I've reproduced this on at least 3 Linux servers > with a clean install of Zope. The pattern SEEMS to be the more data I > put in a session object the faster the server dies. This can not be > normal behavior. I'm used to servers running for months. I have to > restart Zope every 3 days at least. I need to at least have a long > weekend away form this thing! ;-) > > Can anybody please verify my results. I've given a very simple test > case. If I'm only one in the world that can cause this to happen then > fine. At least that narrows my search to something internal to our > system. I think people are trying to help, and you need to follow up more. For example, I didn't see a reply to Tres's questions in this thread, and I didn't see what looked like a particularly relevant reply to Dieter's observation that the test setup appears to provoke an unbounded number of sessions each with a 45-minute timeout (although Dieter appeared to miss this part of the message he was replying to: The session timeout does not seem to affect the memory use. We even tried setting the session timeout to 1 minute. your reply to him didn't have any indication of how many requests/sessions were getting created; and you didn't respond to his point that he limits max sessions to 5000 -- Tres also asked about max # of sessions). ... > Please don't take offence I'm sure the BTree code is really cool. Oh, no offense at all! C code usually leaks like a sieve when it's new . I was just trying to steer you away from the BTree code in this case, because it's not new, has benefited from a lot of work to plug leaks, and just isn't a high-probability suspect anymore. BTW, you *do* see BTree building blocks from the debug control panel; they're in the lines like: BTrees.OOBTree.OOBTree 2019 11997 +9978 BTrees.OOBTree.OOBucket 1297 5512 +4215 > I'm just grasping at straws. When this problem started I was told the > problem must be in MY code. So I removed ALL my code and made a very > simple test case that reproduces the problem. Then I was told well you > just don't understand how memory REALLY works. I didn't see anyone say that in this thread. Maybe I missed it. > At this point I don't really care how memory really works. I just want to be > able to put data in session objects without my server crashing. Sure. > Run my test case and see what happens. I double dog dare you! ;-) Sorry, but I don't have time to dig into this at all. My replies have just regurgitated info I knew off the top of my head. That doesn't mean I think your problem is trivial, it just means I can't volunteer substantive help. From garito at sistes.net Fri Jan 7 14:21:02 2005 From: garito at sistes.net (Garito) Date: Fri Jan 7 14:21:37 2005 Subject: [Zope] Security questions Message-ID: <41DEE11E.6010400@sistes.net> Hi I have some kind of problems to understand how Zope's security rules If I have these distribution: root Blogs Blog1 Blog2 Blog3 where Blogs: Folder Blog1, 2, 3: Coreblog product How can I configure the security to have 3 users (User1, User2, User3) who can log on ZMI to manage their weblogs? I suppose (but don't work properly for me) I need to create a user folder on Blogs folder and create 3 users on it, isn't it? Thanks! From andy at nnu.com Fri Jan 7 14:42:24 2005 From: andy at nnu.com (Andy Yates) Date: Fri Jan 7 14:42:27 2005 Subject: [Zope] Zope 2.7.3 Memory Leaks Message-ID: <93ED2D3FFABD164684F73914CF2A4D68013EE95B@exchange.nnu.com> > > The fact remains that if given enough time Zope will use so much memory > > that it crashes the server. I've reproduced this on at least 3 Linux servers > > with a clean install of Zope. The pattern SEEMS to be the more data I > > put in a session object the faster the server dies. This can not be > > normal behavior. I'm used to servers running for months. I have to > > restart Zope every 3 days at least. I need to at least have a long > > weekend away form this thing! ;-) > > > > Can anybody please verify my results. I've given a very simple test > > case. If I'm only one in the world that can cause this to happen then > > fine. At least that narrows my search to something internal to our > > system. > > I think people are trying to help, and you need to follow up more. Oh I know and I'm grateful. Please don't misunderstand. My frustration is with the situation not with the members of the list. I have a high respect for the Zope community and especially those that take to time to help with people's bizarro problems. > For example, I didn't see a reply to Tres's questions in this thread, > and I didn't see what looked like a particularly relevant reply to > Dieter's observation that the test setup appears to provoke an > unbounded number of sessions each with a 45-minute timeout (although > Dieter appeared to miss this part of the message he was replying to: > > The session timeout does not seem to affect the memory use. We even > tried setting the session timeout to 1 minute. > > your reply to him didn't have any indication of how many > requests/sessions were getting created; and you didn't respond to his > point that he limits max sessions to 5000 -- Tres also asked about max > # of sessions). > ... > The upper bound on the sessions is not relevant in my opinion. We have set it to unlimited because no matter what we have set it to in the past we always seem to spike up to it when nobody is around to delete the session objects by hand. This happens because of something very specific to the wi-fi hotspot market that I'd rather not go into. In most cases we avoid these spikes but it can happen so we do not set a limit. 99.9% of the time we have 500-2000 objects in the transient object container. Dieter is right. My test could provoke an unbound number of sessions but it doesn't because of the way the test is run. I'm not trying to simulate one user making 1000 requests. I'm trying to simulate 1000 users making one request which should produce 1000 sessions. These sessions are allowed to timeout and then we create 1000 more. If this cycle is repeated enough times all memory is consumed and the server crashes. This happens even if there are hours between cycles. The memory use never goes down it just grows even though the number of sessions never goes over 1000. > How many simultaneous sessions are we talking about? A few hundred > simultaneous users could chew up RAM pretty fast. What is your "max > number of sessions" value? > > Tres. Sorry, Tres's. Let me explain. The max sessions or the amount of data in each session should not matter. The server should reach some steady state value of memory usage. This is because you always have new users coming to the site which creates new session objects, but on the other end you have users that have gone away and so their sessions expire. When one restarts the server I would expect the steady state to happen within 3 or 4 times the session timeout value. My problem is that this steady state never seems to happen. Memory use just goes up and up. I have found something today! We store some images for our site in a MySQL database. I noticed today that these images (some could be large) are copied to the session object. This was probably done to reduce queries to the database. There are so many caches along the way ( browser, Zope, zsql...) that this is probably not needed. I turned this feature off. At least this should push the horizon off a bit. Time will tell. > > Please don't take offence I'm sure the BTree code is really cool. > > Oh, no offense at all! C code usually leaks like a sieve when it's > new . I was just trying to steer you away from the BTree code > in this case, because it's not new, has benefited from a lot of work > to plug leaks, and just isn't a high-probability suspect anymore. > BTW, you *do* see BTree building blocks from the debug control panel; > they're in the lines like: > > BTrees.OOBTree.OOBTree 2019 11997 +9978 > BTrees.OOBTree.OOBucket 1297 5512 +4215 > > > I'm just grasping at straws. When this problem started I was told the > > problem must be in MY code. So I removed ALL my code and made a very > > simple test case that reproduces the problem. Then I was told well you > > just don't understand how memory REALLY works. > > I didn't see anyone say that in this thread. Maybe I missed it. Perhaps stated too strong that's just my impression. I was referring to the long posts last month about how Zope, python, and Linux manage memory. That's all voodoo to me. I just don't understand how this simple test can cause so much memory to be used. > > At this point I don't really care how memory really works. I just want to be > > able to put data in session objects without my server crashing. > > Sure. > > > Run my test case and see what happens. I double dog dare you! ;-) > > Sorry, but I don't have time to dig into this at all. My replies have > just regurgitated info I knew off the top of my head. That doesn't > mean I think your problem is trivial, it just means I can't volunteer > substantive help. Can't blame you there. I don't have time for this either. I'm going to restart my Zope server just for good measure and go to the gym. Y'all have to great weekend! Andy From dieter at handshake.de Fri Jan 7 14:17:18 2005 From: dieter at handshake.de (Dieter Maurer) Date: Fri Jan 7 14:44:08 2005 Subject: [Zope] Report Writer In-Reply-To: <20050106221625.440.73885@MARC> References: <20050106221625.440.73885@MARC> Message-ID: <16862.57406.644254.480779@gargle.gargle.HOWL> mettwoch@pt.lu wrote at 2005-1-6 23:16 +0100: >I'm looking for building blocks to use for our "shop"-management solution. Does anybody know a solution/product to print out from Zope structured documents like invoices, open-balances, cash-flow reports ... .In more general the tool I'm looking for should be able to build documents (even multipage) with report-headers and -footers and page-headers and -footers, running sums, sorts ... . These documents should be send immediately to the printer (not displayed in the browser and waiting for the user to hit "print"). The source of data is a MySQL database. > ... Maybe, "reportLab" can help you. It will not perform out of the box what you want but you can use it to automatically create PDF documents that you can then print. -- Dieter From dieter at handshake.de Fri Jan 7 14:15:32 2005 From: dieter at handshake.de (Dieter Maurer) Date: Fri Jan 7 14:44:10 2005 Subject: [Zope] Zope 2.7.3 Memory Leaks In-Reply-To: <93ED2D3FFABD164684F73914CF2A4D68013EE958@exchange.nnu.com> References: <93ED2D3FFABD164684F73914CF2A4D68013EE958@exchange.nnu.com> Message-ID: <16862.57300.711732.885054@gargle.gargle.HOWL> Andy Yates wrote at 2005-1-6 16:19 -0600: > ... >> Andy Yates wrote at 2005-1-5 15:30 -0600: >> > ... >> >In fact we can reproduce this behavior >> >on a fresh install. On a fresh system create a python script that >puts >> >data in a session object. >> > >> >s = context.REQUEST.SESSION >> >t = ' ' * 1024 >> >s['data'] = t >> >print "foo" >> >return printed >> > >> >Then call this script with your favorite bench marking program. We >used >> >apache bench (ab). This will cause python2.3 to consume all >available >> >memory and crash or lockup. >> > >Can anybody else reproduce these results? I will look into this... -- Dieter From pw_lists at slinkp.com Fri Jan 7 15:12:48 2005 From: pw_lists at slinkp.com (Paul Winkler) Date: Fri Jan 7 15:12:52 2005 Subject: [Zope] Security questions In-Reply-To: <41DEE11E.6010400@sistes.net> References: <41DEE11E.6010400@sistes.net> Message-ID: <20050107201248.GB8213@slinkp.com> On Fri, Jan 07, 2005 at 08:21:02PM +0100, Garito wrote: > Hi > I have some kind of problems to understand how Zope's security rules > > If I have these distribution: > > root > Blogs > Blog1 > Blog2 > Blog3 > > where > Blogs: Folder > Blog1, 2, 3: Coreblog product > > How can I configure the security to have 3 users (User1, User2, User3) > who can log on ZMI to manage their weblogs? > > I suppose (but don't work properly for me) I need to create a user > folder on Blogs folder and create 3 users on it, isn't it? That should work fine. Please be more specific about what you mean by "doesn't work properly for me", that could mean anything. -- Paul Winkler http://www.slinkp.com From cyrj at cyr.info Fri Jan 7 16:31:03 2005 From: cyrj at cyr.info (Jonathan Cyr) Date: Fri Jan 7 16:31:08 2005 Subject: [Zope] Passive FTP Trouble In-Reply-To: <41DD36D8.611.1AE5EA@localhost> References: <41DD36D8.611.1AE5EA@localhost> Message-ID: <41DEFF97.4090708@cyr.info> I've had a similar problem with HomeSite... I turn off Passive FTP on the client and use 8021 for incoming and 8020 seems to be set for outgoing... similar to standard FTP on 21 and 20. Make sure to open 8020 and 8021 in the gateway. Hope that helps. -Jon Cyr hpinson@indepthl.com wrote: >Hello. We are having trouble with FTP behind a NAT DSL gateway. > >When we FTP in to port 8021, using Dreamweaver MX, we connect, but do >not get a directory listing-- only the current folder is listed. No >subfolders are listed so navigation is not possible. > >Any idea why this is, and how to solve it? > >Zope 2.73 on Fedora Core 2. > >Harlow Pinson >Indepth Learning >Email: hpinson@indepthl.com >Web: http://www.indepthl.com >Voice: 505-994-2135 >FAX: 208-475-7678 > >_______________________________________________ >Zope maillist - Zope@zope.org >http://mail.zope.org/mailman/listinfo/zope >** No cross posts or HTML encoding! ** >(Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.zope.org/pipermail/zope/attachments/20050107/b6de99a4/attachment.htm From dieter at handshake.de Fri Jan 7 16:39:14 2005 From: dieter at handshake.de (Dieter Maurer) Date: Fri Jan 7 16:41:08 2005 Subject: [Bug] TemporaryStorage memory leak (was: RE: [Zope] Zope 2.7.3 Memory Leaks) In-Reply-To: <93ED2D3FFABD164684F73914CF2A4D68013EE958@exchange.nnu.com> References: <93ED2D3FFABD164684F73914CF2A4D68013EE958@exchange.nnu.com> Message-ID: <16863.386.371616.301643@gargle.gargle.HOWL> Andy Yates wrote at 2005-1-6 16:19 -0600: > ... >Can anybody else reproduce these results? You have been right. The leak is caused by a bug in "tempstorage.TemporaryStorage.TemporaryStorage._takeOutGarbage" It performs the zero refcount check for a child of a deleted object *before* it has decremented the refcount. As a consequence, it does not release children of a deleted object. I attach a script that reproduces the problem in an easier way. Calling it with "bin/zopectl run" will consume about 200 MB of RAM for about 5 min. I also attach a patch. I will file a bug report. -- Dieter -------------- next part -------------- A non-text attachment was scrubbed... Name: tempstorebug.py Type: application/x-python Size: 224 bytes Desc: script to reproduce the memory leak Url : http://mail.zope.org/pipermail/zope/attachments/20050107/ad543934/tempstorebug.bin -------------- next part -------------- A non-text attachment was scrubbed... Name: tempStoreMemLeak.pat Type: application/x-patch Size: 952 bytes Desc: Patch to fix the bug Url : http://mail.zope.org/pipermail/zope/attachments/20050107/ad543934/tempStoreMemLeak.bin From m.bizzarri at icube.it Fri Jan 7 19:29:23 2005 From: m.bizzarri at icube.it (Marco Bizzarri) Date: Fri Jan 7 19:29:27 2005 Subject: [Zope] Report Writer In-Reply-To: <20050106221625.440.73885@MARC> References: <20050106221625.440.73885@MARC> Message-ID: <41DF2963.2030607@icube.it> mettwoch@pt.lu wrote: > Hi, > > I'm looking for building blocks to use for our "shop"-management solution. Does anybody know a solution/product to print out from Zope structured documents like invoices, open-balances, cash-flow reports ... .In more general the tool I'm looking for should be able to build documents (even multipage) with report-headers and -footers and page-headers and -footers, running sums, sorts ... . These documents should be send immediately to the printer (not displayed in the browser and waiting for the user to hit "print"). The source of data is a MySQL database. > > By the way, I use MailManager to handle our mail traffic - a cool product. > > Thx > A solution you could look at is openoffice. You could set up an openoffice listening on a port. Then you could connect to it via Py-UNO bridge, open a template, fill it, and invoke the printing. Of course, all of this could be done without any interface showing to the user. I'm not sure there is any product available doing this at the moment, but you could look at the Archetypes code for some ideas. Regards Marco From m.bizzarri at icube.it Fri Jan 7 22:40:32 2005 From: m.bizzarri at icube.it (Marco Bizzarri) Date: Fri Jan 7 22:40:37 2005 Subject: [Zope] _finish and _abort not called in a TM subclass Message-ID: <41DF5630.7010701@icube.it> Hi all. I'm trying to figure out the proper way to use the Shared.DC.ZRDB.TM.TM mixin class. According to the documentation, I should derive from that class, redefine my _abort and _finish methods, and then call the _register method whenever it is needed. I've created the following sample product, named CacheProduct. It has two methods which can be called from the web, registerFromWeb and resetMe. The first calls the _register, the second puts the self._registered variable to 0. I've also added some prints, in order to check the results. If all goes well, I should see something like: before: 0 after: 1 _finish However, if I use ab to do a check, like ab -c 10 -n 1000 http://server:8080/CacheProduct/registerFromWeb I can see: _before: 1 _after: 1 which should never happen. Also, I don't see the required calls to _finish. After some request, the _finish reappers, only to disappear again. Has anyone any suggestion on this topic? Regards Marco -------------- next part -------------- A non-text attachment was scrubbed... Name: CacheProduct.tgz Type: application/x-gtar Size: 1733 bytes Desc: not available Url : http://mail.zope.org/pipermail/zope/attachments/20050108/6f16fbb2/CacheProduct.gtar From dieter at handshake.de Sat Jan 8 14:20:55 2005 From: dieter at handshake.de (Dieter Maurer) Date: Sat Jan 8 14:36:29 2005 Subject: [Zope] _finish and _abort not called in a TM subclass In-Reply-To: <41DF5630.7010701@icube.it> References: <41DF5630.7010701@icube.it> Message-ID: <16864.12951.490636.535558@gargle.gargle.HOWL> Marco Bizzarri wrote at 2005-1-8 04:40 +0100: >I'm trying to figure out the proper way to use the Shared.DC.ZRDB.TM.TM >mixin class. According to the documentation, I should derive from that >class, redefine my _abort and _finish methods, and then call the >_register method whenever it is needed. > ... >If all goes well, I should see something like: > >before: 0 >after: 1 >_finish > >However, if I use ab to do a check, like > >ab -c 10 -n 1000 http://server:8080/CacheProduct/registerFromWeb > >I can see: > >_before: 1 >_after: 1 > >which should never happen. Also, I don't see the required calls to >_finish. After some request, the _finish reappers, only to disappear again. > >Has anyone any suggestion on this topic? I use it for connections to an SAP system -- and it works well. There are indeed no needs other than to define '_finish' and '_abort'. Note, however, that TM instances should *NOT* be persistent! Persistent TM instances can behave weird! I assume that the "0" and "1" above refer to values of "self._registered"? If so, then for some unknown (and not understandable) reason, the interaction of the transaction's "commit/abort" with your TM instance did not work correctly. Maybe, your TM instances are persistent? -- Dieter From tick at web.vi Sat Jan 8 14:54:15 2005 From: tick at web.vi (Vital Lobachevsky) Date: Sat Jan 8 14:55:50 2005 Subject: [Zope] Copy of open-box product Message-ID: <41E03A67.40400@web.vi> Is it possible to create a copy of open-box product in /Control_Panel/Products? It fails with error: Error Type: Duplicate Class Ids Error Value: None Zope 2.5.1 (binary release, python 2.1, linux2-x86), python 2.1.3, linux2 TIA, -- -tick From lists at andreas-jung.com Sat Jan 8 15:02:06 2005 From: lists at andreas-jung.com (Andreas Jung) Date: Sat Jan 8 15:02:13 2005 Subject: [Zope] Copy of open-box product In-Reply-To: <41E03A67.40400@web.vi> References: <41E03A67.40400@web.vi> Message-ID: <0AF767BDA3BB59E14C0C630F@[192.168.0.102]> --On Samstag, 8. Januar 2005 21:54 Uhr +0200 Vital Lobachevsky wrote: > Is it possible to create a copy of open-box product in > /Control_Panel/Products? It fails with error: > > Error Type: Duplicate Class Ids > Error Value: None What are trying to do?? > Zope 2.5.1 (binary release, python 2.1, linux2-x86), python 2.1.3, linux2 ^^^^^^^^^^ that's a museum release btw. -aj From tick at web.vi Sat Jan 8 15:06:29 2005 From: tick at web.vi (Vital Lobachevsky) Date: Sat Jan 8 15:08:04 2005 Subject: [Zope] Copy of open-box product In-Reply-To: <0AF767BDA3BB59E14C0C630F@[192.168.0.102]> References: <41E03A67.40400@web.vi> <0AF767BDA3BB59E14C0C630F@[192.168.0.102]> Message-ID: <41E03D45.9080208@web.vi> Andreas Jung wrote: > > > --On Samstag, 8. Januar 2005 21:54 Uhr +0200 Vital Lobachevsky > wrote: > >> Is it possible to create a copy of open-box product in >> /Control_Panel/Products? It fails with error: >> >> Error Type: Duplicate Class Ids >> Error Value: None > > > What are trying to do?? I want exact copy of my product. I'm trying copy-paste in /Control_Panel/Products folder. -- -tick From lists at andreas-jung.com Sat Jan 8 15:15:37 2005 From: lists at andreas-jung.com (Andreas Jung) Date: Sat Jan 8 15:15:41 2005 Subject: [Zope] Copy of open-box product In-Reply-To: <41E03D45.9080208@web.vi> References: <41E03A67.40400@web.vi> <0AF767BDA3BB59E14C0C630F@[192.168.0.102]> <41E03D45.9080208@web.vi> Message-ID: --On Samstag, 8. Januar 2005 22:06 Uhr +0200 Vital Lobachevsky wrote: > Andreas Jung wrote: >> >> >> --On Samstag, 8. Januar 2005 21:54 Uhr +0200 Vital Lobachevsky >> wrote: >> >>> Is it possible to create a copy of open-box product in >>> /Control_Panel/Products? It fails with error: >>> >>> Error Type: Duplicate Class Ids >>> Error Value: None >> >> >> What are trying to do?? > > I want exact copy of my product. I'm trying copy-paste in > /Control_Panel/Products folder. What means an exact copy? And why? You idea some not make much sense. -aj From lists at andreas-jung.com Sat Jan 8 15:18:07 2005 From: lists at andreas-jung.com (Andreas Jung) Date: Sat Jan 8 15:18:11 2005 Subject: [Zope] Copy of open-box product In-Reply-To: References: <41E03A67.40400@web.vi> <0AF767BDA3BB59E14C0C630F@[192.168.0.102]> <41E03D45.9080208@web.vi> Message-ID: --On Samstag, 8. Januar 2005 21:15 Uhr +0100 Andreas Jung wrote: > What means an exact copy? And why? You idea some not make much sense. > It might make sense for ZClasses or so...anyway...you should provide a traceback if you want help. Without a traceback your report is not much worth. -aj From tick at web.vi Sat Jan 8 15:21:44 2005 From: tick at web.vi (Vital Lobachevsky) Date: Sat Jan 8 15:23:20 2005 Subject: [Zope] Copy of open-box product In-Reply-To: References: <41E03A67.40400@web.vi> <0AF767BDA3BB59E14C0C630F@[192.168.0.102]> <41E03D45.9080208@web.vi> Message-ID: <41E040D8.60008@web.vi> Andreas Jung wrote: > > > --On Samstag, 8. Januar 2005 21:15 Uhr +0100 Andreas Jung > wrote: > >> What means an exact copy? And why? You idea some not make much sense. >> > > It might make sense for ZClasses or so...anyway...you should provide a > traceback if you want help. > Without a traceback your report is not much worth. Yes, I have a lot of ZClasses in my product and need to re-use it for new product. Traceback (innermost last): File /usr/local/zope/2.5.1/lib/python/ZPublisher/Publish.py, line 150, in publish_module File /usr/local/zope/2.5.1/lib/python/ZPublisher/Publish.py, line 114, in publish File /usr/local/zope/2.5.1/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook (Object: Products) File /usr/local/zope/2.5.1/lib/python/ZPublisher/Publish.py, line 98, in publish File /usr/local/zope/2.5.1/lib/python/ZPublisher/mapply.py, line 88, in mapply (Object: manage_pasteObjects) File /usr/local/zope/2.5.1/lib/python/ZPublisher/Publish.py, line 39, in call_object (Object: manage_pasteObjects) File /usr/local/zope/2.5.1/lib/python/OFS/CopySupport.py, line 160, in manage_pasteObjects (Object: Products) File /usr/local/zope/2.5.1/lib/python/OFS/ObjectManager.py, line 272, in _setObject (Object: Products) File /usr/local/zope/2.5.1/lib/python/OFS/ObjectManager.py, line 280, in manage_afterAdd File /usr/local/zope/2.5.1/lib/python/ZClasses/ZClass.py, line 420, in manage_afterAdd File /usr/local/zope/2.5.1/lib/python/ZClasses/ZClass.py, line 374, in _register Duplicate Class Ids: (see above) -- -tick From lists at andreas-jung.com Sat Jan 8 15:34:41 2005 From: lists at andreas-jung.com (Andreas Jung) Date: Sat Jan 8 15:34:45 2005 Subject: [Zope] Copy of open-box product In-Reply-To: <41E040D8.60008@web.vi> References: <41E03A67.40400@web.vi> <0AF767BDA3BB59E14C0C630F@[192.168.0.102]> <41E03D45.9080208@web.vi> <41E040D8.60008@web.vi> Message-ID: <4D4B7372388ECB1949027F1F@[192.168.0.102]> --On Samstag, 8. Januar 2005 22:21 Uhr +0200 Vital Lobachevsky wrote: > Andreas Jung wrote: >> >> >> --On Samstag, 8. Januar 2005 21:15 Uhr +0100 Andreas Jung >> wrote: >> >>> What means an exact copy? And why? You idea some not make much sense. >>> >> >> It might make sense for ZClasses or so...anyway...you should provide a >> traceback if you want help. >> Without a traceback your report is not much worth. > > Yes, I have a lot of ZClasses in my product and need to re-use it for new > product. > > Traceback (innermost last): > File /usr/local/zope/2.5.1/lib/python/ZPublisher/Publish.py, line 150, > in publish_module > File /usr/local/zope/2.5.1/lib/python/ZPublisher/Publish.py, line 114, > in publish > File /usr/local/zope/2.5.1/lib/python/Zope/__init__.py, line 159, in > zpublisher_exception_hook > (Object: Products) > File /usr/local/zope/2.5.1/lib/python/ZPublisher/Publish.py, line 98, > in publish > File /usr/local/zope/2.5.1/lib/python/ZPublisher/mapply.py, line 88, > in mapply > (Object: manage_pasteObjects) > File /usr/local/zope/2.5.1/lib/python/ZPublisher/Publish.py, line 39, > in call_object > (Object: manage_pasteObjects) > File /usr/local/zope/2.5.1/lib/python/OFS/CopySupport.py, line 160, in > manage_pasteObjects > (Object: Products) > File /usr/local/zope/2.5.1/lib/python/OFS/ObjectManager.py, line 272, > in _setObject > (Object: Products) > File /usr/local/zope/2.5.1/lib/python/OFS/ObjectManager.py, line 280, > in manage_afterAdd > File /usr/local/zope/2.5.1/lib/python/ZClasses/ZClass.py, line 420, in > manage_afterAdd > File /usr/local/zope/2.5.1/lib/python/ZClasses/ZClass.py, line 374, in > _register > Duplicate Class Ids: (see above) This looks as if you can't create two identical copy obiviously this way likely because the class ids must be unique. No further idea about ZClasses. Maybe you can create a new product instance and then copy file by file using cut&paste... -aj From tick at web.vi Sat Jan 8 15:43:09 2005 From: tick at web.vi (Vital Lobachevsky) Date: Sat Jan 8 15:44:42 2005 Subject: [Zope] Copy of open-box product In-Reply-To: <4D4B7372388ECB1949027F1F@[192.168.0.102]> References: <41E03A67.40400@web.vi> <0AF767BDA3BB59E14C0C630F@[192.168.0.102]> <41E03D45.9080208@web.vi> <41E040D8.60008@web.vi> <4D4B7372388ECB1949027F1F@[192.168.0.102]> Message-ID: <41E045DD.9030905@web.vi> Andreas Jung wrote: > > > --On Samstag, 8. Januar 2005 22:21 Uhr +0200 Vital Lobachevsky > wrote: > >> Andreas Jung wrote: >> >>> >>> >>> --On Samstag, 8. Januar 2005 21:15 Uhr +0100 Andreas Jung >>> wrote: >>> >>>> What means an exact copy? And why? You idea some not make much sense. >>>> >>> >>> It might make sense for ZClasses or so...anyway...you should provide a >>> traceback if you want help. >>> Without a traceback your report is not much worth. >> >> >> Yes, I have a lot of ZClasses in my product and need to re-use it for new >> product. >> >> Traceback (innermost last): >> File /usr/local/zope/2.5.1/lib/python/ZPublisher/Publish.py, line 150, >> in publish_module >> File /usr/local/zope/2.5.1/lib/python/ZPublisher/Publish.py, line 114, >> in publish >> File /usr/local/zope/2.5.1/lib/python/Zope/__init__.py, line 159, in >> zpublisher_exception_hook >> (Object: Products) >> File /usr/local/zope/2.5.1/lib/python/ZPublisher/Publish.py, line 98, >> in publish >> File /usr/local/zope/2.5.1/lib/python/ZPublisher/mapply.py, line 88, >> in mapply >> (Object: manage_pasteObjects) >> File /usr/local/zope/2.5.1/lib/python/ZPublisher/Publish.py, line 39, >> in call_object >> (Object: manage_pasteObjects) >> File /usr/local/zope/2.5.1/lib/python/OFS/CopySupport.py, line 160, in >> manage_pasteObjects >> (Object: Products) >> File /usr/local/zope/2.5.1/lib/python/OFS/ObjectManager.py, line 272, >> in _setObject >> (Object: Products) >> File /usr/local/zope/2.5.1/lib/python/OFS/ObjectManager.py, line 280, >> in manage_afterAdd >> File /usr/local/zope/2.5.1/lib/python/ZClasses/ZClass.py, line 420, in >> manage_afterAdd >> File /usr/local/zope/2.5.1/lib/python/ZClasses/ZClass.py, line 374, in >> _register >> Duplicate Class Ids: (see above) > > > This looks as if you can't create two identical copy obiviously this way > likely because > the class ids must be unique. No further idea about ZClasses. Maybe you > can create a new > product instance and then copy file by file using cut&paste... I doesn't work too. When I'm trying to copy my ZClasses it fails with CopyError: The item ... does not support this operation. -- -tick From tino at wildenhain.de Sat Jan 8 16:57:25 2005 From: tino at wildenhain.de (Tino Wildenhain) Date: Sat Jan 8 16:57:31 2005 Subject: [Zope] Copy of open-box product In-Reply-To: <41E045DD.9030905@web.vi> References: <41E03A67.40400@web.vi> <0AF767BDA3BB59E14C0C630F@[192.168.0.102]> <41E03D45.9080208@web.vi> <41E040D8.60008@web.vi> <4D4B7372388ECB1949027F1F@[192.168.0.102]> <41E045DD.9030905@web.vi> Message-ID: <1105221445.4014.43.camel@Andrea.peacock.de> Am Samstag, den 08.01.2005, 22:43 +0200 schrieb Vital Lobachevsky: ... > > > > This looks as if you can't create two identical copy obiviously this way > > likely because > > the class ids must be unique. No further idea about ZClasses. Maybe you > > can create a new > > product instance and then copy file by file using cut&paste... > > I doesn't work too. When I'm trying to copy my ZClasses it fails with > CopyError: The item ... does not support this operation. Well, this does not make much sense, the ZClass id is the class name it represents. Its a bit tricky anyway and most people will tell you not touch zclasses at all. Why dont you derive from the class? This is after all, what OOP is all about... Regards Tino From m.bizzarri at icube.it Sun Jan 9 09:51:13 2005 From: m.bizzarri at icube.it (Marco Bizzarri) Date: Sun Jan 9 09:51:18 2005 Subject: [Zope] _finish and _abort not called in a TM subclass In-Reply-To: <16864.12951.490636.535558@gargle.gargle.HOWL> References: <41DF5630.7010701@icube.it> <16864.12951.490636.535558@gargle.gargle.HOWL> Message-ID: <41E144E1.20508@icube.it> Dieter Maurer wrote: > Marco Bizzarri wrote at 2005-1-8 04:40 +0100: > >>I'm trying to figure out the proper way to use the Shared.DC.ZRDB.TM.TM >>mixin class. According to the documentation, I should derive from that >>class, redefine my _abort and _finish methods, and then call the >>_register method whenever it is needed. > > >>... >>If all goes well, I should see something like: >> >>before: 0 >>after: 1 >>_finish >> >>However, if I use ab to do a check, like >> >>ab -c 10 -n 1000 http://server:8080/CacheProduct/registerFromWeb >> >>I can see: >> >>_before: 1 >>_after: 1 >> >>which should never happen. Also, I don't see the required calls to >>_finish. After some request, the _finish reappers, only to disappear again. >> >>Has anyone any suggestion on this topic? > > > I use it for connections to an SAP system -- and it works well. > There are indeed no needs other than to define '_finish' and '_abort'. > Note, however, that TM instances should *NOT* be persistent! > Persistent TM instances can behave weird! My problem was exactly that: I was deriving from SimpleItem and TM, therefore the weirdness. Thanks for your insight on this topic. Regards Marco From m.lawrie at gmx.net Sun Jan 9 15:38:38 2005 From: m.lawrie at gmx.net (Magnus Lawrie) Date: Sun Jan 9 15:38:40 2005 Subject: [Zope] zope 2.7 startup message Message-ID: <41E1964E.4080305@gmx.net> I have removed Zope 2.6, then installed 2.7 on Ubuntu mdl@ubuntu:/usr/local/lib $ /etc/init.d/zope2.7 start Zope starting all instances.... '*' is an old/purged instance, not started What does this mean? thanks for your attention. From apaku at gmx.de Sun Jan 9 16:28:07 2005 From: apaku at gmx.de (Andreas Pakulat) Date: Sun Jan 9 16:27:56 2005 Subject: [Zope] zope 2.7 startup message In-Reply-To: <41E1964E.4080305@gmx.net> References: <41E1964E.4080305@gmx.net> Message-ID: <20050109212807.GA9031@morpheus.matrix.de> On 09.Jan 2005 - 20:38:38, Magnus Lawrie wrote: > I have removed Zope 2.6, then installed 2.7 on Ubuntu > > mdl@ubuntu:/usr/local/lib $ /etc/init.d/zope2.7 start > Zope starting all instances.... > '*' is an old/purged instance, not started > > What does this mean? There is no instance for zope2.7, read /usr/share/doc/zope2.7/README.Debian.gz for information on upgrading 2.6 to 2.7 Andreas -- You are wise, witty, and wonderful, but you spend too much time reading this sort of trash. From m.lawrie at gmx.net Sun Jan 9 18:52:38 2005 From: m.lawrie at gmx.net (Magnus Lawrie) Date: Sun Jan 9 18:52:36 2005 Subject: [Zope] IOError: [Errno 13] Permission denied (Zope 2.7.3) Message-ID: <41E1C3C6.1010905@gmx.net> I installed python 2.3.4 and then zope 2.7.3 from source and ran mkzopeinstance.py, but am experiencing a problem with privileges. I gather that I have to change some, but I do not know exactly how to do that. I have looked at http://www.plope.com/Books/2_7Edition/InstallingZope.stx And this post: http://www.gossamer-threads.com/lists/zope/users/177930 ...but am no clearer. Runzope results in: IOError: [Errno 13] Permission denied: '/home/mdl/zope-instance/var/Data.fs.lock ' Also, is there any special procedure for removing an instance? thanks again, From toolkit at magma.ca Sun Jan 9 20:40:25 2005 From: toolkit at magma.ca (Jonathan Hobbs) Date: Sun Jan 9 20:37:50 2005 Subject: [Zope] IOError: [Errno 13] Permission denied (Zope 2.7.3) References: <41E1C3C6.1010905@gmx.net> Message-ID: <000401c4f6b5$5c643100$647ba8c0@jhdesktop> From: "Magnus Lawrie" > I installed python 2.3.4 and then zope 2.7.3 from source and ran > mkzopeinstance.py, but am experiencing a problem with privileges. I > gather that I have to change some, but I do not know exactly how to do > that. I have looked at > Runzope results in: > > IOError: [Errno 13] Permission denied: > '/home/mdl/zope-instance/var/Data.fs.lock ' Make sure that the ...var directory is owned or accessible (chown/chgrp for linux/unix type systems) - read/write by 'zope' HTH Jonathan From lists at andreas-jung.com Mon Jan 10 00:39:25 2005 From: lists at andreas-jung.com (Andreas Jung) Date: Mon Jan 10 00:39:31 2005 Subject: [Zope] IOError: [Errno 13] Permission denied (Zope 2.7.3) In-Reply-To: <41E1C3C6.1010905@gmx.net> References: <41E1C3C6.1010905@gmx.net> Message-ID: --On Sonntag, 9. Januar 2005 23:52 Uhr +0000 Magnus Lawrie wrote: > I installed python 2.3.4 and then zope 2.7.3 from source and ran > mkzopeinstance.py, but am experiencing a problem with privileges. I > gather that I have to change some, but I do not know exactly how to do > that. I have looked at > > http://www.plope.com/Books/2_7Edition/InstallingZope.stx > > And this post: > > http://www.gossamer-threads.com/lists/zope/users/177930 > > ...but am no clearer. > > Runzope results in: > > IOError: [Errno 13] Permission denied: > '/home/mdl/zope-instance/var/Data.fs.lock ' > This usually happens if you install or run Zope as root which is not recommended (and documented in various places). -aj From m.lawrie at gmx.net Mon Jan 10 00:51:21 2005 From: m.lawrie at gmx.net (Magnus Lawrie) Date: Mon Jan 10 00:51:19 2005 Subject: [Zope] IOError: [Errno 13] Permission denied (Zope 2.7.3) In-Reply-To: References: <41E1C3C6.1010905@gmx.net> Message-ID: <41E217D9.8020705@gmx.net> Andreas Jung wrote: > > > --On Sonntag, 9. Januar 2005 23:52 Uhr +0000 Magnus Lawrie > wrote: > >> I installed python 2.3.4 and then zope 2.7.3 from source and ran >> mkzopeinstance.py, but am experiencing a problem with privileges. I >> gather that I have to change some, but I do not know exactly how to do >> that. I have looked at >> >> http://www.plope.com/Books/2_7Edition/InstallingZope.stx >> >> And this post: >> >> http://www.gossamer-threads.com/lists/zope/users/177930 >> >> ...but am no clearer. >> >> Runzope results in: >> >> IOError: [Errno 13] Permission denied: >> '/home/mdl/zope-instance/var/Data.fs.lock ' >> > > This usually happens if you install or run Zope as root which is not > recommended (and documented > in various places). > > -aj > > Yes, I did read that. I downloaded tarballs and worked out of my home directory but (being a novice only) didn't find a better way than: sudo make install make install wouldn't complete. From m.lawrie at gmx.net Mon Jan 10 01:34:16 2005 From: m.lawrie at gmx.net (Magnus Lawrie) Date: Mon Jan 10 01:34:13 2005 Subject: [Zope] IOError: [Errno 13] Permission denied (Zope 2.7.3) In-Reply-To: <5D4149E44AE21FBBB5112BED@[192.168.0.102]> References: <41E1C3C6.1010905@gmx.net> <41E217A6.4010606@gmx.net> <5D4149E44AE21FBBB5112BED@[192.168.0.102]> Message-ID: <41E221E8.8030600@gmx.net> Andreas Jung wrote: > > > --On Montag, 10. Januar 2005 5:50 Uhr +0000 Magnus Lawrie > wrote: > >> Andreas Jung wrote: >> >>> >>> >>> --On Sonntag, 9. Januar 2005 23:52 Uhr +0000 Magnus Lawrie >>> wrote: >>> >>>> I installed python 2.3.4 and then zope 2.7.3 from source and ran >>>> mkzopeinstance.py, but am experiencing a problem with privileges. I >>>> gather that I have to change some, but I do not know exactly how to do >>>> that. I have looked at >>>> >>>> http://www.plope.com/Books/2_7Edition/InstallingZope.stx >>>> >>>> And this post: >>>> >>>> http://www.gossamer-threads.com/lists/zope/users/177930 >>>> >>>> ...but am no clearer. >>>> >>>> Runzope results in: >>>> >>>> IOError: [Errno 13] Permission denied: >>>> '/home/mdl/zope-instance/var/Data.fs.lock ' >>>> >>> >>> This usually happens if you install or run Zope as root which is not >>> recommended (and documented >>> in various places). >>> >>> -aj >>> >>> > > >> Yes, I did read that. I downloaded tarballs and worked out of my home >> directory but (being a novice only) didn't find a better way than: >> sudo make install > > ^^^^^^^^^^^^^^^^^^ > > There is no reason to run "make install" as root if you compile and > install using the same account > that will be used to run Zope! > >> make install wouldn't complete. > > > Why not? Please provide a traceback or error messages. > > Andreas > > "/usr/local/bin/python" "/home/mdl/Zope-2.7.3-0/setup.py" \ build --build-base="/home/mdl/Zope-2.7.3-0/build-base/python-2.3" --build-lib="/home/mdl/Zope-2.7.3-0/build-base/python-2.3/build-lib" --build-scripts="/home/mdl/Zope-2.7.3-0/build-base/python-2.3/build-scripts" --build-temp="/home/mdl/Zope-2.7.3-0/build-base/python-2.3/build-temp" running build running build_py running build_ext running build running build_py running build running build_scripts echo -n "Zope 2.7.3-0" >\ "/home/mdl/Zope-2.7.3-0/lib/python/version.txt" "/usr/local/bin/python" "/home/mdl/Zope-2.7.3-0/setup.py" install \ --home="/opt/Zope-2.7" --build-base="/home/mdl/Zope-2.7.3-0/build-base/python-2.3" --build-lib="/home/mdl/Zope-2.7.3-0/build-base/python-2.3/build-lib" --build-scripts="/home/mdl/Zope-2.7.3-0/build-base/python-2.3/build-scripts" --build-temp="/home/mdl/Zope-2.7.3-0/build-base/python-2.3/build-temp" running install running build running build_py running build_ext running install_lib running install_data copying version.txt -> /opt/Zope-2.7/lib/python/. error: /opt/Zope-2.7/lib/python/./version.txt: Permission denied make: *** [install] Error 1 From m.lawrie at gmx.net Mon Jan 10 01:46:19 2005 From: m.lawrie at gmx.net (Magnus Lawrie) Date: Mon Jan 10 01:46:17 2005 Subject: [Zope] IOError: [Errno 13] Permission denied (Zope 2.7.3) In-Reply-To: <5D4149E44AE21FBBB5112BED@[192.168.0.102]> References: <41E1C3C6.1010905@gmx.net> <41E217A6.4010606@gmx.net> <5D4149E44AE21FBBB5112BED@[192.168.0.102]> Message-ID: <41E224BB.7050906@gmx.net> Andreas Jung wrote: > > > --On Montag, 10. Januar 2005 5:50 Uhr +0000 Magnus Lawrie > wrote: > >> Andreas Jung wrote: >> >>> >>> >>> --On Sonntag, 9. Januar 2005 23:52 Uhr +0000 Magnus Lawrie >>> wrote: >>> >>>> I installed python 2.3.4 and then zope 2.7.3 from source and ran >>>> mkzopeinstance.py, but am experiencing a problem with privileges. I >>>> gather that I have to change some, but I do not know exactly how to do >>>> that. I have looked at >>>> >>>> http://www.plope.com/Books/2_7Edition/InstallingZope.stx >>>> >>>> And this post: >>>> >>>> http://www.gossamer-threads.com/lists/zope/users/177930 >>>> >>>> ...but am no clearer. >>>> >>>> Runzope results in: >>>> >>>> IOError: [Errno 13] Permission denied: >>>> '/home/mdl/zope-instance/var/Data.fs.lock ' >>>> >>> >>> This usually happens if you install or run Zope as root which is not >>> recommended (and documented >>> in various places). >>> >>> -aj >>> >>> > > >> Yes, I did read that. I downloaded tarballs and worked out of my home >> directory but (being a novice only) didn't find a better way than: >> sudo make install > > ^^^^^^^^^^^^^^^^^^ > > There is no reason to run "make install" as root if you compile and > install using the same account > that will be used to run Zope! > >> make install wouldn't complete. > > > Why not? Please provide a traceback or error messages. > > Andreas > > > > I don't have a record of the original error, but ran the make install command once again. The last three lines: copying version.txt -> /opt/Zope-2.7/lib/python/. error: /opt/Zope-2.7/lib/python/./version.txt: Permission denied make: *** [install] Error 1 From m.lawrie at gmx.net Mon Jan 10 02:45:42 2005 From: m.lawrie at gmx.net (Magnus Lawrie) Date: Mon Jan 10 02:45:41 2005 Subject: [Zope] IOError: [Errno 13] Permission denied (Zope 2.7.3) In-Reply-To: <41E224BB.7050906@gmx.net> References: <41E1C3C6.1010905@gmx.net> <41E217A6.4010606@gmx.net> <5D4149E44AE21FBBB5112BED@[192.168.0.102]> <41E224BB.7050906@gmx.net> Message-ID: <41E232A6.30202@gmx.net> Magnus Lawrie wrote: > I don't have a record of the original error, but ran the make install > command once again. The last three lines: > > copying version.txt -> /opt/Zope-2.7/lib/python/. > error: /opt/Zope-2.7/lib/python/./version.txt: Permission denied > make: *** [install] Error 1 > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) > > I read this to get zope installed: http://www.zope.org/Members/mcdonc/HowTos/zopeinstall/ZOPE-INSTALL-HOWTO thanks for your replies, From lists at andreas-jung.com Mon Jan 10 02:58:40 2005 From: lists at andreas-jung.com (Andreas Jung) Date: Mon Jan 10 02:58:45 2005 Subject: [Zope] IOError: [Errno 13] Permission denied (Zope 2.7.3) In-Reply-To: <41E232A6.30202@gmx.net> References: <41E1C3C6.1010905@gmx.net> <41E217A6.4010606@gmx.net> <5D4149E44AE21FBBB5112BED@[192.168.0.102]> <41E224BB.7050906@gmx.net> <41E232A6.30202@gmx.net> Message-ID: --On Montag, 10. Januar 2005 7:45 Uhr +0000 Magnus Lawrie wrote: > Magnus Lawrie wrote: > >> I don't have a record of the original error, but ran the make install >> command once again. The last three lines: >> >> copying version.txt -> /opt/Zope-2.7/lib/python/. >> error: /opt/Zope-2.7/lib/python/./version.txt: Permission denied >> make: *** [install] Error 1 The former reply already answered your question: - you installed Zope as root - all your files are installed as root - if you start Zope as non-root then Zope won't start because it can not open Data.fs for writing because 'var/*' is not writeable. Either change the owner of the installed files or change the permissions or use the installation method using a dedicated INSTANCE_HOME which is the recommended way to go. Both is explained here: -aj From andy at nnu.com Mon Jan 10 10:50:17 2005 From: andy at nnu.com (Andy Yates) Date: Mon Jan 10 10:50:22 2005 Subject: [Bug] TemporaryStorage memory leak (was: RE: [Zope] Zope 2.7.3 Memory Leaks) Message-ID: <93ED2D3FFABD164684F73914CF2A4D68013EE95E@exchange.nnu.com> Many Thanks! When I run my test Zope seem to reuse the memory now. I still don't understand why it is never released all together, but I can certainly live with reuse. Thanks again for your help. Andy > -----Original Message----- > From: Dieter Maurer [mailto:dieter@handshake.de] > Sent: Friday, January 07, 2005 3:39 PM > To: Andy Yates > Cc: zope@zope.org; andreas.jung@haufe.de > Subject: [Bug] TemporaryStorage memory leak (was: RE: [Zope] Zope 2.7.3 Memory Leaks) > > Andy Yates wrote at 2005-1-6 16:19 -0600: > > ... > >Can anybody else reproduce these results? > > You have been right. > > The leak is caused by a bug in > "tempstorage.TemporaryStorage.TemporaryStorage._takeOutGarbage" > > It performs the zero refcount check for a child of a deleted > object *before* it has decremented the refcount. As a > consequence, it does not release children of a deleted object. > > I attach a script that reproduces the problem in an easier way. > Calling it with "bin/zopectl run" will consume about 200 MB of RAM > for about 5 min. > > I also attach a patch. > > > I will file a bug report. > > -- > Dieter From florian_reiser at gmx.de Mon Jan 10 11:14:50 2005 From: florian_reiser at gmx.de (Florian Reiser) Date: Mon Jan 10 11:14:52 2005 Subject: [Zope] Fancy selection with checkboxes Message-ID: <2469.1105373690@www74.gmx.net> Hello Zopistas, I have an hierarchical structure (e.g. folders). With this structure I want to generate a tree in Zope, where each item has a checkmark. If I select one checker, then all items below it should be selected, too. If I then uncheck one checker, then the checker above that, should appear gray. Maybe you know this tree from graphical tape backup applications. Is there a product for zope, which helps me generating such a tree? Regards Florian Reiser -- +++ GMX - die erste Adresse für Mail, Message, More +++ 1 GB Mailbox bereits in GMX FreeMail http://www.gmx.net/de/go/mail From lists at andreas-jung.com Mon Jan 10 11:20:50 2005 From: lists at andreas-jung.com (Andreas Jung) Date: Mon Jan 10 11:20:56 2005 Subject: [Zope] Fancy selection with checkboxes In-Reply-To: <2469.1105373690@www74.gmx.net> References: <2469.1105373690@www74.gmx.net> Message-ID: --On Montag, 10. Januar 2005 17:14 Uhr +0100 Florian Reiser wrote: > Hello Zopistas, > > I have an hierarchical structure (e.g. folders). > With this structure I want to generate a tree in Zope, where each item > has a checkmark. > > If I select one checker, then all items below it should be selected, too. > > If I then uncheck one checker, then the checker above that, should appear > gray. > > Maybe you know this tree from graphical tape backup applications. > > Is there a product for zope, which helps me generating such a tree? > This is basically an issue that you would solve on the client-side using Javascript. -aj From tim.peters at gmail.com Mon Jan 10 11:38:23 2005 From: tim.peters at gmail.com (Tim Peters) Date: Mon Jan 10 11:38:25 2005 Subject: [Bug] TemporaryStorage memory leak (was: RE: [Zope] Zope 2.7.3 Memory Leaks) In-Reply-To: <93ED2D3FFABD164684F73914CF2A4D68013EE95E@exchange.nnu.com> References: <93ED2D3FFABD164684F73914CF2A4D68013EE95E@exchange.nnu.com> Message-ID: <1f7befae050110083873b40ef6@mail.gmail.com> [Andy Yates, to Dieter Maurer] > Many Thanks! Seconded! Dieter is a very helpful fellow. > When I run my test Zope seem to reuse the memory now. I > still don't understand why it is never released all together, but I can > certainly live with reuse. That's the endless discussion of detailed memory-management semantics we already agreed wouldn't be productive <0.9 wink>. From s.morris at bangor.ac.uk Mon Jan 10 12:13:02 2005 From: s.morris at bangor.ac.uk (Sion Morris) Date: Mon Jan 10 12:14:33 2005 Subject: [Zope] ZSQL and python script performance Message-ID: Hi, In an attempt to speed up an application I came across a bottle neck with Python Scripts in Zope. Using apache's 'ab' utility I tested a simple query (sql_course_components) directly with the following URL: ab -n 20 -c 4 'http://myserver/portal_skins/acs/sql_course_components/manage_test?gcom_id= 19030&term_code=200405&SUBMIT=Submit+Query' ----- Requests per second: 23.22 [#/sec] (mean) Using a Python Script (ptest) to return the result from the query is much slower: return context.sql_course_components(gcom_id=19030, term_code=200405) ab -n 20 -c 4 'http://myserver/portal_skins/acs/ptest' ----- Requests per second: 2.59 [#/sec] (mean) I tried the same test with an external method with similar results. Why is there such a big difference between accessing the ZSQL query directly and using a python script (which is needed to process the query in the real application) to return the query? TIA, Sion From jeffrey.rodriguez at gmail.com Mon Jan 10 12:53:59 2005 From: jeffrey.rodriguez at gmail.com (Jeff Rodriguez) Date: Mon Jan 10 12:54:02 2005 Subject: [Zope] Generating Short (unique) IDs Message-ID: <753ca72f0501100953acfa150@mail.gmail.com> I'm currently running a Zope CMF/Plone site, here's my situation: I have a folder that contains several of a custom content type I created called an "EscalationDoc". What I plan on doing is creating another folder to store another custom content type called "EscalationID", each EscalationID will be linked to an EscalationDoc. The reasoning for this is I need to be able to swing what EscalationDoc an EscalationID points to. My problem is that Zope generates very long IDs, like "escalationdoc.2005-01-07.0744968113". These IDs will need to be remembered and entered by humans so I need a short, sequential, unique IDs. If I could use some sort of mutex in Zope I could probably figure this out, but I'm not aware of any such mechanism. Any suggestions? -- Jeffrey Alan Rodriguez Jeffrey.Rodriguez@gmail.com From pkorzh at ua.fm Mon Jan 10 14:15:48 2005 From: pkorzh at ua.fm (Pavlo Korzhyk) Date: Mon Jan 10 14:16:06 2005 Subject: [Zope] Re: dreamwaeaver, zope, and webdav In-Reply-To: <1104958378.4198.244.camel@bennetttm-1.library.appstate.edu> References: <1104958378.4198.244.camel@bennetttm-1.library.appstate.edu> Message-ID: <874624375.20050110211548@ua.fm> Hello Thomas, Wednesday, January 5, 2005, 10:52:58 PM, you wrote: TB> My users have been using DreamWeaver since at least DW 4. The TB> only changes I have had to make is moving from DW's ftp to WEB DAV TB> since DW's ftp made changes with every update that wouldn't work TB> with Zope and our network. We are now using WEB DAV with the Site TB> portion of DW. I have one user using HotDog and we had to install TB> DW on her machine for the WEB DAV feature since its not TB> incorporated in HotDog. Just yesterday we started looking into TB> (free) standalone WEB DAV clients since the new XP WEB Folders TB> won't try to authenticate unless you create a new folder and then TB> you can copy files to the Zope. We found many WEB DAV clients TB> that would transfer files to Zope but that literally caused a TB> problem, a file. Transferring a .jpg into a PhotoFolder showed up TB> in Zope as a file(octetstream...) not a Photo object. After TB> finding references to NetDrive from Novell (lets you map TB> ftp,webdav, other as local drive in Windows Explorer, not IE) I TB> downloaded that and installed it. Zope Book: ...if you upload an HTML file "foo.html" via FTP to a place where "foo.html" did not previously exist, it will be created (by default) as a DTML Document object, whereas you may want it to be created as a Zope Page Template. Zope provides a facility to specify the object type created on a per-folder and per-request basis (PUT_factory) that is detailed in this chapter. Instead of installing NetDrive you could create a PUT_factory script that will determine what type of the object you want (based on its extension or folder name). -- Best regards, Pavlo mailto:pkorzh@ua.fm ICQ 155870780 From andrew at zope.com Mon Jan 10 14:39:34 2005 From: andrew at zope.com (Andrew Sawyers) Date: Mon Jan 10 14:39:36 2005 Subject: [Zope] Re: dreamwaeaver, zope, and webdav In-Reply-To: <874624375.20050110211548@ua.fm> References: <1104958378.4198.244.camel@bennetttm-1.library.appstate.edu> <874624375.20050110211548@ua.fm> Message-ID: <41E2D9F6.3040701@zope.com> Pavlo Korzhyk wrote: > > Zope Book: > ...if you upload an HTML file "foo.html" via FTP to a place > where "foo.html" did not previously exist, it will be created (by > default) as a DTML Document object, whereas you may want it to be > created as a Zope Page Template. Zope provides a facility to specify > the object type created on a per-folder and per-request basis > (PUT_factory) that is detailed in this chapter. > > Instead of installing NetDrive you could create a PUT_factory script > that will determine what type of the object you want (based on its extension or > folder name). > > IIRC this is available in the CMF with the content type registry..... Andrew -- Zope Managed Hosting Systems Administrator/Software Engineer Zope Corporation (540) 361-1700 From flujan at mandic.com.br Mon Jan 10 16:58:21 2005 From: flujan at mandic.com.br (Fernando Lujan) Date: Mon Jan 10 16:59:02 2005 Subject: [Zope] Authenticated SMTP. Message-ID: <41E2FA7D.2010301@mandic.com.br> Hi everyone, That's a simples question... Are there some product that send e-mail messages like maildrophost and support authenticated smtp? Thanks in advance. Fernando Lujan From jens at dataflake.org Mon Jan 10 17:18:25 2005 From: jens at dataflake.org (Jens Vagelpohl) Date: Mon Jan 10 17:18:33 2005 Subject: [Zope] Authenticated SMTP. In-Reply-To: <41E2FA7D.2010301@mandic.com.br> References: <41E2FA7D.2010301@mandic.com.br> Message-ID: <8BBB5FFE-6355-11D9-A33A-000D9368D272@dataflake.org> On Jan 10, 2005, at 22:58, Fernando Lujan wrote: > Hi everyone, > > That's a simples question... Are there some product that send e-mail > messages like maildrophost and support authenticated smtp? No, there is no combination of transaction-aware mail transport like MaildropHost does combined with authenticated SMTP I am afraid. jens From maik.jablonski at uni-bielefeld.de Mon Jan 10 18:50:08 2005 From: maik.jablonski at uni-bielefeld.de (Maik Jablonski) Date: Mon Jan 10 18:50:23 2005 Subject: [Zope] Re: Authenticated SMTP. In-Reply-To: <8BBB5FFE-6355-11D9-A33A-000D9368D272@dataflake.org> References: <41E2FA7D.2010301@mandic.com.br> <8BBB5FFE-6355-11D9-A33A-000D9368D272@dataflake.org> Message-ID: Jens Vagelpohl wrote: > > On Jan 10, 2005, at 22:58, Fernando Lujan wrote: >> That's a simples question... Are there some product that send e-mail >> messages like maildrophost and support authenticated smtp? > > > No, there is no combination of transaction-aware mail transport like > MaildropHost does combined with authenticated SMTP I am afraid. SecureMailHost claims to do this... don't know if it works, but maybe it's woth a try: http://zopewiki.org/SecureMailHost Cheers, Maik From rawsystems at gmail.com Mon Jan 10 22:38:41 2005 From: rawsystems at gmail.com (bobb) Date: Mon Jan 10 22:39:19 2005 Subject: [Zope] IIS and Zope (again) References: <1104921194.4978.9.camel@sabrina.peacock.de> <41DBE7E9.2090507@sistes.net> Message-ID: <06ec01c4f78f$0bbc2480$6400a8c0@rawlt1> Apache runs on windoz, also. you don't "NEED" IIS. hth bobb ----- Original Message ----- From: "Garito" Cc: Sent: Wednesday, January 05, 2005 8:13 AM Subject: [Zope] IIS and Zope (again) > Hi all! > Some days ago I ask here for a IIS redirector to Zope > > Volker points to me to these url > > /http://freshlogic.net/ > > /because I need a free solution (thanks again Volker!) > > But recently these people don't support the redirector for free anymore > > Do you know any IIS redirector for free? > > Thanks a lot! > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) From rawsystems at gmail.com Mon Jan 10 22:40:24 2005 From: rawsystems at gmail.com (bobb) Date: Mon Jan 10 22:41:04 2005 Subject: [Zope] import module error References: <45104.199.67.140.76.1104327385.squirrel@199.67.140.76><9284028b041229062567fa11c5@mail.gmail.com> <200412291905.54191.baptiste.ancey@derivexperts.com> Message-ID: <06fe01c4f78f$49a85890$6400a8c0@rawlt1> I had headaches getting python-dev working under Mandrake 10.1 on a test box. I dumped it for Fedora Core, and now I can bang my head against the wall for different, more meaningful things. hth bobb ----- Original Message ----- From: "baptiste Ancey" To: Sent: Wednesday, December 29, 2004 1:05 PM Subject: [Zope] import module error > Hi, > > I have just install my new server > Mandrake 10.1 Official > but now my script python (which work on the 10.1 Community) make error. > > I can't do anything with python. For example : import MySQLdb > return : import Error : no module name MySQLdb > > I just look for an environnement variable to set but i don't find anything... > I 'm quite sure the solution will be very simple but I don't find it at all > > Can anybody help me ? > > Thx > > Baptiste > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) From florian_reiser at gmx.de Tue Jan 11 03:57:56 2005 From: florian_reiser at gmx.de (Florian Reiser) Date: Tue Jan 11 03:57:59 2005 Subject: [Zope] Fancy selection with checkboxes References: Message-ID: <20863.1105433876@www17.gmx.net> Hello Andreas, do you have an idea, where I find such an javascript? Greets Florian > > > --On Montag, 10. Januar 2005 17:14 Uhr +0100 Florian Reiser > wrote: > > > Hello Zopistas, > > > > I have an hierarchical structure (e.g. folders). > > With this structure I want to generate a tree in Zope, where each item > > has a checkmark. > > > > If I select one checker, then all items below it should be selected, > too. > > > > If I then uncheck one checker, then the checker above that, should > appear > > gray. > > > > Maybe you know this tree from graphical tape backup applications. > > > > Is there a product for zope, which helps me generating such a tree? > > > > This is basically an issue that you would solve on the client-side using > Javascript. > > -aj > -- +++ GMX - die erste Adresse für Mail, Message, More +++ 1 GB Mailbox bereits in GMX FreeMail http://www.gmx.net/de/go/mail From jens at dataflake.org Tue Jan 11 03:58:30 2005 From: jens at dataflake.org (Jens Vagelpohl) Date: Tue Jan 11 03:58:35 2005 Subject: [Zope] Re: Authenticated SMTP. In-Reply-To: References: <41E2FA7D.2010301@mandic.com.br> <8BBB5FFE-6355-11D9-A33A-000D9368D272@dataflake.org> Message-ID: On Jan 11, 2005, at 0:50, Maik Jablonski wrote: > Jens Vagelpohl wrote: >> On Jan 10, 2005, at 22:58, Fernando Lujan wrote: >>> That's a simples question... Are there some product that send e-mail >>> messages like maildrophost and support authenticated smtp? >> No, there is no combination of transaction-aware mail transport like >> MaildropHost does combined with authenticated SMTP I am afraid. > > SecureMailHost claims to do this... don't know if it works, but maybe > it's woth a try: > > http://zopewiki.org/SecureMailHost There's no hooks into the transaction machinery on that one, so you could still run into the "multiple emails" problem. And it seems to spawn threads from within Zope itself for its "asynchronous delivery" mode. Doing that kind of thing has always scared me :) jens --------------- Jens Vagelpohl jens@zetwork.com Software Engineer +49-(0)441-36 18 14 38 Zetwork GmbH http://www.zetwork.com/ From maik.jablonski at uni-bielefeld.de Tue Jan 11 05:04:18 2005 From: maik.jablonski at uni-bielefeld.de (Maik Jablonski) Date: Tue Jan 11 05:04:28 2005 Subject: [Zope] Re: Authenticated SMTP. In-Reply-To: References: <41E2FA7D.2010301@mandic.com.br> <8BBB5FFE-6355-11D9-A33A-000D9368D272@dataflake.org> Message-ID: Jens Vagelpohl wrote: > And it seems to > spawn threads from within Zope itself for its "asynchronous delivery" > mode. Doing that kind of thing has always scared me :) Me too... that's the reason I use your fine MaildropHost as default MailHost for all my MailBoxers...:) Cheers, Maik From johanc at easypublisher.com Tue Jan 11 05:05:07 2005 From: johanc at easypublisher.com (Johan Carlsson) Date: Tue Jan 11 05:05:14 2005 Subject: [Zope] IIS and Zope (again) In-Reply-To: <06ec01c4f78f$0bbc2480$6400a8c0@rawlt1> References: <1104921194.4978.9.camel@sabrina.peacock.de> <41DBE7E9.2090507@sistes.net> <06ec01c4f78f$0bbc2480$6400a8c0@rawlt1> Message-ID: <41E3A4D3.7010602@easypublisher.com> bobb wrote: > Apache runs on windoz, also. > > you don't "NEED" IIS > hth > bobb Zope has n build in HTTP server so you don't "need" Apache either. But if your requirements states that you "need" to run Zope and ISS on the same server (which isn't such a uncommon scenario after all) they can't chare the same port, a proxy is the best way to go. Unfortunatelly there's not a open source one out there (yet). Garito, Have your had a look at http://www.isapirewrite.com/. I think it accuallt does proxy. They have a lite version that is free of charge, but it doesn't support virtual sites. Regards, Johan From toolkit at magma.ca Tue Jan 11 07:22:08 2005 From: toolkit at magma.ca (Jonathan Hobbs) Date: Tue Jan 11 07:19:40 2005 Subject: [Zope] Fancy selection with checkboxes References: <20863.1105433876@www17.gmx.net> Message-ID: <000901c4f7d8$2eb30fa0$647ba8c0@jhdesktop> From: "Florian Reiser" > > do you have an idea, where I find such an javascript? > > Greets > > Florian > > > > > > --On Montag, 10. Januar 2005 17:14 Uhr +0100 Florian Reiser > > wrote: > > > > > Hello Zopistas, > > > > > > I have an hierarchical structure (e.g. folders). > > > With this structure I want to generate a tree in Zope, where each item > > > has a checkmark. > > > > > > If I select one checker, then all items below it should be selected, > > too. > > > > > > If I then uncheck one checker, then the checker above that, should > > appear > > > gray. > > > > > > Maybe you know this tree from graphical tape backup applications. > > > > > > Is there a product for zope, which helps me generating such a tree? > > > > > > > This is basically an issue that you would solve on the client-side using > > Javascript. Here is a tutorial on using javascript with html forms: http://www.webdevelopersjournal.com/articles/jscript_forms1.html You can also google for javascript code (many web sites offer free js routines which you can modify to suit your needs). Jonathan From garito at sistes.net Tue Jan 11 08:17:17 2005 From: garito at sistes.net (Garito) Date: Tue Jan 11 08:17:55 2005 Subject: [Zope] IIS and Zope (again) In-Reply-To: <06ec01c4f78f$0bbc2480$6400a8c0@rawlt1> References: <1104921194.4978.9.camel@sabrina.peacock.de> <41DBE7E9.2090507@sistes.net> <06ec01c4f78f$0bbc2480$6400a8c0@rawlt1> Message-ID: <41E3D1DD.9090700@sistes.net> bobb escribi?: >Apache runs on windoz, also. > >you don't "NEED" IIS. > >hth > >bobb > >----- Original Message ----- >From: "Garito" >Cc: >Sent: Wednesday, January 05, 2005 8:13 AM >Subject: [Zope] IIS and Zope (again) > > > > >>Hi all! >>Some days ago I ask here for a IIS redirector to Zope >> >>Volker points to me to these url >> >>/http://freshlogic.net/ >> >>/because I need a free solution (thanks again Volker!) >> >>But recently these people don't support the redirector for free anymore >> >>Do you know any IIS redirector for free? >> >>Thanks a lot! >> >> >> >>_______________________________________________ >>Zope maillist - Zope@zope.org >>http://mail.zope.org/mailman/listinfo/zope >>** No cross posts or HTML encoding! ** >>(Related lists - >> http://mail.zope.org/mailman/listinfo/zope-announce >> http://mail.zope.org/mailman/listinfo/zope-dev ) >> >> > > > I know I don't need IIS but it is installed in the system with my zope and I can't install apache for now From garito at sistes.net Tue Jan 11 08:20:38 2005 From: garito at sistes.net (Garito) Date: Tue Jan 11 08:21:07 2005 Subject: [Zope] IIS and Zope (again) In-Reply-To: <41E3A4D3.7010602@easypublisher.com> References: <1104921194.4978.9.camel@sabrina.peacock.de> <41DBE7E9.2090507@sistes.net> <06ec01c4f78f$0bbc2480$6400a8c0@rawlt1> <41E3A4D3.7010602@easypublisher.com> Message-ID: <41E3D2A6.3010903@sistes.net> Johan Carlsson escribi?: > bobb wrote: > >> Apache runs on windoz, also. >> >> you don't "NEED" IIS >> hth >> bobb > > > Zope has n build in HTTP server so you don't "need" Apache either. > > But if your requirements states that you "need" to run Zope and ISS > on the same server (which isn't such a uncommon scenario after all) > they can't chare the same port, a proxy is the best way to go. > Unfortunatelly there's not a open source one out there (yet). > > > Garito, > Have your had a look at http://www.isapirewrite.com/. > I think it accuallt does proxy. > > They have a lite version that is free of charge, but > it doesn't support virtual sites. > > Regards, > Johan > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) Thanks a lot!!!! From hgeldenhuys at gims.com Tue Jan 11 10:33:19 2005 From: hgeldenhuys at gims.com (Herman Geldenhhuys) Date: Tue Jan 11 08:28:13 2005 Subject: [Zope] Zope xmlrpc crashes without traceback Message-ID: <41E3F1BF.70501@gims.com> Hi. We are using a javascript xmlrpc(VCXMLRPC.js) library to essentially communicate with zope to retreive and display records in a browser. After a while, Zope just crashes without warning or any traceback of what caused the problem. It completely dies. When running in a command prompt, it dies silently as if the python interpreter crashed. We're running version 2.7 of zope with Python 2.3 on multiple window$ NT servers. Has anybody got a solution for this problem? -- G M S Software Factory Tel. +27 (11) 695 0400 x210 Fax +27 (11) 312 0265 Cell+27 (82) 770 7198 www.gmsonline.co.za From maik.jablonski at uni-bielefeld.de Tue Jan 11 09:10:49 2005 From: maik.jablonski at uni-bielefeld.de (Maik Jablonski) Date: Tue Jan 11 09:11:05 2005 Subject: [Zope] Re: Zope xmlrpc crashes without traceback In-Reply-To: <41E3F1BF.70501@gims.com> References: <41E3F1BF.70501@gims.com> Message-ID: Herman Geldenhhuys wrote: > We are using a javascript xmlrpc(VCXMLRPC.js) library to essentially > communicate with zope to retreive and display records in a browser. > After a while, Zope just crashes without warning or any traceback of > what caused the problem. It completely dies. When running in a command > prompt, it dies silently as if the python interpreter crashed. > > We're running version 2.7 of zope with Python 2.3 on multiple window$ NT > servers. Which minor version of Zope 2.7 do you run? There were package-problems with the python-xmlrpc-package in at least 2.7.0. -mj From bennetttm at appstate.edu Tue Jan 11 08:57:04 2005 From: bennetttm at appstate.edu (Thomas Bennett) Date: Tue Jan 11 09:14:01 2005 Subject: [Zope] Fancy selection with checkboxes In-Reply-To: <000901c4f7d8$2eb30fa0$647ba8c0@jhdesktop> References: <20863.1105433876@www17.gmx.net> <000901c4f7d8$2eb30fa0$647ba8c0@jhdesktop> Message-ID: <1105451824.4198.348.camel@bennetttm-1.library.appstate.edu> Below is another javascript my associate found recently on the WEB at http://tech.irt.org/articles/script.htm that might be helpful to you or others. Although the example shown below is not checkboxes you might be able to find more helpful information on checkboxes at that URL . The script Below lets you insert a value into a drop down list from an input box. The drop down is populated from a database field in this case. This functionality is similar to Access database where if the value you want is not in the drop down it can be added by typing it in the top of the drop down. The javascript will add the input box value onChange to the drop down and it will make that input the selected value. Once this new value is added to the database that value is available in the drop down box from then on. Also, if no value is put in the input box then the selected value is an empty string. Thomas On Tue, 2005-01-11 at 07:22, Jonathan Hobbs wrote: > From: "Florian Reiser" > > > > do you have an idea, where I find such an javascript? > > > > Greets > > > > Florian > > > > > > > > > --On Montag, 10. Januar 2005 17:14 Uhr +0100 Florian Reiser > > > wrote: > > > > > > > Hello Zopistas, > > > > > > > > I have an hierarchical structure (e.g. folders). > > > > With this structure I want to generate a tree in Zope, where each item > > > > has a checkmark. > > > > > > > > If I select one checker, then all items below it should be selected, > > > too. > > > > > > > > If I then uncheck one checker, then the checker above that, should > > > appear > > > > gray. > > > > > > > > Maybe you know this tree from graphical tape backup applications. > > > > > > > > Is there a product for zope, which helps me generating such a tree? > > > > > > > > > > This is basically an issue that you would solve on the client-side using > > > Javascript. > > Here is a tutorial on using javascript with html forms: > > http://www.webdevelopersjournal.com/articles/jscript_forms1.html > > You can also google for javascript code (many web sites offer free js > routines which you can modify to suit your needs). > > > Jonathan > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) From hgeldenhuys at gims.com Tue Jan 11 11:21:55 2005 From: hgeldenhuys at gims.com (Herman Geldenhhuys) Date: Tue Jan 11 09:16:48 2005 Subject: [Zope] Re: Zope xmlrpc crashes without traceback In-Reply-To: References: <41E3F1BF.70501@gims.com> Message-ID: <41E3FD23.4010305@gims.com> In my control panel of the ZMI I get this: Zope Version : (Zope 2.7.2-0, python 2.3.4, win32) Python version: 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)] System Platform : win32 h Maik Jablonski wrote: > Herman Geldenhhuys wrote: > >> We are using a javascript xmlrpc(VCXMLRPC.js) library to essentially >> communicate with zope to retreive and display records in a browser. >> After a while, Zope just crashes without warning or any traceback of >> what caused the problem. It completely dies. When running in a >> command prompt, it dies silently as if the python interpreter crashed. >> >> We're running version 2.7 of zope with Python 2.3 on multiple window$ >> NT servers. > > > Which minor version of Zope 2.7 do you run? There were > package-problems with the python-xmlrpc-package in at least 2.7.0. > > -mj > > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) -- G M S Software Factory Tel. +27 (11) 695 0400 x210 Fax +27 (11) 312 0265 Cell+27 (82) 770 7198 www.gmsonline.co.za From m.bizzarri at icube.it Wed Jan 12 05:04:56 2005 From: m.bizzarri at icube.it (Marco Bizzarri) Date: Wed Jan 12 05:05:01 2005 Subject: [Zope] TM and commit/abort regarding RDBMS Message-ID: <41E4F648.7090403@icube.it> Hi all. Thanks to suggestions provided by Dieter on this mailing list, we've been successfull in creating transaction-aware objects, which correctly register. My next question is where I could find more information about the protocol used by Zope/ZODB with TM-aware classes. I think it is a two phase commit, but, in this case, I've some doubt. The two phase commit, IIRC, works as follows: phase 1) all the involved parties in a transaction are asked if the transaction should commit or abort phase 2) if all the parties agrees on commit, then commit (i.e. call the commit for) all objects, otherwise abort. Now, if I understand correctly, phase 1) is done in the tpc_vote. According to the implementation of some DA (ZMysqlDA, ZPsycopgDA), the tpc_vote is actually not defined, therefore it will always vote for finalizing. At this point, all transactions will try to commit... including the open database transaction. The question are two: 1) where can I learn more about this process inside Zope? 2) is there a scenario where a commit from Zope will face an abort from the RDB (i.e. Zope will call the commit, and the RDB will refuse due to concurrency problems) ? Thanks to all for patience and support. Regards Marco From Ralph.Arenz at friatec.de Wed Jan 12 05:16:26 2005 From: Ralph.Arenz at friatec.de (Arenz, Ralph) Date: Wed Jan 12 05:19:40 2005 Subject: [Zope] ZEO-Client Message-ID: Hi, i' am using Zope-2.7.3 and i wan't my client-storages to be connected at zope-startup. In Zope-2.6.3 i used "open_at_startup" in DBTab but this option seems not to be included in release 2.7.3, however i can't find it in component.xml. If i add it to zope.conf anyway i get an exception. Any suggestions? Ralph From tino at wildenhain.de Wed Jan 12 05:33:35 2005 From: tino at wildenhain.de (Tino Wildenhain) Date: Wed Jan 12 05:33:50 2005 Subject: [Zope] ZEO-Client In-Reply-To: References: Message-ID: <1105526015.4978.113.camel@sabrina.peacock.de> On Wed, 2005-01-12 at 11:16 +0100, Arenz, Ralph wrote: > Hi, > > i' am using Zope-2.7.3 and i wan't my client-storages to be connected at > zope-startup. > In Zope-2.6.3 i used "open_at_startup" in DBTab but this option seems not to > be included > in release 2.7.3, however i can't find it in component.xml. If i add it to > zope.conf anyway i get > an exception. What do you mean by "open_at_startup"? If you configured the storages in zope.conf, you go to ZMI and add a DBTab Mount point, check all storages you want to mount and add. From now on the clients are connected each time zope starts. HTH Tino From Ralph.Arenz at friatec.de Wed Jan 12 05:42:25 2005 From: Ralph.Arenz at friatec.de (Arenz, Ralph) Date: Wed Jan 12 05:45:39 2005 Subject: [Zope] ZEO-Client Message-ID: -----Urspr?ngliche Nachricht----- Von: Tino Wildenhain [mailto:tino@wildenhain.de] Gesendet: Mittwoch, 12. Januar 2005 11:34 An: Arenz, Ralph Cc: 'zope@zope.org' Betreff: Re: [Zope] ZEO-Client On Wed, 2005-01-12 at 11:16 +0100, Arenz, Ralph wrote: > Hi, > > i' am using Zope-2.7.3 and i wan't my client-storages to be connected at > zope-startup. > In Zope-2.6.3 i used "open_at_startup" in DBTab but this option seems not to > be included > in release 2.7.3, however i can't find it in component.xml. If i add it to > zope.conf anyway i get > an exception. >What do you mean by "open_at_startup"? >If you configured the storages in zope.conf, >you go to ZMI and add a DBTab Mount point, >check all storages you want to mount >and add. From now on the clients are connected >each time zope starts. >HTH >Tino The option "open_at_startup" means that the client-databases are opened at zope-initialization (not when zope is already up). If this fails zope won't come up. That feature is useful if Zope shouldn't run without an paticular storage. From chris at simplistix.co.uk Wed Jan 12 07:33:59 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Wed Jan 12 07:34:03 2005 Subject: [Zope] Re: [Zope-CMF] sluggish images in CMF? In-Reply-To: References: <41A88F9C.7020402@simplistix.co.uk><16810.23486.560695.668951@gargle.gargle.HOWL> <41B0759E.8040209@simplistix.co.uk> Message-ID: <41E51937.7050101@simplistix.co.uk> This was actually due to another bug which I posted about agesa go on the cmf list... Chris Ausum Studio wrote: > I had similar problems when I used to login to my local Zope installation > having CookieCrumbler in-between. > > Ausum > > > ----- Original Message ----- > From: "Chris Withers" > To: "Dieter Maurer" > Cc: > Sent: Friday, December 03, 2004 9:18 AM > Subject: Re: [Zope-CMF] sluggish images in CMF? > > > >>Dieter Maurer wrote: >> >>>>A CMF 1.5 site I'm working on seems to be suffering from sluggish images >>>>(and maybe overall sluggish performanc :-S) >>> >>>Maybe the still not fixed problem on Windows with >>>"debug-mode on"? >>> >>>You know we had a lengthy discussion about a year ago. >>>This problem should have been fixed ages ago! >> >>Are there any open collector issues for this? >> >>I think the stuff we were talking about has been resolved, since there's >>only one use of os.platform now, and I'm pretty sure it needs to be > > there... > >>>If the image is small, sending the "not modified" response >>>takes as much time than delivering the image itself. >>>It should be in the order of a few ms. >> >>Indeed. I made things a lot better by turning the security policy back >>to the C implementation. I've also noticed that the real slowness only >>comes when I hit the reload button on IE or Mozilla, without any Ctrl or >>Alt modifiers. Why would this cause all the images to reload? >> >>I feel like I'm missing something simple that I should sort out before I >>start profiling... >> >>Chris >> >>-- >>Simplistix - Content Management, Zope & Python Consulting >> - http://www.simplistix.co.uk >>_______________________________________________ >>Zope-CMF maillist - Zope-CMF@lists.zope.org >>http://mail.zope.org/mailman/listinfo/zope-cmf >> >>See http://collector.zope.org/CMF for bug reports and feature requests >> > > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) > -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From chris at simplistix.co.uk Wed Jan 12 07:36:56 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Wed Jan 12 07:37:02 2005 Subject: [Zope] GPL question In-Reply-To: <1F7425A3-4848-11D9-970B-000D9368D272@dataflake.org> References: <8e0c47e0041204111670c22733@mail.gmail.com> <5f62f8a041205162858b49864@mail.gmail.com> <8e0c47e00412051852ba67bea@mail.gmail.com> <1F7425A3-4848-11D9-970B-000D9368D272@dataflake.org> Message-ID: <41E519E8.1000704@simplistix.co.uk> Jens Vagelpohl wrote: > Fortunately I have not been in the reverse situation where I had to do > customer work developing software on top of/with GPL software. At that > point I'd be confused, too... You never use Plone then? Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From jens at dataflake.org Wed Jan 12 07:45:37 2005 From: jens at dataflake.org (Jens Vagelpohl) Date: Wed Jan 12 07:45:43 2005 Subject: [Zope] GPL question In-Reply-To: <41E519E8.1000704@simplistix.co.uk> References: <8e0c47e0041204111670c22733@mail.gmail.com> <5f62f8a041205162858b49864@mail.gmail.com> <8e0c47e00412051852ba67bea@mail.gmail.com> <1F7425A3-4848-11D9-970B-000D9368D272@dataflake.org> <41E519E8.1000704@simplistix.co.uk> Message-ID: On Jan 12, 2005, at 13:36, Chris Withers wrote: > Jens Vagelpohl wrote: >> Fortunately I have not been in the reverse situation where I had to >> do customer work developing software on top of/with GPL software. At >> that point I'd be confused, too... > > You never use Plone then? I haven't had anyone ask me to develop on Plone. If portal-ish/CMS features are needed and the choice is left to me I choose to develop on CMF proper. jens --------------- Jens Vagelpohl jens@zetwork.com Software Engineer +49-(0)441-36 18 14 38 Zetwork GmbH http://www.zetwork.com/ From tino at wildenhain.de Wed Jan 12 07:46:44 2005 From: tino at wildenhain.de (Tino Wildenhain) Date: Wed Jan 12 07:47:02 2005 Subject: [Zope] ZEO-Client In-Reply-To: References: Message-ID: <1105534004.4978.115.camel@sabrina.peacock.de> On Wed, 2005-01-12 at 11:42 +0100, Arenz, Ralph wrote: > > -----Urspr?ngliche Nachricht----- > Von: Tino Wildenhain [mailto:tino@wildenhain.de] > Gesendet: Mittwoch, 12. Januar 2005 11:34 > An: Arenz, Ralph > Cc: 'zope@zope.org' > Betreff: Re: [Zope] ZEO-Client > > > On Wed, 2005-01-12 at 11:16 +0100, Arenz, Ralph wrote: > > Hi, > > > > i' am using Zope-2.7.3 and i wan't my client-storages to be connected at > > zope-startup. > > In Zope-2.6.3 i used "open_at_startup" in DBTab but this option seems not > to > > be included > > in release 2.7.3, however i can't find it in component.xml. If i add it to > > zope.conf anyway i get > > an exception. > > >What do you mean by "open_at_startup"? > >If you configured the storages in zope.conf, > >you go to ZMI and add a DBTab Mount point, > >check all storages you want to mount > >and add. From now on the clients are connected > >each time zope starts. > > >HTH > >Tino > > > The option "open_at_startup" means that the client-databases are opened at > zope-initialization (not when zope is already up). If this fails zope won't > come up. > That feature is useful if Zope shouldn't run without an paticular storage. This works the same if you do it like I described. Once you use the database, it is required for zope to start up. e.g. Zope will wait until the database (zeo) is ready. Regards Tino From chris at simplistix.co.uk Wed Jan 12 07:49:10 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Wed Jan 12 07:49:17 2005 Subject: [Zope] Re: [Zope-Annce] [Security advisory] Zope 2.7 + 2.8 In-Reply-To: <599303B1BA0A37E79D420A04@[192.168.0.102]> References: <599303B1BA0A37E79D420A04@[192.168.0.102]> Message-ID: <41E51CC6.2000107@simplistix.co.uk> Hi Andreas (and anyone else who does security releases) Might I suggest also announcing this to bugtraq@securityfocus.com? Also, it would be handy for those of us that use mail server plugins to cut down on duplicate messages if you could send messages to the announce list that don't CC the zope list, or any other bulk list. This message got filed in with the bulk stuff and so I haven't seen it for weeks :-S cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From chris at simplistix.co.uk Wed Jan 12 07:52:52 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Wed Jan 12 07:52:56 2005 Subject: [Zope] GPL question In-Reply-To: References: <8e0c47e0041204111670c22733@mail.gmail.com> <5f62f8a041205162858b49864@mail.gmail.com> <8e0c47e00412051852ba67bea@mail.gmail.com> <1F7425A3-4848-11D9-970B-000D9368D272@dataflake.org> <41E519E8.1000704@simplistix.co.uk> Message-ID: <41E51DA4.1000905@simplistix.co.uk> Jens Vagelpohl wrote: > I haven't had anyone ask me to develop on Plone. > > If portal-ish/CMS features are needed and the choice is left to me I > choose to develop on CMF proper. Can't say I blame you ;-) What do you use for schema-driven content types? Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From jens at dataflake.org Wed Jan 12 07:57:40 2005 From: jens at dataflake.org (Jens Vagelpohl) Date: Wed Jan 12 07:57:47 2005 Subject: [Zope] GPL question In-Reply-To: <41E51DA4.1000905@simplistix.co.uk> References: <8e0c47e0041204111670c22733@mail.gmail.com> <5f62f8a041205162858b49864@mail.gmail.com> <8e0c47e00412051852ba67bea@mail.gmail.com> <1F7425A3-4848-11D9-970B-000D9368D272@dataflake.org> <41E519E8.1000704@simplistix.co.uk> <41E51DA4.1000905@simplistix.co.uk> Message-ID: <8A92EE4E-6499-11D9-A272-000D9368D272@dataflake.org> On Jan 12, 2005, at 13:52, Chris Withers wrote: > Jens Vagelpohl wrote: >> I haven't had anyone ask me to develop on Plone. >> If portal-ish/CMS features are needed and the choice is left to me I >> choose to develop on CMF proper. > > Can't say I blame you ;-) > > What do you use for schema-driven content types? If the question is "do you use Archetypes" then the answer is "no". That's not meant as a judgement - I simply haven't had any problem that wasn't solved by using mechanisms found in the CMF itself... jens From lists at andreas-jung.com Wed Jan 12 08:02:43 2005 From: lists at andreas-jung.com (Andreas Jung) Date: Wed Jan 12 08:02:50 2005 Subject: [Zope] Re: [Zope-Annce] [Security advisory] Zope 2.7 + 2.8 In-Reply-To: <41E51CC6.2000107@simplistix.co.uk> References: <599303B1BA0A37E79D420A04@[192.168.0.102]> <41E51CC6.2000107@simplistix.co.uk> Message-ID: --On Mittwoch, 12. Januar 2005 12:49 Uhr +0000 Chris Withers wrote: > Hi Andreas (and anyone else who does security releases) > > Might I suggest also announcing this to bugtraq@securityfocus.com? Could do :-) > > Also, it would be handy for those of us that use mail server plugins to > cut down on duplicate messages if you could send messages to the announce > list that don't CC the zope list, or any other bulk list. This message > got filed in with the bulk stuff and so I haven't seen it for weeks :-S ...just a question how you manage your emails :-) -aj From chris at simplistix.co.uk Wed Jan 12 08:07:38 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Wed Jan 12 08:07:44 2005 Subject: [Zope] New ZMysql adapter connection problem In-Reply-To: <9826f38004122811547732b40@mail.gmail.com> References: <41D19EAA.7090006@technologyinedu.com> <9826f38004122811547732b40@mail.gmail.com> Message-ID: <41E5211A.2020603@simplistix.co.uk> Andy Dustman wrote: > On Tue, 28 Dec 2004 12:58:02 -0500, Larry McDonnell > wrote: > >> I'm test 2.7.3 out and I cannot create a connection to my database. I am >>using the new adapter ZMySQLDA-2.0.9b2 .and I loaded >>MySQL-python.exe-0.9.2.win32-py2.3.exe pointing it to the bin directory of >>my zope installation. It added it to my product list but when I try to make >>a connection I see the following: > > >>Module Products.ZMySQLDA.db, line 183, in __init__ AttributeError: >>server_capabilities (Also, an error occurred while attempting to render the >>standard error message.) I posted a patch for this ages ago. Know how to use google? ;-) > A well-known bug in MySQLdb-0.9.2 that occurs with Python-2.2 and > newer. I recommend using 1.1.7 or newer, or 1.0.0. There may be some > new Windows packages in the next few days; however, I depend on people > to contribute these because I cannot build them myself. What's the official work on what version of MySQLdb and ZMySQLDA you should use with Zope 2.7 (which uses Python 2.3)? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From chris at simplistix.co.uk Wed Jan 12 08:16:00 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Wed Jan 12 08:16:12 2005 Subject: [Zope] Why am I getting "AttributeError: 'NoneType' object has no attribute 'setHeader'"? In-Reply-To: <5FC875EC7C6912236F064D25@[192.168.0.102]> References: <39b4e96505010620333059bc0d@mail.gmail.com> <5FC875EC7C6912236F064D25@[192.168.0.102]> Message-ID: <41E52310.3050101@simplistix.co.uk> FWIW, I've seen this a few times relating to the ZMI, the top frame in particular. I can't remember how I managed to provoke it htough... Chris Andreas Jung wrote: > Please file a Zope collector issue for this. > > -aj > > --On Donnerstag, 6. Januar 2005 23:33 Uhr -0500 Sensible Chaos > wrote: > >> Running 2.7.4rc1, I'm getting the following errors in relation to a >> product I'm building, and can't seem to figure out why. It appears to >> me that the dtml method is not getting a RESPONSE object, but I've no >> idea what could cause that. Any help would be GREATLY appreciated, as >> I'm very new to zope and really can't seem to figure this out. >> >> Thanks! >> >> Patrick >> >> ============ Errors: >> >> Site Error >> >> An error was encountered while publishing this resource. >> >> AttributeError >> Sorry, a site error occurred. >> >> Traceback (innermost last): >> >> * Module ZPublisher.Publish, line 175, in publish_module_standard >> * Module ZPublisher.Publish, line 132, in publish >> * Module Zope.App.startup, line 204, in zpublisher_exception_hook >> * Module ZPublisher.Publish, line 101, in publish >> * Module ZPublisher.mapply, line 88, in mapply >> * Module ZPublisher.Publish, line 39, in call_object >> * Module Shared.DC.Scripts.Bindings, line 306, in __call__ >> * Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec >> * Module App.special_dtml, line 175, in _exec >> * Module Shared.DC.Scripts.Bindings, line 320, in >> __render_with_namespace__ * Module Shared.DC.Scripts.Bindings, line >> 343, in _bindAndExec * Module App.special_dtml, line 175, in _exec >> * Module DocumentTemplate.DT_Util, line 198, in eval >> __traceback_info__: RESPONSE >> * Module , line 0, in ? >> >> AttributeError: 'NoneType' object has no attribute 'setHeader' (Also, >> an error occurred while attempting to render the standard error >> message.) >> >> ========== Relevant Python Code: >> security.declareProtected('View management screens', 'manage_main') >> manage_main = DTMLFile("dtml/mainAnnounceIt", globals()) >> >> ========== DTML Page (dtml/mainAnnounceIt) >> >> >> >>
>> >> >> >> >> >> >> >> >>
Title:
>>
>> >> >> >> >> _______________________________________________ >> Zope maillist - Zope@zope.org >> http://mail.zope.org/mailman/listinfo/zope >> ** No cross posts or HTML encoding! ** >> (Related lists - >> http://mail.zope.org/mailman/listinfo/zope-announce >> http://mail.zope.org/mailman/listinfo/zope-dev ) > > > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) > -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From Ralph.Arenz at friatec.de Wed Jan 12 08:38:14 2005 From: Ralph.Arenz at friatec.de (Arenz, Ralph) Date: Wed Jan 12 08:41:26 2005 Subject: [Zope] ZEO-Client Message-ID: -----Urspr?ngliche Nachricht----- Von: Tino Wildenhain [mailto:tino@wildenhain.de] Gesendet: Mittwoch, 12. Januar 2005 13:47 An: Arenz, Ralph Cc: 'zope@zope.org' Betreff: RE: [Zope] ZEO-Client On Wed, 2005-01-12 at 11:42 +0100, Arenz, Ralph wrote: > > -----Urspr?ngliche Nachricht----- > Von: Tino Wildenhain [mailto:tino@wildenhain.de] > Gesendet: Mittwoch, 12. Januar 2005 11:34 > An: Arenz, Ralph > Cc: 'zope@zope.org' > Betreff: Re: [Zope] ZEO-Client > > > On Wed, 2005-01-12 at 11:16 +0100, Arenz, Ralph wrote: > > Hi, > > > > i' am using Zope-2.7.3 and i wan't my client-storages to be connected at > > zope-startup. > > In Zope-2.6.3 i used "open_at_startup" in DBTab but this option seems not > to > > be included > > in release 2.7.3, however i can't find it in component.xml. If i add it to > > zope.conf anyway i get > > an exception. > > >What do you mean by "open_at_startup"? > >If you configured the storages in zope.conf, > >you go to ZMI and add a DBTab Mount point, > >check all storages you want to mount > >and add. From now on the clients are connected > >each time zope starts. > > >HTH > >Tino > > > The option "open_at_startup" means that the client-databases are opened at > zope-initialization (not when zope is already up). If this fails zope won't > come up. > That feature is useful if Zope shouldn't run without an paticular storage. >This works the same if you do it like I described. Once you use the >database, it is required for zope to start up. e.g. Zope will wait when does it wait, is the question! >until the database (zeo) is ready. >Regards >Tino If i using the option "open_at_startup" my stupid-log under 2.6.3 shows "client-connected" before ZServer is up on it's desired port. Without this option the connection takes place after ZServer is up on it's port, that the significant difference. Sometimes there is a time delay of a few minutes after zope is up before the connection is made (the mounted storage is about 6GB ;-)). I can't except these delay so i packed this into the initialization part (before zope is up) with the option "open_at_startup". So back to my first question, where ist that option gone in Zope-2.7.3? any ideas? Ralph From farcepest at gmail.com Wed Jan 12 09:38:24 2005 From: farcepest at gmail.com (Andy Dustman) Date: Wed Jan 12 09:38:26 2005 Subject: [Zope] New ZMysql adapter connection problem In-Reply-To: <41E5211A.2020603@simplistix.co.uk> References: <41D19EAA.7090006@technologyinedu.com> <9826f38004122811547732b40@mail.gmail.com> <41E5211A.2020603@simplistix.co.uk> Message-ID: <9826f38005011206384301116d@mail.gmail.com> On Wed, 12 Jan 2005 13:07:38 +0000, Chris Withers wrote: > Andy Dustman wrote: > > A well-known bug in MySQLdb-0.9.2 that occurs with Python-2.2 and > > newer. I recommend using 1.1.7 or newer, or 1.0.0. There may be some > > new Windows packages in the next few days; however, I depend on people > > to contribute these because I cannot build them myself. > > What's the official work on what version of MySQLdb and ZMySQLDA you > should use with Zope 2.7 (which uses Python 2.3)? MySQLdb-1.0.1 should work fine, though I prefer that you use 1.1.8. Since ZMySQLDA actually uses the _mysql module (C API), and most of the differences between 1.0 and 1.1 are in the Python layer, I don't think it really makes that much difference. ZMySQLDA hasn't been updated in two years because, AFAIK, there aren't any bad issues in 2.0.8 or 2.0.9b2. I might revisit ZMySQLDA in the next month or so. If there *are* issues, then report them here: https://sourceforge.net/tracker/?group_id=22307&atid=374932 -- Computer interfaces should never be made of meat. Using GMail? Setting Reply-to address to <> disables this annoying feature. From jbarham at gmail.com Wed Jan 12 10:29:08 2005 From: jbarham at gmail.com (John Barham) Date: Wed Jan 12 10:29:10 2005 Subject: [Bug] TemporaryStorage memory leak (was: RE: [Zope] Zope 2.7.3 Memory Leaks) In-Reply-To: <16863.386.371616.301643@gargle.gargle.HOWL> References: <93ED2D3FFABD164684F73914CF2A4D68013EE958@exchange.nnu.com> <16863.386.371616.301643@gargle.gargle.HOWL> Message-ID: <4f34febc05011207292cc8e49c@mail.gmail.com> Dieter Maurer wrote: > The leak is caused by a bug in > "tempstorage.TemporaryStorage.TemporaryStorage._takeOutGarbage" > > It performs the zero refcount check for a child of a deleted > object *before* it has decremented the refcount. As a > consequence, it does not release children of a deleted object. > > I attach a script that reproduces the problem in an easier way. > Calling it with "bin/zopectl run" will consume about 200 MB of RAM > for about 5 min. I ran the script on Linux against both Zope 2.7.0 and 2.7.3 and according to top only some 21 MB of RAM was used up. (I ran "bin/zopectl run tempstorebug.py" in the instance home.) We have a similar problem w/ Zope leaking memory and our application uses sessions a fair bit, so better ways to confirm that this patch fixes the problem would be appreciated. TIA, John From tseaver at zope.com Wed Jan 12 10:35:22 2005 From: tseaver at zope.com (Tres Seaver) Date: Wed Jan 12 10:35:31 2005 Subject: [Zope] Re: ZEO-Client In-Reply-To: References: Message-ID: <41E543BA.8080204@zope.com> Arenz, Ralph wrote: > > -----Urspr?ngliche Nachricht----- > Von: Tino Wildenhain [mailto:tino@wildenhain.de] > Gesendet: Mittwoch, 12. Januar 2005 13:47 > An: Arenz, Ralph > Cc: 'zope@zope.org' > Betreff: RE: [Zope] ZEO-Client > > > On Wed, 2005-01-12 at 11:42 +0100, Arenz, Ralph wrote: > >>-----Urspr?ngliche Nachricht----- >>Von: Tino Wildenhain [mailto:tino@wildenhain.de] >>Gesendet: Mittwoch, 12. Januar 2005 11:34 >>An: Arenz, Ralph >>Cc: 'zope@zope.org' >>Betreff: Re: [Zope] ZEO-Client >> >> >>On Wed, 2005-01-12 at 11:16 +0100, Arenz, Ralph wrote: >> >>>Hi, >>> >>>i' am using Zope-2.7.3 and i wan't my client-storages to be connected at >>>zope-startup. >>>In Zope-2.6.3 i used "open_at_startup" in DBTab but this option seems > > not > >>to >> >>>be included >>>in release 2.7.3, however i can't find it in component.xml. If i add it > > to > >>>zope.conf anyway i get >>>an exception. >> >>>What do you mean by "open_at_startup"? >>>If you configured the storages in zope.conf, >>>you go to ZMI and add a DBTab Mount point, >>>check all storages you want to mount >>>and add. From now on the clients are connected >>>each time zope starts. >> >>>HTH >>>Tino >> >> >>The option "open_at_startup" means that the client-databases are opened at > > >>zope-initialization (not when zope is already up). If this fails zope > > won't > >>come up. >>That feature is useful if Zope shouldn't run without an paticular storage. > > >>This works the same if you do it like I described. Once you use the >>database, it is required for zope to start up. e.g. Zope will wait > > > when does it wait, is the question! > > >>until the database (zeo) is ready. >>Regards >>Tino > > > If i using the option "open_at_startup" my stupid-log under 2.6.3 shows > "client-connected" before ZServer is up on it's desired port. Without this > option the connection > takes place after ZServer is up on it's port, that the significant > difference. > > Sometimes there is a time delay of a few minutes after zope is up before the > connection > is made (the mounted storage is about 6GB ;-)). I can't except these delay > so i packed this into the initialization part (before zope is up) with the > option "open_at_startup". > > So back to my first question, where ist that option gone in Zope-2.7.3? > > any ideas? Zope 2.7 binds the server ports much earlier in the startup process than it used to. The current version of the option is the 'wait' key of the 'zeo-client' section of zope.conf; it causes the database / storage intialization to block while establishing the connection and verifying the cache, but the intialization itself starts *after* binding the server ports. A minutes-long startup is likely due to the client's need to verify a large persistent disk cache; one workaround would be to turn off persistent caches; a longer-term solution would be to work with the folks on zodb-dev to land a set of improvements to the cache verification code (they live on a branch somewhere, I think). Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From tim.peters at gmail.com Wed Jan 12 11:35:55 2005 From: tim.peters at gmail.com (Tim Peters) Date: Wed Jan 12 11:35:57 2005 Subject: [Zope] Re: ZEO-Client In-Reply-To: <41E543BA.8080204@zope.com> References: <41E543BA.8080204@zope.com> Message-ID: <1f7befae050112083558b86e5d@mail.gmail.com> [Tres Seaver] > ... > A minutes-long startup is likely due to the client's need to verify a > large persistent disk cache; one workaround would be to turn off > persistent caches; a longer-term solution would be to work with the > folks on zodb-dev to land a set of improvements to the cache > verification code (they live on a branch somewhere, I think). All the cache verification speedups we had were released in ZODB 3.2 (see primarily "What's new in ZODB3 3.2 alpha 1" in http://zope.org/Products/ZODB3.2/NEWS ). There aren't any more of those hiding on a branch. There are other kinds of optimizations hiding in assorted branches, though. Having a "large" persistent ZEO cache has opposing effects: (a) possibly better steady-state performance; (b) guaranteed longer cold-start verification time. That tradeoff is unavoidable with the current design. A possible future direction may be to use much larger ZEO caches, but to weaken the meaning of "persistent" by simply giving up after verification has consumed N seconds (throwing away all cached objects that haven't managed to get verified by then). There's no code anywhere to do that now, though. From s.morris at bangor.ac.uk Wed Jan 12 11:56:33 2005 From: s.morris at bangor.ac.uk (Sion Morris) Date: Wed Jan 12 12:10:42 2005 Subject: [Zope] changing the LDAP server address of an LDAPUserFolder Message-ID: A question about changing the LDAP server address of an LDAPUserFolder: The address of our LDAP server has changed from ldap.mydomain.com to ldap3.mydomain.com. To accommodate the changes I tried the following: Adding ldap3.mydomain.com LDAP Server under the configure tab and then deleting the previous ldap.mydomain.com nearly works except users with locally stored roles no longer can access the site. Is it possible to change the LDAP server setting and retain the users with locally stored roles? Or do I need to make a record of the users with locally stored roles and add them again? Zope 2.7.2 Python 2.3.4 LDAPUserFolder 2.4 Regards, Sion From jens at dataflake.org Wed Jan 12 12:15:55 2005 From: jens at dataflake.org (Jens Vagelpohl) Date: Wed Jan 12 12:16:01 2005 Subject: [Zope] changing the LDAP server address of an LDAPUserFolder In-Reply-To: References: Message-ID: <9EB2D288-64BD-11D9-A272-000D9368D272@dataflake.org> On Jan 12, 2005, at 17:56, Sion Morris wrote: > A question about changing the LDAP server address of an LDAPUserFolder: > > The address of our LDAP server has changed from ldap.mydomain.com to > ldap3.mydomain.com. > > To accommodate the changes I tried the following: > Adding ldap3.mydomain.com LDAP Server under the configure tab and then > deleting the previous ldap.mydomain.com nearly works except users with > locally stored roles no longer can access the site. > > Is it possible to change the LDAP server setting and retain the users > with > locally stored roles? Or do I need to make a record of the users with > locally stored roles and add them again? There is nothing in the internal groups storage that keys off the server where the records came from. The association is made by the user's DN. Has the DN changed? jens --------------- Jens Vagelpohl jens@zetwork.com Software Engineer +49-(0)441-36 18 14 38 Zetwork GmbH http://www.zetwork.com/ From klegere at kfpl.ca Wed Jan 12 13:17:00 2005 From: klegere at kfpl.ca (Kate Legere) Date: Wed Jan 12 13:17:03 2005 Subject: [Zope] uploading a file via an external method Message-ID: <20050112131634.SM01144@CETSKL> I've used this to upload files to a specific directory, not to Zope (or as an Zope object). The problem is that it's looking in the folder for the files and I'd like it to upload from a chosen directory (or my desktop) in the same way as manage_addFile does. Kate external method called upload_external: import os, shutil def upload_external(self,file,REQUEST): #check if file was sent correctly if file.read(1) == '': return '

File does not exist

' else: file.seek(0) iname=os.path.basename(file.filename) oname=os.path.join(self.savedir,iname) f=open(oname,"wb") f.write(file.read()) # let's get the mime information mime_type=file.headers.headers[1] user=str(REQUEST.AUTHENTICATED_USER) try: self.add_entry(path=self.savedir,filename=iname,owner=user) except: os.remove(oname) return '

File upload not completed correctly

' return '''

%s was sent correctly, and saved in %s

The Mime Type of the file is

%s

Saved by

%s''' % (iname,oname,mime_type,user) The self.savedir is a property set in the folder which contains the external method and tells the external method where to put the file. The self.add_entry is an update on a database to keep track of the files uploaded, etc. ---------- upload_html:
File

From flujan at mandic.com.br Wed Jan 12 14:03:30 2005 From: flujan at mandic.com.br (Fernando Lujan) Date: Wed Jan 12 14:04:11 2005 Subject: [Zope] Zope Bible. Message-ID: <41E57482.4010105@mandic.com.br> Hi, Does this book worth a try? Thanks. Fernando Lujan From cyrj at cyr.info Wed Jan 12 14:22:22 2005 From: cyrj at cyr.info (Jonathan Cyr) Date: Wed Jan 12 14:22:37 2005 Subject: [Zope] Zope Bible. In-Reply-To: <41E57482.4010105@mandic.com.br> References: <41E57482.4010105@mandic.com.br> Message-ID: <41E578EE.6090307@cyr.info> One of the better ones, but centered on version 2.6.x, getting old. -Jon Cyr Fernando Lujan wrote: > Hi, > > Does this book worth a try? > > Thanks. > > Fernando Lujan > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.zope.org/pipermail/zope/attachments/20050112/eb01d1f5/attachment.htm From alangmead at boston.com Wed Jan 12 15:41:32 2005 From: alangmead at boston.com (Andrew Langmead) Date: Wed Jan 12 15:41:47 2005 Subject: [Zope] Zope Bible. In-Reply-To: <41E57482.4010105@mandic.com.br> References: <41E57482.4010105@mandic.com.br> Message-ID: <5803A546-64DA-11D9-8AA7-0030655A17B4@boston.com> On Jan 12, 2005, at 2:03 PM, Fernando Lujan wrote: > Does this book worth a try? The book is interesting because its focus is different than many other Zope books. It presents a style of Zope development that revolves around building Zope Products, and somewhat de-emphasizes Page Templates, Python Scripts and External Methods. It might be worth a try if you want to investigate extending Zope with custom Products. I don't know of any other books that handle Zope Product development as extensively. Does anyone know of others that I could recommend? From jeffrey.rodriguez at gmail.com Wed Jan 12 16:02:35 2005 From: jeffrey.rodriguez at gmail.com (Jeff Rodriguez) Date: Wed Jan 12 16:02:41 2005 Subject: [Zope] Locking objects Message-ID: <753ca72f05011213022fff920d@mail.gmail.com> I need to lock an object to perform thread/ZEO safe operation on one of it's attributes. How can I go about doing this? -- Jeffrey Alan Rodriguez Jeffrey.Rodriguez@gmail.com From lists at andreas-jung.com Thu Jan 13 00:02:24 2005 From: lists at andreas-jung.com (Andreas Jung) Date: Thu Jan 13 00:02:36 2005 Subject: [Zope] Locking objects In-Reply-To: <753ca72f05011213022fff920d@mail.gmail.com> References: <753ca72f05011213022fff920d@mail.gmail.com> Message-ID: --On Mittwoch, 12. Januar 2005 14:02 Uhr -0700 Jeff Rodriguez wrote: > I need to lock an object to perform thread/ZEO safe operation on one > of it's attributes. How can I go about doing this? > Please describe the scenario where you need that. -aj From maxm at mxm.dk Thu Jan 13 06:40:47 2005 From: maxm at mxm.dk (Max M) Date: Thu Jan 13 06:39:57 2005 Subject: [Zope] [ANN] mxm Proxy Tool 1.0 Message-ID: mxm Proxy Tool The mxmProxyTool is a Zope tool that fetches content from an external web source. The content can then be inserted in a page template or dtml page on your own site. Generally speaking, it makes it possible to browse another website, inside the look and feel of your own. It is thought of as a quick and dirty way to integrate external websites with a Zope site. More info here: http://www.mxm.dk/products/public/mxmProxyTool/ -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science From jp at warpix.org Thu Jan 13 07:10:15 2005 From: jp at warpix.org (John Poltorak) Date: Thu Jan 13 07:11:30 2005 Subject: [Zope] Zope site missing Message-ID: <20050113121014.O18360@warpix.org> I was working on a Plone site a week or two ago, but after restarting Zope it is no longer there. Is there any way to tell what has happened? Is there any way I can report on the contents of Data.fs? It hasn't been touched since I last updated it. -- John From tseaver at zope.com Thu Jan 13 08:11:18 2005 From: tseaver at zope.com (Tres Seaver) Date: Thu Jan 13 08:23:01 2005 Subject: [Zope] Re: Zope site missing In-Reply-To: <20050113121014.O18360@warpix.org> References: <20050113121014.O18360@warpix.org> Message-ID: <41E67376.1050001@zope.com> John Poltorak wrote: > I was working on a Plone site a week or two ago, but after restarting Zope > it is no longer there. > > Is there any way to tell what has happened? > > Is there any way I can report on the contents of Data.fs? It hasn't been > touched since I last updated it. You can look at the "Undo" tab of the folder (or the root) which formerly contained the site object: it might show the 'manage_delObjects' call which removed the site, and allow you to undo that transaction (you may have to undo all subsequent transactions, as well). Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From tseaver at zope.com Thu Jan 13 08:15:33 2005 From: tseaver at zope.com (Tres Seaver) Date: Thu Jan 13 09:03:09 2005 Subject: [Zope] Re: Locking objects In-Reply-To: <753ca72f05011213022fff920d@mail.gmail.com> References: <753ca72f05011213022fff920d@mail.gmail.com> Message-ID: <41E67475.4010708@zope.com> Jeff Rodriguez wrote: > I need to lock an object to perform thread/ZEO safe operation on one > of it's attributes. How can I go about doing this? The transaction / concurrency machinery of the ZODB makes such precautions normally unnecessary for persistent objects. Are you needing to protect a non-persistent object, e.g. a module-level global data structure? If so, Python's 'threading' module (or the lower-level 'thread' module) is your friend. See $ZOPE/lib/python/Products/StandardCacheManagers/RAMCacheManager.py for an example of such usage. Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From Bert_De_Ridder at peopleware.be Thu Jan 13 10:43:52 2005 From: Bert_De_Ridder at peopleware.be (Bert_De_Ridder@peopleware.be) Date: Thu Jan 13 10:43:56 2005 Subject: [Zope] Apache configuration In-Reply-To: <000401c4e178$013fcca0$647ba8c0@jhdesktop> Message-ID: I'm using Apache as a frontend to zope/plone. Is it possible to configure Apache as follows : www.domain.ext should all go to the filesystem (static html files) except www.domain.ext/plone should be handled by mod_rewrite ( RewriteRule ^/(.*) http://localhost:7777/VirtualHostBase/http/www.domain.ext:80/VirtualHostRoot/$1 [L,P] ) Any help appreciated. Kind Regards Bert De Ridder PeopleWare NV - Head Office Cdt.Weynsstraat 85 B-2660 Hoboken Tel: +32 3 448.33.38 Fax: +32 3 448.32.66 PeopleWare NV - Branch Office Geel Kleinhoefstraat 5 B-2440 Geel Tel: +32 14 57.00.90 Fax: +32 14 58.13.25 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.zope.org/pipermail/zope/attachments/20050113/d32e6cb7/attachment.htm From jens at dataflake.org Thu Jan 13 10:56:50 2005 From: jens at dataflake.org (Jens Vagelpohl) Date: Thu Jan 13 10:56:56 2005 Subject: [Zope] Apache configuration In-Reply-To: References: Message-ID: On Jan 13, 2005, at 16:43, Bert_De_Ridder@peopleware.be wrote: > > I'm using Apache as a frontend to zope/plone. > > Is it possible to configure Apache as follows : > > www.domain.ext ?should all go to the filesystem (static html files) > except www.domain.ext/plone should be handled by mod_rewrite > ? ( RewriteRule ^/(.*) > http://localhost:7777/VirtualHostBase/http/www.domain.ext:80/ > VirtualHostRoot/$1 [L,P] ) Yes, and if you read the excellent documentation for Apache (because this question has nothing to do with Zope) at www.apache.org you can find out how. jens From Pperegrina at Lastminute.com Thu Jan 13 11:00:06 2005 From: Pperegrina at Lastminute.com (Pascal Peregrina) Date: Thu Jan 13 11:00:42 2005 Subject: [Zope] Undo problem Message-ID: Hi, I have made 2 Zope products. One of them is a content object that extends PropertyManager. The : + _update_property + _set_property + _del_property methods have been redefined to add a call to my 2nd product, in order to notify it about the changes. --- code excerpt --- def _del_property(self,id): try: getToolByName(self,'change_tracker').manage_addChange() except: pass ----- I created an object A of this type. The 2nd product is a tool with a simple PersistentMapping() that store these changes information. --- code excerpt --- def manage_addChange(self,): ... self._changes[]= # self._changes is the PersistentMapping self._changes=self._changes #to be sure PersistentMapping is updated in ZODB ... ----- I created an object B of this type. When I modify properties on A, I get the information added to B. So I thought eveything was working fine. Unfortunately, when I undo a change on A (using undo tab in ZMI), information is not removed from B. Can someone tell me what I did wrong ? Thanks a lot. Pascal ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** From Bert_De_Ridder at peopleware.be Thu Jan 13 11:02:32 2005 From: Bert_De_Ridder at peopleware.be (Bert_De_Ridder@peopleware.be) Date: Thu Jan 13 11:02:34 2005 Subject: [Zope] Apache configuration In-Reply-To: Message-ID: Yes, I know it should be somewhere in the manuals, but call me lazy; I was just hoping someone in this list could give me a pointer to the right direction. Kind Regards Bert De Ridder PeopleWare NV - Head Office Cdt.Weynsstraat 85 B-2660 Hoboken Tel: +32 3 448.33.38 Fax: +32 3 448.32.66 PeopleWare NV - Branch Office Geel Kleinhoefstraat 5 B-2440 Geel Tel: +32 14 57.00.90 Fax: +32 14 58.13.25 Jens Vagelpohl Sent by: zope-bounces@zope.org 13/01/2005 16:56 To Zope Mailing List cc Subject Re: [Zope] Apache configuration On Jan 13, 2005, at 16:43, Bert_De_Ridder@peopleware.be wrote: > > I'm using Apache as a frontend to zope/plone. > > Is it possible to configure Apache as follows : > > www.domain.ext should all go to the filesystem (static html files) > except www.domain.ext/plone should be handled by mod_rewrite > ( RewriteRule ^/(.*) > http://localhost:7777/VirtualHostBase/http/www.domain.ext:80/ > VirtualHostRoot/$1 [L,P] ) Yes, and if you read the excellent documentation for Apache (because this question has nothing to do with Zope) at www.apache.org you can find out how. jens _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.zope.org/pipermail/zope/attachments/20050113/f56bd487/attachment.htm From maxm at mxm.dk Thu Jan 13 11:08:48 2005 From: maxm at mxm.dk (Max M) Date: Thu Jan 13 11:08:14 2005 Subject: [Zope] Re: Apache configuration In-Reply-To: References: <000401c4e178$013fcca0$647ba8c0@jhdesktop> Message-ID: Bert_De_Ridder@peopleware.be wrote: > I'm using Apache as a frontend to zope/plone. > > Is it possible to configure Apache as follows : > > www.domain.ext should all go to the filesystem (static html files) > except www.domain.ext/plone should be handled by mod_rewrite > ( RewriteRule ^/(.*) > http://localhost:7777/VirtualHostBase/http/www.domain.ext:80/VirtualHostRoot/$1 > [L,P] ) This should work (untested naturally): RewriteRule ^/plone(.*) http://localhost:7777/VirtualHostBase/http/www.domain.ext:80/VirtualHostRoot/_vh_plone/$1 [L,P] But if your plone site is in a folder called plone, you should use: RewriteRule ^/plone(.*) http://localhost:7777/VirtualHostBase/http/www.domain.ext:80/plone/VirtualHostRoot/_vh_plone/$1 [L,P] -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science From zope-list at mcvfifesanddrums.org Thu Jan 13 11:31:48 2005 From: zope-list at mcvfifesanddrums.org (zope-list@mcvfifesanddrums.org) Date: Thu Jan 13 11:31:53 2005 Subject: [Zope] Mailman integration with Zope Message-ID: I asked this on the Mailman list, but got nothing but crickets (come to think of it, maybe I should have asked on the developer's list....) Is there any ongoing, current work on integrating Mailman with Zope? I read something somewhere that said there was such a project, but I can't find any recent work or activity. I currently use Mailman for my mailing lists and am embarking on rebuilding a Zope/Plone based site. Integrating it with Mailman would be ideal. Thanks in advance, Jeff D ---- Jeff Donsbach Webmaster (and bass drummer) Middlesex County Volunteers Fifes and Drums http://www.mcvfifesanddrums.org/ From plattem at inetnebr.com Thu Jan 13 12:01:16 2005 From: plattem at inetnebr.com (Matt Platte) Date: Thu Jan 13 12:01:19 2005 Subject: [Zope] Apache configuration In-Reply-To: References: Message-ID: <1105635677.4087.7.camel@localhost.localdomain> On Thu, 2005-01-13 at 16:43 +0100, Bert_De_Ridder@peopleware.be wrote: > > I'm using Apache as a frontend to zope/plone. > > Is it possible to configure Apache as follows : > > www.domain.ext should all go to the filesystem (static html files) > except www.domain.ext/plone should be handled by mod_rewrite > ( RewriteRule ^/(.*) > http://localhost:7777/VirtualHostBase/http/www.domain.ext:80/VirtualHostRoot/$1 [L,P] ) > I use a setup like this: RewriteRule ^/plone(.*) Localhost:7777/VirtualHostBase/http/www.domain.ext:80/VirtualHostRoot/$1[L,P] RewriteRule ^/(.*) /usr/local/www/static.html.location$1 [L] -- -------^.^-- Matthew Platte Lincoln Nebraska From larrysilverman at yahoo.com Thu Jan 13 13:17:02 2005 From: larrysilverman at yahoo.com (Larry Silverman) Date: Thu Jan 13 13:17:13 2005 Subject: [Zope] Apache configuration In-Reply-To: <1105635677.4087.7.camel@localhost.localdomain> Message-ID: <20050113181712.1389B2032D5@mail.zope.org> My apache config required the use of the SiteRoot component. I have an apache web server w/SSL that I use for several things, and the zope/plone site is available under https://hostname/plone Using the Zope manage app, under my 'plone' site, I added a SiteRoot component, and set its path to /plone. In httpd.conf in the 443 virtual host area, I have: RewriteEngine on RewriteRule ^/plone(.*) http://localhost:8080/plone/VirtualHostBase/https/hostname:443/plone/Virtual HostRoot/$1 [P] If you don't need SSL, this would be: RewriteEngine on RewriteRule ^/plone(.*) http://localhost:8080/plone/VirtualHostBase/http/hostname:80/plone/VirtualHo stRoot/$1 [P] (note the two changes, https->http and 443->80) Before I added the use of the SiteRoot, I could get the page, but all the links inside the page were pointing to https://hostname and not https://hostname/plone, and all images, stylesheets, etc were broken. The SiteRoot component rewrites all the links in the page, so that stylesheets, images, etc. all show properly. FYI, in case it helps, I use apache 2.0, Zope 2.7.3 and Plone 2.0.5. Good luck, Larry From mgagnon1 at gmu.edu Thu Jan 13 15:48:54 2005 From: mgagnon1 at gmu.edu (mgagnon1@gmu.edu) Date: Thu Jan 13 15:48:59 2005 Subject: [Zope] create user from script Message-ID: <9f4c479f40fb.9f40fb9f4c47@gmu.edu> Is it possible to create / edit objects from within a python script? What I really want to do is have a form which will allow users to create new users. Thanks! -- Mike G From allison at sumeru.stanford.EDU Thu Jan 13 16:05:24 2005 From: allison at sumeru.stanford.EDU (Dennis Allison) Date: Thu Jan 13 16:05:32 2005 Subject: [Zope] create user from script In-Reply-To: <9f4c479f40fb.9f40fb9f4c47@gmu.edu> Message-ID: Yes. But what you want is much simpler. To implement it, create a form to capture the new user's name, then, as the action for that form, use the API (see the Appendices of The Zope Book and/or the code) to add a new user. The critical thing will be something like acl = container.restrictedTraverse( <> ) acl.AddUser( name, password, roles, domains ) Not all user folders support adding users dynamically, but if you are using the default, it does. See the code for UserFolder to learn what the defauts are for roles and domains. On Thu, 13 Jan 2005 mgagnon1@gmu.edu wrote: > Is it possible to create / edit objects from within a python script? What I really want to do is have a form which will allow users to create new users. Thanks! > > -- Mike G > > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) > From dieter at handshake.de Thu Jan 13 16:17:31 2005 From: dieter at handshake.de (Dieter Maurer) Date: Thu Jan 13 16:33:46 2005 Subject: [Zope] TM and commit/abort regarding RDBMS In-Reply-To: <41E4F648.7090403@icube.it> References: <41E4F648.7090403@icube.it> Message-ID: <16870.58731.742134.375399@gargle.gargle.HOWL> Marco Bizzarri wrote at 2005-1-12 11:04 +0100: > ... >My next question is where I could find more information about the >protocol used by Zope/ZODB with TM-aware classes. I think it is a two >phase commit, but, in this case, I've some doubt. Transactions are part of the ZODB and are documented in the ZODB3 documentation (you can find an HTML and a PDF version on "zope.org"). -- Dieter From dieter at handshake.de Thu Jan 13 15:39:32 2005 From: dieter at handshake.de (Dieter Maurer) Date: Thu Jan 13 16:33:50 2005 Subject: [Zope] Copy of open-box product In-Reply-To: <41E03A67.40400@web.vi> References: <41E03A67.40400@web.vi> Message-ID: <16870.56452.141677.116502@gargle.gargle.HOWL> Vital Lobachevsky wrote at 2005-1-8 21:54 +0200: >Is it possible to create a copy of open-box product in >/Control_Panel/Products? It fails with error: > >Error Type: Duplicate Class Ids >Error Value: None It is provided the product does not contain ZClasses. The code for a ZClass is made available via a pseudo module whose name is derived for the ZClass's class id. Therefore, there can be no two ZClasses with the same class id. -- Dieter From dieter at handshake.de Thu Jan 13 16:05:43 2005 From: dieter at handshake.de (Dieter Maurer) Date: Thu Jan 13 16:34:12 2005 Subject: [Zope] Zope xmlrpc crashes without traceback In-Reply-To: <41E3F1BF.70501@gims.com> References: <41E3F1BF.70501@gims.com> Message-ID: <16870.58023.503202.767525@gargle.gargle.HOWL> Herman Geldenhhuys wrote at 2005-1-11 15:33 +0000: >We are using a javascript xmlrpc(VCXMLRPC.js) library to essentially >communicate with zope to retreive and display records in a browser. >After a while, Zope just crashes without warning or any traceback of >what caused the problem. It completely dies. Would you use a Unix flavour, I could tell you how you can get some information. But, I know little about Windows... Apparently, your Zope crashed. This usually happens in an C extension (memory corruption, bad pointer, range overflow, ...). Under Unix, I would attach Zope with a debugger and the debugger would get activated when the fatal event occurs. Maybe, Windows, too lets you run Zope in a C level debugger that gets control in case of fatal events ? -- Dieter From dieter at handshake.de Thu Jan 13 16:22:17 2005 From: dieter at handshake.de (Dieter Maurer) Date: Thu Jan 13 16:34:15 2005 Subject: [Bug] TemporaryStorage memory leak (was: RE: [Zope] Zope 2.7.3 Memory Leaks) In-Reply-To: <4f34febc05011207292cc8e49c@mail.gmail.com> References: <93ED2D3FFABD164684F73914CF2A4D68013EE958@exchange.nnu.com> <16863.386.371616.301643@gargle.gargle.HOWL> <4f34febc05011207292cc8e49c@mail.gmail.com> Message-ID: <16870.59017.818082.694528@gargle.gargle.HOWL> John Barham wrote at 2005-1-13 00:29 +0900: > ... >I ran the script on Linux against both Zope 2.7.0 and 2.7.3 and >according to top only some 21 MB of RAM was used up. (I ran >"bin/zopectl run tempstorebug.py" in the instance home.) We have a >similar problem w/ Zope leaking memory and our application uses >sessions a fair bit, so better ways to confirm that this patch fixes >the problem would be appreciated. Andy Yates reported that applying the patch removed his problem... If this is not enough to convince you, you might add an additional persistent object between the session and the string. I made the test with our own Transience implementation. I introduces such an intermediate persistent object (holding the timestamp for the session). Maybe, the standard "Transience" does not... -- Dieter From dieter at handshake.de Thu Jan 13 16:33:32 2005 From: dieter at handshake.de (Dieter Maurer) Date: Thu Jan 13 16:34:20 2005 Subject: [Zope] Undo problem In-Reply-To: References: Message-ID: <16870.59692.367155.831410@gargle.gargle.HOWL> Pascal Peregrina wrote at 2005-1-13 17:00 +0100: > ... 2 objects A and B modified in same transaction ... >Unfortunately, when I undo a change on A (using undo tab in ZMI), >information is not removed from B. > >Can someone tell me what I did wrong ? When the change to A and B happens in the same transaction, then the undo must revert both changes. If it does not, you hit a bug. Note that in older Zope versions, invalidation messages were not sent correctly for "undo" (from ZEO). This was fixed with ZODB 3.2. -- Dieter From dieter at handshake.de Thu Jan 13 15:41:20 2005 From: dieter at handshake.de (Dieter Maurer) Date: Thu Jan 13 16:34:26 2005 Subject: [Zope] Copy of open-box product In-Reply-To: <1105221445.4014.43.camel@Andrea.peacock.de> References: <41E03A67.40400@web.vi> <0AF767BDA3BB59E14C0C630F@[192.168.0.102]> <41E03D45.9080208@web.vi> <41E040D8.60008@web.vi> <4D4B7372388ECB1949027F1F@[192.168.0.102]> <41E045DD.9030905@web.vi> <1105221445.4014.43.camel@Andrea.peacock.de> Message-ID: <16870.56560.714043.655736@gargle.gargle.HOWL> Tino Wildenhain wrote at 2005-1-8 22:57 +0100: > ... >Well, this does not make much sense, the ZClass id is the class >name it represents. Its a bit tricky anyway and most people >will tell you not touch zclasses at all. >Why dont you derive from the class? This is after all, what >OOP is all about... Be careful! There is a known bug when a ZClass inherits from a ZClass defined in a different product. Everything works fine as long as you do not export/import the product. When you do, the inheritance gets broken. -- Dieter From dieter at handshake.de Thu Jan 13 16:01:58 2005 From: dieter at handshake.de (Dieter Maurer) Date: Thu Jan 13 16:34:30 2005 Subject: [Zope] ZSQL and python script performance In-Reply-To: References: Message-ID: <16870.57798.264375.133027@gargle.gargle.HOWL> Sion Morris wrote at 2005-1-10 17:13 +0000: >In an attempt to speed up an application I came across a bottle neck with >Python Scripts in Zope. > >Using apache's 'ab' utility I tested a simple query (sql_course_components) >directly with the following URL: > >ab -n 20 -c 4 >'http://myserver/portal_skins/acs/sql_course_components/manage_test?gcom_id= >19030&term_code=200405&SUBMIT=Submit+Query' > >----- Requests per second: 23.22 [#/sec] (mean) > > >Using a Python Script (ptest) to return the result from the query is much >slower: > >return context.sql_course_components(gcom_id=19030, term_code=200405) > >ab -n 20 -c 4 'http://myserver/portal_skins/acs/ptest' > >----- Requests per second: 2.59 [#/sec] (mean) Note, that what you do in the two cases is not the same! In the first case, you pass strings as arguments and get back a string. In the second case, you pass integers as arguments and get back an object (a "Shared.DC.ZRDB.Results.Results" instance). This must be converted to a string by the response object. While it is surprising that the first case seems to be about an order of magnitude faster, it might be explained (not sure!) that the queries are different or the string conversion is different. I recommend to use a profiler to analyse precisely where the time is used. A candidate would be ZopeProfiler: -- Dieter From Pperegrina at Lastminute.com Thu Jan 13 17:05:45 2005 From: Pperegrina at Lastminute.com (Pascal Peregrina) Date: Thu Jan 13 17:06:27 2005 Subject: [Zope] Undo problem Message-ID: Ok, I am using Zope 2.7.3, which includes ZODB 3.2.4 In the code below, I am not doing any transaction handling by myself. When I modify A properties, the call to the B method (that modifies B PersistentMapping) is made from the method of A that actually modidies A pesistent data. So why wouldn't A and B object changes be part of the same transaction ? Is there any explicit code to make sure to remain in a single transaction ? Thanks. Pascal -----Message d'origine----- De : Dieter Maurer [mailto:dieter@handshake.de] Envoy? : jeudi 13 janvier 2005 22:34 ? : Pascal Peregrina Cc : 'zope@zope.org' Objet : Re: [Zope] Undo problem Pascal Peregrina wrote at 2005-1-13 17:00 +0100: > ... 2 objects A and B modified in same transaction ... >Unfortunately, when I undo a change on A (using undo tab in ZMI), >information is not removed from B. > >Can someone tell me what I did wrong ? When the change to A and B happens in the same transaction, then the undo must revert both changes. If it does not, you hit a bug. Note that in older Zope versions, invalidation messages were not sent correctly for "undo" (from ZEO). This was fixed with ZODB 3.2. -- Dieter -----Message d'origine----- De : zope-bounces@zope.org [mailto:zope-bounces@zope.org]De la part de Pascal Peregrina Envoy? : jeudi 13 janvier 2005 17:00 ? : 'zope@zope.org' Objet : [Zope] Undo problem Hi, I have made 2 Zope products. One of them is a content object that extends PropertyManager. The : + _update_property + _set_property + _del_property methods have been redefined to add a call to my 2nd product, in order to notify it about the changes. --- code excerpt --- def _del_property(self,id): try: getToolByName(self,'change_tracker').manage_addChange() except: pass ----- I created an object A of this type. The 2nd product is a tool with a simple PersistentMapping() that store these changes information. --- code excerpt --- def manage_addChange(self,): ... self._changes[]= # self._changes is the PersistentMapping self._changes=self._changes #to be sure PersistentMapping is updated in ZODB ... ----- I created an object B of this type. When I modify properties on A, I get the information added to B. So I thought eveything was working fine. Unfortunately, when I undo a change on A (using undo tab in ZMI), information is not removed from B. Can someone tell me what I did wrong ? Thanks a lot. Pascal ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** From Pperegrina at Lastminute.com Thu Jan 13 17:09:38 2005 From: Pperegrina at Lastminute.com (Pascal Peregrina) Date: Thu Jan 13 17:10:19 2005 Subject: [Zope] Undo problem Message-ID: One last thing I noticed : Although when displaying B PersistentMapping content I can see A changes, the undo tab of B says there is nothing to undo (while the undo tab of A says I can undo whatever property change I did to it). B class is declared as extending : UniqueObject, SimpleItem, Persistent Pascal -----Message d'origine----- De : Pascal Peregrina Envoy? : jeudi 13 janvier 2005 23:06 ? : 'dieter@handshake.de' Cc : 'zope@zope.org' Objet : RE: [Zope] Undo problem Ok, I am using Zope 2.7.3, which includes ZODB 3.2.4 In the code below, I am not doing any transaction handling by myself. When I modify A properties, the call to the B method (that modifies B PersistentMapping) is made from the method of A that actually modidies A pesistent data. So why wouldn't A and B object changes be part of the same transaction ? Is there any explicit code to make sure to remain in a single transaction ? Thanks. Pascal -----Message d'origine----- De : Dieter Maurer [mailto:dieter@handshake.de] Envoy? : jeudi 13 janvier 2005 22:34 ? : Pascal Peregrina Cc : 'zope@zope.org' Objet : Re: [Zope] Undo problem Pascal Peregrina wrote at 2005-1-13 17:00 +0100: > ... 2 objects A and B modified in same transaction ... >Unfortunately, when I undo a change on A (using undo tab in ZMI), >information is not removed from B. > >Can someone tell me what I did wrong ? When the change to A and B happens in the same transaction, then the undo must revert both changes. If it does not, you hit a bug. Note that in older Zope versions, invalidation messages were not sent correctly for "undo" (from ZEO). This was fixed with ZODB 3.2. -- Dieter -----Message d'origine----- De : zope-bounces@zope.org [mailto:zope-bounces@zope.org]De la part de Pascal Peregrina Envoy? : jeudi 13 janvier 2005 17:00 ? : 'zope@zope.org' Objet : [Zope] Undo problem Hi, I have made 2 Zope products. One of them is a content object that extends PropertyManager. The : + _update_property + _set_property + _del_property methods have been redefined to add a call to my 2nd product, in order to notify it about the changes. --- code excerpt --- def _del_property(self,id): try: getToolByName(self,'change_tracker').manage_addChange() except: pass ----- I created an object A of this type. The 2nd product is a tool with a simple PersistentMapping() that store these changes information. --- code excerpt --- def manage_addChange(self,): ... self._changes[]= # self._changes is the PersistentMapping self._changes=self._changes #to be sure PersistentMapping is updated in ZODB ... ----- I created an object B of this type. When I modify properties on A, I get the information added to B. So I thought eveything was working fine. Unfortunately, when I undo a change on A (using undo tab in ZMI), information is not removed from B. Can someone tell me what I did wrong ? Thanks a lot. Pascal ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** From zope at net.vodafone.pt Thu Jan 13 18:56:09 2005 From: zope at net.vodafone.pt (Zorze) Date: Thu Jan 13 18:53:56 2005 Subject: [Zope] Format date fields Message-ID: <41E70A99.70800@net.vodafone.pt> Hi, I'am new to Zope so please excuse me about some stupid questions. How can I format a date field from in a DTML from ZSQL Method e.i.: It shows 2005-01-12 22:49:33:00 but I want to show just 2005-01-12 or change de order of the date :01-12-2005. Thank you for your help. Regards, Zorze From akm at theinternet.com.au Thu Jan 13 19:00:00 2005 From: akm at theinternet.com.au (Andrew Milton) Date: Thu Jan 13 19:00:17 2005 Subject: [Zope] Format date fields In-Reply-To: <41E70A99.70800@net.vodafone.pt> References: <41E70A99.70800@net.vodafone.pt> Message-ID: <20050114000000.GW98558@camelot.theinternet.com.au> +-------[ Zorze ]---------------------- | Hi, | I'am new to Zope so please excuse me about some stupid questions. | | How can I format a date field from in a DTML from ZSQL Method e.i.: | | It shows 2005-01-12 22:49:33:00 | | but I want to show just 2005-01-12 Try these; or (same as above, just shorter). | or change de order of the date | :01-12-2005. -- Andrew Milton akm@theinternet.com.au From zope at net.vodafone.pt Thu Jan 13 19:18:00 2005 From: zope at net.vodafone.pt (Zorze) Date: Thu Jan 13 19:15:46 2005 Subject: [Zope] Format date fields In-Reply-To: <20050114000000.GW98558@camelot.theinternet.com.au> References: <41E70A99.70800@net.vodafone.pt> <20050114000000.GW98558@camelot.theinternet.com.au> Message-ID: <41E70FB8.4000306@net.vodafone.pt> An HTML attachment was scrubbed... URL: http://mail.zope.org/pipermail/zope/attachments/20050114/5eacf672/attachment.htm From peter.millar at parasyn.com.au Thu Jan 13 19:17:23 2005 From: peter.millar at parasyn.com.au (Peter Millar) Date: Thu Jan 13 19:17:32 2005 Subject: [Zope] Format date fields In-Reply-To: <41E70A99.70800@net.vodafone.pt> Message-ID: <009901c4f9ce$6b9b5e20$0904000a@corp.parasyn.com.au> This question has been asked gazillions of times before. If you search the mailing list you can find the answer. If you search google using the key words 'zope format date' you will notice in the results a link to zopelabs. They have this great little cookbook http://www.zopelabs.com/cookbook/990690237 (dtml version) http://www.zopelabs.com/cookbook/1071006893 (zpt version) I have this in the root of my development site so that I can refer to it all the time. HTH ____________________________________________ Peter Millar -----Original Message----- From: zope-bounces@zope.org [mailto:zope-bounces@zope.org] On Behalf Of Zorze Sent: Friday, 14 January 2005 09:56 To: zope@zope.org Subject: [Zope] Format date fields Hi, I'am new to Zope so please excuse me about some stupid questions. How can I format a date field from in a DTML from ZSQL Method e.i.: It shows 2005-01-12 22:49:33:00 but I want to show just 2005-01-12 or change de order of the date :01-12-2005. Thank you for your help. Regards, Zorze _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) From akm at theinternet.com.au Thu Jan 13 19:17:51 2005 From: akm at theinternet.com.au (Andrew Milton) Date: Thu Jan 13 19:18:02 2005 Subject: [Zope] Format date fields In-Reply-To: <41E70FB8.4000306@net.vodafone.pt> References: <41E70A99.70800@net.vodafone.pt> <20050114000000.GW98558@camelot.theinternet.com.au> <41E70FB8.4000306@net.vodafone.pt> Message-ID: <20050114001751.GY98558@camelot.theinternet.com.au> +-------[ Zorze ]---------------------- | Thank you Andrew. :-) | | But it give me another an error :-( | | Error Value: You are not allowed to access strftime in this context hrm. What DB are you using? -- Andrew Milton akm@theinternet.com.au From zope at net.vodafone.pt Thu Jan 13 19:21:32 2005 From: zope at net.vodafone.pt (Zorze) Date: Thu Jan 13 19:19:18 2005 Subject: [Zope] Format date fields In-Reply-To: <20050114001751.GY98558@camelot.theinternet.com.au> References: <41E70A99.70800@net.vodafone.pt> <20050114000000.GW98558@camelot.theinternet.com.au> <41E70FB8.4000306@net.vodafone.pt> <20050114001751.GY98558@camelot.theinternet.com.au> Message-ID: <41E7108C.7080500@net.vodafone.pt> Andrew Milton wrote: >+-------[ Zorze ]---------------------- >| Thank you Andrew. :-) >| >| But it give me another an error :-( >| >| Error Value: You are not allowed to access strftime in this context > >hrm. > >What DB are you using? > > > Firebird From peter.millar at parasyn.com.au Thu Jan 13 19:19:26 2005 From: peter.millar at parasyn.com.au (Peter Millar) Date: Thu Jan 13 19:19:41 2005 Subject: [Zope] Format date fields In-Reply-To: <41E70FB8.4000306@net.vodafone.pt> Message-ID: <009e01c4f9ce$b4c9f4d0$0904000a@corp.parasyn.com.au> Please post your code and more details about the error so that we can provide greater assistance. ____________________________________________ Peter Millar -----Original Message----- From: zope-bounces@zope.org [mailto:zope-bounces@zope.org] On Behalf Of Zorze Sent: Friday, 14 January 2005 10:18 To: zope@zope.org Subject: Re: [Zope] Format date fields Importance: High Thank you Andrew. :-) But it give me another an error :-( Error Value: You are not allowed to access strftime in this context Regards Andrew Milton wrote: +-------[ Zorze ]---------------------- | Hi, | I'am new to Zope so please excuse me about some stupid questions. | | How can I format a date field from in a DTML from ZSQL Method e.i.: | | It shows 2005-01-12 22:49:33:00 | | but I want to show just 2005-01-12 Try these; or (same as above, just shorter). | or change de order of the date | :01-12-2005. From zope at net.vodafone.pt Thu Jan 13 19:26:24 2005 From: zope at net.vodafone.pt (Zorze) Date: Thu Jan 13 19:24:11 2005 Subject: [Zope] Format date fields In-Reply-To: <009e01c4f9ce$b4c9f4d0$0904000a@corp.parasyn.com.au> References: <009e01c4f9ce$b4c9f4d0$0904000a@corp.parasyn.com.au> Message-ID: <41E711B0.4040300@net.vodafone.pt> this is my Firebird connection this is the string (since i'm Portuguese DATA means date)

Peter Millar wrote: >Please post your code and more details about the error so that we can >provide greater assistance. >____________________________________________ >Peter Millar > >-----Original Message----- >From: zope-bounces@zope.org [mailto:zope-bounces@zope.org] On Behalf Of >Zorze >Sent: Friday, 14 January 2005 10:18 >To: zope@zope.org >Subject: Re: [Zope] Format date fields >Importance: High > > >Thank you Andrew. :-) > >But it give me another an error :-( > >Error Value: You are not allowed to access strftime in this context > >Regards > > >Andrew Milton wrote: >+-------[ Zorze ]---------------------- >| Hi, >| I'am new to Zope so please excuse me about some stupid questions. >| >| How can I format a date field from in a DTML from ZSQL Method e.i.: >| >| It shows 2005-01-12 22:49:33:00 >| >| but I want to show just 2005-01-12 > > >Try these; > > > >or > > (same as above, just shorter). > >| or change de order of the date >| :01-12-2005. > > > > > > > > From greggehrich at yahoo.com Thu Jan 13 19:37:07 2005 From: greggehrich at yahoo.com (Greg Gehrich) Date: Thu Jan 13 19:37:21 2005 Subject: [Zope] Hierarchical content Message-ID: I want to be able to create content and then attach sub-content to it. For example, if tasks were the content, it would look like the following: go shopping get bananas get bread pick up cleaning get shirt get pants clean house clean kitchen clean mixer clean clean sink clean bedroom I don't want to have the overhead of creating and sifting through folders as you navigate the hierarchy. In order to do this, I need the ability to have content that has folderish properties allowing sub content. Is there a product out there that has similar characteristics? If I were to build this, what tools within plone would I use? From akm at theinternet.com.au Thu Jan 13 19:40:08 2005 From: akm at theinternet.com.au (Andrew Milton) Date: Thu Jan 13 19:40:17 2005 Subject: [Zope] Hierarchical content In-Reply-To: References: Message-ID: <20050114004008.GA98558@camelot.theinternet.com.au> +-------[ Greg Gehrich ]---------------------- | I want to be able to create content and then attach sub-content to it. | For example, if tasks were the content, it would look like the following: | | go shopping | get bananas | get bread | pick up cleaning | get shirt | get pants | clean house | clean kitchen | clean mixer | clean clean sink | clean bedroom | | I don't want to have the overhead of creating and sifting through | folders as you navigate the hierarchy. In order to do this, I need the | ability to have content that has folderish properties allowing sub content. You could set a property on your item that points to the sub-items. If the list is ordered, you'd need to obviously also add some ordering information. Or subclass an existing document type and add the same type of thing. -- Andrew Milton akm@theinternet.com.au From zope at net.vodafone.pt Thu Jan 13 19:44:40 2005 From: zope at net.vodafone.pt (Zorze) Date: Thu Jan 13 19:42:27 2005 Subject: [Zope] Format date fields In-Reply-To: <00a901c4f9d0$475e4250$0904000a@corp.parasyn.com.au> References: <00a901c4f9d0$475e4250$0904000a@corp.parasyn.com.au> Message-ID: <41E715F8.7050100@net.vodafone.pt> An HTML attachment was scrubbed... URL: http://mail.zope.org/pipermail/zope/attachments/20050114/1e10b5dc/attachment.htm From akm at theinternet.com.au Thu Jan 13 19:44:40 2005 From: akm at theinternet.com.au (Andrew Milton) Date: Thu Jan 13 19:44:49 2005 Subject: [Zope] Format date fields In-Reply-To: <41E7108C.7080500@net.vodafone.pt> References: <41E70A99.70800@net.vodafone.pt> <20050114000000.GW98558@camelot.theinternet.com.au> <41E70FB8.4000306@net.vodafone.pt> <20050114001751.GY98558@camelot.theinternet.com.au> <41E7108C.7080500@net.vodafone.pt> Message-ID: <20050114004440.GB98558@camelot.theinternet.com.au> +-------[ Zorze ]---------------------- | Andrew Milton wrote: | | >+-------[ Zorze ]---------------------- | >| Thank you Andrew. :-) | >| | >| But it give me another an error :-( | >| | >| Error Value: You are not allowed to access strftime in this context | > | >hrm. | > | >What DB are you using? | > | > | > | | Firebird It's possible the Firebird adapter sends the dates come back as strings.. try; otherwise I'm out of ideas for now d8) -- Andrew Milton akm@theinternet.com.au From ashleylloyd at hotmail.com Fri Jan 14 04:26:59 2005 From: ashleylloyd at hotmail.com (Ashley) Date: Fri Jan 14 04:28:24 2005 Subject: [Zope] kinterbasdbDA Open Connection Message-ID: Apologies if this has been answered previously - I have seen some similar posts from years ago, but could not find any solutions. I have defined a K Interbase Database Connection in my ZMI. Everything appears fine until I attempt to open the connection using the "Status" page in the ZMI. At this point, I get a standard "page not found" screen. This is not a Zope error page, just a standard IE "HTTP 400 - Bad Request" page, which of course gives me no useful information. It appears from the form on the previous page that the page that is being called is "manage_open_connection". If I attempt to change connection properties using the "Properties" page, then as long as "Connect Immediately" is not checked, then everything is ok, and the changes are saved. If it is checked, then I get the same error page. The page that is being called from here appears to be "manage_edit". The Zope version is actually from a Plone 2.0.5 installation (this is not taking place inside the Plone instance, hence posting here), Plone Controller 0.3, Python 2.3.3 on win32. I cannot find anthing including "manage_open_connection" in the kinterbase folders, but from a previous post I guess it is aiming for the function in "Plone\Zope\lib\python\Shared\DC\ZRDB\Connection.py". What I don't have any idea about is why it isn't working, and what I can do about it. Can anybody help? Thanks in advance Ashley From lists at densxl.de Fri Jan 14 07:53:15 2005 From: lists at densxl.de (lists@densxl.de) Date: Fri Jan 14 07:53:27 2005 Subject: [Zope] meta flow Message-ID: <41E7C0BB.5030900@densxl.de> hello is there an actual version of the meta-flow-product? and where can i download it? peter w From jp at warpix.org Fri Jan 14 07:58:32 2005 From: jp at warpix.org (John Poltorak) Date: Fri Jan 14 08:05:22 2005 Subject: [Zope] Copying Data.fs Message-ID: <20050114125832.G18360@warpix.org> Would there be any problem in copying Data.fs from one system to another and being able to use it? -- John From toolkit at magma.ca Fri Jan 14 08:12:12 2005 From: toolkit at magma.ca (Jonathan Hobbs) Date: Fri Jan 14 08:10:24 2005 Subject: [Zope] Copying Data.fs References: <20050114125832.G18360@warpix.org> Message-ID: <000c01c4fa3a$aa21b740$647ba8c0@jhdesktop> From: "John Poltorak" > Would there be any problem in copying Data.fs from one system to another > and being able to use it? > No problem as long as you are using compatible versions of Zope on the systems you are copying to/from (I would recommend using the same version of Zope on all systems). We do this all the time. Jonathan From lists at andreas-jung.com Fri Jan 14 08:14:29 2005 From: lists at andreas-jung.com (Andreas Jung) Date: Fri Jan 14 08:14:33 2005 Subject: [Zope] Copying Data.fs In-Reply-To: <20050114125832.G18360@warpix.org> References: <20050114125832.G18360@warpix.org> Message-ID: <3F2FB26FBC94CF3524C4A306@[192.168.0.102]> --On Freitag, 14. Januar 2005 12:58 Uhr +0000 John Poltorak wrote: > > Would there be any problem in copying Data.fs from one system to another > and being able to use it? > As long as both installation are installed in the same way there should be no problem. -aj From tim.peters at gmail.com Fri Jan 14 09:40:46 2005 From: tim.peters at gmail.com (Tim Peters) Date: Fri Jan 14 09:40:47 2005 Subject: [Zope] Copying Data.fs In-Reply-To: <20050114125832.G18360@warpix.org> References: <20050114125832.G18360@warpix.org> Message-ID: <1f7befae05011406407c7a3756@mail.gmail.com> [John Poltorak] > Would there be any problem in copying Data.fs from one system > to another and being able to use it? You can even move it across operating systems (the FileStorage format is platform-independent). You take a small risk if you try to copy a Data.fs *while* it's in active use, because it's in a temporarily non-sane state during the time a transaction is being committed. More here: http://zope.org/Wikis/ZODB/FileStorageBackup From tariq.rashid at uk.easynet.net Fri Jan 14 09:50:43 2005 From: tariq.rashid at uk.easynet.net (Tariq Rashid) Date: Fri Jan 14 09:52:32 2005 Subject: [Zope] Copying Data.fs Message-ID: <37DB2705555B4C44842BEA017A6E80DB047FBF@exch2-bllon.uk.easynet.corp> so is the new Data.fs.index regenerated when Zope is restarted? ps - i've migrated Data.fs successfully and repeatedly between a netbsd 2.0 install a linux server with no issues. (and i didn't copy the .index file, only the Data.fs) tariq -----Original Message----- From: Tim Peters [mailto:tim.peters@gmail.com] Sent: 14 January 2005 14:41 To: zope@zope.org Subject: Re: [Zope] Copying Data.fs [John Poltorak] > Would there be any problem in copying Data.fs from one system > to another and being able to use it? You can even move it across operating systems (the FileStorage format is platform-independent). You take a small risk if you try to copy a Data.fs *while* it's in active use, because it's in a temporarily non-sane state during the time a transaction is being committed. More here: http://zope.org/Wikis/ZODB/FileStorageBackup _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) From tim.peters at gmail.com Fri Jan 14 10:01:21 2005 From: tim.peters at gmail.com (Tim Peters) Date: Fri Jan 14 10:01:25 2005 Subject: [Zope] Copying Data.fs In-Reply-To: <37DB2705555B4C44842BEA017A6E80DB047FBF@exch2-bllon.uk.easynet.corp> References: <37DB2705555B4C44842BEA017A6E80DB047FBF@exch2-bllon.uk.easynet.corp> Message-ID: <1f7befae05011407017c79ba80@mail.gmail.com> [Tariq Rashid] > so is the new Data.fs.index regenerated when Zope is restarted? If you copy over the .fs file but not the .index file too, then it's best practice to delete the stale .index file (if any) on the destination machine. ZODB uses some heuristic checks to try to detect a mismatching .index file, and they're pretty strong heuristics, but it's possible they could fail to detect a mismatch. > ps - i've migrated Data.fs successfully and repeatedly between a > netbsd 2.0 install a linux server withand i didn't copy the .index > file,only the Data.fs) It's always OK to delete an .index file. ZODB creates an .index file if none exists. Leaving behind a stale .index file is a little risky. I expect it's much riskier to leave stale persistent ZEO cache files in place, if the destination machine is being used as a ZEO server. From RHill at msdinc.com Fri Jan 14 10:03:20 2005 From: RHill at msdinc.com (Robert Hill) Date: Fri Jan 14 10:03:20 2005 Subject: [Zope] Apache and Zope Message-ID: <480ED19A579467459C9CCACFCD2135F7D3B7FA@utah.inside.msdinc.com> This question may be more appropriate for the Apache mailing list, but it is Zope-related so I figured I'd check here as well. I'm trying to set up Apache HTTP Server to run in front of three sites on my server. Two of which are Zope sites and one of which is a PHP app that is hosted by Apache. I've got three different URLs pointing to the IP address of the server. The setup is something like this: Zope Site 1 - Actual address: www.mysite.com:1234/zope1 Virtual Host: zope1.mysite.com (Zope is running on port 1234) Zope Site 2 - Actual address: www.mysite.com:1234/zope2 Virtual Host: zope2.mysite.com PHP Site - Actual address: www.mysite.com:7777 Virtual Host: php.mysite.com Now here's the frustrating part - I've got it working perfectly as long as I'm accessing these sites from the server. The problem is, whenever I try to access zope1.mysite.com or zope2.mysite.com from another machine, it sends me to php.mysite.com. Any ideas? Here's my virtual host configuration: NameVirtualHost zope1.mysite.com:80 ServerName www.mysite.com RewriteEngine On RewriteRule ^/(.*) http://127.0.0.1:1234/VirtualHostBase/http/zope1.mysite.com/zope1/VirtualHostRoot/$1 [L,P] NameVirtualHost zope2.mysite.com:80 ServerName www.mysite.com RewriteEngine On RewriteRule ^/(.*) http://127.0.0.1:1234/VirtualHostBase/http/zope2.mysite.com/zope2/VirtualHostRoot/$1 [L,P] NameVirtualHost php.mysite.com ServerName www.mysite.com RewriteEngine On RewriteRule ^/(.*) http://127.0.0.1:7777/$1 [L,P] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.zope.org/pipermail/zope/attachments/20050114/5d25b9c2/attachment.htm From scamps at earcon.com Fri Jan 14 10:10:53 2005 From: scamps at earcon.com (Santi Camps) Date: Fri Jan 14 10:09:00 2005 Subject: [Zope] Memory and Large Zope Page Templates Message-ID: <41E7E0FD.50200@earcon.com> Hi all, I'm trying to understand some questions about Zope and Memory management. I've configured a Zope with minimal Cache settings: 100 objects of cache, 4 threads and 20 Mb of ZEO Cache. The Storage is a DirectoryStorage of 4Gb. Monitoring the Zope process, all is running fine: it takes about 30 Mb of RAM. I've see that just 2 of the threads are working. The problem begins when I execute a report. The report is a PageTemplateFile that calls a method to obtain a list of processed results and send them to the user. It takes some time of process, but it works fine. What I don't understand is why, after this report, Zope is taking 120 Mb of RAM !! Too much for the cache I have. I've look for for a memory leak, showing refcounts in method like this: def _get_refcounts(self): import sys import types d = {} sys.modules # collect all classes for m in sys.modules.values(): for sym in dir(m): o = getattr (m, sym) if type(o) is types.ClassType: d[o] = sys.getrefcount(o) # sort by refcount pairs = map (lambda x: (x[1],x[0]), d.items()) pairs.sort() pairs.reverse() return pairs But there is nothing rare. I can see how the refcounts of some objects are heavely incresed during the process of the report, but when finished they are freed. But RAM of the Zope process don't decrease. Anybody have an explanation ? It's recomended to run this kind of reports in a new process ? In this case, there are any products to help this way ? Thanks in advance Santi Camps From erik.myllymaki at aviawest.com Fri Jan 14 12:27:16 2005 From: erik.myllymaki at aviawest.com (Erik Myllymaki) Date: Fri Jan 14 12:27:22 2005 Subject: [Zope] Copying Data.fs In-Reply-To: <1f7befae05011406407c7a3756@mail.gmail.com> References: <20050114125832.G18360@warpix.org> <1f7befae05011406407c7a3756@mail.gmail.com> Message-ID: <41E800F4.8070705@aviawest.com> where do I find repozo.py? It doesn't seem to be included with v2.7.0 on win32. thanks. Tim Peters wrote: > [John Poltorak] > >>Would there be any problem in copying Data.fs from one system >>to another and being able to use it? > > > You can even move it across operating systems (the FileStorage format > is platform-independent). > > You take a small risk if you try to copy a Data.fs *while* it's in > active use, because it's in a temporarily non-sane state during the > time a transaction is being committed. More here: > > http://zope.org/Wikis/ZODB/FileStorageBackup > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) From lists at andreas-jung.com Fri Jan 14 12:32:12 2005 From: lists at andreas-jung.com (Andreas Jung) Date: Fri Jan 14 12:32:17 2005 Subject: [Zope] Copying Data.fs In-Reply-To: <41E800F4.8070705@aviawest.com> References: <20050114125832.G18360@warpix.org> <1f7befae05011406407c7a3756@mail.gmail.com> <41E800F4.8070705@aviawest.com> Message-ID: --On Freitag, 14. Januar 2005 9:27 Uhr -0800 Erik Myllymaki wrote: > where do I find repozo.py? > > It doesn't seem to be included with v2.7.0 on win32. It should be part of the latest 2.7 release. 2.7.0 is old and buggy. I assume it is in the "utilities" directory. -aj From m.bizzarri at icube.it Fri Jan 14 13:02:11 2005 From: m.bizzarri at icube.it (Marco Bizzarri) Date: Fri Jan 14 13:02:16 2005 Subject: [Zope] Memory and Large Zope Page Templates In-Reply-To: <41E7E0FD.50200@earcon.com> References: <41E7E0FD.50200@earcon.com> Message-ID: <41E80923.8060600@icube.it> Santi Camps wrote: > Hi all, > > I'm trying to understand some questions about Zope and Memory > management. I've configured a Zope with minimal Cache settings: 100 > objects of cache, 4 threads and 20 Mb of ZEO Cache. The Storage is a > DirectoryStorage of 4Gb. Monitoring the Zope process, all is running > fine: it takes about 30 Mb of RAM. I've see that just 2 of the threads > are working. > > The problem begins when I execute a report. The report is a > PageTemplateFile that calls a method to obtain a list of processed > results and send them to the user. It takes some time of process, but > it works fine. What I don't understand is why, after this report, > Zope is taking 120 Mb of RAM !! Too much for the cache I have. > I've look for for a memory leak, showing refcounts in method like this: > > def _get_refcounts(self): > import sys > import types > d = {} > sys.modules > # collect all classes > for m in sys.modules.values(): > for sym in dir(m): > o = getattr (m, sym) > if type(o) is types.ClassType: > d[o] = sys.getrefcount(o) > # sort by refcount > pairs = map (lambda x: (x[1],x[0]), d.items()) > pairs.sort() > pairs.reverse() > return pairs > > But there is nothing rare. I can see how the refcounts of some objects > are heavely incresed during the process of the report, but when finished > they are freed. But RAM of the Zope process don't decrease. > Anybody have an explanation ? It's recomended to run this kind of > reports in a new process ? In this case, there are any products to help > this way ? > > Thanks in advance > > Santi Camps If you look at Zope-dev, there have been some discussion regarding leaks and memory management. IIRC, I think that once the size of your process increases, it won't shrink... however, this does not mean that it will not reuse the same memory again... I mean, if you experience the following, it should be normal: initial size of Zope -> 30 MB you run the report: new size -> 150 MB after a while, you run again the report: new size: 150 MB if you run again the report, and you end up with a size of 270 MB (150 + 120) this is a problem. HTH Regards Marco From scamps at earcon.com Fri Jan 14 13:34:07 2005 From: scamps at earcon.com (Santi Camps) Date: Fri Jan 14 13:32:03 2005 Subject: [Zope] Memory and Large Zope Page Templates In-Reply-To: <41E80923.8060600@icube.it> References: <41E7E0FD.50200@earcon.com> <41E80923.8060600@icube.it> Message-ID: <41E8109F.9040504@earcon.com> En/na Marco Bizzarri ha escrit: > > If you look at Zope-dev, there have been some discussion regarding > leaks and memory management. > > IIRC, I think that once the size of your process increases, it won't > shrink... however, this does not mean that it will not reuse the same > memory again... > Dou you know if this is a python behaviour ? Or a generic one in process managements ? > I mean, if you experience the following, it should be normal: > > initial size of Zope -> 30 MB > you run the report: new size -> 150 MB > after a while, you run again the report: new size: 150 MB > Yes, that's the situation when the report is executed by the same thread. But If some reports are executed at the same time in different threads, then the memory size is increased again, aprox to 30Mb + 80Mb * simultaneous_threads > if you run again the report, and you end up with a size of 270 MB (150 > + 120) this is a problem. > > HTH > > Regards > Marco > Thanks Santi Camps From dieter at handshake.de Fri Jan 14 13:50:24 2005 From: dieter at handshake.de (Dieter Maurer) Date: Fri Jan 14 14:00:11 2005 Subject: [Zope] Undo problem In-Reply-To: References: Message-ID: <16872.5232.420342.107893@gargle.gargle.HOWL> Pascal Peregrina wrote at 2005-1-13 23:05 +0100: > ... >So why wouldn't A and B object changes be part of the same transaction ? >Is there any explicit code to make sure to remain in a single transaction ? When you change A and B in the same request and you do not explicitly manage transactions yourself, then both changes are in the same transaction. Or said differently: Zope (by default) has one transaction per request. -- Dieter From dieter at handshake.de Fri Jan 14 14:00:31 2005 From: dieter at handshake.de (Dieter Maurer) Date: Fri Jan 14 14:00:17 2005 Subject: [Zope] Memory and Large Zope Page Templates In-Reply-To: <41E7E0FD.50200@earcon.com> References: <41E7E0FD.50200@earcon.com> Message-ID: <16872.5839.989294.547086@gargle.gargle.HOWL> Santi Camps wrote at 2005-1-14 16:10 +0100: > ... >But there is nothing rare. I can see how the refcounts of some objects >are heavely incresed during the process of the report, but when finished >they are freed. But RAM of the Zope process don't decrease. > >Anybody have an explanation ? It's recomended to run this kind of >reports in a new process ? In this case, there are any products to help >this way ? The UNIX memory API allows to grow and shrink the heap only at one end. If there is a block (as tiny as it may be) at this end, then it prevents to give back any unused memory to the OS before that block. Usually, there is no way to compact the memory (as it is accessed directly and not via an indirection). Therefore, you rarely see that the memory allocated to a process decreases. -- Dieter From dieter at handshake.de Fri Jan 14 13:48:51 2005 From: dieter at handshake.de (Dieter Maurer) Date: Fri Jan 14 14:00:20 2005 Subject: [Zope] Undo problem In-Reply-To: References: Message-ID: <16872.5139.605151.461236@gargle.gargle.HOWL> Pascal Peregrina wrote at 2005-1-13 23:09 +0100: >One last thing I noticed : >Although when displaying B PersistentMapping content I can see A changes, >the undo tab of B says there is nothing to undo (while the undo tab of A >says I can undo whatever property change I did to it). > >B class is declared as extending : UniqueObject, SimpleItem, Persistent The "Undo" tab at an object does not (!) list all transactions having affected this object! Instead, transactions can have a description. Zope usually puts the path of the object located by URL traversal into the description field. The undoable transactions listed at object "O"s "Undo" tab are the transactions that have "O"s path as prefix of the transaction's description. Thus, usually, there is only a slight chance that you see a transaction record for "T" in "O"'s "Undo" tab even when "T" modified "O". -- Dieter From lists at andreas-jung.com Fri Jan 14 14:37:58 2005 From: lists at andreas-jung.com (Andreas Jung) Date: Fri Jan 14 14:38:02 2005 Subject: [Zope] [ANN] Zope 2.7.4 released Message-ID: <47ADCD1D8C38A30234F08884@[192.168.0.102]> Dear Zope Community, on behalf of Zope Corporation and all Zope 2 developers and contributors I am pleased to announce the release of Zope 2.7.4. This release is a maintenance release and fixes a lot of bugs (too much to mention them all here). Zope 2.7.4 can be downloaded from http://www.zope.org/Products/Zope/2.7.4 The release notes can be found at http://www.zope.org/Products/Zope/2.7.4/CHANGES.txt For informations on using Python 2.4 with Zope 2.7: see doc/INSTALL.txt Andreas Jung From josedomonte at hotmail.com Fri Jan 14 15:42:12 2005 From: josedomonte at hotmail.com (José Monte) Date: Fri Jan 14 15:43:07 2005 Subject: [Zope] Complex SQL query Message-ID: Hit here. I'v 2 databases (GadFly) that have different data. I wish to join some data using a ZSQL method. I have something like: SELECT table1.colum1, table2.colum1 FROM table1, table2 WHERE table1.colum1 = table2.colum1 Until this step everything is working fine... The problem appears when I want to compare the result of the above query (taht is working ok) with some data that only exists in the table2 and in table1. I want to get some data from the table1 that I compare in table2 (table1.colum1 = table2.colum1) and them I only want the data that the in the table1.colum1 is equal to 1 and 2 and in the table2 where above 0 (zero) in the colum2 and the colum3 < than the actual date. I try to put something like: SELECT table1.colum1, table2.colum1 FROM table1, table2 WHERE table1.colum1 = table2.colum1 AND table2.colum2 > 0 AND table2.colum3 < AND table1.colum1 = 1 OR table1.colum1 = 2 This query is getting ZOPE to time out and it only works again with a restart... Can anyone help me with this? Thanks a lot, José Monte P.S. - sorry for my extremely bad english. _________________________________________________________________ Express yourself with cool new emoticons http://www.msn.co.uk/specials/myemo From jens at dataflake.org Fri Jan 14 16:23:03 2005 From: jens at dataflake.org (Jens Vagelpohl) Date: Fri Jan 14 16:23:10 2005 Subject: [Zope] Complex SQL query In-Reply-To: References: Message-ID: <79C6F149-6672-11D9-92BA-000D9368D272@dataflake.org> On Jan 14, 2005, at 21:42, Jos? Monte wrote: > Hit here. > > I'v 2 databases (GadFly) that have different data. > I wish to join some data using a ZSQL method. Have you considered switching to a *real* database? Gadfly is not recommended for anything beyond playing. Try PostGreSQL or MySQL instead. jens --------------- Jens Vagelpohl jens@zetwork.com Software Engineer +49-(0)441-36 18 14 38 Zetwork GmbH http://www.zetwork.com/ From petite.abeille at gmail.com Fri Jan 14 16:30:52 2005 From: petite.abeille at gmail.com (PA) Date: Fri Jan 14 16:30:36 2005 Subject: [Zope] Complex SQL query In-Reply-To: <79C6F149-6672-11D9-92BA-000D9368D272@dataflake.org> References: <79C6F149-6672-11D9-92BA-000D9368D272@dataflake.org> Message-ID: <90FB88DB-6673-11D9-A83A-000393760B7E@gmail.com> On Jan 14, 2005, at 22:23, Jens Vagelpohl wrote: > Have you considered switching to a *real* database? Gadfly is not > recommended for anything beyond playing. Try PostGreSQL or MySQL > instead. Don't. Try FrontBase instead: http://www.frontbase.com/ Not open source, but they have a free license (E-Starter). Runs pretty much everywhere as well. Cheers -- PA http://alt.textdrive.com/ From jens at dataflake.org Fri Jan 14 16:46:06 2005 From: jens at dataflake.org (Jens Vagelpohl) Date: Fri Jan 14 16:46:13 2005 Subject: [Zope] Complex SQL query In-Reply-To: <90FB88DB-6673-11D9-A83A-000393760B7E@gmail.com> References: <79C6F149-6672-11D9-92BA-000D9368D272@dataflake.org> <90FB88DB-6673-11D9-A83A-000393760B7E@gmail.com> Message-ID: On Jan 14, 2005, at 22:30, PA wrote: > > On Jan 14, 2005, at 22:23, Jens Vagelpohl wrote: > >> Have you considered switching to a *real* database? Gadfly is not >> recommended for anything beyond playing. Try PostGreSQL or MySQL >> instead. > > Don't. Try FrontBase instead: > > http://www.frontbase.com/ > > Not open source, but they have a free license (E-Starter). > > Runs pretty much everywhere as well. Getting kickbacks from those folks, eh? LOL jens From petite.abeille at gmail.com Fri Jan 14 16:54:50 2005 From: petite.abeille at gmail.com (PA) Date: Fri Jan 14 16:54:36 2005 Subject: [Zope] Complex SQL query In-Reply-To: References: <79C6F149-6672-11D9-92BA-000D9368D272@dataflake.org> <90FB88DB-6673-11D9-A83A-000393760B7E@gmail.com> Message-ID: On Jan 14, 2005, at 22:46, Jens Vagelpohl wrote: > Getting kickbacks from those folks, eh? Even though they provide a free license, I wish I could get some "referral" fees :o) > LOL Just had too much pain and suffering dealing with all those odd MySQL/PostgreSQL idiosyncrasies. FrontBase is a no-brainer to use and, as an added bonus, is fully SQL 92 compliant. It even knows what Unicode is :) Cheers -- PA http://alt.textdrive.com/ From bennetttm at appstate.edu Fri Jan 14 16:58:13 2005 From: bennetttm at appstate.edu (Thomas Bennett) Date: Fri Jan 14 17:08:26 2005 Subject: [Zope] Complex SQL query In-Reply-To: References: Message-ID: <1105739893.31944.74.camel@bennetttm-1.library.appstate.edu> You didn't SELECT table2.colum2 or table2.column3 so it probably doesn't exist for your comparison. I don't know if the DateTime may be giving any problem. On Fri, 2005-01-14 at 15:42, =?UNKNOWN?Q?Jos=E9?= Monte wrote: > Hit here. > > I'v 2 databases (GadFly) that have different data. > I wish to join some data using a ZSQL method. > > I have something like: > > SELECT table1.colum1, table2.colum1 > FROM table1, table2 > WHERE table1.colum1 = table2.colum1 > > Until this step everything is working fine... > The problem appears when I want to compare the result of the above query > (taht is working ok) with some data that only exists in the table2 and in > table1. > > I want to get some data from the table1 that I compare in table2 > (table1.colum1 = table2.colum1) and them I only want the data that the in > the table1.colum1 is equal to 1 and 2 and in the table2 where above 0 (zero) > in the colum2 and the colum3 < than the actual date. > > I try to put something like: > > SELECT table1.colum1, table2.colum1 > FROM table1, table2 > WHERE table1.colum1 = table2.colum1 AND table2.colum2 > 0 AND table2.colum3 > < AND table1.colum1 = 1 OR > table1.colum1 = 2 > > This query is getting ZOPE to time out and it only works again with a > restart... > > Can anyone help me with this? > > Thanks a lot, > > Jos Monte > > P.S. - sorry for my extremely bad english. > > _________________________________________________________________ > Express yourself with cool new emoticons http://www.msn.co.uk/specials/myemo > > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) From davelists2 at peoplemerge.com Fri Jan 14 22:26:37 2005 From: davelists2 at peoplemerge.com (davelists2@peoplemerge.com) Date: Fri Jan 14 22:15:07 2005 Subject: [Zope] generating an acquisition wrapper from generated code Message-ID: <20050115032637.GA20812@mail.imagesmiths.com> Hi all, ====Aclass.py==== class Aclass(ZSI.TCcompound.Struct): def __init__: self._attr = "Attribute" def getAttr(): return self.attr ====myTool.py==== from Aclass import Aclass from Globals import InitializeClass from OFS.SimpleItem import SimpleItem from AccessControl import ClassSecurityInfo from Products.CMFCore.utils import getToolByName, UniqueObject from Products.CMFCore import CMFCorePermissions class myTool(SimpleTool,UniqueObject): meta_type="myTool" id="myTool" def getAclass(self): inter = [base.Aclass(),] return inter Now I want to myTool.getAclass().getAttr() What's by importing myTool from unrestricted python, there's no problem. When I access the tool from a (restricted) script or ZPT, it gives me: Insufficient Privileges or AccessControl.unauthorized.Unauthorized: You are not allowed to access 'getAttr' in this context. I gather (thanks kosh@freenode#zope) that I need to wrap the objects in inter in an acquisition wrapper. But I can't inherit from SimpleItem as well as ZSI.TCcompound.Struct: File "/usr/lib/python2.3/site-packages/ZSI/TCcompound.py", line 65, in __init__ raise TypeError('pyclass must be None or a class, not Any Suggestions? Thanks... And sorry for my bad python. This pseudocode should be an accurate representation of what I get from ZSI's wsdl2py from Amazon's Web Services 3.0 WSDL. Complex stuff, so try to not suggest something that would require I change Aclass -- been down that road already. From zope-mailinglist at mopa.at Sat Jan 15 04:40:30 2005 From: zope-mailinglist at mopa.at (Bernd Dorn) Date: Sat Jan 15 04:40:39 2005 Subject: [Zope] generating an acquisition wrapper from generated code In-Reply-To: <20050115032637.GA20812@mail.imagesmiths.com> References: <20050115032637.GA20812@mail.imagesmiths.com> Message-ID: <41E8E50E.7030405@mopa.at> davelists2@peoplemerge.com wrote: > Hi all, > > ====Aclass.py==== > class Aclass(ZSI.TCcompound.Struct): > def __init__: > self._attr = "Attribute" > def getAttr(): > return self.attr > > ====myTool.py==== > from Aclass import Aclass > from Globals import InitializeClass > from OFS.SimpleItem import SimpleItem > from AccessControl import ClassSecurityInfo > from Products.CMFCore.utils import getToolByName, UniqueObject > from Products.CMFCore import CMFCorePermissions > > class myTool(SimpleTool,UniqueObject): > meta_type="myTool" > id="myTool" > def getAclass(self): > inter = [base.Aclass(),] > return inter > > Now I want to myTool.getAclass().getAttr() > What's by importing myTool from unrestricted python, there's no problem. > > When I access the tool from a (restricted) script or ZPT, it gives me: > Insufficient Privileges > or > AccessControl.unauthorized.Unauthorized: You are not allowed to access 'getAttr' in this context. > > I gather (thanks kosh@freenode#zope) that I need to wrap the objects in inter in an acquisition wrapper. But I can't inherit from SimpleItem as well as ZSI.TCcompound.Struct: > > File "/usr/lib/python2.3/site-packages/ZSI/TCcompound.py", line 65, in __init__ > raise TypeError('pyclass must be None or a class, not > > Any Suggestions? > > Thanks... And sorry for my bad python. This pseudocode should be an accurate representation of what I get from ZSI's wsdl2py from Amazon's Web Services 3.0 WSDL. Complex stuff, so try to not suggest something that would require I change Aclass -- been down that road already. > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) Aclass needs to be inherited from Acquisition.Explcitit or Implicit and and in myTool: def getAclass(self): inter = [base.Aclass().__of__(self),] return inter hope this helps maybe you need to add security declarations to your class From hpinson at indepthl.com Sat Jan 15 23:42:48 2005 From: hpinson at indepthl.com (hpinson@indepthl.com) Date: Sat Jan 15 23:40:47 2005 Subject: [Zope] Python 2.3.3 vs. Python 2.3.4 Message-ID: <41E98E58.17931.BB5653F@localhost> Hi. I am unclear of the benefits of using Python 2.3.4 over Python 2.3.3 Could someone please explain? The reason being is that I am having trouble upgrading my Fedora Core 1 server getting the 2.3.4 rpm to install: rpm -ivh python2.3-2.3.4-3pydotorg.i386.rpm Results in many errors and will not install. This is the same method I used to upgrade the Python version alongside the existing FC1 python. I have installed and run Zope 2.7.3 for about two months now along with Python 2.3.3, with no problems that I am aware of (which does not mean that there are none). I have now installed Zope 2.7.4, still with Python 2.3.3, and Zope and Plone 2.0.5 both appear to behave normally. Am I alright continuing to run Python 2.3.3? Or is disaster lurking by not running Python 2.3.4? TIA Harlow Pinson Indepth Learning Email: hpinson@indepthl.com Web: http://www.indepthl.com Voice: 505-994-2135 FAX: 208-475-7678 From lists at andreas-jung.com Sun Jan 16 01:01:27 2005 From: lists at andreas-jung.com (Andreas Jung) Date: Sun Jan 16 01:01:31 2005 Subject: [Zope] Python 2.3.3 vs. Python 2.3.4 In-Reply-To: <41E98E58.17931.BB5653F@localhost> References: <41E98E58.17931.BB5653F@localhost> Message-ID: --On Samstag, 15. Januar 2005 21:42 Uhr -0700 hpinson@indepthl.com wrote: > Hi. I am unclear of the benefits of using Python 2.3.4 over Python > 2.3.3 > As the version number says: 2.3.4 fixes bugs present in 2.3.3 and earlier. Python 2.3.3 has no *critical bugs* so we did *not* recommend to upgrade from 2.3.3 to 2.3.4. Both versions are acceptable. -aj From tim.peters at gmail.com Sun Jan 16 01:50:54 2005 From: tim.peters at gmail.com (Tim Peters) Date: Sun Jan 16 01:50:55 2005 Subject: [Zope] Python 2.3.3 vs. Python 2.3.4 In-Reply-To: <41E98E58.17931.BB5653F@localhost> References: <41E98E58.17931.BB5653F@localhost> Message-ID: <1f7befae050115225010551bf8@mail.gmail.com> [hpinson@indepthl.com] > Hi. I am unclear of the benefits of using Python 2.3.4 over Python > 2.3.3 A micro release of Python is a bugfix release. Here are the NEWS entries for 2.3.4; whether you care about any of 'em is up to you: Core and builtins ----------------- - Bug #858016: isinstance() and issubclass() can have their second argument be a tuple whose nested depth is capped at the interpreter's recursion limit. Raises RuntimeError if the limit reached. - Made omitted callback and None equivalent for weakref.ref() and weakref.proxy(); the None case wasn't handled correctly in all cases. - Fixed problem where PyWeakref_NewRef() and PyWeakref_NewProxy() assumed that initial existing entries in an object's weakref list would not be removed while allocating a new weakref object. Since GC could be invoked at that time, however, that assumption was invalid. In a truly obscure case of GC being triggered during creation for a new weakref object for an referent which already has a weakref without a callback which is only referenced from cyclic trash, a memory error can occur. This consistently created a segfault in a debug build, but provided less predictable behavior in a release build. - Fixed a bug in object.__reduce_ex__ when using protocol 2. Failure to clear the error when attempts to get the __getstate__ attribute fail caused intermittent errors and odd behavior. - fixed: if a file is opened with an explicit buffer size >= 1, repeated close() calls would attempt to free() the buffer already free()ed on the first call. Library ------- - Bug #876278: Unbounded recursion in modulefinder - Brought platform.py in line with the 2.4 version, fixing support for newer Windows versions and a cache issue. - Bug #950057: itertools.chain() and itertools.cycle() now handle exceptions immediately instead of waiting until the input source is updated. - Bug #931848: Fix _sre.CODESIZE on 64-bit machines in UCS-4 mode. - Bug #938076: Consider output encoding in XMLGenerator. - Bug #936637: Properly delegate startElementNS in saxutils.XMLFilterBase. - Bug #944082: Empty passwords in urllib2 are now supported. - Bug #926075: Fixed a bug that returns a wrong pattern object for a string or unicode object in sre.compile() when a different type pattern with the same value exists. - Bug #924361: Properly support normalization of empty unicode strings. - Fixed a caching bug in platform.platform() where the argument of 'terse' was not taken into consideration when caching value. - Bug #920575: A problem that _locale module segfaults on nl_langinfo(ERA) caused by GNU libc's illegal NULL return is fixed. - Bug #883604: Fix Lib/test/test_strftime.py to escape characters from locale time values that might be mistaken as regex syntax. - Bug #700055: .pth files can now have any type of line endings. - Patch 817379: Allow absolute ftp paths in urllib2. - Patch 711838: Support non-anonymous ftp URLs in urllib2. Windows ------- - The Windows installer now includes tix, the Tk Interface eXtension, a powerful set of user interface components that expands the capabilities of your Tcl/Tk and Python applications. Build ----- - Bug #929689: Don't define _XOPEN_SOURCE on UnixWare 7.1.4. From jens at dataflake.org Sun Jan 16 05:10:00 2005 From: jens at dataflake.org (Jens Vagelpohl) Date: Sun Jan 16 05:10:08 2005 Subject: [Zope] Python 2.3.3 vs. Python 2.3.4 In-Reply-To: <41E98E58.17931.BB5653F@localhost> References: <41E98E58.17931.BB5653F@localhost> Message-ID: > Could someone please explain? The reason being is that I am having > trouble upgrading my Fedora Core 1 server getting the 2.3.4 rpm to > install: > > rpm -ivh python2.3-2.3.4-3pydotorg.i386.rpm Apart from the specific upgrade problems, if you're setting up a production-quality site it is *plain bad* to use *any* Python provided by the distribution. Build your own to retain the control you need to guarantee your site's well-being. If you just want to play around I suppose you're fine. jens --------------- Jens Vagelpohl jens@zetwork.com Software Engineer +49-(0)441-36 18 14 38 Zetwork GmbH http://www.zetwork.com/ From sitharus at gmail.com Sun Jan 16 05:14:01 2005 From: sitharus at gmail.com (Phillip Hutchings) Date: Sun Jan 16 05:14:03 2005 Subject: [Zope] Apache and Zope In-Reply-To: <480ED19A579467459C9CCACFCD2135F7D3B7FA@utah.inside.msdinc.com> References: <480ED19A579467459C9CCACFCD2135F7D3B7FA@utah.inside.msdinc.com> Message-ID: <5f62f8a050116021454ec6b61@mail.gmail.com> You've got the syntax completely wrong for name based virtual hosts, you've done it for IP based virtual hosts, in which case the last definition of the vhost for the ip address takes effect. > NameVirtualHost zope1.mysite.com:80 The NameVirtualHost directive specifies the IP address Apache runs the name based virtual host check on. On a host with only one IP address, or multiple that should point to the same site, it goes like this: NameVirtualHost *:80 > > ServerName www.mysite.com > RewriteEngine On > RewriteRule ^/(.*) > http://127.0.0.1:1234/VirtualHostBase/http/zope1.mysite.com/zope1/VirtualHostRoot/$1 > [L,P] > The value in the VirtualHost 'tag' is the _IP ADDRESS_ that the virtual host runs on, not the server name. This config will work: NameVirtualHost *:80 ServerName www.mysite.com RewriteEngine On RewriteRule ^/(.*) http://127.0.0.1:1234/VirtualHostBase/http/zope1.mysite.com/zope1/VirtualHostRoot/ $1 [L,P] ServerName www.mysite.com RewriteEngine On RewriteRule ^/(.*) http://127.0.0.1:1234/VirtualHostBase/http/zope2.mysite.com/zope2/VirtualHostRoot/$1 [L,P] ServerName www.mysite.com RewriteEngine On RewriteRule ^/(.*) http://127.0.0.1:7777/$1 [L,P] -- Phillip Hutchings http://www.sitharus.com/ sitharus@gmail.com / sitharus@sitharus.com From davelists2 at peoplemerge.com Sun Jan 16 05:27:11 2005 From: davelists2 at peoplemerge.com (davelists2@peoplemerge.com) Date: Sun Jan 16 05:15:44 2005 Subject: [Zope] generating an acquisition wrapper from generated code In-Reply-To: <41E8E50E.7030405@mopa.at> References: <20050115032637.GA20812@mail.imagesmiths.com> <41E8E50E.7030405@mopa.at> Message-ID: <20050116102711.GA25585@mail.imagesmiths.com> On Sat, Jan 15, 2005 at 10:40:30AM +0100, Bernd Dorn wrote: > Aclass needs to be inherited from Acquisition.Explcitit or Implicit > and and in myTool: > def getAclass(self): > inter = [base.Aclass().__of__(self),] > return inter I can post more code if necessary, but: Somehow, having already inherited from ZSI.TCcompound.Struct, I cannot also inherit from Acquisition.Explicit: Traceback (most recent call last): File "", line 1, in ? File "/usr/lib/zope/lib/python/Zope/__init__.py", line 51, in app startup() File "/usr/lib/zope/lib/python/Zope/__init__.py", line 47, in startup _startup() File "/usr/lib/zope/lib/python/Zope/App/startup.py", line 45, in startup OFS.Application.import_products() File "/usr/lib/zope/lib/python/OFS/Application.py", line 637, in import_products import_product(product_dir, product_name, raise_exc=debug_mode) File "/usr/lib/zope/lib/python/OFS/Application.py", line 660, in import_product product=__import__(pname, global_dict, global_dict, silly) File "/var/lib/zope/Products/ProductTool/__init__.py", line 2, in ? from Products.ProductTool import ProductGhost,AmazonProduct File "/var/lib/zope/Products/ProductTool/AmazonProduct.py", line 7, in ? from AmazonSearch_services import * File "AmazonSearch_services.py", line 3020, in ? class ActorSearchResponseWrapper(ActorSearchResponse): File "AmazonSearch_services.py", line 3023, in ActorSearchResponseWrapper typecode = ActorSearchResponse(name='ActorSearchRequestResponse', ns='http://soap.amazon.com') File "AmazonSearch_services.py", line 3011, in __init__ self._return = ProductInfo_Def() File "/var/lib/zope/Products/ProductTool/AmazonSearch_services_types.py", line 1857, in __init__ TClist = [ZSI.TC.String(pname="TotalResults",aname="_TotalResults", optional=1), ZSI.TC.String(pname="TotalPages",aname="_TotalPages", optional=1), ZSI.TC.String(pname="ListName",aname="_ListName", optional=1), DetailsArray_Def(name="Details", ns=ns, optional=1), ] File "/var/lib/zope/Products/ProductTool/AmazonSearch_services_types.py", line 1308, in __init__ ZSI.TCcompound.Array.__init__(self, 'arrayTypeNS:Details[]', Details_Def(name=None,typed=0), pname=name, aname='_%s' % name, oname='%s xmlns:arrayTypeNS="http://soap.amazon.com"' % name, **kw) File "/var/lib/zope/Products/ProductTool/AmazonSearch_services_types.py", line 1791, in __init__ aname=aname, oname=oname, File "/usr/lib/python2.3/site-packages/ZSI/TCcompound.py", line 65, in __init__ raise TypeError('pyclass must be None or a class, not ' + TypeError: pyclass must be None or a class, not From zope-mailinglist at mopa.at Sun Jan 16 05:45:48 2005 From: zope-mailinglist at mopa.at (Bernd Dorn) Date: Sun Jan 16 05:45:58 2005 Subject: [Zope] generating an acquisition wrapper from generated code In-Reply-To: <20050116102711.GA25585@mail.imagesmiths.com> References: <20050115032637.GA20812@mail.imagesmiths.com> <41E8E50E.7030405@mopa.at> <20050116102711.GA25585@mail.imagesmiths.com> Message-ID: <41EA45DC.8000309@mopa.at> davelists2@peoplemerge.com wrote: > On Sat, Jan 15, 2005 at 10:40:30AM +0100, Bernd Dorn wrote: > >>Aclass needs to be inherited from Acquisition.Explcitit or Implicit >>and and in myTool: >>def getAclass(self): >> inter = [base.Aclass().__of__(self),] >> return inter > > > I can post more code if necessary, but: > > Somehow, having already inherited from ZSI.TCcompound.Struct, I > cannot also inherit from Acquisition.Explicit: > > Traceback (most recent call last): > File "", line 1, in ? > File "/usr/lib/zope/lib/python/Zope/__init__.py", line 51, in app > startup() > File "/usr/lib/zope/lib/python/Zope/__init__.py", line 47, in startup > _startup() > File "/usr/lib/zope/lib/python/Zope/App/startup.py", line 45, in startup > OFS.Application.import_products() > File "/usr/lib/zope/lib/python/OFS/Application.py", line 637, in import_products > import_product(product_dir, product_name, raise_exc=debug_mode) > File "/usr/lib/zope/lib/python/OFS/Application.py", line 660, in import_product > product=__import__(pname, global_dict, global_dict, silly) > File "/var/lib/zope/Products/ProductTool/__init__.py", line 2, in ? > from Products.ProductTool import ProductGhost,AmazonProduct > File "/var/lib/zope/Products/ProductTool/AmazonProduct.py", line 7, in ? > from AmazonSearch_services import * > File "AmazonSearch_services.py", line 3020, in ? > class ActorSearchResponseWrapper(ActorSearchResponse): > File "AmazonSearch_services.py", line 3023, in ActorSearchResponseWrapper > typecode = ActorSearchResponse(name='ActorSearchRequestResponse', ns='http://soap.amazon.com') > File "AmazonSearch_services.py", line 3011, in __init__ > self._return = ProductInfo_Def() > File "/var/lib/zope/Products/ProductTool/AmazonSearch_services_types.py", line 1857, in __init__ > TClist = [ZSI.TC.String(pname="TotalResults",aname="_TotalResults", optional=1), ZSI.TC.String(pname="TotalPages",aname="_TotalPages", optional=1), ZSI.TC.String(pname="ListName",aname="_ListName", optional=1), DetailsArray_Def(name="Details", ns=ns, optional=1), ] > File "/var/lib/zope/Products/ProductTool/AmazonSearch_services_types.py", line 1308, in __init__ > ZSI.TCcompound.Array.__init__(self, 'arrayTypeNS:Details[]', Details_Def(name=None,typed=0), pname=name, aname='_%s' % name, oname='%s xmlns:arrayTypeNS="http://soap.amazon.com"' % name, **kw) > File "/var/lib/zope/Products/ProductTool/AmazonSearch_services_types.py", line 1791, in __init__ > aname=aname, oname=oname, this is a extension class problem try to get the __init__ of the superclass via __dict__ instead of: ZSI.TCcompound.Array.__init__(self,...) use: ZSI.TCcompound.Array.__dict__['__init__'](self,...) > File "/usr/lib/python2.3/site-packages/ZSI/TCcompound.py", line 65, in __init__ > raise TypeError('pyclass must be None or a class, not ' + > TypeError: pyclass must be None or a class, not > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) From apaku at gmx.de Sun Jan 16 05:50:24 2005 From: apaku at gmx.de (Andreas Pakulat) Date: Sun Jan 16 05:49:58 2005 Subject: [Zope] Apache and Zope In-Reply-To: <5f62f8a050116021454ec6b61@mail.gmail.com> References: <480ED19A579467459C9CCACFCD2135F7D3B7FA@utah.inside.msdinc.com> <5f62f8a050116021454ec6b61@mail.gmail.com> Message-ID: <20050116105024.GB6135@morpheus.matrix.de> On 16.Jan 2005 - 23:14:01, Phillip Hutchings wrote: > You've got the syntax completely wrong for name based virtual hosts, > you've done it for IP based virtual hosts, in which case the last > definition of the vhost for the ip address takes effect. Yes there are some errors, but... > > NameVirtualHost zope1.mysite.com:80 > > The NameVirtualHost directive specifies the IP address Apache runs the > name based virtual host check on. On a host with only one IP address, > or multiple that should point to the same site, it goes like this: > NameVirtualHost *:80 Correct. > > > > ServerName www.mysite.com > > RewriteEngine On > > RewriteRule ^/(.*) > > http://127.0.0.1:1234/VirtualHostBase/http/zope1.mysite.com/zope1/VirtualHostRoot/$1 > > [L,P] > > > > The value in the VirtualHost 'tag' is the _IP ADDRESS_ that the > virtual host runs on, not the server name. This config will work: Not if he wants to do name-based virtual hosts and thats probably what he wants, as the following doesn't make any sense at all... > NameVirtualHost *:80 > > > ServerName www.mysite.com > RewriteEngine On > RewriteRule ^/(.*) > http://127.0.0.1:1234/VirtualHostBase/http/zope1.mysite.com/zope1/VirtualHostRoot/ > $1 [L,P] > > > > ServerName www.mysite.com > RewriteEngine On > RewriteRule ^/(.*) > http://127.0.0.1:1234/VirtualHostBase/http/zope2.mysite.com/zope2/VirtualHostRoot/$1 > [L,P] > > > > ServerName www.mysite.com > RewriteEngine On > RewriteRule ^/(.*) http://127.0.0.1:7777/$1 [L,P] > This doesn't make any sense and even though I'm not a apache-pro I don't think its correct at all. How does apache decide which VirtualHost to use? For the OP, if you use only the following NameVirtualHost and leave the rest as is, it should work: NameVirtualHost *:80 Andreas -- Don't plan any hasty moves. You'll be evicted soon anyway. From haim at babysnakes.org Sun Jan 16 07:41:39 2005 From: haim at babysnakes.org (Haim Ashkenazi) Date: Sun Jan 16 07:42:03 2005 Subject: [Zope] form and zpt question Message-ID: Hi I'm looking for a way to pass the values entered in a form (zpt) back to the same page after processing it in a python script. say I have this zpt: ----

Add a new Client

In the form below, you can add New client. the "price" fields (if filled) will be used for calculations in the reports.
Please make sure that you check that the client do not exist in the list below! two names of the same client can cause problems when producing reports.

  • Already defined customers:  

ERROR:  error here

Customer name:
Price - on site:
Price - remote:
Price - phone support:
------------------------ and this script: -------------------- ##parameters=REQUEST ##title= ## # parse input from "addclient" form and returns the result. req = REQUEST # if no name was specified if not req.customer: return container.addclient(error_message = "You must specify the customer's name") context.add_client(name = req.customer, onsite = req.onsite, remote = req.remote, phone = req.phone) response = container.clientsubmited(name = customer) return response ---------------------- in case of an error, it re-renders the template with the error above. this works fine, but I want it to keep the values already entered in the form, not to give me a blank form. one way to specify them when calling the template from the script, but in large forms this will result in a very long parameter list. is there one object that holds all the values that I can pass back to the template? thanx -- Haim From ausum_studio at hotmail.com Sun Jan 16 11:36:04 2005 From: ausum_studio at hotmail.com (Ausum Studio) Date: Sun Jan 16 11:37:03 2005 Subject: [Zope] ZODB packaging behaviour: bug or feature? Message-ID: Use case: Create a new Zope instance. Perform some changes and then pack the database to remove objects revisions older to 0 days. You want a clean instance to start with. Now create a cron job to daily pack the database to remove objects older to 14 days, and start to use your instance. Zope won't pack the database at all, and I guess it will be for the first 2 weeks, because it won't find revisions older to 14 days during that time. Is that normal behaviour? Telling by the interface text at the Database Management tab, it looks like the command would create a Data.fs.old file even though there weren't older revisions than the number set, meaning that by default the packing would create an exact copy of the current Data.fs (to keep all changes), at least until there were revisions to remove. The problem is that if you rely on Data.fs.old for backup purposes, you'll find that your 13th day Data.fs.old is exactly as that of day one. An even though you had never packed the database to 0 days, the problem would come up if, for any reason, you feel like it's time to manually pack the database to 0, in between those two weeks. Your cron job won't modify the existing Data.fs.old for the following two weeks. Am I missing something? Thanks in advance, Ausum -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.zope.org/pipermail/zope/attachments/20050116/6a50799a/attachment.htm From thomas.adams at onlinehome.de Sun Jan 16 11:39:47 2005 From: thomas.adams at onlinehome.de (Thomas Adams) Date: Sun Jan 16 11:39:47 2005 Subject: [Zope] problem with property sheet interface and multiple selection Message-ID: <000c01c4fbe9$fdf96bf0$9d64e9d9@XPH0001LC> Hi all, when I try to add an editable property sheet interface for a propertysheet with a multiple selection property, this runs into the error shown below: Traceback (innermost last): Module ZPublisher.Publish, line 101, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module ZClasses.Property, line 84, in manage_createView Module ZClasses.Property, line 188, in manage_createEditor Module ZClasses.Method, line 103, in manage_addDTMLMethod Module OFS.DTMLMethod, line 403, in addDTMLMethod AttributeError: 'unicode' object has no attribute 'read' Does anybody have suggestions? Regards Thomas P.S.: I'm currently working on (Zope 2.7.3-0, python 2.3.4, win32) under Windows XP with Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)] From ausum_studio at hotmail.com Sun Jan 16 11:40:35 2005 From: ausum_studio at hotmail.com (Ausum Studio) Date: Sun Jan 16 11:41:04 2005 Subject: [Zope] ZODB packaging behaviour: bug or feature? Message-ID: (sorry about the HTML encoding of my previous post) Use case: Create a new Zope instance. Perform some changes and then pack the database to remove objects revisions older to 0 days. You want a clean instance to start with. Now create a cron job to daily pack the database to remove objects older to 14 days, and start to use your instance. Zope won't pack the database at all, and I guess it will be for the first 2 weeks, because it won't find revisions older to 14 days during that time. Is that normal behaviour? Telling by the interface text at the Database Management tab, it looks like the command would create a Data.fs.old file even though there weren't older revisions than the number set, meaning that by default the packing would create an exact copy of the current Data.fs (to keep all changes), at least until there were revisions to remove. The problem is that if you rely on Data.fs.old for backup purposes, you'll find that your 13th day Data.fs.old is exactly as that of day one. An even though you had never packed the database to 0 days, the problem would come up if, for any reason, you feel like it's time to manually pack the database to 0, in between those two weeks. Your cron job won't modify the existing Data.fs.old for the following two weeks. Am I missing something? Thanks in advance, Ausum From toni_vicens at terra.es Sun Jan 16 13:04:12 2005 From: toni_vicens at terra.es (Tvicens) Date: Sun Jan 16 13:04:15 2005 Subject: [Zope] redirect to a https server sending post parameters Message-ID: <200501161804.j0GI4CY1015609@dell01.dinaserver.com> Hi to everyone, I'm building an e-commerce website using zope and I've come to a problem I don't know how to solve. I'm trying to make a redirect to the bank server from a python external method but the page which I'm trying to redirect only accepts parameters sent using a post method. Doing a little of research I've found out a very close solution at http://mail.zope.org/pipermail/zope/2003-March/132569.html using M2Crypto and urllib. The problem is I need to do a redirect insted of returning the bank's page as if I was serving it. Does anyone know how to do this? Any help would be greatly appreciated as I'm really stuck. Thanks a lot in advance, Toni. From tim.peters at gmail.com Sun Jan 16 13:12:15 2005 From: tim.peters at gmail.com (Tim Peters) Date: Sun Jan 16 13:12:16 2005 Subject: [Zope] ZODB packaging behaviour: bug or feature? In-Reply-To: References: Message-ID: <1f7befae05011610127bbb6a2@mail.gmail.com> [Ausum Studio] > Use case: > Create a new Zope instance. Perform some changes and then > pack the database to remove objects revisions older to 0 days. > You want a clean instance to start with. Now create a cron job > to daily pack the database to remove objects older to 14 days, > and start to use your instance. Zope won't pack the database at > all, and I guess it will be for the first 2 weeks, because it won't > find revisions older to 14 days during that time. > > Is that normal behaviour? I don't know what "normal" means, but it's the behavior you're asking for in that scenario. > Telling by the interface text at the Database Management tab, it > looks like the command would create a Data.fs.old file > even though there weren't older revisions than the number set, > meaning that by default the packing would create an exact copy > of the current Data.fs (to keep all changes), at least until there > were revisions to remove. If you're using a current ZODB (anything at or after 3.2.1c1; 3.2.5 is the latest stable release in the 3.2 line), an attempt to pack to a time earlier than the most recent time ever packed to shouldn't do anything more than raise a FileStorageError with this detail: The database has already been packed to a later time or no changes have been made since the last pack > The problem is that if you rely on Data.fs.old for backup > purposes, Sorry, that's not a reasonable backup strategy. The intended way to do FileStorage backup is explained here: http://zope.org/Wikis/ZODB/FileStorageBackup > you'll find that your 13th day Data.fs.old is exactly as that of day > one. Which is one reason for doing backups the intended way . > An even though you had never packed the database to 0 days, > the problem would come up if, for any reason, you feel like it's > time to manually pack the database to 0, in between those two > weeks. Manually packing the database to 0 is a novel meaning for "never packed the database to 0 days" . > Your cron job won't modify the existing Data.fs.old for the > following two weeks. > > Am I missing something? Thanks in advance, You're missing that regular backups are needed regardless of packing -- tying backups to packing is poor practice. The intended backup procedure is independent of when pack does or doesn't happen to get rid of something. In fact, it goes faster if packing doesn't occur (so long as that's true, it can do quick incremental backups instead of a full backup -- read the page referenced above). From sitharus at gmail.com Sun Jan 16 16:29:28 2005 From: sitharus at gmail.com (Phillip Hutchings) Date: Sun Jan 16 16:29:30 2005 Subject: [Zope] Apache and Zope In-Reply-To: <20050116105024.GB6135@morpheus.matrix.de> References: <480ED19A579467459C9CCACFCD2135F7D3B7FA@utah.inside.msdinc.com> <5f62f8a050116021454ec6b61@mail.gmail.com> <20050116105024.GB6135@morpheus.matrix.de> Message-ID: <5f62f8a050116132931fd0ea8@mail.gmail.com> > This doesn't make any sense and even though I'm not a apache-pro I > don't think its correct at all. How does apache decide which > VirtualHost to use? It matches the Host: header against the ServerName attribute. See http://httpd.apache.org/docs-2.0/vhosts/name-based.html, it's the same for 1.3 as well. > For the OP, if you use only the following NameVirtualHost and leave > the rest as is, it should work: > > NameVirtualHost *:80 That will work as well, but only because the separate hostnames point to the same IP address. The attribute in the VirtualHost 'tag' specifies the IP address to bind the virtual host definition to, in the case of name-based you just assign the same IP to all the hosts on that IP address. -- Phillip Hutchings http://www.sitharus.com/ sitharus@gmail.com / sitharus@sitharus.com From sitharus at gmail.com Sun Jan 16 16:35:44 2005 From: sitharus at gmail.com (Phillip Hutchings) Date: Sun Jan 16 16:35:48 2005 Subject: [Zope] form and zpt question In-Reply-To: References: Message-ID: <5f62f8a0501161335146596f4@mail.gmail.com> > in case of an error, it re-renders the template with the error above. this > works fine, but I want it to keep the values already entered in the form, > not to give me a blank form. one way to specify them when calling the > template from the script, but in large forms this will result in a very > long parameter list. is there one object that holds all the values that I > can pass back to the template? The request details are in the request/form/itemname TALES expression, so just put tal:attributes="value request/form/itemname | nothing" in the tag. I can't tell you offhand how to check the values for things like checkboxes, but I think it should be tal:attributes="checked python:REQUEST.form['itemname'] == itemvalue", but I may be wrong. -- Phillip Hutchings http://www.sitharus.com/ sitharus@gmail.com / sitharus@sitharus.com From haim at babysnakes.org Sun Jan 16 17:12:03 2005 From: haim at babysnakes.org (Haim Ashkenazi) Date: Sun Jan 16 17:12:22 2005 Subject: [Zope] Re: form and zpt question References: <5f62f8a0501161335146596f4@mail.gmail.com> Message-ID: On Mon, 17 Jan 2005 10:35:44 +1300, Phillip Hutchings wrote: >> in case of an error, it re-renders the template with the error above. this >> works fine, but I want it to keep the values already entered in the form, >> not to give me a blank form. one way to specify them when calling the >> template from the script, but in large forms this will result in a very >> long parameter list. is there one object that holds all the values that I >> can pass back to the template? > > The request details are in the request/form/itemname TALES expression, > so just put tal:attributes="value request/form/itemname | nothing" in > the tag. I can't tell you offhand how to check the values for things > like checkboxes, but I think it should be tal:attributes="checked > python:REQUEST.form['itemname'] == itemvalue", but I may be wrong. thanx, after playing a little with formulator, I found how to do that, but it's always good to have another option :) Bye -- Haim From lists at andreas-jung.com Mon Jan 17 00:11:15 2005 From: lists at andreas-jung.com (Andreas Jung) Date: Mon Jan 17 00:11:24 2005 Subject: [Zope] redirect to a https server sending post parameters In-Reply-To: <200501161804.j0GI4CY1015609@dell01.dinaserver.com> References: <200501161804.j0GI4CY1015609@dell01.dinaserver.com> Message-ID: <1C562A1445D80E2E93F6BCB6@[192.168.0.102]> --On Sonntag, 16. Januar 2005 19:04 Uhr +0100 Tvicens wrote: > The problem is I need to do a redirect insted of returning the bank's page > as if I was serving it. Your problem description is somewhat weird. Redirection means that you use RESPONSE.redirect() which will generate a HTTP Location: header. So what do you need? A redirection or resubmission of the data to some other URL? -aj From lists at andreas-jung.com Mon Jan 17 00:26:59 2005 From: lists at andreas-jung.com (Andreas Jung) Date: Mon Jan 17 00:27:06 2005 Subject: [Zope] problem with property sheet interface and multiple selection In-Reply-To: <000c01c4fbe9$fdf96bf0$9d64e9d9@XPH0001LC> References: <000c01c4fbe9$fdf96bf0$9d64e9d9@XPH0001LC> Message-ID: <80513AADD9D2D9AF1395B39A@[192.168.0.102]> File a bug report for this *including* a detailed description how to reproduce the rror. -aj --On Sonntag, 16. Januar 2005 17:39 Uhr +0100 Thomas Adams wrote: > Hi all, > > when I try to add an editable property sheet interface > for a propertysheet with a multiple selection property, > this runs into the error shown below: > > Traceback (innermost last): > Module ZPublisher.Publish, line 101, in publish > Module ZPublisher.mapply, line 88, in mapply > Module ZPublisher.Publish, line 39, in call_object > Module ZClasses.Property, line 84, in manage_createView > Module ZClasses.Property, line 188, in manage_createEditor > Module ZClasses.Method, line 103, in manage_addDTMLMethod > Module OFS.DTMLMethod, line 403, in addDTMLMethod > AttributeError: 'unicode' object has no attribute 'read' > > Does anybody have suggestions? > > Regards > Thomas > > P.S.: > I'm currently working on (Zope 2.7.3-0, python 2.3.4, win32) under > Windows XP with Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 > bit (Intel)] > > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) From tariq.rashid at uk.easynet.net Mon Jan 17 05:17:20 2005 From: tariq.rashid at uk.easynet.net (Tariq Rashid) Date: Mon Jan 17 05:19:12 2005 Subject: [Zope] Python 2.3.3 vs. Python 2.3.4 Message-ID: <37DB2705555B4C44842BEA017A6E80DB047FC3@exch2-bllon.uk.easynet.corp> perhaps an rpm -Uvh rather than an rom -ivh is a better idea when upgrading? also try uising the built in tools for upgrading ... these are usually specific to your distribution .. mandrake have urpmi, suse have yast and redhat have something else? tariq -----Original Message----- From: hpinson@indepthl.com [mailto:hpinson@indepthl.com] Sent: 16 January 2005 04:43 To: zope@zope.org Subject: [Zope] Python 2.3.3 vs. Python 2.3.4 Hi. I am unclear of the benefits of using Python 2.3.4 over Python 2.3.3 Could someone please explain? The reason being is that I am having trouble upgrading my Fedora Core 1 server getting the 2.3.4 rpm to install: rpm -ivh python2.3-2.3.4-3pydotorg.i386.rpm Results in many errors and will not install. This is the same method I used to upgrade the Python version alongside the existing FC1 python. I have installed and run Zope 2.7.3 for about two months now along with Python 2.3.3, with no problems that I am aware of (which does not mean that there are none). I have now installed Zope 2.7.4, still with Python 2.3.3, and Zope and Plone 2.0.5 both appear to behave normally. Am I alright continuing to run Python 2.3.3? Or is disaster lurking by not running Python 2.3.4? TIA Harlow Pinson Indepth Learning Email: hpinson@indepthl.com Web: http://www.indepthl.com Voice: 505-994-2135 FAX: 208-475-7678 _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) From greggehrich at yahoo.com Mon Jan 17 11:21:46 2005 From: greggehrich at yahoo.com (Gregory Gehrich) Date: Mon Jan 17 11:22:25 2005 Subject: [Zope] Re: Hierarchical content In-Reply-To: <20050114004008.GA98558@camelot.theinternet.com.au> References: <20050114004008.GA98558@camelot.theinternet.com.au> Message-ID: Is anyone aware of a UI that displays their content as nested within Zope? Andrew Milton wrote: > +-------[ Greg Gehrich ]---------------------- > | I want to be able to create content and then attach sub-content to it. > | For example, if tasks were the content, it would look like the following: > | > | go shopping > | get bananas > | get bread > | pick up cleaning > | get shirt > | get pants > | clean house > | clean kitchen > | clean mixer > | clean clean sink > | clean bedroom > | > | I don't want to have the overhead of creating and sifting through > | folders as you navigate the hierarchy. In order to do this, I need the > | ability to have content that has folderish properties allowing sub content. > > You could set a property on your item that points to the sub-items. > If the list is ordered, you'd need to obviously also add some ordering > information. > > Or subclass an existing document type and add the same type of thing. > From feedreader at yahoo.com Mon Jan 17 12:11:03 2005 From: feedreader at yahoo.com (Ken Ara) Date: Mon Jan 17 12:11:05 2005 Subject: [Zope] Re: Hierarchical content Message-ID: <20050117171104.40188.qmail@web53303.mail.yahoo.com> Greg, A nifty way to create a folderish hierarchy is by using the TopicIndex class of the DocumentLibrary product. You simply import a tabbed-indented outline such as that found here: http://zope.org/Members/Kaivo/DocumentLibrary/1.0/LegalTopicIndex.txt You can even leave out the numeric ids in the sample; sequential ids will be assigned automatically. HTH, Ken --- In zope@yahoogroups.com, Greg Gehrich wrote: > I want to be able to create content and then attach sub-content to it. > For example, if tasks were the content, it would look like the following: > > go shopping > get bananas > get bread > pick up cleaning > get shirt > get pants > clean house > clean kitchen > clean mixer > clean clean sink > clean bedroom > > I don't want to have the overhead of creating and sifting through > folders as you navigate the hierarchy. In order to do this, I need the > ability to have content that has folderish properties allowing sub content. > > Is there a product out there that has similar characteristics? If I > were to build this, what tools within plone would I use? __________________________________ Do you Yahoo!? The all-new My Yahoo! - What will yours do? http://my.yahoo.com From hpinson at indepthl.com Mon Jan 17 12:40:43 2005 From: hpinson at indepthl.com (hpinson@indepthl.com) Date: Mon Jan 17 12:38:49 2005 Subject: [Zope] Python 2.3.3 vs. Python 2.3.4 Message-ID: <41EB962B.21799.13A3F69C@localhost> >> perhaps an rpm -Uvh rather than an rom -ivh is a better idea >> when upgrading? I am literally terrified of overwriting the Fedora Core 1 System python in this manner (this is a production system). If I did that, FC1 would be trashed, as lots relys on the older version of Python. I have no way to judge if what you suggest is safe of not, except some vague Q&A's at python.org that might suggest that it is. My understanding is that -ivh will install alongside previous versions as opposed to upgrading them, and thus is a safer option. >> Build python This is maybe what I should do. Can and one provide definitive insight into how to do this alongside the existing FC1 python. The two python versions must be completely separate, or the system is toast. I'm guessing something along the lines of: cd python2.4 configure --prefix=/where/should/I/put/python? make make install Per above, I need help with the prefix-- what should the path to the new python be? There shold be no chance of overwriting the system python. Thanks! Harlow Pinson Indepth Learning Email: hpinson@indepthl.com Web: http://www.indepthl.com Voice: 505-994-2135 FAX: 208-475-7678 From jens at dataflake.org Mon Jan 17 12:49:41 2005 From: jens at dataflake.org (Jens Vagelpohl) Date: Mon Jan 17 12:49:48 2005 Subject: [Zope] Python 2.3.3 vs. Python 2.3.4 In-Reply-To: <41EB962B.21799.13A3F69C@localhost> References: <41EB962B.21799.13A3F69C@localhost> Message-ID: <2A3E0663-68B0-11D9-9352-000D9368D272@dataflake.org> >>> Build python > This is maybe what I should do. Can and one provide definitive > insight into how to do this alongside the existing FC1 python. The > two python versions must be completely separate, or the system is > toast. If you take a look at the Python sources from python.org or simply run ./configure --help it will tell you all those details. There is no rocket science involved. By default, if no separate --prefix option is specified, everything will go under /usr/local, so there is no clash whatsoever. jens --------------- Jens Vagelpohl jens@zetwork.com Software Engineer +49-(0)441-36 18 14 38 Zetwork GmbH http://www.zetwork.com/ From tseaver at zope.com Mon Jan 17 12:51:33 2005 From: tseaver at zope.com (Tres Seaver) Date: Mon Jan 17 12:51:52 2005 Subject: [Zope] Re: Python 2.3.3 vs. Python 2.3.4 In-Reply-To: <41EB962B.21799.13A3F69C@localhost> References: <41EB962B.21799.13A3F69C@localhost> Message-ID: <41EBFB25.9080805@zope.com> hpinson@indepthl.com wrote: >>>perhaps an rpm -Uvh rather than an rom -ivh is a better idea >>>when upgrading? > > > I am literally terrified of overwriting the Fedora Core 1 System > python in this manner (this is a production system). If I did that, > FC1 would be trashed, as lots relys on the older version of Python. > I have no way to judge if what you suggest is safe of not, except > some vague Q&A's at python.org that might suggest that it is. My > understanding is that -ivh will install alongside previous versions > as opposed to upgrading them, and thus is a safer option. > > >>>Build python > > This is maybe what I should do. Can and one provide definitive > insight into how to do this alongside the existing FC1 python. The > two python versions must be completely separate, or the system is > toast. > > I'm guessing something along the lines of: > > cd python2.4 > configure --prefix=/where/should/I/put/python? > make > make install BTW, *nobody* suggested using Pythhon 2.4; the suggestion was to use Python 2.3.4, which contained at least one known "stability / crash fix" exercised by Zope. > Per above, I need help with the prefix-- what should the path to the > new python be? There shold be no chance of overwriting the system > python. Try '/opt/zope', or some such. It really doesn't matter, as long as it isn't '/usr' (which is where FC puts the "stock" Python). If you pass no prefix at all, Python's 'configure' will assume '/usr/local', which would work, too. Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From rodsenra at gpr.com.br Mon Jan 17 12:58:35 2005 From: rodsenra at gpr.com.br (Rodrigo Dias Arruda Senra) Date: Mon Jan 17 12:57:31 2005 Subject: [Zope] Python 2.3.3 vs. Python 2.3.4 In-Reply-To: <41EB962B.21799.13A3F69C@localhost> References: <41EB962B.21799.13A3F69C@localhost> Message-ID: <41EBFCCB.5080909@gpr.com.br> hpinson@indepthl.com wrote: >>>perhaps an rpm -Uvh rather than an rom -ivh is a better idea >>>when upgrading? > > > I am literally terrified of overwriting the Fedora Core 1 System I suggest that you check where the default python is installed with commands like `whereis python`. Most likely it will be in /usr/bin/python. If that is the case, you could install the up-to-date version in /usr/local. Otherwise any directory that you have write permission will suffice. > This is maybe what I should do. Can and one provide definitive > insight into how to do this alongside the existing FC1 python. The > two python versions must be completely separate, or the system is > toast. > > I'm guessing something along the lines of: > > cd python2.4 2.4 or 2.3.4 (in the title)! Pay attention to version numbers. > configure --prefix=/where/should/I/put/python? > make > make install > > Per above, I need help with the prefix-- what should the path to the > new python be? There shold be no chance of overwriting the system > python. > --prefix=/usr/local # but do the check first, I have no experience with FC1 distro. You can also rename the python binaries to python2.4 (post-install) to avoid confusion amongst the maitenance team. regards, Senra -- Rodrigo Senra MSc Computer Engineer rodsenra@gpr.com.br GPr Sistemas Ltda http://www.gpr.com.br From hpinson at indepthl.com Mon Jan 17 13:44:24 2005 From: hpinson at indepthl.com (hpinson@indepthl.com) Date: Mon Jan 17 13:42:28 2005 Subject: [Zope] Re: Python 2.3.3 vs. Python 2.3.4 Message-ID: <41EBA518.23749.13DE4255@localhost> Sorry-- Python 2.3.4 is what I meant. But this question would really apply to any version of python to be installed that applies to the system python. Thanks for the suggestions-- I do believe that I now know how to install multiple versions of python on one machine. I will test on a development machine prior to deployment on production. Harlow Pinson Indepth Learning Email: hpinson@indepthl.com Web: http://www.indepthl.com Voice: 505-994-2135 FAX: 208-475-7678 From dieter at handshake.de Mon Jan 17 13:57:38 2005 From: dieter at handshake.de (Dieter Maurer) Date: Mon Jan 17 14:32:34 2005 Subject: [Zope] Re: Hierarchical content In-Reply-To: References: <20050114004008.GA98558@camelot.theinternet.com.au> Message-ID: <16876.2722.380364.164895@gargle.gargle.HOWL> Gregory Gehrich wrote at 2005-1-17 08:21 -0800: >Is anyone aware of a UI that displays their content as nested within Zope? What about "manage_menu"? This is the left frame in Zope's Management Page for folders... -- Dieter From dieter at handshake.de Mon Jan 17 13:56:55 2005 From: dieter at handshake.de (Dieter Maurer) Date: Mon Jan 17 14:32:54 2005 Subject: [Zope] redirect to a https server sending post parameters In-Reply-To: <200501161804.j0GI4CY1015609@dell01.dinaserver.com> References: <200501161804.j0GI4CY1015609@dell01.dinaserver.com> Message-ID: <16876.2679.300389.910818@gargle.gargle.HOWL> Tvicens wrote at 2005-1-16 19:04 +0100: >I'm building an e-commerce website using zope and I've come to a problem I >don't know how to solve. > >I'm trying to make a redirect to the bank server from a python external >method but the page which I'm trying to redirect only accepts parameters >sent using a post method. HTTP 1.1 explicitely forbids HTTP compatible clients to redirect a POST request without explicit interaction with the user. Current browsers do not support a redirected POST at all. Thus, you proably do not want to use "redirect". Instead, you could use "urllib2" (maybe "ZPublisher.Client") to send your "POST" and return back the result to your client. Your application behaves in this case as a proxy. > ... >The problem is I need to do a redirect insted of returning the bank's page >as if I was serving it. I see no chance for you. Why do you need a redirect? Why can you not behave as a proxy? -- Dieter From dieter at handshake.de Mon Jan 17 13:46:47 2005 From: dieter at handshake.de (Dieter Maurer) Date: Mon Jan 17 14:33:01 2005 Subject: [Zope] problem with property sheet interface and multiple selection In-Reply-To: <000c01c4fbe9$fdf96bf0$9d64e9d9@XPH0001LC> References: <000c01c4fbe9$fdf96bf0$9d64e9d9@XPH0001LC> Message-ID: <16876.2071.330843.393733@gargle.gargle.HOWL> Thomas Adams wrote at 2005-1-16 17:39 +0100: >when I try to add an editable property sheet interface >for a propertysheet with a multiple selection property, >this runs into the error shown below: > >Traceback (innermost last): > Module ZPublisher.Publish, line 101, in publish > Module ZPublisher.mapply, line 88, in mapply > Module ZPublisher.Publish, line 39, in call_object > Module ZClasses.Property, line 84, in manage_createView > Module ZClasses.Property, line 188, in manage_createEditor > Module ZClasses.Method, line 103, in manage_addDTMLMethod > Module OFS.DTMLMethod, line 403, in addDTMLMethod >AttributeError: 'unicode' object has no attribute 'read' This traceback does not correspond to your subject: The traceback tells you that you try to create a "DTMLMethod" from a "unicode" string. However, "DTMLMethod" only supports normal (non unicode) strings or file like objects. Check, where the string comes from that you want to convert into a "DTMLMethod". Ensure, it is a simple string and not unicode. -- Dieter From jake at zopezone.com Mon Jan 17 14:56:21 2005 From: jake at zopezone.com (Jake) Date: Mon Jan 17 14:56:24 2005 Subject: [Zope] Zope 2.7.4 - ZClass Permissions Change? Message-ID: I have a few ZClass products that no longer allow me to add new objects and it is new since Zope2.7b4. It is happening with a few products like SimpleURL and KnowledgeKit and I am getting errors like: "Unauthorized: You are not allowed to access 'blah' in this context" It could be a method, a list or ZopeTime. I looked over the release files and can't find anything on this specifically. Jake ____________________ http://www.ZopeZone.com "Zoping for the rest of us" From lists at andreas-jung.com Mon Jan 17 15:06:00 2005 From: lists at andreas-jung.com (Andreas Jung) Date: Mon Jan 17 15:06:03 2005 Subject: [Zope] Zope 2.7.4 - ZClass Permissions Change? In-Reply-To: References: Message-ID: <602CE520D0B708878D42ACCF@[192.168.0.102]> --On Montag, 17. Januar 2005 14:56 Uhr -0500 Jake wrote: > I have a few ZClass products that no longer allow me to add new objects > and it is new since Zope2.7b4. > > It is happening with a few products like SimpleURL and KnowledgeKit and I > am getting errors like: > > "Unauthorized: You are not allowed to access 'blah' in this context" > > It could be a method, a list or ZopeTime. > > I looked over the release files and can't find anything on this > specifically. > There were no ZClasses changes since ages (in fact there is nobody willing to touch ZClasses :-)) Maybe install VerboseSecurity to figure out details... -aj From robert at redcor.ch Mon Jan 17 15:18:05 2005 From: robert at redcor.ch (robert) Date: Mon Jan 17 15:18:18 2005 Subject: [Zope] Re: Hierarchical content In-Reply-To: References: <20050114004008.GA98558@camelot.theinternet.com.au> Message-ID: <41EC1D7D.40703@redcor.ch> There is a product called ZopeTree google for it robert Gregory Gehrich wrote: > Is anyone aware of a UI that displays their content as nested within > Zope? > > Andrew Milton wrote: > >> +-------[ Greg Gehrich ]---------------------- >> | I want to be able to create content and then attach sub-content to >> it. | For example, if tasks were the content, it would look like the >> following: >> | | go shopping >> | get bananas >> | get bread >> | pick up cleaning >> | get shirt >> | get pants >> | clean house >> | clean kitchen >> | clean mixer >> | clean clean sink >> | clean bedroom >> | | I don't want to have the overhead of creating and sifting through >> | folders as you navigate the hierarchy. In order to do this, I need >> the | ability to have content that has folderish properties allowing >> sub content. >> >> You could set a property on your item that points to the sub-items. >> If the list is ordered, you'd need to obviously also add some ordering >> information. >> >> Or subclass an existing document type and add the same type of thing. >> > > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) > From richardjones at optushome.com.au Mon Jan 17 16:14:17 2005 From: richardjones at optushome.com.au (Richard Jones) Date: Mon Jan 17 16:14:25 2005 Subject: [Zope] Zope 2.7.4 - ZClass Permissions Change? In-Reply-To: References: Message-ID: <200501180814.20795.richardjones@optushome.com.au> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 18 Jan 2005 06:56 am, Jake wrote: > I have a few ZClass products that no longer allow me to add new objects > and it is new since Zope2.7b4. > > It is happening with a few products like SimpleURL and KnowledgeKit and > I am getting errors like: > > "Unauthorized: You are not allowed to access 'blah' in this context" > > It could be a method, a list or ZopeTime. > > I looked over the release files and can't find anything on this > specifically. There was a change in 2.7.3 that broke a few people's permissions structures. The discussion about that kinda petered off with no real resolution, so the change is still active in 2.7.4. Sorry, no handy reference at the moment. The change was in AccessControl/ImplPython.py function guarded_getattr. The following change "fixed" it for me, though there is concern about the validity of the change: *************** *** 551,560 **** return v validate = SecurityManagement.getSecurityManager().validate + # Filter out the objects we can't access. + if hasattr(inst, 'aq_acquire'): + return inst.aq_acquire(name, aq_validate, validate) + # Or just try to get the attribute directly. if validate(inst, inst, name, v): return v raise Unauthorized, name - --- 551,556 ---- Richard -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFB7CqsrGisBEHG6TARAlAcAJ9hwkoJzBnLR4gqGaf3dUsU/mzlUACfdagl R+NWeZ19C3MuvHqp7UK3K8I= =xI0e -----END PGP SIGNATURE----- From hpinson at indepthl.com Mon Jan 17 18:38:04 2005 From: hpinson at indepthl.com (hpinson@indepthl.com) Date: Mon Jan 17 18:36:10 2005 Subject: [Zope] Re: Python 2.3.3 vs. Python 2.3.4 Message-ID: <41EBE9EC.32691.14EB211A@localhost> Ok. This seems to have worked for me on Fedora Core 1, where there is a risk of hosing your system python if you do not do this right. I chose to build a clean verion of Python 2.3.4 and run it alongside other Python versions that were on the system. Get Python from www.python.org Put the tarball somewhere, like: /home/myhome/src/python/2.34 su to root cd /home/myhome/src/python/2.34 gunzip version_of_python.tgz tar -xvf version_of_python.tar cd version_of_python ./configure --prefix=/opt/python2.3.4 make make install ln -s /opt/python.2.3.4/bin/python2.3 /usr/bin/python2.3.4 cd /usr/bin chmod 755 python2.3.4 To test, type: python2.3.4 You should get a version listing of 2.3.4 and the Python console. Ctrl-D to exit. Then modify zopectl and runzope in /etc/zope-instance/bin to point to the new path to Python 2.3.4. Back these files up before making changes. Restart Zope, hopefully without any problems: service zopectl restart (assuming you have created such a service) If Zope will not start, you can always revert the paths in zopectl and runzope to the old python, whatever that was. Again, be very careful on Redhat / Fedora systems that rely on Python for critical services... I would hate to hear that someone overwrote their system Python! Good luck to the next vict... er... I mean... lucky person who trys this. Harlow Pinson Indepth Learning Email: hpinson@indepthl.com Web: http://www.indepthl.com Voice: 505-994-2135 FAX: 208-475-7678 From jake at zopezone.com Mon Jan 17 18:46:11 2005 From: jake at zopezone.com (Jake) Date: Mon Jan 17 18:46:13 2005 Subject: [Zope] Zope 2.7.4 - ZClass Permissions Change? In-Reply-To: <200501180814.20795.richardjones@optushome.com.au> References: <200501180814.20795.richardjones@optushome.com.au> Message-ID: Hi Richard, Was the reported as a bug? Jake ____________________ http://www.ZopeZone.com "Zoping for the rest of us" On Jan 17, 2005, at 4:14 PM, Richard Jones wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Tue, 18 Jan 2005 06:56 am, Jake wrote: >> I have a few ZClass products that no longer allow me to add new >> objects >> and it is new since Zope2.7b4. >> >> It is happening with a few products like SimpleURL and KnowledgeKit >> and >> I am getting errors like: >> >> "Unauthorized: You are not allowed to access 'blah' in this context" >> >> It could be a method, a list or ZopeTime. >> >> I looked over the release files and can't find anything on this >> specifically. > > There was a change in 2.7.3 that broke a few people's permissions > structures. > The discussion about that kinda petered off with no real resolution, > so the > change is still active in 2.7.4. > > Sorry, no handy reference at the moment. The change was in > AccessControl/ImplPython.py function guarded_getattr. The following > change > "fixed" it for me, though there is concern about the validity of the > change: > > *************** > *** 551,560 **** > return v > > validate = SecurityManagement.getSecurityManager().validate > + # Filter out the objects we can't access. > + if hasattr(inst, 'aq_acquire'): > + return inst.aq_acquire(name, aq_validate, validate) > + # Or just try to get the attribute directly. > if validate(inst, inst, name, v): > return v > raise Unauthorized, name > - --- 551,556 ---- > > > > Richard > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.4 (GNU/Linux) > > iD8DBQFB7CqsrGisBEHG6TARAlAcAJ9hwkoJzBnLR4gqGaf3dUsU/mzlUACfdagl > R+NWeZ19C3MuvHqp7UK3K8I= > =xI0e > -----END PGP SIGNATURE----- > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) > From pw_lists at slinkp.com Mon Jan 17 23:13:19 2005 From: pw_lists at slinkp.com (Paul Winkler) Date: Mon Jan 17 23:13:26 2005 Subject: [Zope] Python 2.3.3 vs. Python 2.3.4 In-Reply-To: <2A3E0663-68B0-11D9-9352-000D9368D272@dataflake.org> References: <41EB962B.21799.13A3F69C@localhost> <2A3E0663-68B0-11D9-9352-000D9368D272@dataflake.org> Message-ID: <20050118041319.GB2255@slinkp.com> On Mon, Jan 17, 2005 at 06:49:41PM +0100, Jens Vagelpohl wrote: > By default, if no separate --prefix option is specified, everything > will go under /usr/local, so there is no clash whatsoever. That's what I've been doing for years. Works fine. -- Paul Winkler http://www.slinkp.com From garito at sistes.net Tue Jan 18 03:12:01 2005 From: garito at sistes.net (Garito) Date: Tue Jan 18 03:12:27 2005 Subject: [Zope] Acquisition question Message-ID: <41ECC4D1.4090602@sistes.net> Hi all I create a product. It have a method like this: def Render(self, args): """Render method""" return self.getId() In these folderish product I put some folders and some objects inside them I would like to execute something like: object.Render(args) where: object is an object inside a folder inside my product Render is the product's Render method acquired by the object the response is the id of my product instead the id of the object as expected Is this possible? How? Thanks a lot! From tflorac at onf.fr Tue Jan 18 03:13:27 2005 From: tflorac at onf.fr (Thierry FLORAC) Date: Tue Jan 18 03:13:36 2005 Subject: [Zope] Bad performances with ordered folders Message-ID: <1106036008.22583.26.camel@m22241.6220.onf.fr> Hi, I use Zope (2.6.1) and subclasses of the "old" OrderedFolder product (release 0.4) to handle my internal site. Each "sub-site" is a kind of "big folder", handled by a specific "sub-manager", containing until two levels of sub-folders. Each folder or sub-folder is a subclass of OrderedObjectManager, containing documents (stored as ExternalFile subclasses) as well as other instances of custom properties. I have an "index_html" method (in DTML) defined for each folder or sub-folder, which displays the ordered hierarchy of the given folders or sub-folders ; access is checked against every sub-folder, so that "private" folders or sub-folders are not displayed to unauthorized users. Data handling is OK, but while displaying my other custom classes instances is quite quick, displaying these OrderedObjectManager instances is quite slow, even when a sub-site is containing only a few number of folders or sub-folders. I've tried to use a profiler to find a bottleneck, but don't know Zope and Python internals very well so handling this problem is not very easy. Any help or advise would be very helpful. Thanks, Thierry -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.zope.org/pipermail/zope/attachments/20050118/ad888e5f/attachment.htm From stefan at epy.co.at Tue Jan 18 08:06:17 2005 From: stefan at epy.co.at (Stefan H. Holek) Date: Tue Jan 18 08:06:35 2005 Subject: [Zope] Zope 2.7.4 - ZClass Permissions Change? In-Reply-To: References: <200501180814.20795.richardjones@optushome.com.au> Message-ID: There is a report of what I believe is the same issue here: http://zope.org/Collectors/CMF/318 Feel free to add the ZClass problem to the Zope collector though. I finally managed to come up with unit tests for this and am going to check them into Zope RSN. Stefan On 18. J?n 2005, at 00:46, Jake wrote: > Was the reported as a bug? -- The time has come to start talking about whether the emperor is as well dressed as we are supposed to think he is. /Pete McBreen/ From tseaver at zope.com Tue Jan 18 10:11:01 2005 From: tseaver at zope.com (Tres Seaver) Date: Tue Jan 18 10:11:21 2005 Subject: [Zope] Re: Python 2.3.3 vs. Python 2.3.4 In-Reply-To: <41EBE9EC.32691.14EB211A@localhost> References: <41EBE9EC.32691.14EB211A@localhost> Message-ID: <41ED2705.8060709@zope.com> hpinson@indepthl.com wrote: > Ok. This seems to have worked for me on Fedora Core 1, where there is > a risk of hosing your system python if you do not do this right. > > I chose to build a clean verion of Python 2.3.4 and run it alongside > other Python versions that were on the system. > > Get Python from www.python.org > Put the tarball somewhere, like: /home/myhome/src/python/2.34 > su to root (see below) > cd /home/myhome/src/python/2.34 > gunzip version_of_python.tgz > tar -xvf version_of_python.tar > cd version_of_python > ./configure --prefix=/opt/python2.3.4 > make > make install > ln -s /opt/python.2.3.4/bin/python2.3 /usr/bin/python2.3.4 > cd /usr/bin > chmod 755 python2.3.4 > > To test, type: python2.3.4 > You should get a version listing of 2.3.4 and the Python console. > Ctrl-D to exit. > > Then modify zopectl and runzope in /etc/zope-instance/bin to point to > the new path to Python 2.3.4. Back these files up before making > changes. > > Restart Zope, hopefully without any problems: > > service zopectl restart (assuming you have created such a service) > > If Zope will not start, you can always revert the paths in zopectl > and runzope to the old python, whatever that was. To be safe, you should rebuild the Zope extension modules after upgrading to the new Python: $ cd /path/to/Zope/src/ $ configure --with-python=/opt/python2.3.4/bin/python # + other args $ make $ sudo make install > Again, be very careful on Redhat / Fedora systems that rely on Python > for critical services... I would hate to hear that someone overwrote > their system Python! This isn't really risky -- you have to try pretty hard to step on the system python. If you grant yourself write access on the target directory, you can even forego running Python's 'make install' as root, which makes it effectively impossible to screw up the system python. Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From hpinson at indepthl.com Tue Jan 18 10:35:44 2005 From: hpinson at indepthl.com (hpinson@indepthl.com) Date: Tue Jan 18 10:33:22 2005 Subject: [Zope] HOWTO add a new Python alongside an old Message-ID: <41ECCA60.31374.331DD54@localhost> After some excellent suggestions, here is one way to add a new Python version alongside an old one (as one might need to do in the Fedora environment when upgrading Zope.) I chose to build a clean version of Python 2.3.4 and run it alongside other Python versions that were on the system (2.3.3) -- Get the version of Python you need from www.python.org (Check Zope/Plone dependancies) -- Put the tarball somewhere, like: /home/myhome/src/python/2.34 -- su to root $ cd /home/myhome/src/python/2.34 $ gunzip version_of_python.tgz $ tar -xvf version_of_python.tar $ cd version_of_python $ ./configure --prefix=/opt/python2.3.4 (Assuming that's where you want to put it. /usr/local could be used as well.) $ make $ make install $ ln -s /opt/python.2.3.4/bin/python2.3 /usr/bin/python2.3.4 $ cd /usr/bin $ chmod 755 python2.3.4 -- Test: $ python2.3.4 You should get a version listing of 2.3.4. Ctrl-D to exit. To be safe, you should rebuild the Zope extension modules after upgrading to the new Python: $ cd /path/to/Zope/src/ $ configure --prefix=/path/to/ZopeInstallation --with- python=/opt/python2.3.4/bin/python # + other args $ make $ make install -- Then modify zopectl and runzope in /etc/zope-instance/bin to the new path to Python 2.3.4. Back these up before making changes. -- Restart Zope: $ service zopectl restart (assuming you have created such a service) Hopefully, Zope will start. Harlow Pinson Indepth Learning Email: hpinson@indepthl.com Web: http://www.indepthl.com Voice: 505-994-2135 FAX: 208-475-7678 From chris at simplistix.co.uk Tue Jan 18 13:41:23 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Tue Jan 18 13:41:29 2005 Subject: [Zope] New ZMysql adapter connection problem In-Reply-To: <9826f38005011206384301116d@mail.gmail.com> References: <41D19EAA.7090006@technologyinedu.com> <9826f38004122811547732b40@mail.gmail.com> <41E5211A.2020603@simplistix.co.uk> <9826f38005011206384301116d@mail.gmail.com> Message-ID: <41ED5853.1080506@simplistix.co.uk> Andy Dustman wrote: > MySQLdb-1.0.1 should work fine, though I prefer that you use 1.1.8. > Since ZMySQLDA actually uses the _mysql module (C API), and most of > the differences between 1.0 and 1.1 are in the Python layer, I don't > think it really makes that much difference. > > ZMySQLDA hasn't been updated in two years because, AFAIK, there aren't > any bad issues in 2.0.8 or 2.0.9b2. I might revisit ZMySQLDA in the > next month or so. Any chance of Windows builds appearing for MySQLdb-1.0.1 and ZMySQLDA 2.0.9b2? Also, could 2.0.9b2 become 2.0.9? l0( cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From chris at simplistix.co.uk Tue Jan 18 13:43:04 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Tue Jan 18 13:43:16 2005 Subject: [Zope] Re: ZEO-Client In-Reply-To: <41E543BA.8080204@zope.com> References: <41E543BA.8080204@zope.com> Message-ID: <41ED58B8.1020600@simplistix.co.uk> Tres Seaver wrote: > A minutes-long startup is likely due to the client's need to verify a > large persistent disk cache; one workaround would be to turn off > persistent caches; How do you do this now? I've tried all I coudl think of and still have .zec files lying around causing havoc when connecting from one zeo client to several zeo servers in turn (dev and live storages, for example..) cheers, Chrus -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From tseaver at zope.com Tue Jan 18 13:46:20 2005 From: tseaver at zope.com (Tres Seaver) Date: Tue Jan 18 13:46:25 2005 Subject: [Zope] Re: ZEO-Client In-Reply-To: <41ED58B8.1020600@simplistix.co.uk> References: <41E543BA.8080204@zope.com> <41ED58B8.1020600@simplistix.co.uk> Message-ID: <41ED597C.2050201@zope.com> Chris Withers wrote: > Tres Seaver wrote: > >> A minutes-long startup is likely due to the client's need to verify a >> large persistent disk cache; one workaround would be to turn off >> persistent caches; > > How do you do this now? > I've tried all I coudl think of and still have .zec files lying around > causing havoc when connecting from one zeo client to several zeo servers > in turn (dev and live storages, for example..) Remove the 'client' key from the storage config in zope.conf. $ZOPE_HOME/lib/python/ZODB/component.xml says, Enables persistent cache files. The string passed here is used to construct the cache filenames. If it is not specified, the client creates a temporary cache that will only be used by the current object. Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From chris at simplistix.co.uk Tue Jan 18 13:47:22 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Tue Jan 18 13:47:25 2005 Subject: [Zope] uploading a file via an external method In-Reply-To: <20050112131634.SM01144@CETSKL> References: <20050112131634.SM01144@CETSKL> Message-ID: <41ED59BA.9070205@simplistix.co.uk> I'd suggest you look at LocalFS or one of the ExtFile products rather than trying to hack something yourself... Chris Kate Legere wrote: > I've used this to upload files to a specific directory, not to Zope (or as > an Zope object). The problem is that it's looking in the folder for the > files and I'd like it to upload from a chosen directory (or my desktop) in > the same way as manage_addFile does. > > Kate > > > > external method called upload_external: > > import os, shutil > > def upload_external(self,file,REQUEST): > #check if file was sent correctly > if file.read(1) == '': > return '

File does not exist

' > else: > file.seek(0) > iname=os.path.basename(file.filename) > oname=os.path.join(self.savedir,iname) > f=open(oname,"wb") > f.write(file.read()) > # let's get the mime information > mime_type=file.headers.headers[1] > user=str(REQUEST.AUTHENTICATED_USER) > try: > self.add_entry(path=self.savedir,filename=iname,owner=user) > except: > os.remove(oname) > return '

File upload not completed correctly

' > return '''

%s was sent correctly, and saved in %s

The Mime Type > of the file is

%s

Saved by

%s''' % (iname,oname,mime_type,user) > > > The self.savedir is a property set in the folder which contains the external > method and tells the external method where to put the file. > > The self.add_entry is an update on a database to keep track of the files > uploaded, etc. > > ---------- > > upload_html: > >
ENCTYPE="multipart/form-data"> > > > > > > > > > >
File > >

>
> > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) > -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From zope at digital-adventures.nl Tue Jan 18 13:47:22 2005 From: zope at digital-adventures.nl (Martin Koekenberg) Date: Tue Jan 18 13:47:56 2005 Subject: [Zope] Hou to write out a dutch (european) currency Message-ID: <41ED59BA.6090204@digital-adventures.nl> Hello, I want to write out a Currency in euro's : ? 1.234,10 But when I use I get ? 1234.10. What is the right fmt tag for this ? Thanks, Martin From chris at simplistix.co.uk Tue Jan 18 13:52:15 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Tue Jan 18 13:52:31 2005 Subject: [Zope] Apache configuration In-Reply-To: <20050113181712.1389B2032D5@mail.zope.org> References: <20050113181712.1389B2032D5@mail.zope.org> Message-ID: <41ED5ADF.2000308@simplistix.co.uk> Larry Silverman wrote: > My apache config required the use of the SiteRoot component. I have an > apache web server w/SSL that I use for several things, and the zope/plone > site is available under https://hostname/plone SiteRoots are very very evil and need to go away. > Using the Zope manage app, under my 'plone' site, I added a SiteRoot > component, and set its path to /plone. > > In httpd.conf in the 443 virtual host area, I have: > RewriteEngine on > RewriteRule ^/plone(.*) > http://localhost:8080/plone/VirtualHostBase/https/hostname:443/plone/Virtual > HostRoot/$1 [P] > > If you don't need SSL, this would be: > RewriteEngine on > RewriteRule ^/plone(.*) > http://localhost:8080/plone/VirtualHostBase/http/hostname:80/plone/VirtualHo > stRoot/$1 [P] > (note the two changes, https->http and 443->80) > > Before I added the use of the SiteRoot, I could get the page, but all the > links inside the page were pointing to https://hostname and not > https://hostname/plone, and all images, stylesheets, etc were broken. The corect way to solve this is to change, for example, your non-ssl example would become... http://localhost:8080/plone/VirtualHostBase/http/hostname:80/VirtualHostRoot/_vh_plone$1 [P] cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From farcepest at gmail.com Tue Jan 18 13:55:42 2005 From: farcepest at gmail.com (Andy Dustman) Date: Tue Jan 18 13:55:47 2005 Subject: [Zope] New ZMysql adapter connection problem In-Reply-To: <41ED5853.1080506@simplistix.co.uk> References: <41D19EAA.7090006@technologyinedu.com> <9826f38004122811547732b40@mail.gmail.com> <41E5211A.2020603@simplistix.co.uk> <9826f38005011206384301116d@mail.gmail.com> <41ED5853.1080506@simplistix.co.uk> Message-ID: <9826f3800501181055cbc6bb3@mail.gmail.com> On Tue, 18 Jan 2005 18:41:23 +0000, Chris Withers wrote: > Any chance of Windows builds appearing for MySQLdb-1.0.1 and ZMySQLDA > 2.0.9b2? Sure, there's a chance. There's a zero chance of me building them, since I have neither the tools nor the inclination, but a non-zero chance of someone else building them, and if they let me know about it, I'll make it available for download on SourceForge. > Also, could 2.0.9b2 become 2.0.9? l0( Just scratch out the "b2" and you'll be fine. I'm working on some small issues for MySQLdb-1.1.9, which wlil almost certainly become 1.2.0, and then maybe I can think about ZMySQLDA. -- Computer interfaces should never be made of meat. Using GMail? Setting Reply-to address to <> disables this annoying feature. From chris at simplistix.co.uk Tue Jan 18 13:57:54 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Tue Jan 18 13:58:09 2005 Subject: [Zope] Zope xmlrpc crashes without traceback In-Reply-To: <16870.58023.503202.767525@gargle.gargle.HOWL> References: <41E3F1BF.70501@gims.com> <16870.58023.503202.767525@gargle.gargle.HOWL> Message-ID: <41ED5C32.6000104@simplistix.co.uk> Dieter Maurer wrote: > Maybe, Windows, too lets you run Zope in a C level debugger > that gets control in case of fatal events ? Yep, if you have MSVC++ installed, you should get a modal dialogue box pop up when Zope crashes. However, I would stress that using runzope.bat in a command prompt is much more fruitful and finding out what kills things than usign Zope as a service. Hopefully the work Mark Hammond is doing on this will make things better eventually... Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From chris at simplistix.co.uk Tue Jan 18 14:01:04 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Tue Jan 18 14:01:16 2005 Subject: [Zope] Hierarchical content In-Reply-To: References: Message-ID: <41ED5CF0.4050603@simplistix.co.uk> Greg Gehrich wrote: > I want to be able to create content and then attach sub-content to it. > For example, if tasks were the content, it would look like the following: > > go shopping > get bananas > get bread > pick up cleaning > get shirt > get pants > clean house > clean kitchen > clean mixer > clean clean sink > clean bedroom > > I don't want to have the overhead of creating and sifting through > folders as you navigate the hierarchy. In order to do this, I need the > ability to have content that has folderish properties allowing sub content. What overhead is this? I'd do this as nested ordered folders and use the ZMI to manage it all, unless there are other hidden requirements here... Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From chris at simplistix.co.uk Tue Jan 18 14:03:32 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Tue Jan 18 14:03:40 2005 Subject: [Zope] New ZMysql adapter connection problem In-Reply-To: <9826f3800501181055cbc6bb3@mail.gmail.com> References: <41D19EAA.7090006@technologyinedu.com> <9826f38004122811547732b40@mail.gmail.com> <41E5211A.2020603@simplistix.co.uk> <9826f38005011206384301116d@mail.gmail.com> <41ED5853.1080506@simplistix.co.uk> <9826f3800501181055cbc6bb3@mail.gmail.com> Message-ID: <41ED5D84.2090002@simplistix.co.uk> Andy Dustman wrote: >>Any chance of Windows builds appearing for MySQLdb-1.0.1 and ZMySQLDA >>2.0.9b2? > > Sure, there's a chance. There's a zero chance of me building them, > since I have neither the tools nor the inclination, but a non-zero > chance of someone else building them, and if they let me know about > it, I'll make it available for download on SourceForge. Give me the code and tell me how, I'll give it a go :-) I have MSVC++ 6.0... cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From chris at simplistix.co.uk Tue Jan 18 14:02:31 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Tue Jan 18 14:05:45 2005 Subject: [Zope] kinterbasdbDA Open Connection In-Reply-To: References: Message-ID: <41ED5D47.3000604@simplistix.co.uk> Ashley wrote: > I cannot find anthing including "manage_open_connection" in the kinterbase > folders, but from a previous post I guess it is aiming for the function in > "Plone\Zope\lib\python\Shared\DC\ZRDB\Connection.py". What I don't have any > idea about is why it isn't working, and what I can do about it. > > Can anybody help? I'd suggest mailing the kinterbasdbDA maintainer directly as this feels like a bug with the product. cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From dieter at handshake.de Tue Jan 18 13:48:45 2005 From: dieter at handshake.de (Dieter Maurer) Date: Tue Jan 18 14:11:24 2005 Subject: [Zope] Acquisition question In-Reply-To: <41ECC4D1.4090602@sistes.net> References: <41ECC4D1.4090602@sistes.net> Message-ID: <16877.23053.323981.909811@gargle.gargle.HOWL> Garito wrote at 2005-1-18 09:12 +0100: > ... >I would like to execute something like: > >object.Render(args) > >where: >object is an object inside a folder inside my product >Render is the product's Render method acquired by the object > >the response is the id of my product instead the id of the object as >expected > >Is this possible? No, at least not with acquisition: When you acquire a method, you change its "self". This is necessary because the "self" of a method must be an instance of the class defining the method. The acquiring object usually does fulfill this requirement. >How? There are several ways: * you use an ExternalMethod or PythonScript for "Render" rather than a standard method definition * you make "Render" an object with a "__call__" method. In its "__call__" it can access the acquisition context (your "object" above) with "self.aq_parent". The product instance can be accessed with "self.aq_inner.aq_parent". That this works, the "Render" object's class must inherit from "Acquisition.[Im|Ex]plicit" and your product class must inherit at least from "ExtensionClass.Base" (better "Acquisition.[Im|Ex]plicit"). Note that the option above is a specialization of this one (where you use predefined object classes with the required features). * You "reuse" the "Render" method of your product class in your object via: class MyObject(...): Render = MyProduct.Render.im_func > >Thanks a lot! > > -- Dieter From chris at simplistix.co.uk Tue Jan 18 14:11:27 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Tue Jan 18 14:11:33 2005 Subject: [Zope] Memory and Large Zope Page Templates In-Reply-To: <41E8109F.9040504@earcon.com> References: <41E7E0FD.50200@earcon.com> <41E80923.8060600@icube.it> <41E8109F.9040504@earcon.com> Message-ID: <41ED5F5F.6000004@simplistix.co.uk> Santi Camps wrote: >> IIRC, I think that once the size of your process increases, it won't >> shrink... however, this does not mean that it will not reuse the same >> memory again... >> > Dou you know if this is a python behaviour ? Or a generic one in > process managements ? I'm going to stick my neck out and disagree with Dieter, I remember this being an artefact of the python memory manager... > Yes, that's the situation when the report is executed by the same > thread. But If some reports are executed at the same time in different > threads, then the memory size is increased again, aprox to 30Mb + 80Mb > * simultaneous_threads That sounds odd, although not really. Each thread keeps its own ZODB object cache. This cache has a target size which is vaguely tunable, but if a singly transaction loads lots of objects (as your report likely does) they will all end up being loaded regardless of your cache setting. The trick is not to load so many objects into memory (see low level ZODB methods for synching, subtransactions, etc) or to make the objects more lightweight (see ZCatalogs and brains in particular) cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From chris at simplistix.co.uk Tue Jan 18 14:25:38 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Tue Jan 18 14:25:50 2005 Subject: [Zope] ZODB packaging behaviour: bug or feature? In-Reply-To: <1f7befae05011610127bbb6a2@mail.gmail.com> References: <1f7befae05011610127bbb6a2@mail.gmail.com> Message-ID: <41ED62B2.9000801@simplistix.co.uk> Tim Peters wrote: > If you're using a current ZODB (anything at or after 3.2.1c1; 3.2.5 is > the latest stable release in the 3.2 line), an attempt to pack to a > time earlier than the most recent time ever packed to shouldn't do > anything more than raise a FileStorageError with this detail: > > The database has already been packed to a later time > or no changes have been made since the last pack I'm sure I remember discussions where it was agreed that this annoying behaviour would be dropped? (or at least turned into a subclass that could be easily caught, rather than having to catch FileStorageError and then do a string comparison on the exception arguments :-( ) > Manually packing the database to 0 is a novel meaning for "never > packed the database to 0 days" . Why not? (sorry for being slow) cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From chris at simplistix.co.uk Tue Jan 18 14:29:28 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Tue Jan 18 14:31:07 2005 Subject: [Zope] Acquisition question In-Reply-To: <41ECC4D1.4090602@sistes.net> References: <41ECC4D1.4090602@sistes.net> Message-ID: <41ED6398.6070305@simplistix.co.uk> Garito wrote: > object.Render(args) > > where: > object is an object inside a folder inside my product > Render is the product's Render method acquired by the object > > the response is the id of my product instead the id of the object as > expected > > Is this possible? How? What's the python you're using to obtain 'object'? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From greggehrich at yahoo.com Tue Jan 18 14:34:22 2005 From: greggehrich at yahoo.com (Greg Gehrich) Date: Tue Jan 18 14:34:35 2005 Subject: [Zope] Re: Hierarchical content In-Reply-To: <41ED5CF0.4050603@simplistix.co.uk> References: <41ED5CF0.4050603@simplistix.co.uk> Message-ID: The overhead the user has to incur to create subtasks. If folders are used to create the hierarchy, the user must first create a folder to hold the subtasks for "Pick up cleaning" and then enter the two subtasks. I'd rather just directly create a subtask because that eliminates the step to create a folder. Viewing will also be cleaner because you never the a folder obscuring the subtasks. Chris Withers wrote: > Greg Gehrich wrote: > >> I want to be able to create content and then attach sub-content to it. >> For example, if tasks were the content, it would look like the following: >> >> go shopping >> get bananas >> get bread >> pick up cleaning >> get shirt >> get pants >> clean house >> clean kitchen >> clean mixer >> clean clean sink >> clean bedroom >> >> I don't want to have the overhead of creating and sifting through >> folders as you navigate the hierarchy. In order to do this, I need >> the ability to have content that has folderish properties allowing sub >> content. > > > What overhead is this? > > I'd do this as nested ordered folders and use the ZMI to manage it all, > unless there are other hidden requirements here... > > Chris > From tim.peters at gmail.com Tue Jan 18 15:04:13 2005 From: tim.peters at gmail.com (Tim Peters) Date: Tue Jan 18 15:04:17 2005 Subject: [Zope] ZODB packaging behaviour: bug or feature? In-Reply-To: <41ED62B2.9000801@simplistix.co.uk> References: <1f7befae05011610127bbb6a2@mail.gmail.com> <41ED62B2.9000801@simplistix.co.uk> Message-ID: <1f7befae05011812044a0e1421@mail.gmail.com> [Tim Peters] >> If you're using a current ZODB (anything at or after 3.2.1c1; >> 3.2.5 is the latest stable release in the 3.2 line), an attempt to >> pack to a time earlier than the most recent time ever packed to >> shouldn't do anything more than raise a FileStorageError with >> this detail: >> >> The database has already been packed to a later time >> or no changes have been made since the last pack [Chris Withers] > I'm sure I remember discussions where it was agreed that this > annoying behaviour would be dropped? > (or at least turned into a subclass that could be easily caught, > rathe than having to catch FileStorageError and then do a string > comparison o the exception arguments :-( ) It was changed (to log a message instead). I see that it's in ZODB 3.3 (under svn), but not on the Zope-2_7-branch branch of ZODB3 (under CVS). Don't know what happened there. Looks like we're missing several changes that were checked in -- maybe they're only on ZODB3 HEAD? Something's screwed up here indeed. >> Manually packing the database to 0 is a novel meaning >> for "never packed the database to 0 days" . > Why not? (sorry for being slow) No idea what you're asking here. From chris at simplistix.co.uk Tue Jan 18 15:55:38 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Tue Jan 18 15:55:48 2005 Subject: [Zope] November Bug Day Roundup & January Bug Day Announcement! Message-ID: <41ED77CA.7010508@simplistix.co.uk> Hi All, It's a long time overdue, but here's the roundup. I suspect these all made it into 2.7.4, if anyone's curious :-) The great news is that lots of bugs were resolved, and it was especially good to see patches contributed by people outside the usual core of developers. Thanks to those people! The next bug day is going to be on Thursday 27th November as an experiment to see if those who complain about the Friday bug days can make it. Hope to see all on #zope-dev next Thursday! cheers, Chris Here's the lowdown: Resolved: #551 - ExtentionClass.h might conflict with other system versions #679 - ZPT: bogus close tag should be removed #721 - ZPT escapes attributes when it shouldn't #808 - Site Access Rule not working with dtml method in 2.6.1 #881 - Error: The ZGadflyDA product must be installed #995 - zope/python seg fault with infinite __str__ recursion #1003 - Overlong HTTP headers handled badly #1219 - XML Export #1371 - Surface cgi.maxlen in zope.conf #1407 - WebDav displayname Title #1450 - ZODBTools Packaging problem #1478 - Unittesting improvements #1489 - Invalid cookie causes other cookies to silently disappear #1510 - Unicode broken for non text/* content-types #1565 - monitor server not started #1593 - OFS/CopySupport _get_id() is buggy #1599 - ZSQL sqltest and unicode Wontfix: #922 - Version feature is broken in Zope #930 - Problems with Zope 2.6 config of sys.path on Windows #1461 - SCRIPT_NAME empty #1546 - Structured text links and IPv6 addresses Rejected: #576 - Importing ZClass fails #764 - ZCTextIndex is CMF incompatible #941 - Emergency user can own objects in Zope 2.7 #971 - Version only saves the last change #1023 - Tutorial import problem #1252 - VIRTUAL_URL #1512 - 2.8 failure with Plone: DocumentTemplate.ustr.py #1547 - import from one instance to another Deferred #1469 - win32 install 2.7.2 XP SP1 ..and here's the "player stats" :-) Resolved Assists Wontfix Rejected Deferred chrisw 6 1 5 1 ajung 6 1 2 1 efge 3 2 tseaver 1 regebro 1 ctheune 1 dpollard 1 sirilyan 1 jajcus 1 shh 1 sabaini 1 -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From tim.peters at gmail.com Tue Jan 18 16:33:50 2005 From: tim.peters at gmail.com (Tim Peters) Date: Tue Jan 18 16:33:55 2005 Subject: [Zope] ZODB packaging behaviour: bug or feature? In-Reply-To: <1f7befae05011812044a0e1421@mail.gmail.com> References: <1f7befae05011610127bbb6a2@mail.gmail.com> <41ED62B2.9000801@simplistix.co.uk> <1f7befae05011812044a0e1421@mail.gmail.com> Message-ID: <1f7befae05011813336d895c35@mail.gmail.com> [Tim Peters] >>> If you're using a current ZODB (anything at or after 3.2.1c1; >>> 3.2.5 is the latest stable release in the 3.2 line), an attempt to >>> pack to a time earlier than the most recent time ever packed to >>> shouldn't do anything more than raise a FileStorageError with >>> this detail: >>> >>> The database has already been packed to a later time >>> or no changes have been made since the last pack [Chris Withers] >> I'm sure I remember discussions where it was agreed that this >> annoying behaviour would be dropped? >> (or at least turned into a subclass that could be easily caught, >> rathe than having to catch FileStorageError and then do a string >> comparison o the exception arguments :-( ) [Tim] > It was changed (to log a message instead). I see that it's in ZODB > 3.3 (under svn), but not on the Zope-2_7-branch branch of ZODB3 (under > CVS). Don't know what happened there. Looks like we're missing > several changes that were checked in -- maybe they're only on ZODB3 > HEAD? Something's screwed up here indeed. After more staring, same story: the changes are in ZODB 3.3 (used with Zope 2.8 and Zope 3), but not on CVS's Zope-2_7-branch branch of ZODB3. I don't intend to address anything other than critical bugfixes in the ZODB 3.2 line anymore, so I don't intend to change this. If someone else wants to merge in this specific change on Zope-2_7-branch, that would be OK by me. From markb at textmatters.com Tue Jan 18 19:53:04 2005 From: markb at textmatters.com (Mark Barratt) Date: Tue Jan 18 19:53:11 2005 Subject: [Zope] Re: Hierarchical content In-Reply-To: References: <41ED5CF0.4050603@simplistix.co.uk> Message-ID: <41EDAF70.5020207@textmatters.com> >> Greg Gehrich wrote: >> >>> I want to be able to create content and then attach sub-content to >>> it. For example, if tasks were the content, it would look like the >>> following: >>> >>> go shopping >>> get bananas >>> get bread >>> pick up cleaning >>> get shirt >>> get pants >>> clean house >>> clean kitchen >>> clean mixer >>> clean clean sink >>> clean bedroom >>> >>> I don't want to have the overhead of creating and sifting through >>> folders as you navigate the hierarchy. In order to do this, I need >>> the ability to have content that has folderish properties allowing >>> sub content. >> >> >> >> What overhead is this? >> >> I'd do this as nested ordered folders and use the ZMI to manage it >> all, unless there are other hidden requirements here... >> >> Chris I'm also not clear about what you want to do. Are you talking about creating content or viewing it? Or both? I *think* what you are talking about is what is called 'mixed content elements' in XML: an element can contain both text and other elements. If so, this is handled seamlessly in xml/sgml editors (Epic, FrameMaker, maybe Openoffice) and tools associated with them for creating web content, but there are no straightforward ways of dealing with this in Zope. Plone's default folders (still folders) are mixed-content elements. The Archetypes product for CMF/Plone works, but is ridiculously complex and buggy. The Silva content management framework may be what you want, but you have to want what Silva delivers. XMLparser is a proof of concept, not a usable tool. To deal with this type of content effectively you may need to look elsewhere - check out the Apache Lenya and Forrest projects for example, or the tools building up around IBM's DITA. Or you'll need a Zope expert (Chris, for example) to build it for you to meet your particular needs. In theory, Zope should be great for creating task-focused online documents. In practice it can be great at rendering them, but there are no useful open-source tools to move content from productive authoring/editing environments (Epic/FrameMaker with docBook or DITA XML schemas/DTDs) into the Zope 'publishing' environment. Unless you guys know different... -- Mark Barratt Text Matters Information design: we help explain things using language | design | systems | process improvement ______________________________________________________ phone +44 (0)118 986 8313 email markb@textmatters.com web http://www.textmatters.com From garito at sistes.net Tue Jan 18 23:30:01 2005 From: garito at sistes.net (Garito) Date: Tue Jan 18 23:30:31 2005 Subject: [Zope] Acquisition question In-Reply-To: <16877.23053.323981.909811@gargle.gargle.HOWL> References: <41ECC4D1.4090602@sistes.net> <16877.23053.323981.909811@gargle.gargle.HOWL> Message-ID: <41EDE249.4010005@sistes.net> Dieter Maurer escribi?: >Garito wrote at 2005-1-18 09:12 +0100: > > >>... >>I would like to execute something like: >> >>object.Render(args) >> >>where: >>object is an object inside a folder inside my product >>Render is the product's Render method acquired by the object >> >>the response is the id of my product instead the id of the object as >>expected >> >>Is this possible? >> >> > >No, at least not with acquisition: > > When you acquire a method, you change its "self". > > This is necessary because the "self" of a method must > be an instance of the class defining the method. > The acquiring object usually does fulfill this requirement. > > > >>How? >> >> > >There are several ways: > > * you use an ExternalMethod or PythonScript for "Render" > rather than a standard method definition > > * you make "Render" an object with a "__call__" method. > In its "__call__" it can access the acquisition context > (your "object" above) with "self.aq_parent". > The product instance can be accessed with "self.aq_inner.aq_parent". > > That this works, the "Render" object's class must inherit > from "Acquisition.[Im|Ex]plicit" and your product class > must inherit at least from "ExtensionClass.Base" (better > "Acquisition.[Im|Ex]plicit"). > > Note that the option above is a specialization of this one > (where you use predefined object classes with the required > features). > > * You "reuse" the "Render" method of your product class > in your object via: > > class MyObject(...): > Render = MyProduct.Render.im_func > > >>Thanks a lot! >> >> >> >> > > > Thank you Dieter I think I choose to obtain a python script and the use the context object (instead of self) See u! From lists at andreas-jung.com Wed Jan 19 00:35:59 2005 From: lists at andreas-jung.com (Andreas Jung) Date: Wed Jan 19 00:36:10 2005 Subject: [Zope] November Bug Day Roundup & January Bug Day Announcement! In-Reply-To: <41ED77CA.7010508@simplistix.co.uk> References: <41ED77CA.7010508@simplistix.co.uk> Message-ID: <201B3A242501A630BD92B2C4@[192.168.0.102]> --On Dienstag, 18. Januar 2005 20:55 Uhr +0000 Chris Withers wrote: > > The next bug day is going to be on Thursday 27th November as an > experiment to see if those who complain about the Friday bug days can > make it. Hope to see all on #zope-dev next Thursday! 27th November???? -aj From scamps at earcon.com Wed Jan 19 01:22:25 2005 From: scamps at earcon.com (Santi Camps) Date: Wed Jan 19 01:19:54 2005 Subject: [Zope] Memory and Large Zope Page Templates In-Reply-To: <41ED5F5F.6000004@simplistix.co.uk> References: <41E7E0FD.50200@earcon.com> <41E80923.8060600@icube.it> <41E8109F.9040504@earcon.com> <41ED5F5F.6000004@simplistix.co.uk> Message-ID: <41EDFCA1.2050500@earcon.com> En/na Chris Withers ha escrit: > Santi Camps wrote: > >>> IIRC, I think that once the size of your process increases, it won't >>> shrink... however, this does not mean that it will not reuse the >>> same memory again... >>> >> Dou you know if this is a python behaviour ? Or a generic one in >> process managements ? > > > I'm going to stick my neck out and disagree with Dieter, I remember > this being an artefact of the python memory manager... > >> Yes, that's the situation when the report is executed by the same >> thread. But If some reports are executed at the same time in >> different threads, then the memory size is increased again, aprox >> to 30Mb + 80Mb * simultaneous_threads > > > That sounds odd, although not really. Each thread keeps its own ZODB > object cache. This cache has a target size which is vaguely tunable, > but if a singly transaction loads lots of objects (as your report > likely does) they will all end up being loaded regardless of your > cache setting. The trick is not to load so many objects into memory > (see low level ZODB methods for synching, subtransactions, etc) or to > make the objects more lightweight (see ZCatalogs and brains in > particular) > > cheers, > > Chris > Thanks for your answer. Yes, I understant how ZODB cache works with threads. The behaviour I didn't understood is why, once transaction is finished, the ZODB Cache decrese in number of objects but the RAM process not. I'm already using brains. I've tried your suggestion of subtransactions, but there is no change (I think it's normal, I'm not changing any persistent object). I'm not sure how a _p_jar.sync() can improve something. I think that the best solution will be run the report in a new process, spawning a ZEO Client to do the work and waiting for it. Regards Santi Camps From michele.marcionelli at math.ethz.ch Wed Jan 19 02:40:25 2005 From: michele.marcionelli at math.ethz.ch (Michele Marcionelli) Date: Wed Jan 19 02:40:32 2005 Subject: [Zope] DCOracle2 compile problem Message-ID: <622F1F78-69ED-11D9-BF35-000A95DB8706@math.ethz.ch> Hello, I'm trying to compile (gcc-3.2.3) DCOracle2 (Version 1.3b, http://www.zope.org/Members/matt/dco2) on a RedHat Linux i386 with Oracle 10 (see PS at the end of the email) and I get the following error message when I try to "make": make[1]: Entering directory `/scratch/zope/Products/DCOracle2/src' gcc -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/kerberos/include -pthread -fPIC -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/scratch/local/app/python/current/include/python2.4 -I/scratch/local/app/python/current/include/python2.4 @DEFS@ -I/usr/lib/oracle/10.1.0.3/client/rdbms/demo -I/usr/lib/oracle/10.1.0.3/client/network/public -I/usr/lib/oracle/10.1.0.3/client/plsql/public -I/usr/lib/oracle/10.1.0.3/client/rdbms/public -DORACLE9i -c ././dco2.c -o ./dco2.o gcc: cannot specify -o with -c or -S and multiple compilations make[1]: *** [dco2.o] Error 1 Has someone experience with that? Regards, Michele Marcionelli PS: I downloaded the "Oracle Instant Client for Linux x86" from http://www.oracle.com/technology/software/tech/oci/instantclient/ index.html -- Michele Marcionelli - webmaster@math - Phone: +41 1 632 6193 Address: HG G 14 - Raemistrasse 101 - 8092 Z?rich - Switzerland From chris at simplistix.co.uk Wed Jan 19 04:32:41 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Wed Jan 19 04:32:45 2005 Subject: [Zope] Re: Hierarchical content In-Reply-To: References: <41ED5CF0.4050603@simplistix.co.uk> Message-ID: <41EE2939.7070609@simplistix.co.uk> Greg Gehrich wrote: > The overhead the user has to incur to create subtasks. What overhead is this? > If folders are used to create the hierarchy, the user must first create > a folder to hold the subtasks for "Pick up cleaning" and then enter the > two subtasks. How would they do it otherwise? > I'd rather just directly create a subtask because that > eliminates the step to create a folder. Well, if they directly create a subtask, where do they put it? > Viewing will also be cleaner because you never the a folder obscuring > the subtasks. How does a folder obscure the subtask? Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From chris at simplistix.co.uk Wed Jan 19 04:34:51 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Wed Jan 19 04:34:54 2005 Subject: [Zope] Memory and Large Zope Page Templates In-Reply-To: <41EDFCA1.2050500@earcon.com> References: <41E7E0FD.50200@earcon.com> <41E80923.8060600@icube.it> <41E8109F.9040504@earcon.com> <41ED5F5F.6000004@simplistix.co.uk> <41EDFCA1.2050500@earcon.com> Message-ID: <41EE29BB.2040103@simplistix.co.uk> Santi Camps wrote: > Yes, I understant how ZODB cache works with threads. The behaviour I > didn't understood is why, once transaction is finished, the ZODB Cache > decrese in number of objects but the RAM process not. This is the pythonic behaviour I was talking about. If you want it fixed, bug Guido ;-) > I'm already using brains. I've tried your suggestion of > subtransactions, but there is no change (I think it's normal, I'm not > changing any persistent object). I'm not sure how a _p_jar.sync() can > improve something. ...you need to force the cache to garbage collect before there are too many objects in memory. The catalog does this using subtransactions. there's also a cache minimize call somewhere, but you're probably better off asking on zodb-dev@zope.org about where that is... > I think that the best solution will be run the report in a new process, > spawning a ZEO Client to do the work and waiting for it. ...yeah, get put the ZEO client on a different machine :-) cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From chris at simplistix.co.uk Wed Jan 19 04:38:34 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Wed Jan 19 04:38:42 2005 Subject: [Zope] ZODB packaging behaviour: bug or feature? In-Reply-To: <1f7befae05011813336d895c35@mail.gmail.com> References: <1f7befae05011610127bbb6a2@mail.gmail.com> <41ED62B2.9000801@simplistix.co.uk> <1f7befae05011812044a0e1421@mail.gmail.com> <1f7befae05011813336d895c35@mail.gmail.com> Message-ID: <41EE2A9A.1050503@simplistix.co.uk> Tim Peters wrote: >>>Manually packing the database to 0 is a novel meaning >>>>> for "never packed the database to 0 days" . > > >>> Why not? (sorry for being slow) > > > No idea what you're asking here. I guess I didn't understand what you meant by: > Manually packing the database to 0 is a novel meaning > for "never packed the database to 0 days" > After more staring, same story: the changes are in ZODB 3.3 (used > with Zope 2.8 and Zope 3), but not on CVS's Zope-2_7-branch branch of > ZODB3. I don't intend to address anything other than critical > bugfixes in the ZODB 3.2 line anymore, so I don't intend to change > this. If someone else wants to merge in this specific change on > Zope-2_7-branch, that would be OK by me. http://zope.org/Collectors/Zope/1668 I'll try and remember to grab it on a bug day. Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From chris at simplistix.co.uk Wed Jan 19 04:39:23 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Wed Jan 19 04:39:32 2005 Subject: [Zope] November Bug Day Roundup & January Bug Day Announcement! In-Reply-To: <201B3A242501A630BD92B2C4@[192.168.0.102]> References: <41ED77CA.7010508@simplistix.co.uk> <201B3A242501A630BD92B2C4@[192.168.0.102]> Message-ID: <41EE2ACB.4060305@simplistix.co.uk> Andreas Jung wrote: > --On Dienstag, 18. Januar 2005 20:55 Uhr +0000 Chris Withers > wrote: > >> >> The next bug day is going to be on Thursday 27th November as an >> experiment to see if those who complain about the Friday bug days can >> make it. Hope to see all on #zope-dev next Thursday! > > 27th November???? Okay, time travel I know ;-) Sorry, I meant 27th January... Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From Pperegrina at Lastminute.com Wed Jan 19 04:42:25 2005 From: Pperegrina at Lastminute.com (Pascal Peregrina) Date: Wed Jan 19 04:45:40 2005 Subject: [Zope] Clearing _v_ attributes Message-ID: Hi, To clear some data caching I have made using _v_ attributes on one particular object, I would need a way to programmatically clear its _v_ attributes. As far as I understand, _v_ attributes are set per ZODB connection. And they are cleared when the object is, for some reason, reloaded from the ZODB to the connection cache. As I use the current configuration : + ZEO + 1 Zope instance with RW connections to ZEO + several Zope instances with RO connections to ZEO I was wondering if, setting self._p_changed=1 on the object from the Zope RW would work. Thanks for your help. Pascal ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** From alessandro.bottoni at infinito.it Wed Jan 19 05:01:20 2005 From: alessandro.bottoni at infinito.it (alessandro bottoni) Date: Wed Jan 19 04:58:14 2005 Subject: [Zope] ERP5 Message-ID: <200501191101.20430.alessandro.bottoni@infinito.it> Hi all, did anybody of you try ERP5, the Zope-based, Open Source ERP product of Nexedi (see www.erp5.org)? Does anybody know if there is a mailing list or a web forum devoted to this award-winning product? Many thanks in advance ------------------------------------------- Alessandro Bottoni From akm at theinternet.com.au Wed Jan 19 05:43:42 2005 From: akm at theinternet.com.au (Andrew Milton) Date: Wed Jan 19 05:44:11 2005 Subject: [Zope] Clearing _v_ attributes In-Reply-To: References: Message-ID: <20050119104342.GG98558@camelot.theinternet.com.au> +-------[ Pascal Peregrina ]---------------------- | Hi, | | To clear some data caching I have made using _v_ attributes on one | particular object, I would need a way to programmatically clear its _v_ | attributes. | | As far as I understand, _v_ attributes are set per ZODB connection. | And they are cleared when the object is, for some reason, reloaded from the | ZODB to the connection cache. | | As I use the current configuration : | + ZEO | + 1 Zope instance with RW connections to ZEO | + several Zope instances with RO connections to ZEO | | I was wondering if, setting self._p_changed=1 on the object from the Zope RW | would work. No... Why not just add a clearCaches() method that Does The Right Thing(tm) and call that? -- Andrew Milton akm@theinternet.com.au From chuck at smtl.co.uk Wed Jan 19 07:50:04 2005 From: chuck at smtl.co.uk (Chuck Amadi) Date: Wed Jan 19 05:49:34 2005 Subject: [Zope] Zope 2.7.0 - Document had no data Message-ID: <1106139004.18869.52.camel@vorcha.smtl.co.uk> Hi I have download and tried to installing and unpacking optional products ie Squishdot,ImagePagerFolde and fcForum into my zope instance Products directory chown -R uid and gid to zope user,restart Zope as Root , to install them in Plone using Plone Setup's "Add/Remove Products." I have also unpacked into my software/Products no error but doesn't become a available in my ZMI/Control panel I have tried but failed to thus had a peak in my event.log 2004-07-06T10:38:19 PROBLEM(100) ZODB Could not import class 'ImagePagerFolder' from module 'Products.ImagePagerFolder.ImagePagerFolder' ------ 2004-07-06T10:38:19 PROBLEM(100) ZODB Could not import class 'SquishSite' from module 'Products.Squishdot.SquishSite' Also when I try http://server:port:/manage I get document had no data and fails to start thus when I remove the three products and I tried them on their own still document had no data Browser error . I am using Linuxs SuSE SE ,8 Zope 2.7.0 with hotfix and Plone 2.0 and Python 2.3.3 . Cheers Chuck From Pperegrina at Lastminute.com Wed Jan 19 05:47:41 2005 From: Pperegrina at Lastminute.com (Pascal Peregrina) Date: Wed Jan 19 06:01:34 2005 Subject: [Zope] Clearing _v_ attributes Message-ID: If I do a clearCaches() method that clears _v_ attributes on the object, how can I make sure it will clear these attributes in all the Zope connections that may have a cached copy of the object ? Or do you mean that clearCaches() should do the self._p_changed=1 ? Pascal -----Message d'origine----- De : zope-bounces@zope.org [mailto:zope-bounces@zope.org]De la part de Andrew Milton Envoy? : mercredi 19 janvier 2005 11:44 ? : Pascal Peregrina Cc : 'zope@zope.org' Objet : Re: [Zope] Clearing _v_ attributes +-------[ Pascal Peregrina ]---------------------- | Hi, | | To clear some data caching I have made using _v_ attributes on one | particular object, I would need a way to programmatically clear its _v_ | attributes. | | As far as I understand, _v_ attributes are set per ZODB connection. | And they are cleared when the object is, for some reason, reloaded from the | ZODB to the connection cache. | | As I use the current configuration : | + ZEO | + 1 Zope instance with RW connections to ZEO | + several Zope instances with RO connections to ZEO | | I was wondering if, setting self._p_changed=1 on the object from the Zope RW | would work. No... Why not just add a clearCaches() method that Does The Right Thing(tm) and call that? -- Andrew Milton akm@theinternet.com.au _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** From cklinger at novareto.de Wed Jan 19 06:33:50 2005 From: cklinger at novareto.de (Christian Klinger) Date: Wed Jan 19 06:34:10 2005 Subject: [Zope] Workaround for BUG 569 Message-ID: Hello Zope-Users Does anyone has a workaround for http://zope.org/Collectors/Zope/569. I?ll parese the cookie by an apache module. The module checks the cookie and "says" it?s not valid I think this is because the cookie is quoted. Any hints? thx christian From akm at theinternet.com.au Wed Jan 19 06:51:02 2005 From: akm at theinternet.com.au (Andrew Milton) Date: Wed Jan 19 06:51:19 2005 Subject: [Zope] Clearing _v_ attributes In-Reply-To: References: Message-ID: <20050119115102.GH98558@camelot.theinternet.com.au> +-------[ Pascal Peregrina ]---------------------- | If I do a clearCaches() method that clears _v_ attributes on the object, how | can I make sure it will clear these attributes in all the Zope connections | that may have a cached copy of the object ? Basically you can't. Although if a thread doesn't wake up for 10 mins (with your object), then odds are it'll get thrown out and brought back in again without the _v_ attributes set, so it's probably a moot point. You would have to grab each ZODB connection present, grab your object and call the method.. That's just getting in voodoo you probably don't actually need. The best you could do would be to set a flag / timestamp. Any object that woke up would have to check that timestamp and work out whether to flush at that point or not. | Or do you mean that clearCaches() should do the self._p_changed=1 ? _p_changed = 1 won't flush your _v_ attributes. -- Andrew Milton akm@theinternet.com.au From tdickenson at devmail.geminidataloggers.co.uk Wed Jan 19 07:46:19 2005 From: tdickenson at devmail.geminidataloggers.co.uk (Toby Dickenson) Date: Wed Jan 19 07:46:34 2005 Subject: [Zope] Clearing _v_ attributes In-Reply-To: <20050119115102.GH98558@camelot.theinternet.com.au> References: <20050119115102.GH98558@camelot.theinternet.com.au> Message-ID: <200501191246.19623.tdickenson@devmail.geminidataloggers.co.uk> On Wednesday 19 January 2005 11:51, Andrew Milton wrote: > +-------[ Pascal Peregrina ]---------------------- > | If I do a clearCaches() method that clears _v_ attributes on the object, how > | can I make sure it will clear these attributes in all the Zope connections > | that may have a cached copy of the object ? > > Basically you can't. There is one very obvious way.... change a non-_v_ attribute of the object and commit it. Every other connection with an instance of that object in memory will lose the _v_ attribute at its next transaction boundary. -- Toby Dickenson From akm at theinternet.com.au Wed Jan 19 08:09:35 2005 From: akm at theinternet.com.au (Andrew Milton) Date: Wed Jan 19 08:10:09 2005 Subject: [Zope] Clearing _v_ attributes In-Reply-To: <200501191246.19623.tdickenson@devmail.geminidataloggers.co.uk> References: <20050119115102.GH98558@camelot.theinternet.com.au> <200501191246.19623.tdickenson@devmail.geminidataloggers.co.uk> Message-ID: <20050119130934.GJ98558@camelot.theinternet.com.au> +-------[ Toby Dickenson ]---------------------- | On Wednesday 19 January 2005 11:51, Andrew Milton wrote: | > +-------[ Pascal Peregrina ]---------------------- | > | If I do a clearCaches() method that clears _v_ attributes on the object, | how | > | can I make sure it will clear these attributes in all the Zope connections | > | that may have a cached copy of the object ? | > | > Basically you can't. | | There is one very obvious way.... change a non-_v_ attribute of the object and | commit it. Every other connection with an instance of that object in memory | will lose the _v_ attribute at its next transaction boundary. And your ZODB grows everytime you want to flush the cache... -- Andrew Milton akm@theinternet.com.au From Pperegrina at Lastminute.com Wed Jan 19 08:25:56 2005 From: Pperegrina at Lastminute.com (Pascal Peregrina) Date: Wed Jan 19 08:26:36 2005 Subject: [Zope] Clearing _v_ attributes Message-ID: That's not a problem, I pack it everyday for >5 days transactions :) Thanks anyway. Pascal -----Message d'origine----- De : zope-bounces@zope.org [mailto:zope-bounces@zope.org]De la part de Andrew Milton Envoy? : mercredi 19 janvier 2005 14:10 ? : tdickenson@geminidataloggers.com Cc : zope@zope.org Objet : Re: [Zope] Clearing _v_ attributes +-------[ Toby Dickenson ]---------------------- | On Wednesday 19 January 2005 11:51, Andrew Milton wrote: | > +-------[ Pascal Peregrina ]---------------------- | > | If I do a clearCaches() method that clears _v_ attributes on the object, | how | > | can I make sure it will clear these attributes in all the Zope connections | > | that may have a cached copy of the object ? | > | > Basically you can't. | | There is one very obvious way.... change a non-_v_ attribute of the object and | commit it. Every other connection with an instance of that object in memory | will lose the _v_ attribute at its next transaction boundary. And your ZODB grows everytime you want to flush the cache... -- Andrew Milton akm@theinternet.com.au _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** From m.bizzarri at icube.it Wed Jan 19 08:26:35 2005 From: m.bizzarri at icube.it (Marco Bizzarri) Date: Wed Jan 19 08:26:43 2005 Subject: [Zope] Clearing _v_ attributes In-Reply-To: <20050119130934.GJ98558@camelot.theinternet.com.au> References: <20050119115102.GH98558@camelot.theinternet.com.au> <200501191246.19623.tdickenson@devmail.geminidataloggers.co.uk> <20050119130934.GJ98558@camelot.theinternet.com.au> Message-ID: <41EE600B.3090706@icube.it> Andrew Milton wrote: > +-------[ Toby Dickenson ]---------------------- > | On Wednesday 19 January 2005 11:51, Andrew Milton wrote: > | > +-------[ Pascal Peregrina ]---------------------- > | > | If I do a clearCaches() method that clears _v_ attributes on the object, > | how > | > | can I make sure it will clear these attributes in all the Zope connections > | > | that may have a cached copy of the object ? > | > > | > Basically you can't. > | > | There is one very obvious way.... change a non-_v_ attribute of the object and > | commit it. Every other connection with an instance of that object in memory > | will lose the _v_ attribute at its next transaction boundary. > > And your ZODB grows everytime you want to flush the cache... > Could you please further detail the reason of the above (or provide pointers on this?) Regards Marco From casties at mpiwg-berlin.mpg.de Wed Jan 19 08:29:49 2005 From: casties at mpiwg-berlin.mpg.de (Robert Casties) Date: Wed Jan 19 08:40:56 2005 Subject: [Zope] metal Macros from PageTemplateFiles? Message-ID: Is it possible (and how?) to use a procedure in a product to produce a PageTemplate that defines a macro, that can be used in another PageTemplate? I tried: class SomeClass(Folder): content_template = PageTemplateFile("/some/file/template.zpt") and the direct ssignment to a variable works, but it is not exactly what I need (I need to check with the actual instance). But when I try to do: def content_template(self): pt = PageTemplateFile("/some/file/template.zpt") return pt then the procedure is never called and I get an error in the ZPT that tries to use the macro: Error Type: AttributeError Error Value: content_templatemacros Somewhere I read a vage reference to invoke "cook" but I don't know how. Thanks Robert From alex at nexedi.com Wed Jan 19 08:48:18 2005 From: alex at nexedi.com (Alexandre Boeglin) Date: Wed Jan 19 08:48:21 2005 Subject: [Zope] ERP5 In-Reply-To: <200501191101.20430.alessandro.bottoni@infinito.it> References: <200501191101.20430.alessandro.bottoni@infinito.it> Message-ID: <200501191348.18910.alex@nexedi.com> Le mercredi 19 Janvier 2005 10:01, alessandro bottoni a ?crit?: > Does anybody know if there is a mailing list or a web forum devoted > to this award-winning product? Hello, the lists descriptions are available at http://www.erp5.org/portal_repository/509455381__0002/view (which can be found by typing 'lists' in the search form of the erp5.org CPS site). Regards, Alex From cnd at ecn.purdue.edu Wed Jan 19 08:50:13 2005 From: cnd at ecn.purdue.edu (Christopher N. Deckard) Date: Wed Jan 19 08:50:39 2005 Subject: [Zope] recursion problem with newer security machinery Message-ID: <41EE6595.8070900@ecn.purdue.edu> Howdy, We recently upgraded to 2.6.4, and are now having a problem with our custom UserFolder Product. I've narrowed everything down to a few methods, but am at a loss on how to fix it. In our UserFolder User class, we have overridden getRolesInContext to look for a Python Script (we call it an "authorize script"), in parent folders of the published object. It then calls each script to programatically add roles at runtime. This works great with Zope 2.6.2. I have noticed that in Zope 2.6.4 the method Bindings._getContext in Shared/DC/Scripts/Bindings.py has new validate code in it. I believe this is what is causing the problem for us. What is strange is that this is only a problem when using ExternalEditor, and when the container of the object we are trying to edit contains an "authorize script". From the ZMI there are no problems, and from folders under the folder with the "authorize script" there are no problems editing with ExternalEditor. Any help would be appreciated. Below is our code, and the two _getContext implementations for quicker reference. Thanks, -Chris This is our User.getRolesInContext: def getRolesInContext(self, object): """Return the list of roles assigned to the user, including local roles assigned in context of the passed in object.""" name=self.getUserName() roles={} additional_roles = self.getRoles() local={} authorize={} object=getattr(object, 'aq_inner', object) # Get local roles and roles assigned dynamically from # the auth_meth methods while 1: local_roles = getattr(object, '__ac_local_roles__', None) if local_roles: if callable(local_roles): local_roles=local_roles() dict=local_roles or {} for r in dict.get(name, []): local[r]=1 # This adds roles from authorize scripts # in all acquisition parents, much like # local roles are added # Check to make sure that the auth_meth # that we are calling is an actual method # in the container and not part of the # product objects = getattr(object, 'objectIds', None) if objects: if callable(objects): if self.folder.auth_meth in object.objectIds(): authorize_roles = getattr(object, self.folder.auth_meth, None) if authorize_roles: if callable(authorize_roles): try: authorize_roles=authorize_roles(directory=self.directory) list=authorize_roles or [] for r in list: authorize[r]=1 except: pass inner = getattr(object, 'aq_inner', object) parent = getattr(inner, 'aq_parent', None) if parent is not None: object = parent continue if hasattr(object, 'im_self'): object=object.im_self object=getattr(object, 'aq_inner', object) continue break # Add additional roles # the roles object here is different from the # BasicUser roles object because it is a list of roles # and not a method. I'm not sure why. # # Here we add all the roles to the local ditionary # and then return the keys of that dictionary as # the roles for r in additional_roles: roles[r] = 1 for r in local.keys(): roles[r] = 1 for r in authorize.keys(): roles[r] = 1 roles = roles.keys() return roles Zope 2.6.4 Bindings._getContext: def _getContext(self): # Utility for bindcode. while 1: self = self.aq_parent if not getattr(self, '_is_wrapperish', None): parent = getattr(self, 'aq_parent', None) inner = getattr(self, 'aq_inner', None) container = getattr(inner, 'aq_parent', None) try: getSecurityManager().validate(parent, container, '', self) except Unauthorized: return UnauthorizedBinding('context', self) return self Zope 2.6.2 Bindings._getContext: def _getContext(self): # Utility for bindcode. while 1: self = self.aq_parent if not getattr(self, '_is_wrapperish', None): return self -- -------------------------------------------------------------------- Christopher N. Deckard | Lead Web Systems Developer cnd@ecn.purdue.edu | Engineering Computer Network http://eng.purdue.edu/ECN/ | Purdue University ---- zlib.decompress('x\234K\316Kq((-J)M\325KM)\005\000)"\005w') --- From jp at warpix.org Wed Jan 19 08:51:30 2005 From: jp at warpix.org (John Poltorak) Date: Wed Jan 19 08:52:18 2005 Subject: [Zope] Automating mkzopeinstance Message-ID: <20050119135130.R18360@warpix.org> Is it possible to automate the creation of a zope instance? ie is there a way to run mkzopeinstance non-interactively? -- John From lists at andreas-jung.com Wed Jan 19 09:03:54 2005 From: lists at andreas-jung.com (Andreas Jung) Date: Wed Jan 19 09:03:59 2005 Subject: [Zope] Automating mkzopeinstance In-Reply-To: <20050119135130.R18360@warpix.org> References: <20050119135130.R18360@warpix.org> Message-ID: --On Mittwoch, 19. Januar 2005 13:51 Uhr +0000 John Poltorak wrote: > Is it possible to automate the creation of a zope instance? ie is there a > way to run mkzopeinstance non-interactively? > > mkzopeinstance --help is your friend. -aj From tino at wildenhain.de Wed Jan 19 09:15:22 2005 From: tino at wildenhain.de (Tino Wildenhain) Date: Wed Jan 19 09:15:38 2005 Subject: [Zope] metal Macros from PageTemplateFiles? In-Reply-To: References: Message-ID: <1106144123.8688.23.camel@sabrina.peacock.de> On Wed, 2005-01-19 at 14:29 +0100, Robert Casties wrote: > Is it possible (and how?) to use a procedure in a product to produce a > PageTemplate that defines a macro, that can be used in another PageTemplate? > > I tried: > > class SomeClass(Folder): > > content_template = PageTemplateFile("/some/file/template.zpt") > > and the direct ssignment to a variable works, but it is not exactly what > I need (I need to check with the actual instance). > > But when I try to do: > > def content_template(self): > pt = PageTemplateFile("/some/file/template.zpt") > return pt > > then the procedure is never called and I get an error in the ZPT that > tries to use the macro: > > Error Type: AttributeError > Error Value: content_templatemacros > > Somewhere I read a vage reference to invoke "cook" but I don't know how. > Read the answer I already gave to your identical mail (yesterday?) :-) Regards Tino From apaku at gmx.de Wed Jan 19 09:16:04 2005 From: apaku at gmx.de (Andreas Pakulat) Date: Wed Jan 19 09:15:42 2005 Subject: [Zope] Automating mkzopeinstance In-Reply-To: <20050119135130.R18360@warpix.org> References: <20050119135130.R18360@warpix.org> Message-ID: <20050119141604.GA10809@morpheus.matrix.de> On 19.Jan 2005 - 13:51:30, John Poltorak wrote: > Is it possible to automate the creation of a zope instance? ie is there a > way to run mkzopeinstance non-interactively? run mkzopeinstance.py --help, it tells you all the available Options. Andreas -- You too can wear a nose mitten. From Pperegrina at Lastminute.com Wed Jan 19 09:29:06 2005 From: Pperegrina at Lastminute.com (Pascal Peregrina) Date: Wed Jan 19 09:29:43 2005 Subject: [Zope] Clearing _v_ attributes Message-ID: Pointers about what ? If you mean about "And your ZODB grows everytime you want to flush the cache..." : Andrew is just saying that changing a persistent attribute of an object will led to storing a new version of the object in the ZODB. If you mean about "why I was asking how to clear _v_ attributes" : I am using CMF 1.5.0 and SpeedPack 0.3, which monkey patches 2 CMF classes to speed up skinned objects lookup by caching the result of previous lookups in a new _v_ attribute on "CMF Site" objects. The performance increase is huge (if you have lots of skins defined, and lots of folders for each skin to be traversed). However, the situations that SpeePack "catches" to decide to clear the _v_ attribute data are not enough for my needs. I need a way to make sure that data is flushed in all connections. Hope this answer your question. Pascal -----Message d'origine----- De : zope-bounces@zope.org [mailto:zope-bounces@zope.org]De la part de Marco Bizzarri Envoy? : mercredi 19 janvier 2005 14:27 ? : Andrew Milton Cc : zope@zope.org Objet : Re: [Zope] Clearing _v_ attributes Andrew Milton wrote: > +-------[ Toby Dickenson ]---------------------- > | On Wednesday 19 January 2005 11:51, Andrew Milton wrote: > | > +-------[ Pascal Peregrina ]---------------------- > | > | If I do a clearCaches() method that clears _v_ attributes on the object, > | how > | > | can I make sure it will clear these attributes in all the Zope connections > | > | that may have a cached copy of the object ? > | > > | > Basically you can't. > | > | There is one very obvious way.... change a non-_v_ attribute of the object and > | commit it. Every other connection with an instance of that object in memory > | will lose the _v_ attribute at its next transaction boundary. > > And your ZODB grows everytime you want to flush the cache... > Could you please further detail the reason of the above (or provide pointers on this?) Regards Marco _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** From Pperegrina at Lastminute.com Wed Jan 19 07:50:56 2005 From: Pperegrina at Lastminute.com (Pascal Peregrina) Date: Wed Jan 19 10:08:59 2005 Subject: [Zope] Clearing _v_ attributes Message-ID: That's what I thought. Thanks a lot ! -----Message d'origine----- De : zope-bounces@zope.org [mailto:zope-bounces@zope.org]De la part de Toby Dickenson Envoy? : mercredi 19 janvier 2005 13:46 ? : zope@zope.org Objet : Re: [Zope] Clearing _v_ attributes On Wednesday 19 January 2005 11:51, Andrew Milton wrote: > +-------[ Pascal Peregrina ]---------------------- > | If I do a clearCaches() method that clears _v_ attributes on the object, how > | can I make sure it will clear these attributes in all the Zope connections > | that may have a cached copy of the object ? > > Basically you can't. There is one very obvious way.... change a non-_v_ attribute of the object and commit it. Every other connection with an instance of that object in memory will lose the _v_ attribute at its next transaction boundary. -- Toby Dickenson _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** From tseaver at zope.com Wed Jan 19 10:24:08 2005 From: tseaver at zope.com (Tres Seaver) Date: Wed Jan 19 10:24:33 2005 Subject: [Zope] Re: recursion problem with newer security machinery In-Reply-To: <41EE6595.8070900@ecn.purdue.edu> References: <41EE6595.8070900@ecn.purdue.edu> Message-ID: <41EE7B98.8090400@zope.com> Christopher N. Deckard wrote: > We recently upgraded to 2.6.4, and are now having a problem with our > custom UserFolder Product. I've narrowed everything down to a few > methods, but am at a loss on how to fix it. > > In our UserFolder User class, we have overridden getRolesInContext to > look for a Python Script (we call it an "authorize script"), in parent > folders of the published object. It then calls each script to > programatically add roles at runtime. This works great with Zope 2.6.2. > I have noticed that in Zope 2.6.4 the method Bindings._getContext in > Shared/DC/Scripts/Bindings.py has new validate code in it. I believe > this is what is causing the problem for us. > > What is strange is that this is only a problem when using > ExternalEditor, and when the container of the object we are trying to > edit contains an "authorize script". From the ZMI there are no > problems, and from folders under the folder with the "authorize script" > there are no problems editing with ExternalEditor. > > Any help would be appreciated. Below is our code, and the two > _getContext implementations for quicker reference. The recursion problem stems from the fact that the new bindings machinery wants to ensure that the user has roles for the context before binding it, but you need the script to run to determine whether the user has roles. The older code created a nasty security issue for sites which made it possible for untrusted users to write PythonScripts. I don't know that this will work, but try giving the script proxy role of 'Manager'; if that works, then you are set. If it doesn't work, then I believe you need to look at converting your PythonScripts to instances of a "tool" class which can run the check as trusted code. Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From casties at mpiwg-berlin.mpg.de Wed Jan 19 10:25:56 2005 From: casties at mpiwg-berlin.mpg.de (Robert Casties) Date: Wed Jan 19 10:26:07 2005 Subject: [Zope] Re: metal Macros from PageTemplateFiles? In-Reply-To: <1106144123.8688.23.camel@sabrina.peacock.de> References: <1106144123.8688.23.camel@sabrina.peacock.de> Message-ID: Tino Wildenhain wrote: [...] >>But when I try to do: >> >> def content_template(self): >> pt = PageTemplateFile("/some/file/template.zpt") >> return pt >> >>then the procedure is never called and I get an error in the ZPT that >>tries to use the macro: >> >> Error Type: AttributeError >> Error Value: content_templatemacros >> >>Somewhere I read a vage reference to invoke "cook" but I don't know how. >> > > > Read the answer I already gave to your identical mail (yesterday?) :-) I already tried return pt.__of__(self) but the error is the same. Also the function doesn't seem to get called at all when the page that should use the macro is requested. (I use the __of__(self) of course for simple PageTemplates.) Regards Robert From NWingfield at dixon-hughes.com Wed Jan 19 12:24:25 2005 From: NWingfield at dixon-hughes.com (Nathaniel Wingfield) Date: Wed Jan 19 12:30:45 2005 Subject: [Zope] http header question Message-ID: My application streams pdf files from disk (not zodb) to the user, and I've been writing the http header more or less manually. I've had some strange problems with downloading - one particular third-party pdf plugin acts as if the file can not be found, and Internet Explorer arbitrarily, yet consistently pops the Open/Save/Cancel dialog for 1% of files, while launching a plugin for the other 99%. My header looks like this: HTTP/1.1 200 OK Server: Zope/(Zope 2.7.3-0, python 2.3.4, linux2) ZServer/1.1 Date: Wed, 19 Jan 2005 17:08:30 GMT Content-Length: 20004 Content-Type: application/pdf Connection: close Content-Disposition: filename="attachment.pdf" Is there anything missing or malformed that could be causing trouble? Nathaniel _______________________________________________ CONFIDENTIALITY NOTICE This e-mail is intended only for the addressee named above. It contains information that is privileged, confidential or otherwise protected from use and disclosure. If you are not the intended recipient, you are hereby notified that any review, disclosure, copying, or dissemination of this transmission, or taking of any action in reliance on its contents, or other use is strictly prohibited. If you have received this transmission in error, please reply to the sender listed above immediately and permanently delete this message from your inbox. Thank you for your cooperation. ID:[{20050119123043.24590.577798887-66.208.180.43}] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.zope.org/pipermail/zope/attachments/20050119/8944bf1b/attachment.htm From Pperegrina at Lastminute.com Wed Jan 19 07:34:01 2005 From: Pperegrina at Lastminute.com (Pascal Peregrina) Date: Wed Jan 19 12:44:41 2005 Subject: [Zope] Clearing _v_ attributes Message-ID: Ok I think now I get it. :) What about acutally changing some persistent attribute on the object ? Would that work ? Pascal -----Message d'origine----- De : zope-bounces@zope.org [mailto:zope-bounces@zope.org]De la part de Andrew Milton Envoy? : mercredi 19 janvier 2005 12:51 ? : Pascal Peregrina Cc : 'zope@zope.org' Objet : Re: [Zope] Clearing _v_ attributes +-------[ Pascal Peregrina ]---------------------- | If I do a clearCaches() method that clears _v_ attributes on the object, how | can I make sure it will clear these attributes in all the Zope connections | that may have a cached copy of the object ? Basically you can't. Although if a thread doesn't wake up for 10 mins (with your object), then odds are it'll get thrown out and brought back in again without the _v_ attributes set, so it's probably a moot point. You would have to grab each ZODB connection present, grab your object and call the method.. That's just getting in voodoo you probably don't actually need. The best you could do would be to set a flag / timestamp. Any object that woke up would have to check that timestamp and work out whether to flush at that point or not. | Or do you mean that clearCaches() should do the self._p_changed=1 ? _p_changed = 1 won't flush your _v_ attributes. -- Andrew Milton akm@theinternet.com.au _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** From stefan at epy.co.at Wed Jan 19 13:16:46 2005 From: stefan at epy.co.at (Stefan H. Holek) Date: Wed Jan 19 13:16:56 2005 Subject: [Zope] Zope 2.7.4 - ZClass Permissions Change? In-Reply-To: References: <200501180814.20795.richardjones@optushome.com.au> Message-ID: <478C9D71-6A46-11D9-ADBE-000D93325646@epy.co.at> What I really meant to say is: Please add it to the collector Stefan On 18. J?n 2005, at 14:06, Stefan H. Holek wrote: > Feel free to add the ZClass problem to the Zope collector though. -- The time has come to start talking about whether the emperor is as well dressed as we are supposed to think he is. /Pete McBreen/ From casties at mpiwg-berlin.mpg.de Wed Jan 19 14:27:33 2005 From: casties at mpiwg-berlin.mpg.de (Robert Casties) Date: Wed Jan 19 14:27:43 2005 Subject: [Zope] Re: http header question In-Reply-To: References: Message-ID: <41EEB4A5.2060706@mpiwg-berlin.mpg.de> Nathaniel Wingfield wrote: > My header looks like this: > > > > HTTP/1.1 200 OK > > Server: Zope/(Zope 2.7.3-0, python 2.3.4, linux2) ZServer/1.1 > > Date: Wed, 19 Jan 2005 17:08:30 GMT > > Content-Length: 20004 > > Content-Type: application/pdf > > Connection: close > > Content-Disposition: filename="attachment.pdf" What do you want it to do? If you want the browser to display the file as PDF i.e. use a plugin if it has a plugin, then you should keep the Content-Type application/pdf and omit the Content-Disposition. If you want the browser to treat the file as unknown i.e. display a download box, then you should change the Content-Type to application/octet-stream and the Content-Disposition to Content-Disposition: attachment; filename="attachment.pdf" At least that works for me. Robert From davelists2 at peoplemerge.com Wed Jan 19 14:50:36 2005 From: davelists2 at peoplemerge.com (davelists2@peoplemerge.com) Date: Wed Jan 19 14:39:10 2005 Subject: [Zope] generating an acquisition wrapper from generated code In-Reply-To: <41EA45DC.8000309@mopa.at> References: <20050115032637.GA20812@mail.imagesmiths.com> <41E8E50E.7030405@mopa.at> <20050116102711.GA25585@mail.imagesmiths.com> <41EA45DC.8000309@mopa.at> Message-ID: <20050119195036.GB11402@mail.imagesmiths.com> Thanks Bernard. Finally figured it out... Check out http://plone.org/documentation/howto/import-soap-client-object for details On Sun, Jan 16, 2005 at 11:45:48AM +0100, Bernd Dorn wrote: > davelists2@peoplemerge.com wrote: > >On Sat, Jan 15, 2005 at 10:40:30AM +0100, Bernd Dorn wrote: > > > >>Aclass needs to be inherited from Acquisition.Explcitit or Implicit > >>and and in myTool: > >>def getAclass(self): > >> inter = [base.Aclass().__of__(self),] > >> return inter > > > > > >I can post more code if necessary, but: > > > >Somehow, having already inherited from ZSI.TCcompound.Struct, I > >cannot also inherit from Acquisition.Explicit: > > > >Traceback (most recent call last): > > File "", line 1, in ? > > File "/usr/lib/zope/lib/python/Zope/__init__.py", line 51, in app > > startup() > > File "/usr/lib/zope/lib/python/Zope/__init__.py", line 47, in startup > > _startup() > > File "/usr/lib/zope/lib/python/Zope/App/startup.py", line 45, in startup > > OFS.Application.import_products() > > File "/usr/lib/zope/lib/python/OFS/Application.py", line 637, in > > import_products > > import_product(product_dir, product_name, raise_exc=debug_mode) > > File "/usr/lib/zope/lib/python/OFS/Application.py", line 660, in > > import_product > > product=__import__(pname, global_dict, global_dict, silly) > > File "/var/lib/zope/Products/ProductTool/__init__.py", line 2, in ? > > from Products.ProductTool import ProductGhost,AmazonProduct > > File "/var/lib/zope/Products/ProductTool/AmazonProduct.py", line 7, in ? > > from AmazonSearch_services import * > > File "AmazonSearch_services.py", line 3020, in ? > > class ActorSearchResponseWrapper(ActorSearchResponse): > > File "AmazonSearch_services.py", line 3023, in ActorSearchResponseWrapper > > typecode = ActorSearchResponse(name='ActorSearchRequestResponse', > > ns='http://soap.amazon.com') > > File "AmazonSearch_services.py", line 3011, in __init__ > > self._return = ProductInfo_Def() > > File > > "/var/lib/zope/Products/ProductTool/AmazonSearch_services_types.py", > > line 1857, in __init__ > > TClist = [ZSI.TC.String(pname="TotalResults",aname="_TotalResults", > > optional=1), ZSI.TC.String(pname="TotalPages",aname="_TotalPages", > > optional=1), ZSI.TC.String(pname="ListName",aname="_ListName", > > optional=1), DetailsArray_Def(name="Details", ns=ns, optional=1), ] > > File > > "/var/lib/zope/Products/ProductTool/AmazonSearch_services_types.py", > > line 1308, in __init__ > > ZSI.TCcompound.Array.__init__(self, 'arrayTypeNS:Details[]', > > Details_Def(name=None,typed=0), pname=name, aname='_%s' % name, > > oname='%s xmlns:arrayTypeNS="http://soap.amazon.com"' % name, **kw) > > File > > "/var/lib/zope/Products/ProductTool/AmazonSearch_services_types.py", > > line 1791, in __init__ > > aname=aname, oname=oname, > > > this is a extension class problem > > try to get the __init__ of the superclass via __dict__ > > instead of: > > ZSI.TCcompound.Array.__init__(self,...) > > use: > > ZSI.TCcompound.Array.__dict__['__init__'](self,...) > > > > File "/usr/lib/python2.3/site-packages/ZSI/TCcompound.py", line 65, in > > __init__ > > raise TypeError('pyclass must be None or a class, not ' + > >TypeError: pyclass must be None or a class, not >ExtensionClass at f6be67c0> > > > > > >_______________________________________________ > >Zope maillist - Zope@zope.org > >http://mail.zope.org/mailman/listinfo/zope > >** No cross posts or HTML encoding! ** > >(Related lists - > > http://mail.zope.org/mailman/listinfo/zope-announce > > http://mail.zope.org/mailman/listinfo/zope-dev ) > > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) From Pperegrina at Lastminute.com Wed Jan 19 13:08:27 2005 From: Pperegrina at Lastminute.com (Pascal Peregrina) Date: Wed Jan 19 14:51:23 2005 Subject: [Zope] http header question Message-ID: Have you tried actually uploading a PDF File (as a ZODB File object) in Zope, then setting the content-type to application/pdf, in order to compare the headers you get when requesting that file ? Pascal P.S. : please use text format when posting to the Zope mailing-lists. :)) -----Message d'origine----- De : zope-bounces@zope.org [mailto:zope-bounces@zope.org]De la part de Nathaniel Wingfield Envoy? : mercredi 19 janvier 2005 18:24 ? : zope@zope.org Objet : [Zope] http header question My application streams pdf files from disk (not zodb) to the user, and I've been writing the http header more or less manually. I've had some strange problems with downloading - one particular third-party pdf plugin acts as if the file can not be found, and Internet Explorer arbitrarily, yet consistently pops the Open/Save/Cancel dialog for 1% of files, while launching a plugin for the other 99%. My header looks like this: HTTP/1.1 200 OK Server: Zope/(Zope 2.7.3-0, python 2.3.4, linux2) ZServer/1.1 Date: Wed, 19 Jan 2005 17:08:30 GMT Content-Length: 20004 Content-Type: application/pdf Connection: close Content-Disposition: filename="attachment.pdf" Is there anything missing or malformed that could be causing trouble? Nathaniel _______________________________________________ CONFIDENTIALITY NOTICE This e-mail is intended only for the addressee named above. It contains information that is privileged, confidential or otherwise protected from use and disclosure. If you are not the intended recipient, you are hereby notified that any review, disclosure, copying, or dissemination of this transmission, or taking of any action in reliance on its contents, or other use is strictly prohibited. If you have received this transmission in error, please reply to the sender listed above immediately and permanently delete this message from your inbox. Thank you for your cooperation. ID:[{20050119123043.24590.577798887-66.208.180.43}] ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** From dieter at handshake.de Wed Jan 19 14:36:52 2005 From: dieter at handshake.de (Dieter Maurer) Date: Wed Jan 19 14:58:20 2005 Subject: [Zope] Clearing _v_ attributes In-Reply-To: References: Message-ID: <16878.46804.946527.898384@gargle.gargle.HOWL> Pascal Peregrina wrote at 2005-1-19 10:42 +0100: > ... removing "_v_" attributes ... >I was wondering if, setting self._p_changed=1 on the object from the Zope RW >would work. It will but only in all other connections (i.e. not in the one that executes the code above). Also, it will cause writing of the object (and bloat your data file). -- Dieter From dieter at handshake.de Wed Jan 19 14:34:44 2005 From: dieter at handshake.de (Dieter Maurer) Date: Wed Jan 19 14:58:25 2005 Subject: [Zope] Hou to write out a dutch (european) currency In-Reply-To: <41ED59BA.6090204@digital-adventures.nl> References: <41ED59BA.6090204@digital-adventures.nl> Message-ID: <16878.46676.106014.230662@gargle.gargle.HOWL> Martin Koekenberg wrote at 2005-1-18 19:47 +0100: >I want to write out a Currency in euro's : € 1.234,10 But when I use > I get € 1234.10. > >What is the right fmt tag for this ? The "locale" module provides locale specific currency formatting. You will need to declare it safe for use by untrusted code before you can use it in Python Scripts, Page Templates or DTML methods. Read the "README" of the "PythonScripts" product. An alternative would be a Python Script that does the formatting you like. -- Dieter From dieter at handshake.de Wed Jan 19 14:42:27 2005 From: dieter at handshake.de (Dieter Maurer) Date: Wed Jan 19 14:58:31 2005 Subject: [Zope] metal Macros from PageTemplateFiles? In-Reply-To: References: Message-ID: <16878.47139.301522.459937@gargle.gargle.HOWL> Robert Casties wrote at 2005-1-19 14:29 +0100: >Is it possible (and how?) to use a procedure in a product to produce a >PageTemplate that defines a macro, that can be used in another PageTemplate? > >I tried: > > class SomeClass(Folder): > > content_template = PageTemplateFile("/some/file/template.zpt") > >and the direct ssignment to a variable works, but it is not exactly what >I need (I need to check with the actual instance). > >But when I try to do: > > def content_template(self): > pt = PageTemplateFile("/some/file/template.zpt") > return pt > >then the procedure is never called and I get an error in the ZPT that >tries to use the macro: > > Error Type: AttributeError > Error Value: content_templatemacros Two errors: 1. as Tino already pointed out: you forgot the ".__of__(self)" 2. you must call your "content_template" method (contrary to your "content_template" attribute). The easiest way would be a "ComputedAttribute", something like from ComputedAttribute import ComputedAttribute ... def content_template(self): ... content_template = ComputedAttribute(content_template, 1) >Somewhere I read a vage reference to invoke "cook" but I don't know how. PageTemplates get automatically "cook"ed, when necessary. -- Dieter From sitharus at gmail.com Wed Jan 19 15:49:40 2005 From: sitharus at gmail.com (Phillip Hutchings) Date: Wed Jan 19 15:49:44 2005 Subject: [Zope] http header question In-Reply-To: References: Message-ID: <5f62f8a05011912493d93d1c6@mail.gmail.com> On Wed, 19 Jan 2005 12:24:25 -0500, Nathaniel Wingfield wrote: > > My application streams pdf files from disk (not zodb) to the user, and I've > been writing the http header more or less manually. I've had some strange > problems with downloading ? one particular third-party pdf plugin acts as if > the file can not be found, and Internet Explorer arbitrarily, yet > consistently pops the Open/Save/Cancel dialog for 1% of files, while > launching a plugin for the other 99%. > > My header looks like this: > > HTTP/1.1 200 OK > Server: Zope/(Zope 2.7.3-0, python 2.3.4, linux2) ZServer/1.1 > Date: Wed, 19 Jan 2005 17:08:30 GMT > Content-Length: 20004 > Content-Type: application/pdf > Connection: close > Content-Disposition: filename="attachment.pdf" > > Is there anything missing or malformed that could be causing trouble? I had this problem with PHP powered site. IE would always ask to save and never display with the plugin. Even when the headers were identical it wouldn't work, but everything other than IE worked. I just ended up serving directly with Apache. A quick thing first, the Content-Disposition header should look like this: Content-Disposition: inline; filename="attachment.pdf" to make IE display in the PDF plugin. -- Phillip Hutchings http://www.sitharus.com/ sitharus@gmail.com / sitharus@sitharus.com From casties at mpiwg-berlin.mpg.de Wed Jan 19 16:10:05 2005 From: casties at mpiwg-berlin.mpg.de (Robert Casties) Date: Wed Jan 19 16:10:31 2005 Subject: [Zope] Re: metal Macros from PageTemplateFiles? In-Reply-To: <16878.47139.301522.459937@gargle.gargle.HOWL> References: <16878.47139.301522.459937@gargle.gargle.HOWL> Message-ID: <41EECCAD.6040909@mpiwg-berlin.mpg.de> Dieter Maurer wrote: >> def content_template(self): >> pt = PageTemplateFile("/some/file/template.zpt") >> return pt >> >>then the procedure is never called and I get an error in the ZPT that >>tries to use the macro: >> >> Error Type: AttributeError >> Error Value: content_templatemacros > > > Two errors: > > 1. as Tino already pointed out: you forgot the ".__of__(self)" That was not the main problem (as I had tried that before) but I tried to use the method in a traversal "metal:use-macro="here/content_template/macros/page" which didn't work. (Could that be made to work?) > 2. you must call your "content_template" method (contrary to your > "content_template" attribute). > > The easiest way would be a "ComputedAttribute", something like > > from ComputedAttribute import ComputedAttribute > > ... > def content_template(self): > ... > > content_template = ComputedAttribute(content_template, 1) Interesting, but I don't really understand the details. Can I have an attribute and a method of the same name? What does ComputedAttribute do? I found some documentation hints on the web but what's the second parameter? Can I pass parameters to the function? Regards Robert From NWingfield at dixon-hughes.com Wed Jan 19 16:11:17 2005 From: NWingfield at dixon-hughes.com (Nathaniel Wingfield) Date: Wed Jan 19 16:18:45 2005 Subject: [Zope] http header question Message-ID: OK, I found the solution and it's really wacky. Apparently IE is misreading the header, and if the word "attachment" shows up anywhere on the Content-Disposition line, including in the file name itself, it will spawn the dialog. For example, the following will cause IE to launch the open/save/cancel dialog every time: Content-Disposition: inline; filename="spb_bar_codes_attachment.pdf" While the following will launch the plugin every time: Content-Disposition: inline; filename="spb_bar_codes_xyz.pdf" -----Original Message----- From: Phillip Hutchings [mailto:sitharus@gmail.com] Sent: Wednesday, January 19, 2005 3:50 PM To: Nathaniel Wingfield Cc: zope@zope.org Subject: Re: [Zope] http header question On Wed, 19 Jan 2005 12:24:25 -0500, Nathaniel Wingfield wrote: > > My application streams pdf files from disk (not zodb) to the user, and I've > been writing the http header more or less manually. I've had some strange > problems with downloading - one particular third-party pdf plugin acts as if > the file can not be found, and Internet Explorer arbitrarily, yet > consistently pops the Open/Save/Cancel dialog for 1% of files, while > launching a plugin for the other 99%. > > My header looks like this: > > HTTP/1.1 200 OK > Server: Zope/(Zope 2.7.3-0, python 2.3.4, linux2) ZServer/1.1 > Date: Wed, 19 Jan 2005 17:08:30 GMT > Content-Length: 20004 > Content-Type: application/pdf > Connection: close > Content-Disposition: filename="attachment.pdf" > > Is there anything missing or malformed that could be causing trouble? I had this problem with PHP powered site. IE would always ask to save and never display with the plugin. Even when the headers were identical it wouldn't work, but everything other than IE worked. I just ended up serving directly with Apache. A quick thing first, the Content-Disposition header should look like this: Content-Disposition: inline; filename="attachment.pdf" to make IE display in the PDF plugin. -- Phillip Hutchings http://www.sitharus.com/ sitharus@gmail.com / sitharus@sitharus.com ID:[{20050119155530.24590.7625540730-66.208.180.43}] _______________________________________________ CONFIDENTIALITY NOTICE This e-mail is intended only for the addressee named above. It contains information that is privileged, confidential or otherwise protected from use and disclosure. If you are not the intended recipient, you are hereby notified that any review, disclosure, copying, or dissemination of this transmission, or taking of any action in reliance on its contents, or other use is strictly prohibited. If you have received this transmission in error, please reply to the sender listed above immediately and permanently delete this message from your inbox. Thank you for your cooperation. ID:[{20050119161840.24590.7613879936-66.208.180.43}] From RHill at msdinc.com Wed Jan 19 17:18:50 2005 From: RHill at msdinc.com (Robert Hill) Date: Wed Jan 19 17:18:45 2005 Subject: [Zope] TALInterpreter Performance Message-ID: <480ED19A579467459C9CCACFCD2135F7D4705C@utah.inside.msdinc.com> Hey all, I just installed Zope Profiler to check out the performance of my pages and I noticed that I have a few bottlenecks on TALInterpreter calls that I'd like to clean up. The issue is that the per call time seems a bit high on some of these. Granted, I've got a lot more TAL statements in my page templates than I would like (eventually I will pull these out into scripts), but are these numbers unusually high? ncalls tottime percall cumtime percall filename:lineno(function) 11618/29 0.265 0.000 91.736 3.163 TALInterpreter.py:390(do_optTag) 12242/29 0.282 0.000 91.736 3.163 TALInterpreter.py:382(no_tag) 26 0.000 0.000 88.941 3.421 ZopePageTemplate.py:192(_exec) 34/25 0.000 0.000 64.615 2.585 TALInterpreter.py:632(do_defineMacro) Thanks for any advice. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.zope.org/pipermail/zope/attachments/20050119/d0638107/attachment.htm From shapehead at yahoo.com Wed Jan 19 17:42:43 2005 From: shapehead at yahoo.com (Bobby Brewster) Date: Wed Jan 19 17:42:47 2005 Subject: [Zope] Where is Zope3X? Message-ID: <20050119224243.72565.qmail@web53407.mail.yahoo.com> Postgresql 8.0 is out but where is Zope3X? It feels like forever, I am still waiting for Zope3X to start a database project based on Zope & PG. Should I forget about Zope3 for now and just use Zope 2.7? This really sucks. Shapehead ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca From tseaver at zope.com Wed Jan 19 18:51:25 2005 From: tseaver at zope.com (Tres Seaver) Date: Wed Jan 19 18:51:47 2005 Subject: [Zope] Re: Where is Zope3X? In-Reply-To: <20050119224243.72565.qmail@web53407.mail.yahoo.com> References: <20050119224243.72565.qmail@web53407.mail.yahoo.com> Message-ID: <41EEF27D.6000905@zope.com> Bobby Brewster wrote: > Postgresql 8.0 is out but where is Zope3X? > It feels like forever, I am still waiting for Zope3X > to start a database project based on Zope & PG. Should > I forget about Zope3 for now and just use Zope 2.7? Zope X3 3.0 (final) released 2004/11/06: http://zope.org/Products/ZopeX3 Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From apaku at gmx.de Wed Jan 19 18:59:55 2005 From: apaku at gmx.de (Andreas Pakulat) Date: Wed Jan 19 18:59:36 2005 Subject: [Zope] Where is Zope3X? In-Reply-To: <20050119224243.72565.qmail@web53407.mail.yahoo.com> References: <20050119224243.72565.qmail@web53407.mail.yahoo.com> Message-ID: <20050119235955.GB1356@morpheus.matrix.de> On 19.Jan 2005 - 17:42:43, Bobby Brewster wrote: > Postgresql 8.0 is out but where is Zope3X? > It feels like forever, I am still waiting for Zope3X > to start a database project based on Zope & PG. Should > I forget about Zope3 for now and just use Zope 2.7? > This really sucks. What are you talking about? Zope X3 is out since November and don't get Zope X3 confused with the "real" Zope 3. See here: http://zope.org/Products/ZopeX3 and here: http://dev.zope.org/Zope3 Andreas -- Your aims are high, and you are capable of much. From simon at joyful.com Wed Jan 19 19:57:52 2005 From: simon at joyful.com (Simon Michael) Date: Wed Jan 19 19:57:41 2005 Subject: [Zope] Re: Mailman integration with Zope In-Reply-To: References: Message-ID: Here's the last attempt: http://zopewiki.org/ZMailman From lewombie at gmail.com Wed Jan 19 21:59:49 2005 From: lewombie at gmail.com (Wombie Tomek) Date: Wed Jan 19 21:59:53 2005 Subject: [Zope] question on objectValues Message-ID: I've trying to write a little dtml method that will out put a list of images in a given location using a variable "path" with is passed from a form. ?path=photos1... but haven't had much luck because it doesn't seems to interpret the variable i want to be a path. if i put the path directly into the program ie "photos1.objectValues()" it works. but i need it to be feed from a variable path. "/> this should simple ;-) but i'm missing something. thanks... holden From peter.millar at parasyn.com.au Wed Jan 19 22:18:37 2005 From: peter.millar at parasyn.com.au (Peter Millar) Date: Wed Jan 19 22:18:52 2005 Subject: [Zope] question on objectValues In-Reply-To: Message-ID: <005a01c4fe9e$bb418e20$0904000a@corp.parasyn.com.au> holden, I don't know how to do this in dtml but in zpt I can create variables so rather than doing path="wombat/&dtml-id;/" I would in zpt anyway do a tal:define="mypath python:'wombat/'+getID()+'/'" and then have "/> this should simple ;-) but i'm missing something. thanks... holden _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) From zope-l at jcameroncooper.com Wed Jan 19 22:30:15 2005 From: zope-l at jcameroncooper.com (J Cameron Cooper) Date: Wed Jan 19 22:30:43 2005 Subject: [Zope] question on objectValues In-Reply-To: References: Message-ID: <41EF25C7.3030702@jcameroncooper.com> Wombie Tomek wrote: > I've trying to write a little dtml method that will out put a list of > images in a given location using a variable "path" with is passed from > a form. ?path=photos1... > > but haven't had much luck because it doesn't seems to interpret the > variable i want to be a path. if i put the path directly into the > program ie "photos1.objectValues()" it works. but i need it to be > feed from a variable path. > > > > amount=" sequence-end> count-description>"/> > > > > this should simple ;-) but i'm missing something. You want to look up an object in the namespace, and to do so you must use dictionary lookup on the namespace (which is the variable "_".) One could also use getattr or similar. Think of it this way: >>> namespace = {"photos1":someobject, "photos2":someotherobject} >>> path = "photos1" >>> ph = namespace[path] >>> # being the same as... >>> ph = namespace["photos1"] >>> # which is like saying --jcc From garthb at gmail.com Wed Jan 19 22:31:44 2005 From: garthb at gmail.com (Garth B.) Date: Wed Jan 19 22:31:45 2005 Subject: [Zope] question on objectValues In-Reply-To: References: Message-ID: <4ee48d070501191931718f6a95@mail.gmail.com> holden, take a look at the functions restrictedTraverse(path) and perhaps unrestrictedTraverse(path). These may not be the most appropriate functions to use, but they will return an object reference using a path (such as "folder/subfolder/page"). In your example it could look something like the following: This is, of course, relative to the folder/object you are currently "in". If anyone has a more appropriate solution, I'd be interested in hearing about it, too! Garth From scamps at earcon.com Thu Jan 20 01:52:52 2005 From: scamps at earcon.com (Santi Camps) Date: Thu Jan 20 01:50:12 2005 Subject: [Zope] Memory and Large Zope Page Templates In-Reply-To: <41EE29BB.2040103@simplistix.co.uk> References: <41E7E0FD.50200@earcon.com> <41E80923.8060600@icube.it> <41E8109F.9040504@earcon.com> <41ED5F5F.6000004@simplistix.co.uk> <41EDFCA1.2050500@earcon.com> <41EE29BB.2040103@simplistix.co.uk> Message-ID: <41EF5544.70902@earcon.com> En/na Chris Withers ha escrit: > Santi Camps wrote: > >> Yes, I understant how ZODB cache works with threads. The behaviour >> I didn't understood is why, once transaction is finished, the ZODB >> Cache decrese in number of objects but the RAM process not. > > > This is the pythonic behaviour I was talking about. > If you want it fixed, bug Guido ;-) > >> I'm already using brains. I've tried your suggestion of >> subtransactions, but there is no change (I think it's normal, I'm not >> changing any persistent object). I'm not sure how a _p_jar.sync() >> can improve something. > > > ...you need to force the cache to garbage collect before there are too > many objects in memory. The catalog does this using subtransactions. > there's also a cache minimize call somewhere, but you're probably > better off asking on zodb-dev@zope.org about where that is... > Hi again, I reply just to put the answer here, in order to be useful someone else. Following Chris instructions, I've looked at ZCatalogs code and found the way to free memory: 1) Use subtransactions when changing data, adding a get_transaction().commit(1) every X steps 2) Explicitly call the garbage collector of the connection every X steps, forcing the conection to release objects from cache and be adjusted to cache parameters defined in zope.conf. This can be done with a self._p_jar.cacheGC() (where self is a persistent object, obviously) In my case, a readonly report, the second method is enought to keep memory in place. Thanks very much to everybody Santi Camps From lewombie at gmail.com Thu Jan 20 02:46:19 2005 From: lewombie at gmail.com (Wombie Tomek) Date: Thu Jan 20 02:46:21 2005 Subject: [Zope] question on howto readfile(img) Message-ID: i have what i hope is a fairly easy question that's been alluding me for a few hours. i've been trying to rewrite a little script i wrote in php long ago. i need to have a script, which returns an image once it decides it exists... the only thing i don't have worked out is how to do something like this: readfile(img+?size=thumb); <<----not sure how to do this, this is from php img being a path given through the url: ie ?img=somefolder/someimage.jpg thanks, holden From akm at theinternet.com.au Thu Jan 20 04:16:41 2005 From: akm at theinternet.com.au (Andrew Milton) Date: Thu Jan 20 04:17:52 2005 Subject: [Zope] question on howto readfile(img) In-Reply-To: References: Message-ID: <20050120091641.GR98558@camelot.theinternet.com.au> +-------[ Wombie Tomek ]---------------------- | i have what i hope is a fairly easy question that's been alluding me | for a few hours. i've been trying to rewrite a little script i wrote | in php long ago. | | i need to have a script, which returns an image once it decides it | exists... the only thing i don't have worked out is how to do | something like this: | | | readfile(img+?size=thumb); <<----not sure how to do this, this is from php | | img being a path given through the url: ie ?img=somefolder/someimage.jpg Is img a Zope Image type? if soo... will do the whole job for you... set the Content-Type header etc. You Probably Shouldn't Do That In DTML -- Andrew Milton akm@theinternet.com.au From Cliff.Ford at ed.ac.uk Thu Jan 20 04:26:38 2005 From: Cliff.Ford at ed.ac.uk (Cliff Ford) Date: Thu Jan 20 04:26:43 2005 Subject: [Zope] question on howto readfile(img) In-Reply-To: References: Message-ID: <41EF794E.2050202@ed.ac.uk> Easy questions may have multiple answers. If someimage.jpg is a static image that really exists you could do it like this: This actually puts a standard image tag in the output (you probably have your own header and footer). If the image is a dynamic entity or fetched from a database, then you need to use rather than dtml-var, and then return the image content. Cliff Wombie Tomek wrote: > i have what i hope is a fairly easy question that's been alluding me > for a few hours. i've been trying to rewrite a little script i wrote > in php long ago. > > i need to have a script, which returns an image once it decides it > exists... the only thing i don't have worked out is how to do > something like this: > > > readfile(img+?size=thumb); <<----not sure how to do this, this is from php > > img being a path given through the url: ie ?img=somefolder/someimage.jpg > > thanks, > > holden > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) From chris at simplistix.co.uk Thu Jan 20 04:34:32 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Thu Jan 20 04:34:40 2005 Subject: [Zope] Zope 2.7.0 - Document had no data In-Reply-To: <1106139004.18869.52.camel@vorcha.smtl.co.uk> References: <1106139004.18869.52.camel@vorcha.smtl.co.uk> Message-ID: <41EF7B28.2090303@simplistix.co.uk> Hi Chuck, Chuck Amadi wrote: > Hi I have download and tried to installing and unpacking optional > products ie Squishdot,ImagePagerFolde and fcForum into my zope instance > Products directory chown -R uid and gid to zope user,restart Zope as > Root , to install them in Plone using Plone Setup's "Add/Remove > Products." How did you install Zope? Wha tversion of Zope are you using? What version of the above products are you using? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From chris at simplistix.co.uk Thu Jan 20 04:37:23 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Thu Jan 20 04:37:27 2005 Subject: [Zope] Workaround for BUG 569 In-Reply-To: References: Message-ID: <41EF7BD3.6000801@simplistix.co.uk> Christian Klinger wrote: > Hello Zope-Users > > Does anyone has a workaround for > > http://zope.org/Collectors/Zope/569. > > I?ll parese the cookie by an apache module. The module checks the cookie > and "says" it?s not valid I think this is because the cookie is quoted. > > Any hints? Call RESPONSE.setHeader as described by leper in comment #2 on that issue. cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From chris at simplistix.co.uk Thu Jan 20 04:43:41 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Thu Jan 20 04:43:45 2005 Subject: [Zope] TALInterpreter Performance In-Reply-To: <480ED19A579467459C9CCACFCD2135F7D4705C@utah.inside.msdinc.com> References: <480ED19A579467459C9CCACFCD2135F7D4705C@utah.inside.msdinc.com> Message-ID: <41EF7D4D.2010004@simplistix.co.uk> Robert Hill wrote: > Hey all, > > I just installed Zope Profiler to check out the performance of my pages and I noticed that I have a few bottlenecks on TALInterpreter calls that I'd like to clean up. The issue is that the per call time seems a bit high on some of these. Granted, I've got a lot more TAL statements in my page templates than I would like (eventually I will pull these out into scripts), but are these numbers unusually high? > > ncalls tottime percall cumtime percall filename:lineno(function) > 11618/29 0.265 0.000 91.736 3.163 TALInterpreter.py:390(do_optTag) > 12242/29 0.282 0.000 91.736 3.163 TALInterpreter.py:382(no_tag) > 26 0.000 0.000 88.941 3.421 ZopePageTemplate.py:192(_exec) > 34/25 0.000 0.000 64.615 2.585 TALInterpreter.py:632(do_defineMacro) It all depends how complex you page templates are. You need to find the slow/complicated bits and make them faster, if you're experiencing slow page load. cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From chris at simplistix.co.uk Thu Jan 20 04:45:45 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Thu Jan 20 04:45:58 2005 Subject: [Zope] question on objectValues In-Reply-To: <005a01c4fe9e$bb418e20$0904000a@corp.parasyn.com.au> References: <005a01c4fe9e$bb418e20$0904000a@corp.parasyn.com.au> Message-ID: <41EF7DC9.2080806@simplistix.co.uk> Peter Millar wrote: > holden, > > I don't know how to do this in dtml but in zpt I can create variables so > rather than doing path="wombat/&dtml-id;/" I would in zpt anyway do a > tal:define="mypath python:'wombat/'+getID()+'/'" and then have path="" tal:attribute="path mypath" what's wrong with just: Hi all, I've setup a site search using ZCatalog and ZCTextIndexs that's happily doing what I want, but I'd like to take a stage further. Is there a way using the ZCatalog Brain objects returned by the ZCatalog search to get the text that actually caused the match? I'm trying to end up with a preview of the area of the content that caused the match, or is a different approach needed? The only way I can think of doing this at the moment is to get the actual content object via the ZCatalog brain object and then re-run a regex search on the content, pulling out the text around any match. This just seems the wrong way forward is there a better way? Thanks for any pointers, I'm still very much in the newbie class at present. Brian http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.zope.org/pipermail/zope/attachments/20050120/1cbc6821/attachment.htm From lists at andreas-jung.com Thu Jan 20 05:58:42 2005 From: lists at andreas-jung.com (Andreas Jung) Date: Thu Jan 20 06:03:57 2005 Subject: [Zope] Zcatalog searches In-Reply-To: <038E38019B9E1541993E4E566C50C120389AC1@bbcxues02.national.core.bbc.co.uk> References: <038E38019B9E1541993E4E566C50C120389AC1@bbcxues02.national.core. bbc.co.uk> Message-ID: <9E627BF2CE525F74EEC14565@[192.168.0.102]> --On Donnerstag, 20. Januar 2005 10:43 Uhr +0000 Brian Ling wrote: > I've setup a site search using ZCatalog and ZCTextIndexs that's happily > doing what I want, but I'd like to take a stage further. Is there a way > using the ZCatalog Brain objects returned by the ZCatalog search to get > the text that actually caused the match? I'm trying to end up with a > preview of the area of the content that caused the match, or is a > different approach needed? > A Zcatalog search returns the objects (or better their proxies) that fullfill the query. You have to grab the content from the object and perform post-query operations on your own. There is no direct solution where Zope would help you out-of-the-box. -aj From Pperegrina at Lastminute.com Thu Jan 20 04:58:34 2005 From: Pperegrina at Lastminute.com (Pascal Peregrina) Date: Thu Jan 20 06:49:02 2005 Subject: [Zope] TALInterpreter Performance Message-ID: You can also have a look a SpeedPack to speed up TAL. See : http://psyco.sourceforge.net/ to download and install psyco And then see : http://sourceforge.net/project/showfiles.php?group_id=55262&package_id=10732 6 To only use TAL optimization, you change : PATCH_CMF = True To : PATCH_CMF = False in config.py This works fine on Zope 2.7.3 Pascal -----Message d'origine----- De : zope-bounces+pperegrina=lastminute.com@zope.org [mailto:zope-bounces+pperegrina=lastminute.com@zope.org]De la part de Chris Withers Envoy? : jeudi 20 janvier 2005 10:44 ? : Robert Hill Cc : zope@zope.org Objet : Re: [Zope] TALInterpreter Performance Robert Hill wrote: > Hey all, > > I just installed Zope Profiler to check out the performance of my pages and I noticed that I have a few bottlenecks on TALInterpreter calls that I'd like to clean up. The issue is that the per call time seems a bit high on some of these. Granted, I've got a lot more TAL statements in my page templates than I would like (eventually I will pull these out into scripts), but are these numbers unusually high? > > ncalls tottime percall cumtime percall filename:lineno(function) > 11618/29 0.265 0.000 91.736 3.163 TALInterpreter.py:390(do_optTag) > 12242/29 0.282 0.000 91.736 3.163 TALInterpreter.py:382(no_tag) > 26 0.000 0.000 88.941 3.421 ZopePageTemplate.py:192(_exec) > 34/25 0.000 0.000 64.615 2.585 TALInterpreter.py:632(do_defineMacro) It all depends how complex you page templates are. You need to find the slow/complicated bits and make them faster, if you're experiencing slow page load. cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** From toolkit at magma.ca Thu Jan 20 07:49:00 2005 From: toolkit at magma.ca (Jonathan Hobbs) Date: Thu Jan 20 07:45:55 2005 Subject: [Zope] Zcatalog searches References: <038E38019B9E1541993E4E566C50C120389AC1@bbcxues02.national.core.bbc.co.uk> Message-ID: <002501c4feee$6adc23a0$647ba8c0@jhdesktop> Zcatalog searches From: Brian Ling Hi all, I've setup a site search using ZCatalog and ZCTextIndexs that's happily doing what I want, but I'd like to take a stage further. Is there a way using the ZCatalog Brain objects returned by the ZCatalog search to get the text that actually caused the match? I'm trying to end up with a preview of the area of the content that caused the match, or is a different approach needed? The only way I can think of doing this at the moment is to get the actual content object via the ZCatalog brain object and then re-run a regex search on the content, pulling out the text around any match. This just seems the wrong way forward is there a better way? You have to grab the text from the search result objects and do your own matching (regex works). Be careful to match for the same terms used in the index (ie. if you have done any kind of stemming you need to take this into consideration). This is exactly what we have done for one of our sites (shopwiser.com - you can see how it works by entering a search term and seeing your search term highlighted in the results). Jonathan From rik.hoekstra at inghist.nl Thu Jan 20 08:50:24 2005 From: rik.hoekstra at inghist.nl (Rik Hoekstra) Date: Thu Jan 20 08:54:12 2005 Subject: [Zope] Zcatalog searches In-Reply-To: <002501c4feee$6adc23a0$647ba8c0@jhdesktop> References: <038E38019B9E1541993E4E566C50C120389AC1@bbcxues02.national.core.bbc.co.uk> <002501c4feee$6adc23a0$647ba8c0@jhdesktop> Message-ID: <41EFB720.1010505@inghist.nl> Jonathan Hobbs wrote: > > You have to grab the text from the search result objects and do your own > matching (regex works). Be careful to match for the same terms used in the > index (ie. if you have done any kind of stemming you need to take this into > consideration). This is exactly what we have done for one of our sites > (shopwiser.com - you can see how it works by entering a search term and > seeing your search term highlighted in the results). > to get the same query terms the catalog matched you'd probably best to match the terms against the lexicon of the zctextindex (after all that's what the catalog query machinery does as well). The lexicon may be queried separately. The list of terms may also be useful for user feedback Rik Hoekstra From fabiorizzo at gmail.com Thu Jan 20 11:13:58 2005 From: fabiorizzo at gmail.com (Fabio Rizzo Matos) Date: Thu Jan 20 11:14:00 2005 Subject: [Zope] Where is Zope3X? In-Reply-To: <20050119235955.GB1356@morpheus.matrix.de> References: <20050119224243.72565.qmail@web53407.mail.yahoo.com> <20050119235955.GB1356@morpheus.matrix.de> Message-ID: is interesting using Zope 3 rather Zope 2 to develop applications ?? And Products like Plone? Don?t work in zope 3?? -- Fabio Rizzo Matos fabio@fabiorizzo.com www.fabiorizzo.com "O melhor do Brasil ? o Brasileiro!" "The best of Brazil is the Brazilian people" www.brasil.gov.br On Thu, 20 Jan 2005 00:59:55 +0100, Andreas Pakulat wrote: > On 19.Jan 2005 - 17:42:43, Bobby Brewster wrote: > > Postgresql 8.0 is out but where is Zope3X? > > It feels like forever, I am still waiting for Zope3X > > to start a database project based on Zope & PG. Should > > I forget about Zope3 for now and just use Zope 2.7? > > This really sucks. > > What are you talking about? Zope X3 is out since November and > don't get Zope X3 confused with the "real" Zope 3. > > See here: http://zope.org/Products/ZopeX3 > > and here: http://dev.zope.org/Zope3 > > Andreas > > -- > Your aims are high, and you are capable of much. > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) > From Pperegrina at Lastminute.com Thu Jan 20 11:24:12 2005 From: Pperegrina at Lastminute.com (Pascal Peregrina) Date: Thu Jan 20 11:25:39 2005 Subject: [Zope] Where is Zope3X? Message-ID: See http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/RoadMap Plone may release a new version for Zope 3 after it comes out, but not for Zope X3. I would suggest you use the latest Zope 2 (currently 2.7.4) Pascal -----Message d'origine----- De : zope-bounces@zope.org [mailto:zope-bounces@zope.org]De la part de Fabio Rizzo Matos Envoy? : jeudi 20 janvier 2005 17:14 ? : zope@zope.org Objet : Re: [Zope] Where is Zope3X? is interesting using Zope 3 rather Zope 2 to develop applications ?? And Products like Plone? Don?t work in zope 3?? -- Fabio Rizzo Matos fabio@fabiorizzo.com www.fabiorizzo.com "O melhor do Brasil ? o Brasileiro!" "The best of Brazil is the Brazilian people" www.brasil.gov.br On Thu, 20 Jan 2005 00:59:55 +0100, Andreas Pakulat wrote: > On 19.Jan 2005 - 17:42:43, Bobby Brewster wrote: > > Postgresql 8.0 is out but where is Zope3X? > > It feels like forever, I am still waiting for Zope3X > > to start a database project based on Zope & PG. Should > > I forget about Zope3 for now and just use Zope 2.7? > > This really sucks. > > What are you talking about? Zope X3 is out since November and > don't get Zope X3 confused with the "real" Zope 3. > > See here: http://zope.org/Products/ZopeX3 > > and here: http://dev.zope.org/Zope3 > > Andreas > > -- > Your aims are high, and you are capable of much. > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) > _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** From apaku at gmx.de Thu Jan 20 11:58:37 2005 From: apaku at gmx.de (Andreas Pakulat) Date: Thu Jan 20 11:58:18 2005 Subject: [Zope] Where is Zope3X? In-Reply-To: References: <20050119224243.72565.qmail@web53407.mail.yahoo.com> <20050119235955.GB1356@morpheus.matrix.de> Message-ID: <20050120165837.GA20281@morpheus.matrix.de> On 20.Jan 2005 - 13:13:58, Fabio Rizzo Matos wrote: > is interesting using Zope 3 rather Zope 2 to develop applications ?? ? I don't get what you mean. Of course its interesting to develop Zope3 Apps, but currently you have to use ZopeX3 with its limitations, so for production use I'd recommend Zope2. If you mean if its better to start off with Zope3 instead of learning Zope2 that depends, if you need to come up with an app soon, you might be better off with Zope2, as there's no release plan yet for Zope3 (according to the website) and ZopeX3 is not really meant for production usage AFAIK. > And Products like Plone? Don?t work in zope 3?? First: Don't confuse Zope3 with ZopeX3, as I said already, Zope3 is meant to be backwards compatible to Zope2, whereas ZopeX3 is a working new release without any backwards compatibility (AFAIK). So for Plone it's going to be a new release I think, as it's not a small project and I would expect that Plone doesn't work out of the box on Zope3. But simple Zope2 Apps should be ok. Andreas -- You will be reincarnated as a toad; and you will be much happier. From feedreader at yahoo.com Thu Jan 20 12:06:31 2005 From: feedreader at yahoo.com (Ken Ara) Date: Thu Jan 20 12:06:33 2005 Subject: [Zope] Zcatalog searches Message-ID: <20050120170631.96790.qmail@web53308.mail.yahoo.com> Brian, Some code you can use as a starting point to produce KWIC (key word in context) can be found here: http://zope.org/Members/Ioan/SiteSearch. It's old but works for me under Zope 2.7.3. This implementation requires the searchable text to be in Catalog metadata, which seems to be a bad thing, but I have never really understood just how bad.. The recent discussions about memory use have got me thinking again about this; I would appreciate any pointers to discussion/explanation of catalog metadata and memory. Best, Ken __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From toolkit at magma.ca Thu Jan 20 12:24:56 2005 From: toolkit at magma.ca (Jonathan Hobbs) Date: Thu Jan 20 12:22:24 2005 Subject: [Zope] Zcatalog searches References: <20050120170631.96790.qmail@web53308.mail.yahoo.com> Message-ID: <040f01c4ff14$f8da4760$647ba8c0@jhdesktop> ----- Original Message ----- From: "Ken Ara" > Some code you can use as a starting point to produce > KWIC (key word in context) can be found here: > http://zope.org/Members/Ioan/SiteSearch. It's old but > works for me under Zope 2.7.3. > > This implementation requires the searchable text to be > in Catalog metadata, which seems to be a bad thing, > but I have never really understood just how bad.. We have experimented with storing compressed and uncompressed metadata (up to 20k bytes per zcatalog record). This worked fine for us (in terms of retrieval speed and zodb size) until we hit about 500k records (we used our own KWIC scripts not SiteSearch). At that time retrieval time started to increase to unacceptable times (over 2 seconds per search) and the zodb started to become unwieldly (5gb+). At that time (slow retrieval speed) we had about 5 million objects in the zodb (after packing). I would suggest that storing lots of metadata is workable if: 1) you don't have a lot of records 2) you don't store too much metadata/record 3) you have lots (1gb+) of RAM 4) you have fast disks 5) you have a fast cpu We currently have a zcatalog with a single ZCTextindex which holds about 1 million records (zodb size is under 3gb). Our retrieval speed, include KWIC processing, is under 1.5 seconds per search. We have very little metadata (less than 100 bytes per record), and access the final result set objects to get the data we need for KWIC processing and result set display. HTH Jonathan From lists at andreas-jung.com Thu Jan 20 12:48:57 2005 From: lists at andreas-jung.com (Andreas Jung) Date: Thu Jan 20 12:49:03 2005 Subject: [Zope] Zcatalog searches In-Reply-To: <040f01c4ff14$f8da4760$647ba8c0@jhdesktop> References: <20050120170631.96790.qmail@web53308.mail.yahoo.com> <040f01c4ff14$f8da4760$647ba8c0@jhdesktop> Message-ID: <77A13DBF79DCFFAA1ECE2A37@[192.168.0.102]> --On Donnerstag, 20. Januar 2005 12:24 Uhr -0500 Jonathan Hobbs wrote: > > ----- Original Message ----- > From: "Ken Ara" >> Some code you can use as a starting point to produce >> KWIC (key word in context) can be found here: >> http://zope.org/Members/Ioan/SiteSearch. It's old but >> works for me under Zope 2.7.3. >> >> This implementation requires the searchable text to be >> in Catalog metadata, which seems to be a bad thing, >> but I have never really understood just how bad.. > > We have experimented with storing compressed and uncompressed metadata (up > to 20k bytes per zcatalog record). This worked fine for us (in terms of > retrieval speed and zodb size) until we hit about 500k records (we used > our own KWIC scripts not SiteSearch). At that time retrieval time > started to increase to unacceptable times (over 2 seconds per search) and > the zodb started to become unwieldly (5gb+). At that time (slow > retrieval speed) we had about 5 million objects in the zodb (after > packing). > > I would suggest that storing lots of metadata is workable if: > > 1) you don't have a lot of records > 2) you don't store too much metadata/record > 3) you have lots (1gb+) of RAM > 4) you have fast disks > 5) you have a fast cpu > > We currently have a zcatalog with a single ZCTextindex which holds about 1 > million records (zodb size is under 3gb). Our retrieval speed, include > KWIC processing, is under 1.5 seconds per search. We have very little > metadata (less than 100 bytes per record), and access the final result > set objects to get the data we need for KWIC processing and result set > display. Dieters AdvancedQuery and ManagableIndexes products might help you all to optimize your catalogs. -aj From tseaver at zope.com Thu Jan 20 13:01:55 2005 From: tseaver at zope.com (Tres Seaver) Date: Thu Jan 20 13:02:21 2005 Subject: [Zope] Re: Where is Zope3X? In-Reply-To: <20050120165837.GA20281@morpheus.matrix.de> References: <20050119224243.72565.qmail@web53407.mail.yahoo.com> <20050119235955.GB1356@morpheus.matrix.de> <20050120165837.GA20281@morpheus.matrix.de> Message-ID: <41EFF213.8060701@zope.com> Andreas Pakulat wrote: > On 20.Jan 2005 - 13:13:58, Fabio Rizzo Matos wrote: > >>is interesting using Zope 3 rather Zope 2 to develop applications ?? > > > ? I don't get what you mean. Of course its interesting to develop > Zope3 Apps, but currently you have to use ZopeX3 with its limitations, > so for production use I'd recommend Zope2. If you mean if its better > to start off with Zope3 instead of learning Zope2 that depends, if you > need to come up with an app soon, you might be better off with Zope2, > as there's no release plan yet for Zope3 (according to the website) > and ZopeX3 is not really meant for production usage AFAIK. Not strictly true. Several folks, including ZC, are deploying or have deplyed production applications atop X3. YMMV, but the lack of backward compatibility is not a blocker for a new application. >>And Products like Plone? Don?t work in zope 3?? > > > First: Don't confuse Zope3 with ZopeX3, as I said already, Zope3 is > meant to be backwards compatible to Zope2, whereas ZopeX3 is a working > new release without any backwards compatibility (AFAIK). > > So for Plone it's going to be a new release I think, as it's not a > small project and I would expect that Plone doesn't work out of the > box on Zope3. But simple Zope2 Apps should be ok. Plone will have to be completely redone atop Zope3. Some CMFish / Plonish technologies / techniques are already in Zope3; others will need reimplementation. Migrating existing Plone / CMF content is likely to be the hardest part of the conversion. Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From pw_lists at slinkp.com Thu Jan 20 13:55:21 2005 From: pw_lists at slinkp.com (Paul Winkler) Date: Thu Jan 20 13:55:25 2005 Subject: [Zope] Zcatalog searches In-Reply-To: <77A13DBF79DCFFAA1ECE2A37@[192.168.0.102]> References: <20050120170631.96790.qmail@web53308.mail.yahoo.com> <040f01c4ff14$f8da4760$647ba8c0@jhdesktop> <77A13DBF79DCFFAA1ECE2A37@[192.168.0.102]> Message-ID: <20050120185521.GC4510@slinkp.com> On Thu, Jan 20, 2005 at 06:48:57PM +0100, Andreas Jung wrote: > Dieters AdvancedQuery and ManagableIndexes products might help you all > to optimize your catalogs. +1 on AdvancedQuery. It's let me do some filtering that I have no idea how I could have done otherwise. -- Paul Winkler http://www.slinkp.com From cnd at ecn.purdue.edu Thu Jan 20 14:37:57 2005 From: cnd at ecn.purdue.edu (Christopher N. Deckard) Date: Thu Jan 20 14:38:29 2005 Subject: [Zope] Re: recursion problem with newer security machinery In-Reply-To: <41EE7B98.8090400@zope.com> References: <41EE6595.8070900@ecn.purdue.edu> <41EE7B98.8090400@zope.com> Message-ID: <41F00895.4040603@ecn.purdue.edu> Tres Seaver wrote: > Christopher N. Deckard wrote: > >> We recently upgraded to 2.6.4, and are now having a problem with our >> custom UserFolder Product. I've narrowed everything down to a few >> methods, but am at a loss on how to fix it. >> >> In our UserFolder User class, we have overridden getRolesInContext to >> look for a Python Script (we call it an "authorize script"), in parent >> folders of the published object. It then calls each script to >> programatically add roles at runtime. This works great with Zope >> 2.6.2. I have noticed that in Zope 2.6.4 the method >> Bindings._getContext in Shared/DC/Scripts/Bindings.py has new validate >> code in it. I believe this is what is causing the problem for us. >> >> What is strange is that this is only a problem when using >> ExternalEditor, and when the container of the object we are trying to >> edit contains an "authorize script". From the ZMI there are no >> problems, and from folders under the folder with the "authorize >> script" there are no problems editing with ExternalEditor. >> >> Any help would be appreciated. Below is our code, and the two >> _getContext implementations for quicker reference. > > > The recursion problem stems from the fact that the new bindings > machinery wants to ensure that the user has roles for the context before > binding it, but you need the script to run to determine whether the user > has roles. The older code created a nasty security issue for sites > which made it possible for untrusted users to write PythonScripts. > > I don't know that this will work, but try giving the script > proxy role of 'Manager'; if that works, then you are set. > > If it doesn't work, then I believe you need to look at converting your > PythonScripts to instances of a "tool" class which can run the check as > trusted code. > > Tres. While setting the proxy role of 'Manager' does make things work for us, I'm confused as to why this is necessary. (Also, setting proxy role of 'Anonymous' works just fine too.) Why is accessing an object different in the context of ExternalEditor compared to that of accessing it through the ZMI. If I have a structure like: / /FOO /FOO/authorize /FOO/bar I can edit bar just fine through the ZMI, but not through ExternalEditor. I don't understand why there should be a difference here. /FOO/authorize still has to be called by our UserFolder, whether it be from the ZMI or EE. Thanks, -Chris -- -------------------------------------------------------------------- Christopher N. Deckard | Lead Web Systems Developer cnd@ecn.purdue.edu | Engineering Computer Network http://eng.purdue.edu/ECN/ | Purdue University ---- zlib.decompress('x\234K\316Kq((-J)M\325KM)\005\000)"\005w') --- From shapehead at gmail.com Thu Jan 20 17:00:46 2005 From: shapehead at gmail.com (Mohan Baro) Date: Thu Jan 20 17:00:48 2005 Subject: [Zope] Where is Zope3X? Message-ID: <9b3485b205012014005b152f9a@mail.gmail.com> I was "almost" tempted to move the project to PHP+Apache+PostGres. But I am a ZopeHead ... always has been a big fan. I have decided to use Zope274 for now. Hope fully I wont have major problems when I upgrade to Zope3. Now what I need is working a postgres DA for Zope274..... Cheers Shapehead From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Thu Jan 20 17:05:28 2005 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Jean-Francois.Doyon@CCRS.NRCan.gc.ca) Date: Thu Jan 20 17:05:47 2005 Subject: [Zope] Where is Zope3X? Message-ID: <7CDD7B94357FD5119E800002A537C46E0B8B783A@s5-ccr-r1.ccrs.nrcan.gc.ca> psycopg and ZPsycopgDA work fine on 2.7.3 ... Do they not work on 2.7.4? J.F. -----Original Message----- From: zope-bounces@zope.org [mailto:zope-bounces@zope.org]On Behalf Of Mohan Baro Sent: January 20, 2005 5:01 PM To: zope@zope.org Subject: Re: [Zope] Where is Zope3X? I was "almost" tempted to move the project to PHP+Apache+PostGres. But I am a ZopeHead ... always has been a big fan. I have decided to use Zope274 for now. Hope fully I wont have major problems when I upgrade to Zope3. Now what I need is working a postgres DA for Zope274..... Cheers Shapehead _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) From Trung.Tran at hwe.com.au Thu Jan 20 17:27:01 2005 From: Trung.Tran at hwe.com.au (Trung Tran) Date: Thu Jan 20 17:27:25 2005 Subject: [Zope] How to upgrade Zope-2.7.1 to Zope-2.7.4 (Windows) Message-ID: <32A6682AE1A4C0479E50D9F1BCFBC2811409B3@s-lyo-exc1> Hi, I want to upgrade my Zope-2.7.1 to the lastest version Zope-2.7.4 in Windows. As far as I know it might be done by simply installing Zope-2.7.4 (using the executale binary Zope-2.7.4-0-win32.exe) over the existing Zope-2.7.1 (meaning the destination directory will be the existing Zope home). I have created many Zope instances (using Zope-2.7.1) running as Windows services. So if I upgrade the existing Zope-2.7.1 (rather than install Zope-2.7.4 in a new directory) then I don't have to make any change into my existing Zope instances. Could anyone tell that this is the right thing to do it or I would miss anything? Thanks, Trung Tran Email: trung.tran@hwe.com.au From chris at simplistix.co.uk Thu Jan 20 17:38:42 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Thu Jan 20 17:38:46 2005 Subject: [Zope] Announce: January Zope Bug Day! Message-ID: <41F032F2.1030209@simplistix.co.uk> Hi All, Time to announce the 1st bug day of 2005! This time it's on a Thursday to see if that generates more or less interest... What? Zope Bug Day working from http://collector.zope.org/Zope When? Thursday 27th January - from when you wake up until when the day ends! Where? #zope-dev on irc.zope.org Come along and help if you've got a chance! Read this if you want to know how: http://dev.zope.org/CVS/BugDays cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From greggehrich at yahoo.com Thu Jan 20 17:55:45 2005 From: greggehrich at yahoo.com (Greg Gehrich) Date: Thu Jan 20 17:56:11 2005 Subject: [Zope] Re: Hierarchical content In-Reply-To: <41EE2939.7070609@simplistix.co.uk> References: <41ED5CF0.4050603@simplistix.co.uk> <41EE2939.7070609@simplistix.co.uk> Message-ID: What I would like is something more like the newsreader I use now (Thunderbird). Users create items in a nested hierarchy without having to create folders to store subitems. I can view the hierarchy and decide where I want to jump in and open up the detail or easily add detail at the appropriate nesting level (through a reply). Chris Withers wrote: > Greg Gehrich wrote: > >> The overhead the user has to incur to create subtasks. > > > What overhead is this? > >> If folders are used to create the hierarchy, the user must first >> create a folder to hold the subtasks for "Pick up cleaning" and then >> enter the two subtasks. > > > How would they do it otherwise? > >> I'd rather just directly create a subtask because that eliminates the >> step to create a folder. > > > Well, if they directly create a subtask, where do they put it? > >> Viewing will also be cleaner because you never the a folder obscuring >> the subtasks. > > > How does a folder obscure the subtask? > > Chris > From David.Bear at asu.edu Thu Jan 20 18:14:25 2005 From: David.Bear at asu.edu (David Bear) Date: Thu Jan 20 18:17:12 2005 Subject: [Zope] securing webdav Message-ID: <20050120231425.GF6843@asu.edu> I'm looking for ways to secure webdav. I am using apache to front end zope, using fastcgi like this: FastCgiExternalServer /home/www/cmf \ -host localhost:8089 -pass-header Authorization This works great. I looked and using rewrites and proxypass by wanted to keep the source ip passed along in the request to zope. Anyway, is there a way to have apache pass webdav requests as well through https ? I am currently using stunnel to secure webdav traffic, but I thought there might be an easier way. -- David Bear phone: 480-965-8257 fax: 480-965-9189 College of Public Programs/ASU Wilson Hall 232 Tempe, AZ 85287-0803 "Beware the IP portfolio, everyone will be suspect of trespassing" From rob.page at zope.com Thu Jan 20 18:19:12 2005 From: rob.page at zope.com (Rob Page) Date: Thu Jan 20 18:19:19 2005 Subject: [Zope] ANNOUNCE: Zope 3 for Developers Course Message-ID: Zope Corporation is delighted to announce a new training course on Zope 3. Zope 3 for Developers --------------------- This three day course will familiarize developers with Zope 3 software from introductory through advanced concepts. The take-away materials provide tools for further learning, since it will not be possible to cover every topic in the sessions. We will demonstrate the flexibility and effectiveness of Zope as an Open Source web development Platform. Course Objectives: After completing this course students will understand: * Zope's component architecture, * Creating Zope components and applications * Building web interfaces, * Controlling security, * Using powerful Zope framework features e.g., events, metadata, schemas, testing, * Configuring and installing Zope The course is intended for developers who want to build web applications using the Zope 3 web-application server. Students should be familiar with the Python programming language and the concepts associated with web application development. While not required, students will benefit from having some familiarity with Zope 2-based application development. We offer several opportunities to meet with Zope's engineering teams, including with Jim Fulton, our CTO. The sessions for 2005 are: o April 18-20 o June 27-29 o Sept 19-21 o Dec 5-7 For more detailed information about the course, including pre-work, pricing, travel and accommodations, please go to our website www.zope.com. Regards, Rob -- Rob Page V: 540.361.1710 Zope Corporation F: 703.995.0412 From jens at dataflake.org Thu Jan 20 19:32:18 2005 From: jens at dataflake.org (Jens Vagelpohl) Date: Thu Jan 20 19:32:25 2005 Subject: [Zope] securing webdav In-Reply-To: <20050120231425.GF6843@asu.edu> References: <20050120231425.GF6843@asu.edu> Message-ID: > Anyway, is there a way to have apache pass webdav requests as well > through https ? WebDAV looks like any other HTTP request to Apache, so you can handle it with things like RewriteRules etc. No special magic involved. jens From PeterMayne at ap.spherion.com Thu Jan 20 21:38:57 2005 From: PeterMayne at ap.spherion.com (Peter Mayne) Date: Thu Jan 20 21:39:40 2005 Subject: [Zope] Re: Hierarchical content In-Reply-To: References: <41ED5CF0.4050603@simplistix.co.uk> <41EE2939.7070609@simplistix.co.uk> Message-ID: Greg Gehrich wrote: > What I would like is something more like the newsreader I use now > (Thunderbird). Users create items in a nested hierarchy without having > to create folders to store subitems. I can view the hierarchy and > decide where I want to jump in and open up the detail or easily add > detail at the appropriate nesting level (through a reply). Create a folder-like type that implements your task item, and can contain other task items. The users will never know that the task item is really a folder: why should they care? Create a view that displays a tree of your items. You have exactly what you want. PJDM -- Peter Mayne Spherion Technology Solutions Canberra, ACT, Australia "Learning to cry for fun and profit" - Sisters of Mercy From peter.millar at parasyn.com.au Thu Jan 20 23:38:52 2005 From: peter.millar at parasyn.com.au (Peter Millar) Date: Thu Jan 20 23:39:02 2005 Subject: [Zope] How to upgrade Zope-2.7.1 to Zope-2.7.4 (Windows) In-Reply-To: <32A6682AE1A4C0479E50D9F1BCFBC2811409B3@s-lyo-exc1> Message-ID: <00ff01c4ff73$1b8772c0$0904000a@corp.parasyn.com.au> Trung, I did this recenly, rather than using the windows install I downloaded just the source code files and copied over the old files. It worked perfectly well. Without a hitch actually. ____________________________________________ Peter Millar -----Original Message----- From: zope-bounces@zope.org [mailto:zope-bounces@zope.org] On Behalf Of Trung Tran Sent: Friday, 21 January 2005 08:27 To: 'zope@zope.org' Subject: [Zope] How to upgrade Zope-2.7.1 to Zope-2.7.4 (Windows) Hi, I want to upgrade my Zope-2.7.1 to the lastest version Zope-2.7.4 in Windows. As far as I know it might be done by simply installing Zope-2.7.4 (using the executale binary Zope-2.7.4-0-win32.exe) over the existing Zope-2.7.1 (meaning the destination directory will be the existing Zope home). I have created many Zope instances (using Zope-2.7.1) running as Windows services. So if I upgrade the existing Zope-2.7.1 (rather than install Zope-2.7.4 in a new directory) then I don't have to make any change into my existing Zope instances. Could anyone tell that this is the right thing to do it or I would miss anything? Thanks, Trung Tran Email: trung.tran@hwe.com.au _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) From ausum_studio at hotmail.com Fri Jan 21 00:56:48 2005 From: ausum_studio at hotmail.com (Ausum Studio) Date: Fri Jan 21 00:57:04 2005 Subject: [Zope] Bug in ZClasses based products, in Zope 2.7.3 and 2.7.4 Message-ID: Apparently the distribution creation machinery is not respecting the "Disallow redistribution and allow user ..." option. This are the steps I followed to reproduce the problem using two new Zope instances. a) Created two Zope instances, A and B. Created a foobar product in Control_panel/Products, in instance A b) Created a simple ZClass, using ObjectManager and OFS Folder as Base Classes, checking "Include standard Zope persistent ..." d) Went to Control_Panel/Products/foobar and the Distribution tab, checked "Disallow redistribution...", without checking any product's object, and then I created the distribution tar. e) Installed the "foobar" product in instance B. After starting instance B, the foobar product is not redistributable but fully editable, even though I didn't allow any object to be configurable.. As I recall, this is wrong, and all of the objects ought to be protected, in this case. Could anyone point me in the right direction? I'd like some hints on this subject. Thanks in advance, Ausum From peter.mathis at kombinat.at Fri Jan 21 02:59:33 2005 From: peter.mathis at kombinat.at (peter mathis) Date: Fri Jan 21 03:02:19 2005 Subject: [Zope] Re: Acces to other directory, example : ../../foo via python:???.getFolderListingFolderContents() In-Reply-To: References: Message-ID: in the page template just make the following your folder listing KLEIN St?phane wrote: > Hello, > > In one plone directory, to display the items of directory I use this code : > > > ... > > I hope display the items directory of other directory (not ./). So, I > would like use other instruction than "here". Example "../../foo". > > How can I do that ? Thanks for your help. > > St?phane > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl From chris at simplistix.co.uk Fri Jan 21 04:16:32 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Fri Jan 21 04:16:37 2005 Subject: [Zope] Re: Hierarchical content In-Reply-To: References: <41ED5CF0.4050603@simplistix.co.uk> <41EE2939.7070609@simplistix.co.uk> Message-ID: <41F0C870.8000900@simplistix.co.uk> Greg Gehrich wrote: > What I would like is something more like the newsreader I use now > (Thunderbird). Users create items in a nested hierarchy without having > to create folders to store subitems. I can view the hierarchy and > decide where I want to jump in and open up the detail or easily add > detail at the appropriate nesting level (through a reply). I don't see anything in what you've said that makes using Zope Folder objects as you items, storing info using Properties. It seems you're arguing about UI, so build the UI you want :-) Or, if you've got budget, pay someone else t obuild it for you! cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From chris at simplistix.co.uk Fri Jan 21 04:20:30 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Fri Jan 21 04:20:34 2005 Subject: [Zope] Where is Zope3X? In-Reply-To: <20050120165837.GA20281@morpheus.matrix.de> References: <20050119224243.72565.qmail@web53407.mail.yahoo.com> <20050119235955.GB1356@morpheus.matrix.de> <20050120165837.GA20281@morpheus.matrix.de> Message-ID: <41F0C95E.1080904@simplistix.co.uk> Andreas Pakulat wrote: > and ZopeX3 is not really meant for production usage AFAIK. I'm pretty sure Zope 3X IS supposed to be production quality, just not backward compatible with Zope 2... > First: Don't confuse Zope3 with ZopeX3, as I said already, Zope3 is > meant to be backwards compatible to Zope2, ...and I'll believe that when I see it ;-) cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From chris at simplistix.co.uk Fri Jan 21 04:25:49 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Fri Jan 21 04:25:57 2005 Subject: [Zope] How to upgrade Zope-2.7.1 to Zope-2.7.4 (Windows) In-Reply-To: <32A6682AE1A4C0479E50D9F1BCFBC2811409B3@s-lyo-exc1> References: <32A6682AE1A4C0479E50D9F1BCFBC2811409B3@s-lyo-exc1> Message-ID: <41F0CA9D.5030504@simplistix.co.uk> Trung Tran wrote: > Hi, > I want to upgrade my Zope-2.7.1 to the lastest version Zope-2.7.4 in > Windows. As far as I know it might be done by simply installing Zope-2.7.4 > (using the executale binary Zope-2.7.4-0-win32.exe) over the existing > Zope-2.7.1 (meaning the destination directory will be the existing Zope > home). That should work, but means you're stuffed if you want ot go back to 2.7.1 for any reason... > I have created many Zope instances (using Zope-2.7.1) running as Windows > services. So if I upgrade the existing Zope-2.7.1 (rather than install > Zope-2.7.4 in a new directory) then I don't have to make any change into my > existing Zope instances. > Could anyone tell that this is the right thing to do it or I would miss > anything? Well, what I've done, and has worked for years on both Linux and Windows, is to install the Zope software in folders related to their version, eg: E:\Zope\2.7.1 E:\Zope\2.7.4 I think create projects as instance homes: E:\Zope\myproject1 E:\Zope\myproject2 Then, all I need to do to upgrade is install the new zope software (putting 2.7.whatever in the location box for the binary installer) and then tweak the start scripts (you'll have to fiddle with the service start scripts) and zope.conf's of the instances I want to upgrade, restart them, and you're done :-) cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From lukesh at seznam.cz Fri Jan 21 04:45:04 2005 From: lukesh at seznam.cz (Jaroslav Lukesh) Date: Fri Jan 21 04:45:53 2005 Subject: [Zope] zope, wap and nationalities Message-ID: <200501211045.04083.lukesh@seznam.cz> Dear Sirs, Do you have somebody tip for encoding national characters into wap? For example, character in latin-2 interpreted as "?" need to be interpreted in utf8 for wml as "č" I dont discover any python simple way how to recode these characters into wml, like ...or I am blind? Many thanks, -- Jaroslav Lukesh ----------------------------------------------------------- This e-mail can not contain any viruses because I use Linux From tariq.rashid at uk.easynet.net Fri Jan 21 05:09:50 2005 From: tariq.rashid at uk.easynet.net (Tariq Rashid) Date: Fri Jan 21 05:11:48 2005 Subject: [Zope] ZAAPlugins works for MS Office but not for OpenOffice Message-ID: <37DB2705555B4C44842BEA017A6E80DB047FD5@exch2-bllon.uk.easynet.corp> Hi, after wanted to index PDFs and MS Office files, I found various items on the internet which point to the use of ZAAPlugins and PloneExFile. This seems to work well. However, openoffice files (.sxw, .sxi for example) aren't handled or recognised. Is there a solution or plugin for this? Even if there is none, can i override the defualt icon that is displayed for these images? The question mark icon is a little confidence-uninspiring! I did try to use the "find" tool on zope to find a mapping from extension/type to icon but couldn't find one. tariq From lukesh at seznam.cz Fri Jan 21 05:19:06 2005 From: lukesh at seznam.cz (Jaroslav Lukesh) Date: Fri Jan 21 05:20:32 2005 Subject: [Zope] [Newbie] MSWordDocument In-Reply-To: <18012.1104834234@www21.gmx.net> References: <41BBAE1B.8080303@cyr.info> <18012.1104834234@www21.gmx.net> Message-ID: <200501211119.06456.lukesh@seznam.cz> Dne ?ter?, 4. ledna 2005 11:23 ceto@gmx.ch napsal(a): > 1. Install Python1.5 and Win32 Extensions build 136 (win32all-136.exe). > 2. Extract MSWord Document Product archive (MSWordDocument.tar.gz) in > your Zope Products directory. > 3. Generate Python/COM bindings: > * Find and launch "makepy.py" > * Select "Microsoft Word x Object Library" > * Valid > 4. Make sure Zope is allowed to write in C:\WINDOWS\TEMP > 5. Start Zope with 'C:\PROGRA~1\PYTHON\PYTHON.EXE C:\ZOPE_ROOT\Z2.PY -D' > > Note: Win32 extensions are available from > http://downloads.activestate.com/ActivePython/windows/win32all/win32all-136 > 1. First of all there isnt a Win32 extension on activestates Page anymore. use archive.org or google > 2. Whats the point "valid" meaning? install, follow instr. and you will see > 3. I cant find a script named Z2.PY and how do your zope starts? -- Jaroslav Lukesh ----------------------------------------------------------- This e-mail can not contain any viruses because I use Linux From tino at wildenhain.de Fri Jan 21 05:32:32 2005 From: tino at wildenhain.de (Tino Wildenhain) Date: Fri Jan 21 05:32:47 2005 Subject: [Zope] [Newbie] MSWordDocument In-Reply-To: <18012.1104834234@www21.gmx.net> References: <41BBAE1B.8080303@cyr.info> <18012.1104834234@www21.gmx.net> Message-ID: <1106303552.8688.108.camel@sabrina.peacock.de> On Tue, 2005-01-04 at 11:23 +0100, ceto@gmx.ch wrote: > Hi all > > I use Plone 2 with Enterprise Enhancements from CA in a Win XP sp2. It works > fine (even i dont know how :) Now i tried to install Eric Barroccas > MSWordDocument 0.8. I untarred the folder to ..\Plone\Data\Products\ > > Die Installation should work like this: > > ------------- > MS Windows systems > > 1. Install Python1.5 and Win32 Extensions build 136 (win32all-136.exe). > 2. Extract MSWord Document Product archive (MSWordDocument.tar.gz) in > your Zope Products directory. > 3. Generate Python/COM bindings: > * Find and launch "makepy.py" > * Select "Microsoft Word x Object Library" > * Valid > 4. Make sure Zope is allowed to write in C:\WINDOWS\TEMP > 5. Start Zope with 'C:\PROGRA~1\PYTHON\PYTHON.EXE C:\ZOPE_ROOT\Z2.PY -D' > > Note: Win32 extensions are available from > http://downloads.activestate.com/ActivePython/windows/win32all/win32all-136.exe > > ------------- > > 1. First of all there isnt a Win32 extension on activestates Page anymore. There is no python 1.5 anymore too ;) See python.org, windows download. There is a link for up to date (and your zopes python version matching) win32 extension. > 2. Whats the point "valid" meaning? Maybe the author can answer this. > 3. I cant find a script named Z2.PY It isnt there anymore. Zope2.7 has a different startup. You can change the python interpreter zope uses if you look into the start files in your instances bin directory. At least there should be something like runzope.bat (for windows) I dont know if there is a zopectl.bat too. Change every occurence of the python interpreter here. Make sure you use the same python version (2.3.4 or so) -- Tino Wildenhain From toolkit at magma.ca Fri Jan 21 07:21:35 2005 From: toolkit at magma.ca (Jonathan Hobbs) Date: Fri Jan 21 07:18:32 2005 Subject: [Zope] zope, wap and nationalities References: <200501211045.04083.lukesh@seznam.cz> Message-ID: <000c01c4ffb3$c0ff4440$647ba8c0@jhdesktop> ----- Original Message ----- From: "Jaroslav Lukesh" > Do you have somebody tip for encoding national characters into wap? > > For example, character in latin-2 interpreted as "?" need to be interpreted in > utf8 for wml as "č" > > I dont discover any python simple way how to recode these characters into wml, > like > > utf8_for_wap)"> Here's a quick tutorial on converting characters in python: http://www.vandervossen.net/2003/07/unicode_in_python HTH Jonathan From Pperegrina at Lastminute.com Fri Jan 21 08:28:39 2005 From: Pperegrina at Lastminute.com (Pascal Peregrina) Date: Fri Jan 21 08:28:52 2005 Subject: [Zope] OFS.History Message-ID: Hi, I would like how to activate the History tab an a simple conent object that I wrote. Do I only need to make it inherit from Historical ? Pascal ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** From srichter at cosmos.phy.tufts.edu Fri Jan 21 08:42:38 2005 From: srichter at cosmos.phy.tufts.edu (Stephan Richter) Date: Fri Jan 21 08:42:53 2005 Subject: [Zope] Where is Zope3X? In-Reply-To: <41F0C95E.1080904@simplistix.co.uk> References: <20050119224243.72565.qmail@web53407.mail.yahoo.com> <20050120165837.GA20281@morpheus.matrix.de> <41F0C95E.1080904@simplistix.co.uk> Message-ID: <200501210842.38543.srichter@cosmos.phy.tufts.edu> On Friday 21 January 2005 04:20, Chris Withers wrote: > Andreas Pakulat wrote: > > and ZopeX3 is not really meant for production usage AFAIK. > > I'm pretty sure Zope 3X IS supposed to be production quality, just not > backward compatible with Zope 2... Yes, Zope X3 is production quality. > > First: Don't confuse Zope3 with ZopeX3, as I said already, Zope3 is > > meant to be backwards compatible to Zope2, > > ...and I'll believe that when I see it ;-) I agree. I think there will never be a Zope 3 that is backward-compatible. It would take a huge amount of work to provide such a layer. Compatibility will come through a layer that interfaces Zope 2 and Zope 3, such as Five. In fact I think Five will become *the* one. Note: Not all Zope 3 developers share this view with me and I am not expressing the opinion of the Zope 3 community here, but only my own. To answer the original question, if you do not want to build a plain Web site or CMS, then you should definitely have a look at Zope X3, since it is a very nice framework to develop Web applications with. Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training From hongyuan at homemaster.cn Fri Jan 21 11:19:11 2005 From: hongyuan at homemaster.cn (Hong Yaun) Date: Fri Jan 21 11:18:47 2005 Subject: [Zope] Making a self written module available to Zope Message-ID: <41F12B7F.5060109@homemaster.cn> If I have a self-written module/package which contains some module level methods, how can I make it available for use in the rest of Zope (e.g. in page templates, python script objects etc.)? Because it is just some utility functions, like the zope built-in sequence module, I don't want to register them as a zope class with all the manage* methods and create zope object from that. And I want the module to be initialized once, upon the start of zope or refresh of product maybe, to read some configuration file on the file system. What's the simplest way to achieve this? Greetings, Hong Yuan From lists at andreas-jung.com Fri Jan 21 11:24:20 2005 From: lists at andreas-jung.com (Andreas Jung) Date: Fri Jan 21 11:24:36 2005 Subject: [Zope] Making a self written module available to Zope In-Reply-To: <41F12B7F.5060109@homemaster.cn> References: <41F12B7F.5060109@homemaster.cn> Message-ID: look at lib/python/Products/PythonScripts/README.txt or learn about using ModuleSecurityInfo(). -aj --On Samstag, 22. Januar 2005 0:19 Uhr +0800 Hong Yaun wrote: > If I have a self-written module/package which contains some module level > methods, how can I make it available for use in the rest of Zope (e.g. in > page templates, python script objects etc.)? > > Because it is just some utility functions, like the zope built-in > sequence module, I don't want to register them as a zope class with all > the manage* methods and create zope object from that. And I want the > module to be initialized once, upon the start of zope or refresh of > product maybe, to read some configuration file on the file system. What's > the simplest way to achieve this? > > Greetings, > Hong Yuan > > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) From pw_lists at slinkp.com Fri Jan 21 11:38:01 2005 From: pw_lists at slinkp.com (Paul Winkler) Date: Fri Jan 21 11:38:08 2005 Subject: [Zope] Making a self written module available to Zope In-Reply-To: <41F12B7F.5060109@homemaster.cn> References: <41F12B7F.5060109@homemaster.cn> Message-ID: <20050121163801.GB9042@slinkp.com> On Sat, Jan 22, 2005 at 12:19:11AM +0800, Hong Yaun wrote: > If I have a self-written module/package which contains some module level > methods, how can I make it available for use in the rest of Zope (e.g. > in page templates, python script objects etc.)? > > Because it is just some utility functions, like the zope built-in > sequence module, I don't want to register them as a zope class with all > the manage* methods and create zope object from that. And I want the > module to be initialized once, upon the start of zope or refresh of > product maybe, to read some configuration file on the file system. > What's the simplest way to achieve this? a trivial example: # this is Products/MyFunctions/__init__.py from AccessControl import ModuleSecurityInfo def trivialFunc(): return True def anotherFunc(): return False ModuleSecurityInfo('Products.MyFunctions').declarePublic( 'trivialFunc', 'anotherFunc' ) # EOF Note that you cannot declare module-level functions protected by a particular permission; you can only declare them public. See lib/python/AccessControl/SecurityInfo.py. You may also find AccessControl.allow_module() useful. It's defined in that same file. -- Paul Winkler http://www.slinkp.com From dieter at handshake.de Fri Jan 21 14:27:31 2005 From: dieter at handshake.de (Dieter Maurer) Date: Fri Jan 21 14:43:32 2005 Subject: [Zope] OFS.History In-Reply-To: References: Message-ID: <16881.22435.762472.283073@gargle.gargle.HOWL> Pascal Peregrina wrote at 2005-1-21 14:28 +0100: >I would like how to activate the History tab an a simple conent object that >I wrote. >Do I only need to make it inherit from Historical ? At least, you also need to extend your "manage_options" and probably, you also can provide an adapted comparison. -- Dieter From dieter at handshake.de Fri Jan 21 14:21:39 2005 From: dieter at handshake.de (Dieter Maurer) Date: Fri Jan 21 14:43:36 2005 Subject: [Zope] Zcatalog searches In-Reply-To: <20050120170631.96790.qmail@web53308.mail.yahoo.com> References: <20050120170631.96790.qmail@web53308.mail.yahoo.com> Message-ID: <16881.22083.858529.813705@gargle.gargle.HOWL> Ken Ara wrote at 2005-1-20 09:06 -0800: > ... >This implementation requires the searchable text to be >in Catalog metadata, which seems to be a bad thing, >but I have never really understood just how bad.. You should *NOT* put fields into the metadata table if they could be larger. We had put the "description" into it and observed huge transactions (a few byte change to a news resulted in a 500 kB transaction) with correspondingly large modification times. Searches, too, were very slow because such huge blocks had to be loaded from the ZEO server. Read large volume data from the object directly. This is efficient, when you need it only for individual objects or the objects in a moderately sized batch. -- Dieter From dieter at handshake.de Fri Jan 21 14:25:07 2005 From: dieter at handshake.de (Dieter Maurer) Date: Fri Jan 21 14:43:44 2005 Subject: [Zope] Zcatalog searches In-Reply-To: <77A13DBF79DCFFAA1ECE2A37@[192.168.0.102]> References: <20050120170631.96790.qmail@web53308.mail.yahoo.com> <040f01c4ff14$f8da4760$647ba8c0@jhdesktop> <77A13DBF79DCFFAA1ECE2A37@[192.168.0.102]> Message-ID: <16881.22291.292926.449073@gargle.gargle.HOWL> Andreas Jung wrote at 2005-1-20 18:48 +0100: > ... > > >--On Donnerstag, 20. Januar 2005 12:24 Uhr -0500 Jonathan Hobbs >> ----- Original Message ----- >> From: "Ken Ara" >>> Some code you can use as a starting point to produce >>> KWIC (key word in context) can be found here: >>> http://zope.org/Members/Ioan/SiteSearch. It's old but >>> works for me under Zope 2.7.3. >>> >>> This implementation requires the searchable text to be >>> in Catalog metadata, which seems to be a bad thing, >>> but I have never really understood just how bad.. > ... >Dieters AdvancedQuery and ManagableIndexes products might help you all >to optimize your catalogs. Thank you Andreas! But neither of these products can help with KWIC or large data in the Catalog metadata. -- Dieter From zope-list at mcvfifesanddrums.org Fri Jan 21 16:05:00 2005 From: zope-list at mcvfifesanddrums.org (Jeff Donsbach) Date: Fri Jan 21 16:05:05 2005 Subject: [Zope] Where is Zope3X? In-Reply-To: <200501210842.38543.srichter@cosmos.phy.tufts.edu> References: <20050119224243.72565.qmail@web53407.mail.yahoo.com> <20050120165837.GA20281@morpheus.matrix.de> <41F0C95E.1080904@simplistix.co.uk> <200501210842.38543.srichter@cosmos.phy.tufts.edu> Message-ID: On Fri, 21 Jan 2005, Stephan Richter wrote: > > To answer the original question, if you do not want to build a plain Web > site > or CMS, then you should definitely have a look at Zope X3, since it is a > very > nice framework to develop Web applications with. > In language Zope newbies can understand, how is that different from what Zope 2 promises or is recommended for? If I am starting a new project, what criteria should I use to decide if I should start with Zope 2 or just jump right to X3 to begin with? Thanks, Jeff D From srichter at cosmos.phy.tufts.edu Fri Jan 21 16:44:08 2005 From: srichter at cosmos.phy.tufts.edu (Stephan Richter) Date: Fri Jan 21 16:44:14 2005 Subject: [Zope] Where is Zope3X? In-Reply-To: References: <20050119224243.72565.qmail@web53407.mail.yahoo.com> <200501210842.38543.srichter@cosmos.phy.tufts.edu> Message-ID: <200501211644.08868.srichter@cosmos.phy.tufts.edu> On Friday 21 January 2005 16:05, Jeff Donsbach wrote: > On Fri, 21 Jan 2005, Stephan Richter wrote: > > To answer the original question, if you do not want to build a plain Web > > site > > or CMS, then you should definitely have a look at Zope X3, since it is a > > very > > nice framework to develop Web applications with. > > In language Zope newbies can understand, how is that different from what > Zope 2 promises or is recommended for? If I am starting a new project, > what criteria should I use to decide if I should start with Zope 2 or just > jump right to X3 to begin with? Okay, so the first thing here is that Zope 2 has a much wider target audience than Zope 3. Zope X3 (as of now) is aimed at the Python developer, who uses Python code and Page Templates to develop applications. As you know, Zope 2 is also useful for scripters and almost the average Joe, since it provides scripting and Point&Click interfaces. I think the solection criteria is: If your application will provide common Web features, Zope 2 is the recommended way, because it is almost guaranteed that this feature has been already implemented. If, on the other hand, you write a very specific and unique application, Zope 3 is better, since it provides a much cleaner and simpler API to develop on and with. Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training From shapehead at gmail.com Fri Jan 21 17:04:51 2005 From: shapehead at gmail.com (Bobby Brewster) Date: Fri Jan 21 17:04:55 2005 Subject: [Zope] Where is Zope3X? In-Reply-To: <200501211644.08868.srichter@cosmos.phy.tufts.edu> References: <20050119224243.72565.qmail@web53407.mail.yahoo.com> <200501210842.38543.srichter@cosmos.phy.tufts.edu> <200501211644.08868.srichter@cosmos.phy.tufts.edu> Message-ID: <9b3485b205012114042745b768@mail.gmail.com> I was hoping to use Zope3X, however, infrastructures like "native" postgres DA and LocalFS are not "available" for it (I am required to use the WinXP). I wanted to learn about Zope3 doing this project. Right now the project is the priority and not learning/hacking Zope3X. On Fri, 21 Jan 2005 16:44:08 -0500, Stephan Richter wrote: > On Friday 21 January 2005 16:05, Jeff Donsbach wrote: > > On Fri, 21 Jan 2005, Stephan Richter wrote: > > > To answer the original question, if you do not want to build a plain Web > > > site > > > or CMS, then you should definitely have a look at Zope X3, since it is a > > > very > > > nice framework to develop Web applications with. > > > > In language Zope newbies can understand, how is that different from what > > Zope 2 promises or is recommended for? If I am starting a new project, > > what criteria should I use to decide if I should start with Zope 2 or just > > jump right to X3 to begin with? > > Okay, so the first thing here is that Zope 2 has a much wider target audience > than Zope 3. Zope X3 (as of now) is aimed at the Python developer, who uses > Python code and Page Templates to develop applications. As you know, Zope 2 > is also useful for scripters and almost the average Joe, since it provides > scripting and Point&Click interfaces. > > I think the solection criteria is: If your application will provide common Web > features, Zope 2 is the recommended way, because it is almost guaranteed that > this feature has been already implemented. If, on the other hand, you write a > very specific and unique application, Zope 3 is better, since it provides a > much cleaner and simpler API to develop on and with. > > Regards, > Stephan > -- > Stephan Richter > CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) > Web2k - Web Software Design, Development and Training > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) > From srichter at cosmos.phy.tufts.edu Fri Jan 21 17:14:28 2005 From: srichter at cosmos.phy.tufts.edu (Stephan Richter) Date: Fri Jan 21 17:14:32 2005 Subject: [Zope] Where is Zope3X? In-Reply-To: <9b3485b205012114042745b768@mail.gmail.com> References: <20050119224243.72565.qmail@web53407.mail.yahoo.com> <200501211644.08868.srichter@cosmos.phy.tufts.edu> <9b3485b205012114042745b768@mail.gmail.com> Message-ID: <200501211714.28187.srichter@cosmos.phy.tufts.edu> On Friday 21 January 2005 17:04, Bobby Brewster wrote: > I was hoping to use Zope3X, however, infrastructures like "native" > postgres DA and LocalFS are not "available" for it (I am required to > use the WinXP). ?I wanted to learn about Zope3 doing this project. > Right now the project is the priority and not learning/hacking Zope3X. Yes, there is a native postgres DA. It even has been released for Zope X3.0. See http://zope.org/Products/Zope3-Packages LocalFS does not exist for Zope X3 yet, but for what do you need it? BTW, it would be fairly straight-forward to implement LocalFS for Zope 3. Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training From shapehead at gmail.com Fri Jan 21 17:18:19 2005 From: shapehead at gmail.com (Bobby Brewster) Date: Fri Jan 21 17:18:20 2005 Subject: [Zope] Where is Zope3X? In-Reply-To: <200501211714.28187.srichter@cosmos.phy.tufts.edu> References: <20050119224243.72565.qmail@web53407.mail.yahoo.com> <200501211644.08868.srichter@cosmos.phy.tufts.edu> <9b3485b205012114042745b768@mail.gmail.com> <200501211714.28187.srichter@cosmos.phy.tufts.edu> Message-ID: <9b3485b205012114182fcad876@mail.gmail.com> Thank you. I shall check it out. I guess I will also have to also learn some python ... On Fri, 21 Jan 2005 17:14:28 -0500, Stephan Richter wrote: > On Friday 21 January 2005 17:04, Bobby Brewster wrote: > > I was hoping to use Zope3X, however, infrastructures like "native" > > postgres DA and LocalFS are not "available" for it (I am required to > > use the WinXP). I wanted to learn about Zope3 doing this project. > > Right now the project is the priority and not learning/hacking Zope3X. > > Yes, there is a native postgres DA. It even has been released for Zope X3.0. > > See http://zope.org/Products/Zope3-Packages > > LocalFS does not exist for Zope X3 yet, but for what do you need it? BTW, it > would be fairly straight-forward to implement LocalFS for Zope 3. > > Regards, > Stephan > -- > Stephan Richter > CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) > Web2k - Web Software Design, Development and Training > From davelists2 at peoplemerge.com Fri Jan 21 19:58:05 2005 From: davelists2 at peoplemerge.com (davelists2@peoplemerge.com) Date: Fri Jan 21 19:46:38 2005 Subject: [Zope] Plagued by UnicodeEncodeError and UnicodeDecodeError Message-ID: <20050122005805.GB20812@mail.imagesmiths.com> Hi, We have a ton of AT objects that we've imported from our databases, some of which are Japanese characters imported as unicode. In some cases, those could not be imported because of UnicodeEncodeErrors or UnicodeDecodeErrors loading the object from our DB or loading them into the ZODB. It would have been really nice to keep these entries, but we just put them in a try:except: block to get past them. Our current problem is that now we have the data in our DB, and they all display fine. But when we go to edit them through a base_edit and click Save, we're back to this: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 5: ordinal not in range(128). The traceback shows the field which is causing the error, and I don't see any unicode chars there! Zope 2.7.3-0 python 2.3.4 linux CMF 1.4.7 Plone 2.0.4 AT 1.3.1-final + MySqlSqlstorage From tino at wildenhain.de Sat Jan 22 05:53:51 2005 From: tino at wildenhain.de (Tino Wildenhain) Date: Sat Jan 22 05:53:55 2005 Subject: [Zope] OFS.History In-Reply-To: References: Message-ID: <1106391231.4014.104.camel@Andrea.peacock.de> Am Freitag, den 21.01.2005, 14:28 +0100 schrieb Pascal Peregrina: > Hi, > > I would like how to activate the History tab an a simple conent object that > I wrote. > Do I only need to make it inherit from Historical ? You can borrow from the methods in my patch here: http://zope.org/Members/tino/PatchHistory > > > ********************************************************************** > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they > are addressed. If you have received this email in error please notify > the system manager. > > This footnote also confirms that this email message has been swept by > MIMEsweeper for the presence of computer viruses. > > www.mimesweeper.com > ********************************************************************** btw. if you can, try to remove this disclaimer. Regards Tino From dieter at handshake.de Sat Jan 22 13:23:11 2005 From: dieter at handshake.de (Dieter Maurer) Date: Sat Jan 22 13:40:42 2005 Subject: [Zope] Plagued by UnicodeEncodeError and UnicodeDecodeError In-Reply-To: <20050122005805.GB20812@mail.imagesmiths.com> References: <20050122005805.GB20812@mail.imagesmiths.com> Message-ID: <16882.39439.669869.44040@gargle.gargle.HOWL> davelists2@peoplemerge.com wrote at 2005-1-21 16:58 -0800: >We have a ton of AT objects ... > ... >UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position >5: ordinal not in range(128). > >The traceback shows the field which is causing the error, and I don't >see any unicode chars there! The current Archetypes has a strange handling of text data: Internally, it stores it as unicode (good!) but it tries hard to deliver the content encoded. I am not even sure, there is a way to tell it to deliver unicode; but at least you can pass in the encoding your want ("encoding" keyword argument). AT 1.3.1 uses "instance.getCharset()" as "encoding", if not specified explicitely. This is better than previous versions that used the "original encoding" (which could mix different encodings in a single page). By the way: the Archetypes mailing lists are probably better suited to discuss Archetype related questions. -- Dieter From hongyuan at homemaster.cn Sun Jan 23 11:20:15 2005 From: hongyuan at homemaster.cn (Hong Yaun) Date: Sun Jan 23 11:20:17 2005 Subject: [Zope] Making a self written module available to Zope In-Reply-To: <20050121163801.GB9042@slinkp.com> References: <41F12B7F.5060109@homemaster.cn> <20050121163801.GB9042@slinkp.com> Message-ID: <41F3CEBF.4090308@homemaster.cn> Paul Winkler wrote: >a trivial example: > ># this is Products/MyFunctions/__init__.py > >from AccessControl import ModuleSecurityInfo > >def trivialFunc(): > return True > >def anotherFunc(): > return False > >ModuleSecurityInfo('Products.MyFunctions').declarePublic( > 'trivialFunc', 'anotherFunc' > ) > ># EOF > > > Thanks for the sample and now I can access trivialFunc() from within a template file using:

It works fine, just somewhat cumbersome. One way to simplify its usage is to use tal:define, like:

But this would require using tal:define in every template file that could access the function. Is there any other way to simplify the access to the function? Best Regards Hong Yuan From tino at wildenhain.de Sun Jan 23 12:07:28 2005 From: tino at wildenhain.de (Tino Wildenhain) Date: Sun Jan 23 12:07:32 2005 Subject: [Zope] Making a self written module available to Zope In-Reply-To: <41F3CEBF.4090308@homemaster.cn> References: <41F12B7F.5060109@homemaster.cn> <20050121163801.GB9042@slinkp.com> <41F3CEBF.4090308@homemaster.cn> Message-ID: <1106500048.4014.138.camel@Andrea.peacock.de> Am Montag, den 24.01.2005, 00:20 +0800 schrieb Hong Yaun: > Paul Winkler wrote: > > >a trivial example: > > > ># this is Products/MyFunctions/__init__.py > > > >from AccessControl import ModuleSecurityInfo > > > >def trivialFunc(): > > return True > > > >def anotherFunc(): > > return False > > > >ModuleSecurityInfo('Products.MyFunctions').declarePublic( > > 'trivialFunc', 'anotherFunc' > > ) > > > ># EOF > > > > > > > Thanks for the sample and now I can access trivialFunc() from within a > template file using: > >

> > It works fine, just somewhat cumbersome. One way to simplify its usage > is to use tal:define, like: > >

tal:content="func()">

> > But this would require using tal:define in every template file that > could access the function. > > Is there any other way to simplify the access to the function? Yes, simply dont write application code in pagetemplates :-) You can either stuff your complete API in context by defining useful classes and methods or do the support scripting in one or some python scripts. Regards Tino From Pperegrina at Lastminute.com Mon Jan 24 03:15:59 2005 From: Pperegrina at Lastminute.com (Pascal Peregrina) Date: Mon Jan 24 03:16:08 2005 Subject: [Zope] OFS.History (question 2) Message-ID: First of all, thanks Dieter, that answered my question 1. Now I've got a more serious problem. I have a CMF Document that wraps a PageTemplate object (it does not extend PageTemplate, but internally stores a PageTemplate instance). It looks like when some revision of my object is retreived from ZODB, this does not include the wraped persistent objects that my object may contain. For example, rev1._get_pt.read() and rev2._get_pt.read() always return the HTML of the current revision's wraped PageTemplate. (_get_pt() returns the wraped PageTemplate object) Is there a workaround for this ? The only thing I can think of is storing the PageTemplate HTML at my object level each time it is changed, but that means storing the HTML twice in ZODB... I tried it, and of course it works. Pascal ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** From tino at wildenhain.de Mon Jan 24 04:34:17 2005 From: tino at wildenhain.de (Tino Wildenhain) Date: Mon Jan 24 04:34:34 2005 Subject: [Zope] OFS.History (question 2) In-Reply-To: References: Message-ID: <1106559258.8688.136.camel@sabrina.peacock.de> On Mon, 2005-01-24 at 09:15 +0100, Pascal Peregrina wrote: > First of all, thanks Dieter, that answered my question 1. > > Now I've got a more serious problem. > I have a CMF Document that wraps a PageTemplate object (it does not extend > PageTemplate, but internally stores a PageTemplate instance). > > It looks like when some revision of my object is retreived from ZODB, this > does not include the wraped persistent objects that my object may contain. > > For example, rev1._get_pt.read() and rev2._get_pt.read() always return the > HTML of the current revision's wraped PageTemplate. > (_get_pt() returns the wraped PageTemplate object) > > Is there a workaround for this ? > The only thing I can think of is storing the PageTemplate HTML at my object > level each time it is changed, but that means storing the HTML twice in > ZODB... > I tried it, and of course it works. The only workaround I see right now is to get the list of historic versions for the subobject too, then select the version which timestamp is just below or equal to the timestamp of the container objects historical version. Maybe I add something like that to the historical patch for folders. Regards Tino From lukesh at seznam.cz Mon Jan 24 08:48:48 2005 From: lukesh at seznam.cz (Jaroslav Lukesh) Date: Mon Jan 24 08:50:07 2005 Subject: [Zope] zope, wap and nationalities In-Reply-To: <200501211045.04083.lukesh@seznam.cz> References: <200501211045.04083.lukesh@seznam.cz> Message-ID: <200501241448.48485.lukesh@seznam.cz> Dne p?tek, 21. ledna 2005 10:45 Jaroslav Lukesh napsal(a): > Do you have somebody tip for encoding national characters into wap? > > For example, character in latin-2 interpreted as "?" need to be interpreted > in utf8 for wml as "č" So here are solution, new zope tag :o). Simply place __init__.py file listed below into some new subfolder in lib/python/Products folder and place nationalized text here with ??????????????????? text between these new tags in your page. Enjoy! __init__.py: from string import split, strip, join, find import locale import DocumentTemplate.DT_Util from DocumentTemplate.DT_String import String class NationaXMLizer: """ Function: * Remove redundant whitespaces based on 'unitws' tag from Toby Dickenson * Replace characters >128 with &#xx; entities in respect with defined codepage (cp1250), see znak.decode('yourcodepage') and define your own Simply place this file named as __init__.py into some new subfolder in lib/python/Products folder and place nationalized text here with national characters text between these new tags. 2005-01-24 by Jaroslav Lukesh, lukesh@seznam.cz """ name='nationaxmlizer' blockContinuations=() def __init__(self, blocks): tname, args, section = blocks[0] args = DocumentTemplate.DT_Util.parse_params(args) self.blocks = section.blocks def render(self,md): data = DocumentTemplate.DT_Util.render_blocks(self.blocks, md) a = [] for line in split(data,'\n'): line = strip(line) if line: b = [] for word in split(line,' '): if word!='': wordxml='' strip(word) for i in range(len(word)): znak=word[i] n=ord(znak) if n>= 128: #this does not work in Pythoon 2.1.3!!! #wordxml=wordxml+'&#'+(hex(ord(znak.decode('cp1250'))))+';' wordxml=wordxml+'&#'+(hex(ord(unicode(znak,'cp1250'))))+';' else: wordxml=wordxml+znak b.append(wordxml) a.append(join(b,' ')) return join(a,'\n') __call__=render String.commands['nationaxmlizer']=NationaXMLizer -- Jaroslav Lukesh ----------------------------------------------------------- This e-mail can not contain any viruses because I use Linux From David.Bear at asu.edu Mon Jan 24 13:39:38 2005 From: David.Bear at asu.edu (David Bear) Date: Mon Jan 24 13:40:42 2005 Subject: [Zope] using mac xserves Message-ID: <20050124183938.GB2482@asu.edu> I'm curious how many are using mac Xserves to run zope. Anyone know of statistics? -- David Bear phone: 480-965-8257 fax: 480-965-9189 College of Public Programs/ASU Wilson Hall 232 Tempe, AZ 85287-0803 "Beware the IP portfolio, everyone will be suspect of trespassing" From dieter at handshake.de Mon Jan 24 13:25:13 2005 From: dieter at handshake.de (Dieter Maurer) Date: Mon Jan 24 13:53:19 2005 Subject: [Zope] OFS.History (question 2) In-Reply-To: References: Message-ID: <16885.15753.223229.837339@gargle.gargle.HOWL> Pascal Peregrina wrote at 2005-1-24 09:15 +0100: > ... >Now I've got a more serious problem. >I have a CMF Document that wraps a PageTemplate object (it does not extend >PageTemplate, but internally stores a PageTemplate instance). > >It looks like when some revision of my object is retreived from ZODB, this >does not include the wraped persistent objects that my object may contain. > ... Indeed: each persistent object has its own independent history. >Is there a workaround for this ? When you have complex objects (consisting of several persistent objects), you must merge the histories of the components or select one (major) component to define the history of the compound. -- Dieter From dieter at handshake.de Mon Jan 24 13:27:11 2005 From: dieter at handshake.de (Dieter Maurer) Date: Mon Jan 24 13:53:26 2005 Subject: [Zope] OFS.History (question 2) In-Reply-To: <1106559258.8688.136.camel@sabrina.peacock.de> References: <1106559258.8688.136.camel@sabrina.peacock.de> Message-ID: <16885.15871.89819.20211@gargle.gargle.HOWL> Tino Wildenhain wrote at 2005-1-24 10:34 +0100: > ... >The only workaround I see right now is to get the list of historic >versions for the subobject too, then select the version >which timestamp is just below or equal to the timestamp of the >container objects historical version. > >Maybe I add something like that to the historical patch for folders. I have something like a historical connection. It does not help with the history merging but it helps to present a consistent view once you have chosen a time you are interested in. -- Dieter From tino at wildenhain.de Mon Jan 24 13:56:36 2005 From: tino at wildenhain.de (Tino Wildenhain) Date: Mon Jan 24 13:56:49 2005 Subject: [Zope] OFS.History (question 2) In-Reply-To: <16885.15871.89819.20211@gargle.gargle.HOWL> References: <1106559258.8688.136.camel@sabrina.peacock.de> <16885.15871.89819.20211@gargle.gargle.HOWL> Message-ID: <1106592996.4014.151.camel@Andrea.peacock.de> Am Montag, den 24.01.2005, 19:27 +0100 schrieb Dieter Maurer: > Tino Wildenhain wrote at 2005-1-24 10:34 +0100: > > ... > >The only workaround I see right now is to get the list of historic > >versions for the subobject too, then select the version > >which timestamp is just below or equal to the timestamp of the > >container objects historical version. > > > >Maybe I add something like that to the historical patch for folders. > > I have something like a historical connection. > > It does not help with the history merging but it helps > to present a consistent view once you have chosen > a time you are interested in. > Sounds interesting! Where can I see it? :-) Regards Tino From hpinson at indepthl.com Mon Jan 24 15:00:43 2005 From: hpinson at indepthl.com (hpinson@indepthl.com) Date: Mon Jan 24 14:58:43 2005 Subject: [Zope] MySQL Windows Driver Updates Message-ID: <41F4F17B.10387.18415633@localhost> Have Zope MySQL database drivers (ZMySQLDA and DB) and ODBC (ZODBCDA) development been abandoned for the Windows platform? Most of what I can find is very out of date (no longer works with the current release), experimental (with major problems), or commercial. My need is to hook Zope 2.7.4 up to MySQL 4.0.16. on a W2K server. My preference would be the native driver. At this point, it looks like the eGenix commercial solution may be ony viable option, and I really have no idea how good it is. If anyone has gotten this MySQLDA mess working in such an environment, I would be grateful to know how you did it. Harlow Pinson Indepth Learning Email: hpinson@indepthl.com Web: http://www.indepthl.com Voice: 505-994-2135 FAX: 208-475-7678 From Pperegrina at Lastminute.com Mon Jan 24 15:15:00 2005 From: Pperegrina at Lastminute.com (Pascal Peregrina) Date: Mon Jan 24 15:15:11 2005 Subject: [Zope] OFS.History (question 2) Message-ID: Thanks for all the answers. I managed to retrieve revision 1 and 2 of the subobject in the comparison method of the main object by using the methods defined in OFS.History and comparing _p_mtime. It works fine. Pascal -----Message d'origine----- De : Tino Wildenhain [mailto:tino@wildenhain.de] Envoy? : lundi 24 janvier 2005 19:57 ? : Dieter Maurer Cc : Pascal Peregrina; 'zope@zope.org' Objet : Re: [Zope] OFS.History (question 2) Am Montag, den 24.01.2005, 19:27 +0100 schrieb Dieter Maurer: > Tino Wildenhain wrote at 2005-1-24 10:34 +0100: > > ... > >The only workaround I see right now is to get the list of historic > >versions for the subobject too, then select the version > >which timestamp is just below or equal to the timestamp of the > >container objects historical version. > > > >Maybe I add something like that to the historical patch for folders. > > I have something like a historical connection. > > It does not help with the history merging but it helps > to present a consistent view once you have chosen > a time you are interested in. > Sounds interesting! Where can I see it? :-) Regards Tino ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** From Pperegrina at Lastminute.com Mon Jan 24 15:21:27 2005 From: Pperegrina at Lastminute.com (Pascal Peregrina) Date: Mon Jan 24 15:21:35 2005 Subject: [Zope] Recursively comparing 2 folders' objects Message-ID: Hi, I would like to know if anyone has some advice to give me on this. Inside one Zope instance, I have 2 folders, representing a live site and a development site. People copy objects from dev to live when they are ready. I would like to know if there are things to avoid (in order to speed up overall comparison time). I was thinking about a recursive function that would follow the development site folders structure, and on each folder, compare contents with live content, using comparison methods by meta type. Thanks a lot. Pascal ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** From dswift at apmindsf.com Mon Jan 24 16:02:47 2005 From: dswift at apmindsf.com (David Swift) Date: Mon Jan 24 16:02:24 2005 Subject: [Zope] Problem with external method locking threads Message-ID: <41F56277.9090302@apmindsf.com> I am running an External method, to fix some hard links in our ZWiki back to relative links. On two of our three ZWikis, this script runs well. On the third ZWiki, which has about 530 pages, this script causes the Zope instance to stop responding to any requests, after it processes about 140 pages. I have tried deleting the pages it freezes on, but it still freezes at about the same place each time. After examing the lists, and running strace, I am certain that one of the Python/Zope threads refuses to respond to SIGRTMIN, and then somehow locks up all threads - however, this is deeper than my knowledge goes, and I am hoping someone on this list can point me towards solutions I have not yet tried. My environment is: 2.5Ghz Intel single processor 1GB RAM Fedora 1 kernel - Linux our.server.com 2.4.22-1.2199.nptl #1 Wed Aug 4 12:21:48 EDT 2004 i686 i686 i386 GNU/Linux Software RAID 1, using a 36GB partition for Data.fs. Directory instance/var is a symlink to this partition. Python 2.3.3 and Python 2.4 Zope 2.7.3 ZWiki ZWiki-0-37-0 glibc-2.3.4-3 Below, I have copied: The External Method script I am using A brief description of the various things I have tried A sample of the environment, from within zopectl A copy of the strace run I am getting during script execution I use the command 'setuidgid zope bin/zopectl' to run the Zope instance. Any help is greatly appreciated! David -------------------- The script looks like this: from StringIO import StringIO import zLOG import re def addpage(self,o): """ Given a file or image, convert links to LocalFS """ nid = o.getId() fileOnlyLink = re.compile(r'href=\"([- .\w]+\.\w+)\"') fileLink = re.compile(r'https://zwiki(?:.*?/)+?([- .%\w]+.\w+)"') otherLink = re.compile(r'https://zwiki(?:.*?/)+([- %\w]+)"') pageText = o.read() pageText = fileOnlyLink.sub(r'href="uploads/\1"', pageText) pageText = fileLink.sub(r'uploads/\1"', pageText) pageText = otherLink.sub(r'\1"', pageText) o.setText(pageText) zLOG.LOG('addpage', zLOG.WARNING, 'working on %s' % nid) o.reindex_object() -------------------- tried Python 2.4 and Zope 2.7.3-0 tried Python 2.3.3 and Zope 2.7.3-0 tried refreshing glibc, to version glibc-2.3.4-3 tried LD_ASSUME_KERNEL=2.4.1 in runzope and zopectl tried LD_ASSUME_KERNEL=2.2.5 in runzope and zopectl tried deleting data for pages it stops on tried THREAD_STACK_SIZE of 0x20000 when compiling Python tried compiling Python with ./configure --prefix=/usr/local/python-2.4 --with-threads --with-signal-module --with-libs='rt' tried compiling Python with ./configure --prefix=/usr/local/python-2.4 --with-threads --with-signal-module tried compiling Python with ./configure --prefix=/usr/local/python-2.4 --with-threads tried compiling Python with ./configure --prefix=/usr/local/python-2.3.3 --with-threads --with-signal-module --with-libs='rt' tried compiling Python with ./configure --prefix=/usr/local/python-2.3.3 --with-threads --with-signal-module tried compiling Python with ./configure --prefix=/usr/local/python-2.3.3 --with-threads -------------------- environment of zopectl zopectl> stop . . . . . . . . . . . daemon process stopped zopectl> shell bash: /root/.bashrc: Permission denied bash-2.05b$ set BASH=/bin/bash BASH_ENV=/root/.bashrc BASH_VERSINFO=([0]="2" [1]="05b" [2]="0" [3]="1" [4]="release" [5]="i386-redhat-linux-gnu") BASH_VERSION='2.05b.0(1)-release' CLIENT_HOME=/usr/local/zope/apmindsf/var COLUMNS=140 DIRSTACK=() EUID=88 GROUPS=() G_BROKEN_FILENAMES=1 HISTFILE=/root/.bash_history HISTFILESIZE=1000 HISTSIZE=1000 HOME=/root HOSTNAME=rope.apmindsf.com HOSTTYPE=i386 IFS=$' \t\n' INPUTRC=/etc/inputrc INSTANCE_HOME=/usr/local/zope/apmindsf LANG=en_US.UTF-8 LD_ASSUME_KERNEL=2.4.1 LESSOPEN='|/usr/bin/lesspipe.sh %s' LINES=61 LOGNAME=root MACHTYPE=i386-redhat-linux-gnu MAIL=/var/spool/mail/root MAILCHECK=60 OPTERR=1 OPTIND=1 OSTYPE=linux-gnu PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin PPID=8735 PS1='\s-\v\$ ' PS2='> ' PS4='+ ' PWD=/usr/local/zope/apmindsf PYTHONPATH=/usr/local/zope/lib/python SHELL=/bin/bash SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor SHLVL=3 SOFTWARE_HOME=/usr/local/zope/lib/python SSH_CLIENT='192.168.1.20 3660 22' SSH_CONNECTION='192.168.1.20 3660 192.168.1.72 22' SSH_TTY=/dev/pts/1 TERM=cygwin UID=88 USER=root USERNAME=root ZMANAGED=1 ZOPE_HOME=/usr/local/zope _=/bin/bash bash-2.05b$ -------------------- strace of script execution [root@server Python-2.4]# strace -s2000 -p 8738 Process 8738 attached - interrupt to quit select(9, [3 4 8], [], [3 4 8], {4, 460000}) = 0 (Timeout) select(9, [3 4 8], [], [3 4 8], {30, 0}) = 1 (in [3], left {12, 590000}) accept(3, {sa_family=AF_INET, sin_port=htons(3429), sin_addr=inet_addr("192.168.1.20")}, [16]) = 14 fcntl64(14, F_GETFL) = 0x2 (flags O_RDWR) fcntl64(14, F_SETFL, O_RDWR|O_NONBLOCK) = 0 getpeername(14, {sa_family=AF_INET, sin_port=htons(3429), sin_addr=inet_addr("192.168.1.20")}, [16]) = 0 gettimeofday({1106285562, 100163}, NULL) = 0 fcntl64(14, F_SETFD, FD_CLOEXEC) = 0 select(15, [3 4 8 14], [], [3 4 8 14], {30, 0}) = 1 (in [14], left {30, 0}) recv(14, "GET /am/convertLinks2local/ZScriptHTML_tryForm HTTP/1.1\r\nHost: our.server.com:8080\r\nUser-Agent: Mozilla/5.0 (Windows; U; Wi ndows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0\r\nAccept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/pla in;q=0.8,image/png,*/*;q=0.5\r\nAccept-Language: en-us,en;q=0.5\r\nAccept-Encoding: gzip,deflate\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,* ;q=0.7\r\nKeep-Alive: 300\r\nConnection: keep-alive\r\nReferer: http://our.server.com:8080/am/convertLinks2local/ZPythonScriptHTML_editFo rm\r\nCookie: tree-s=\"eJzTyCkw5NLIKTDiClZ3hANXW3WuAmOuxEQ9AIOOB9Q\"\r\nAuthorization: Basic ZHN3aWZ0OjR0aGZsMDBy\r\n\r\n", 4096, 0) = 643 gettimeofday({1106285562, 102930}, NULL) = 0 kill(8744, SIGRTMIN) = 0 kill(8744, SIGRTMIN) = 0 rt_sigprocmask(SIG_SETMASK, NULL, [RTMIN], 8) = 0 rt_sigsuspend([] --- SIGRTMIN (Unknown signal 32) @ 0 (0) --- <... rt_sigsuspend resumed> ) = -1 EINTR (Interrupted system call) sigreturn() = ? (mask now [RTMIN]) select(15, [3 4 8 14], [], [3 4 8 14], {30, 0}) = 1 (in [8], left {29, 900000}) read(8, "x", 8192) = 1 select(15, [3 4 8 14], [14], [3 4 8 14], {30, 0}) = 1 (out [14], left {30, 0}) send(14, "HTTP/1.1 302 Moved Temporarily\r\nServer: Zope/(Zope 2.7.3-0, python 2.4.0, linux2) ZServer/1.1\r\nDate: Fri, 21 Jan 2005 05:32:42 GMT\r\nBobo-Exception-Line: 56\r\nContent-Length: 0\r\nBobo-Exception-Value: See the server error log for details\r\nBobo-Exception-File: D T_Raise.py\r\nBobo-Exception-Type: Redirect\r\nConnection: close\r\nLocation: http://our.server.com:8080/am/convertLinks2local\r\nContent -Type: text/html;charset=iso-8859-1\r\n\r\n", 429, 0) = 429 select(15, [3 4 8 14], [], [3 4 8 14], {30, 0}) = 1 (in [14], left {30, 0}) rt_sigprocmask(SIG_SETMASK, NULL, [RTMIN], 8) = 0 rt_sigsuspend([] --- SIGRTMIN (Unknown signal 32) @ 0 (0) --- <... rt_sigsuspend resumed> ) = -1 EINTR (Interrupted system call) sigreturn() = ? (mask now [RTMIN]) recv(14, "", 4096, 0) = 0 close(14) = 0 select(9, [3 4 8], [], [3 4 8], {30, 0}) = 1 (in [8], left {30, 0}) read(8, "x", 8192) = 1 select(9, [3 4 8], [], [3 4 8], {30, 0}) = 1 (in [3], left {29, 990000}) accept(3, {sa_family=AF_INET, sin_port=htons(3436), sin_addr=inet_addr("192.168.1.20")}, [16]) = 14 fcntl64(14, F_GETFL) = 0x2 (flags O_RDWR) fcntl64(14, F_SETFL, O_RDWR|O_NONBLOCK) = 0 getpeername(14, {sa_family=AF_INET, sin_port=htons(3436), sin_addr=inet_addr("192.168.1.20")}, [16]) = 0 gettimeofday({1106285562, 261677}, NULL) = 0 fcntl64(14, F_SETFD, FD_CLOEXEC) = 0 select(15, [3 4 8 14], [], [3 4 8 14], {30, 0}) = 1 (in [14], left {30, 0}) recv(14, "GET /am/convertLinks2local HTTP/1.1\r\nHost: our.server.com:8080\r\nUser-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0\r\nAccept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,* /*;q=0.5\r\nAccept-Language: en-us,en;q=0.5\r\nAccept-Encoding: gzip,deflate\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nKeep-Alive : 300\r\nConnection: keep-alive\r\nReferer: http://our.server.com:8080/am/convertLinks2local/ZPythonScriptHTML_editForm\r\nCookie: tree-s =\"eJzTyCkw5NLIKTDiClZ3hANXW3WuAmOuxEQ9AIOOB9Q\"\r\nAuthorization: Basic ZHN3aWZ0OjR0aGZsMDBy\r\n\r\n", 4096, 0) = 623 gettimeofday({1106285562, 264328}, NULL) = 0 kill(8744, SIGRTMIN) = 0 select(15, [3 4 8 14], [], [3 4 8 14], {30, 0}) = 0 (Timeout) rt_sigprocmask(SIG_SETMASK, NULL, [RTMIN], 8) = 0 rt_sigsuspend([] --- SIGRTMIN (Unknown signal 32) @ 0 (0) --- <... rt_sigsuspend resumed> ) = -1 EINTR (Interrupted system call) sigreturn() = ? (mask now [RTMIN]) select(15, [3 4 8 14], [], [3 4 8 14], {30, 0}) = 0 (Timeout) rt_sigprocmask(SIG_SETMASK, NULL, [RTMIN], 8) = 0 rt_sigsuspend([] --- SIGTERM (Terminated) @ 0 (0) --- <... rt_sigsuspend resumed> ) = -1 EINTR (Interrupted system call) getpid() = 8738 rt_sigaction(SIGTERM, {0x80e070, [], SA_RESTORER, 0x28da08}, {0x80e070, [], SA_RESTORER, 0x28da08}, 8) = 0 sigreturn() = ? (mask now [RTMIN]) rt_sigsuspend([] +++ killed by SIGKILL +++ You have new mail in /var/spool/mail/root [root@server Python-2.4]# From pw_lists at slinkp.com Mon Jan 24 16:11:01 2005 From: pw_lists at slinkp.com (Paul Winkler) Date: Mon Jan 24 16:11:04 2005 Subject: [Zope] Problem with external method locking threads In-Reply-To: <41F56277.9090302@apmindsf.com> References: <41F56277.9090302@apmindsf.com> Message-ID: <20050124211101.GA2671@slinkp.com> On Mon, Jan 24, 2005 at 01:02:47PM -0800, David Swift wrote: > After examing the lists, and running strace, I am certain that one of > the Python/Zope threads refuses to respond to SIGRTMIN, and then > somehow locks up all threads - however, this is deeper than my knowledge > goes, and I am hoping someone on this list can point me towards > solutions I have not yet tried. Google for "debug spinning zope", that may give you more clues. -- Paul Winkler http://www.slinkp.com From farcepest at gmail.com Mon Jan 24 16:17:28 2005 From: farcepest at gmail.com (Andy Dustman) Date: Mon Jan 24 16:17:29 2005 Subject: [Zope] MySQL Windows Driver Updates In-Reply-To: <41F4F17B.10387.18415633@localhost> References: <41F4F17B.10387.18415633@localhost> Message-ID: <9826f38005012413177ff73680@mail.gmail.com> On Mon, 24 Jan 2005 13:00:43 -0700, hpinson@indepthl.com wrote: > Have Zope MySQL database drivers (ZMySQLDA and DB) and ODBC (ZODBCDA) > development been abandoned for the Windows platform? Speaking for ZMySQLDA, there have been no new releases for more than two years because there's been no need to release anything: It works. There's never been any development for the WIndows platform because it's cross-platform, and there's nothing platform-specific in ZMySQLDA. There is one prerequisite for installing ZMySQLDA, and that is installing MySQLdb. http://sourceforge.net/projects/mysql-python Availability of pre-compiled Windows packages depends entirely upon end-users who have the tool chain to build them. So far there is not an installer for 1.0.1. However, 1.0 or even 0.9.2 should be fine for Zope; most of the changes are in the Python layer which is not used by Zope. -- Computer interfaces should never be made of meat. Using GMail? Setting Reply-to address to <> disables this annoying feature. From hpinson at indepthl.com Mon Jan 24 17:04:47 2005 From: hpinson at indepthl.com (hpinson@indepthl.com) Date: Mon Jan 24 17:02:52 2005 Subject: [Zope] sql_delimiter broken? Message-ID: <41F50E8F.11341.18B2EDCA@localhost> The ability to pass multiple sql calls in one ZSQL method using sql_delimiter seems to be broken in 2.7.4. This no longer works in a single ZSQL method: INSERT INTO ...; INSERT INTO ...; Crashes the sql on encountering the sql_delimiter. Does anyone know of any workaround outside of using separate ZSQL methods for each statement? I know... convert it to Python. Harlow Pinson Indepth Learning Email: hpinson@indepthl.com Web: http://www.indepthl.com Voice: 505-994-2135 FAX: 208-475-7678 From mike at infoleak.com Mon Jan 24 20:47:18 2005 From: mike at infoleak.com (Mike Culbertson) Date: Mon Jan 24 20:47:20 2005 Subject: [Zope] documentation defacement Message-ID: <200501241747.18446.mike@infoleak.com> Could someone with adequate access please remove at least some of the garbage posts from the zope docs, the thousands of lines of spam/vandal nonsense make it really annoying to read. example: http://zope.org/Documentation/Books/ZopeBook/2_6Edition/AppendixD.stx -Mike Culbertson From iroro at neurobs.com Mon Jan 24 22:06:24 2005 From: iroro at neurobs.com (iroro) Date: Mon Jan 24 22:06:32 2005 Subject: [Zope] ZODB storage errors ...during object abort Message-ID: <200501250306.WAA24475@courageux.cnchost.com> Hi, I'm investigating some nasty hangs/freezes that seem to occur every 2-3 days. Usually, i just "service zope restart" and I'm back in business. So I turned on event logging on the last restart to help figure this out and Zope hasn't hung yet, but I've been seeing these nasty looking errors (esp. "This shouldn't happen") any ideas, hints, debugging paths that might shed some light on this error would be greatly appreciated!!! thanks, io --- ------ 2005-01-24T01:00:33 ERROR(200) ZODB A storage error occured during object abort. This shouldn't happen. Traceback (innermost last): File /var/local/zope-2.6.4/lib/python/ZODB/Transaction.py, line 401, in _commit_error File /var/local/zope-2.6.4/lib/python/Shared/DC/ZRDB/TM.py, line 60, in abort File /var/local/zope/lib/python/Products/ZMySQLDA/db.py, line 405, in _abort From dswift at apmindsf.com Tue Jan 25 00:21:53 2005 From: dswift at apmindsf.com (David Swift) Date: Tue Jan 25 00:21:28 2005 Subject: [Zope] Re: Problem with external method locking threads Message-ID: <41F5D771.1080305@apmindsf.com> Please belay this problem - it actually appears to be a problem with my choice of regular expression. the 'fileLink' regexp in the script goes into never-neverland for some links that have query strings containing links. Once in this state, Python has to be killed to stop it. Who'da thought infinite recursion could take so long... David From fdrake at gmail.com Tue Jan 25 00:23:16 2005 From: fdrake at gmail.com (Fred Drake) Date: Tue Jan 25 00:23:19 2005 Subject: [Zope] documentation defacement In-Reply-To: <200501241747.18446.mike@infoleak.com> References: <200501241747.18446.mike@infoleak.com> Message-ID: <9cee7ab8050124212343b07340@mail.gmail.com> On Mon, 24 Jan 2005 17:47:18 -0800, Mike Culbertson wrote: > Could someone with adequate access please remove at least some of the garbage > posts from the zope docs, the thousands of lines of spam/vandal nonsense make > it really annoying to read. I've cleaned up some of the worst in the appendices, but there's a lot more to go through. I think I caught all the wiki spam in the appendices, and I integrated a few comments into the text (mostly typo corrections and the like). There's still a lot of cleaning up that's needed, but I don't have the time to do a lot of this myself. -Fred -- Fred L. Drake, Jr. Zope Corporation From tino at wildenhain.de Tue Jan 25 00:52:10 2005 From: tino at wildenhain.de (Tino Wildenhain) Date: Tue Jan 25 00:52:19 2005 Subject: [Zope] sql_delimiter broken? In-Reply-To: <41F50E8F.11341.18B2EDCA@localhost> References: <41F50E8F.11341.18B2EDCA@localhost> Message-ID: <1106632330.4014.160.camel@Andrea.peacock.de> Am Montag, den 24.01.2005, 15:04 -0700 schrieb hpinson@indepthl.com: > The ability to pass multiple sql calls in one ZSQL method using > sql_delimiter seems to be broken in 2.7.4. > > This no longer works in a single ZSQL method: > > INSERT INTO ...; > > > INSERT INTO ...; > > > Crashes the sql on encountering the sql_delimiter. > > Does anyone know of any workaround outside of using separate ZSQL > methods for each statement? I know... convert it to Python. No, just dont use 2 delimiter. You have used ; _and_ sql_delimiter which would render to ; too. I'm also not certain if the syntax was correct. It should be something like sql-delimiter Which renders ; too :-) From pw_lists at slinkp.com Tue Jan 25 01:05:22 2005 From: pw_lists at slinkp.com (Paul Winkler) Date: Tue Jan 25 01:05:26 2005 Subject: [Zope] documentation defacement In-Reply-To: <9cee7ab8050124212343b07340@mail.gmail.com> References: <200501241747.18446.mike@infoleak.com> <9cee7ab8050124212343b07340@mail.gmail.com> Message-ID: <20050125060522.GA22148@slinkp.com> On Tue, Jan 25, 2005 at 12:23:16AM -0500, Fred Drake wrote: > ... and I integrated a few comments into the text (mostly typo > corrections and the like). Great! ... only, I worry this will not make it into the 2.7 version of the book unless somebody takes care to merge your work? http://plope.com/Books/zb_signup The people working on appendices are listed there: 25 Appendix A: DTML Reference (David Siedband - in progress) 26 Appendix B: API Reference (Paul Winkler - in progress) 27 Appendix C: Zope Page Templates Reference (Thomas Reulbach - in progress) 28 Appendix D: Zope Resources (Jens Vagelpohl - finished) 29 Appendix E: DTML Name Lookup Rules (Jens Vagelpohl - finished) Which ones did you work on? -- Paul Winkler http://www.slinkp.com From fdrake at gmail.com Tue Jan 25 02:06:09 2005 From: fdrake at gmail.com (Fred Drake) Date: Tue Jan 25 02:06:11 2005 Subject: [Zope] documentation defacement In-Reply-To: <20050125060522.GA22148@slinkp.com> References: <200501241747.18446.mike@infoleak.com> <9cee7ab8050124212343b07340@mail.gmail.com> <20050125060522.GA22148@slinkp.com> Message-ID: <9cee7ab80501242306118d817f@mail.gmail.com> On Tue, 25 Jan 2005 01:05:22 -0500, Paul Winkler wrote: > Great! > ... only, I worry this will not make it into the 2.7 > version of the book unless somebody takes care to > merge your work? Hmm. If the version on zope.org is not canonical, it shouldn't be editable (annotatable, yes, but not editable). I'd really like to see documentation maintained like other sources, using a revision control system (Subversion would be ideal, but CVS would be a step forward, IMO). Having yet another place to go doesn't help. Hopefully someone with the right access, Zen, and time will take a look at the changes and merge them into the source documents. > Which ones did you work on? Appendices A-D. -Fred -- Fred L. Drake, Jr. Zope Corporation From chris at simplistix.co.uk Tue Jan 25 03:45:18 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Tue Jan 25 03:45:21 2005 Subject: [Zope] MySQL Windows Driver Updates In-Reply-To: <41F4F17B.10387.18415633@localhost> References: <41F4F17B.10387.18415633@localhost> Message-ID: <41F6071E.1060309@simplistix.co.uk> hpinson@indepthl.com wrote: > My need is to hook Zope 2.7.4 up to MySQL 4.0.16. on a W2K server. My > preference would be the native driver. At this point, it looks like > the eGenix commercial solution may be ony viable option, and I really > have no idea how good it is. The eGenix driver is very good. The support for it is even better. That said, what Andy says about the MySQL native drivers is true... Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From chris at simplistix.co.uk Tue Jan 25 03:47:53 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Tue Jan 25 03:48:03 2005 Subject: [Zope] documentation defacement In-Reply-To: <9cee7ab8050124212343b07340@mail.gmail.com> References: <200501241747.18446.mike@infoleak.com> <9cee7ab8050124212343b07340@mail.gmail.com> Message-ID: <41F607B9.80401@simplistix.co.uk> Fred Drake wrote: > I've cleaned up some of the worst in the appendices, but there's a lot > more to go through. I think I caught all the wiki spam in the > appendices, and I integrated a few comments into the text (mostly typo > corrections and the like). This could be a problem. The reason I've shyed away from doing anything is 'cos there seems to be confusion as to whether book development happens on Plope.com or Zope.org. Chris, can you comment? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From chris at simplistix.co.uk Tue Jan 25 03:49:41 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Tue Jan 25 03:49:47 2005 Subject: [Zope] documentation defacement In-Reply-To: <9cee7ab80501242306118d817f@mail.gmail.com> References: <200501241747.18446.mike@infoleak.com> <9cee7ab8050124212343b07340@mail.gmail.com> <20050125060522.GA22148@slinkp.com> <9cee7ab80501242306118d817f@mail.gmail.com> Message-ID: <41F60825.3010607@simplistix.co.uk> Hi Fred, Fred Drake wrote: > Hmm. If the version on zope.org is not canonical, it shouldn't be > editable (annotatable, yes, but not editable). Indeed. I don't think the BackTalk feature has really helped all that much, people just abuse it :-( > I'd really like to see documentation maintained like other sources, > using a revision control system (Subversion would be ideal, but CVS > would be a step forward, IMO). Having yet another place to go doesn't > help. There is a sourceforge project for this, how do we go about using it? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From chris at simplistix.co.uk Tue Jan 25 03:51:03 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Tue Jan 25 03:51:57 2005 Subject: [Zope] ZODB storage errors ...during object abort In-Reply-To: <200501250306.WAA24475@courageux.cnchost.com> References: <200501250306.WAA24475@courageux.cnchost.com> Message-ID: <41F60877.2080202@simplistix.co.uk> iroro wrote: > any ideas, hints, debugging paths that might shed some light on this error would be greatly appreciated!!! Looks like the MySQL connection is your problem. Is there a chance your Zope server is loosign communication with your MySQL server? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From feedreader at yahoo.com Tue Jan 25 05:57:25 2005 From: feedreader at yahoo.com (Ken Ara) Date: Tue Jan 25 05:57:26 2005 Subject: [Zope] ZServer uncaptured python exception Message-ID: <20050125105725.33314.qmail@web53301.mail.yahoo.com> Hi, Something went wrong with my Zope overnight. I attempted to restart this morning, but Zope dies after serving a single page. Strangely, although I can retrieve one page, there is no entry for it in Z2.log. How shall I interpret this message from my Error.log: ------ 2005-01-25T05:35:56 INFO(0) ZServer HTTP server started at Tue Jan 25 05:35:56 2005 Hostname: my.server.com Port: 81 ------ 2005-01-25T05:35:56 INFO(0) Zope Set effective user to "ken" ------ 2005-01-25T05:36:00 INFO(0) Zope Ready to handle requests ------ 2005-01-25T05:36:00 ERROR(200) ZServer uncaptured python exception, closing channel (socket.gaierror:(7, 'No address associated with hostname') [/usr/local/lib/pyth on2.3/asyncore.py|write|77] [/usr/local/lib/python2.3/asyncore.py|handle_write_event|397] [/usr/local/lib/python2.3/asynchat.py|hand le_write|152] [/usr/local/lib/python2.3/asynchat.py|initiate_send|213] [/usr/local/lib/python2.3/asynchat.py|refill_buffer|200] [/us r/local/www/zope/lib/python/ZServer/Producers.py|more|34] [/usr/local/www/zope/lib/python/ZServer/medusa/http_server.py|log|292] [/u sr/local/www/zope/lib/python/ZServer/medusa/logger.py|log|246] [/usr/local/www/zope/lib/python/ZServer/medusa/resolver.py|resolve_pt r|349] [/usr/local/www/zope/lib/python/ZServer/medusa/resolver.py|resolve_ptr|260]) Any ideas? Thanks! Ken Ara __________________________________ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail From m.bizzarri at icube.it Tue Jan 25 06:02:00 2005 From: m.bizzarri at icube.it (Marco Bizzarri) Date: Tue Jan 25 06:02:13 2005 Subject: [Zope] ZServer uncaptured python exception In-Reply-To: <20050125105725.33314.qmail@web53301.mail.yahoo.com> References: <20050125105725.33314.qmail@web53301.mail.yahoo.com> Message-ID: <41F62728.8010409@icube.it> Ken Ara wrote: > Hi, > > Something went wrong with my Zope overnight. > > I attempted to restart this morning, but Zope dies > after serving a single page. Strangely, although I can > retrieve one page, there is no entry for it in Z2.log. > > > How shall I interpret this message from my Error.log: > > ------ > 2005-01-25T05:35:56 INFO(0) ZServer HTTP server > started at Tue Jan 25 05:35:56 2005 > Hostname: my.server.com > Port: 81 > ------ > 2005-01-25T05:35:56 INFO(0) Zope Set effective user to > "ken" > ------ > 2005-01-25T05:36:00 INFO(0) Zope Ready to handle > requests > ------ > 2005-01-25T05:36:00 ERROR(200) ZServer uncaptured > python exception, closing channel > 9.118.168:10373 at 0x91066ac channel#: 0 requests:> > (socket.gaierror:(7, 'No address associated with > hostname') [/usr/local/lib/pyth > on2.3/asyncore.py|write|77] > [/usr/local/lib/python2.3/asyncore.py|handle_write_event|397] > [/usr/local/lib/python2.3/asynchat.py|hand > le_write|152] > [/usr/local/lib/python2.3/asynchat.py|initiate_send|213] > [/usr/local/lib/python2.3/asynchat.py|refill_buffer|200] > [/us > r/local/www/zope/lib/python/ZServer/Producers.py|more|34] > [/usr/local/www/zope/lib/python/ZServer/medusa/http_server.py|log|292] > [/u > sr/local/www/zope/lib/python/ZServer/medusa/logger.py|log|246] > [/usr/local/www/zope/lib/python/ZServer/medusa/resolver.py|resolve_pt > r|349] > [/usr/local/www/zope/lib/python/ZServer/medusa/resolver.py|resolve_ptr|260]) > > Any ideas? Thanks! > > Ken Ara > > Did you tried to move away the old Data.fs* (backup first!) so that you can check if it is a sysadmin problem or a Zope problem? Also, I see a strange message stating 'no address associated with hostname'... not sure if it can cause problems. Regards Marco From feedreader at yahoo.com Tue Jan 25 06:16:06 2005 From: feedreader at yahoo.com (Ken Ara) Date: Tue Jan 25 06:16:08 2005 Subject: [Zope] ZServer uncaptured python exception Message-ID: <20050125111606.53918.qmail@web53304.mail.yahoo.com> Yes, thanks, I have backups. And I forgot to mention, I am running Zope 2.7.3/FreeBSD 4.9. Actually, I suspect it is not strictly a Zope problem. Squid (which I stopped) was running fine, and I was able to reboot the machine (remotely) with no effect. My ISP-friend, who gets to work in about 6 hours, may (or may not) be able to help with any admin-type issues, so any help from the list will be much appreciated. Ken --- Marco Bizzarri wrote: > Did you tried to move away the old Data.fs* (backup first!) so that you > can check if it is a sysadmin problem or a Zope problem? > > Also, I see a strange message stating 'no address associated with > hostname'... not sure if it can cause problems. > > Regards > Marco > Ken Ara wrote: > > Hi, > > > > Something went wrong with my Zope overnight. > > > > I attempted to restart this morning, but Zope dies > > after serving a single page. Strangely, although I can > > retrieve one page, there is no entry for it in Z2.log. > > > > > > How shall I interpret this message from my Error.log: > > > > ------ > > 2005-01-25T05:35:56 INFO(0) ZServer HTTP server > > started at Tue Jan 25 05:35:56 2005 > > Hostname: my.server.com > > Port: 81 > > ------ > > 2005-01-25T05:35:56 INFO(0) Zope Set effective user to > > "ken" > > ------ > > 2005-01-25T05:36:00 INFO(0) Zope Ready to handle > > requests > > ------ > > 2005-01-25T05:36:00 ERROR(200) ZServer uncaptured > > python exception, closing channel > > > 9.118.168:10373 at 0x91066ac channel#: 0 requests:> > > (socket.gaierror:(7, 'No address associated with > > hostname') [/usr/local/lib/pyth > > on2.3/asyncore.py|write|77] > > [/usr/local/lib/python2.3/asyncore.py|handle_write_event|397] > > [/usr/local/lib/python2.3/asynchat.py|hand > > le_write|152] > > [/usr/local/lib/python2.3/asynchat.py|initiate_send|213] > > [/usr/local/lib/python2.3/asynchat.py|refill_buffer|200] > > [/us > > r/local/www/zope/lib/python/ZServer/Producers.py|more|34] > > [/usr/local/www/zope/lib/python/ZServer/medusa/http_server.py|log|292] > > [/u > > sr/local/www/zope/lib/python/ZServer/medusa/logger.py|log|246] > > [/usr/local/www/zope/lib/python/ZServer/medusa/resolver.py|resolve_pt > > r|349] > > [/usr/local/www/zope/lib/python/ZServer/medusa/resolver.py|resolve_ptr|260]) > > > > Any ideas? Thanks! > > > > Ken Ara > > > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From prudek at bvx.cz Tue Jan 25 07:07:40 2005 From: prudek at bvx.cz (Milos Prudek) Date: Tue Jan 25 07:08:51 2005 Subject: [Zope] epoz and zpt Message-ID: <41F6368C.2030809@bvx.cz> Could someone please post the simplest working example of Epoz in ZPT? An example that would edit a file called 'text'. The following code I figured out works but it does not save to a file: ZPT method /epoz/a:
What's wrong with my example? -- Milos Prudek From feedreader at yahoo.com Tue Jan 25 07:39:45 2005 From: feedreader at yahoo.com (Ken Ara) Date: Tue Jan 25 07:39:46 2005 Subject: [Zope] ZServer uncaptured python exception Message-ID: <20050125123945.44747.qmail@web53302.mail.yahoo.com> I'm back in business. A list post from 1999 (by Amos) tipped me to the likely cause: something must have changed with the dns server specified in my zope.conf (start.py at the time). I reverted to the default (unset). Cheers Ken __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From maik.jablonski at uni-bielefeld.de Tue Jan 25 08:50:08 2005 From: maik.jablonski at uni-bielefeld.de (Maik Jablonski) Date: Tue Jan 25 08:50:20 2005 Subject: [Zope] Re: epoz and zpt In-Reply-To: <41F6368C.2030809@bvx.cz> References: <41F6368C.2030809@bvx.cz> Message-ID: Milos Prudek wrote: > Could someone please post the simplest working example of Epoz in ZPT? > An example that would edit a file called 'text'. > > The following code I figured out works but it does not save to a file: > > ZPT method /epoz/a: > >
> tal:replace="structure python: here.Epoz('text', data=text, > toolbox='/', > lang='en', > style='width: 620px; height: > 250px; border: 1px solid #000000;')" /> > > > > > What's wrong with my example? Please remember: Epoz is a replacement for a HTML-textarea... your example wouldn't work for a textarea, because your form-action redirects to the template itself... you need an action (PythonScript) which does the process of storing the request-data into an object. So my advise: Develop your application with a normal textarea first, when it works, replace the textarea with Epoz. Cheers, Maik From farcepest at gmail.com Tue Jan 25 09:21:37 2005 From: farcepest at gmail.com (Andy Dustman) Date: Tue Jan 25 09:21:40 2005 Subject: [Zope] ZODB storage errors ...during object abort In-Reply-To: <200501250306.WAA24475@courageux.cnchost.com> References: <200501250306.WAA24475@courageux.cnchost.com> Message-ID: <9826f3800501250621750b867d@mail.gmail.com> On Mon, 24 Jan 2005 19:06:24 -0800 (PST), iroro wrote: > --- ------ > > 2005-01-24T01:00:33 ERROR(200) ZODB A storage error occured during object abort. This shouldn't happen. > Traceback (innermost last): > File /var/local/zope-2.6.4/lib/python/ZODB/Transaction.py, line 401, in _commit_error > File /var/local/zope-2.6.4/lib/python/Shared/DC/ZRDB/TM.py, line 60, in abort > File /var/local/zope/lib/python/Products/ZMySQLDA/db.py, line 405, in _abort This is almost certainly due to trying to use non-transactional tables. Are you using MySQL with transactions enabled, and are your table types MyISAM or BDB or InnoDB? The latter two support transactions, and as a practical matter, you need transactions to work properly with Zope. -- Computer interfaces should never be made of meat. Using GMail? Setting Reply-to address to <> disables this annoying feature. From chrism at plope.com Tue Jan 25 09:40:44 2005 From: chrism at plope.com (Chris McDonough) Date: Tue Jan 25 09:40:50 2005 Subject: [Zope] documentation defacement In-Reply-To: <41F607B9.80401@simplistix.co.uk> References: <200501241747.18446.mike@infoleak.com> <9cee7ab8050124212343b07340@mail.gmail.com> <41F607B9.80401@simplistix.co.uk> Message-ID: <1106664044.23980.1260.camel@athlon> On Tue, 2005-01-25 at 03:47, Chris Withers wrote: > Fred Drake wrote: > > I've cleaned up some of the worst in the appendices, but there's a lot > > more to go through. I think I caught all the wiki spam in the > > appendices, and I integrated a few comments into the text (mostly typo > > corrections and the like). > > This could be a problem. > > The reason I've shyed away from doing anything is 'cos there seems to be > confusion as to whether book development happens on Plope.com or Zope.org. > > Chris, can you comment? It should likely happen according to http://www.plope.com/Books/zb_signup . - C From andrew at zope.com Tue Jan 25 09:47:16 2005 From: andrew at zope.com (Andrew Sawyers) Date: Tue Jan 25 09:47:05 2005 Subject: [Zope] documentation defacement In-Reply-To: <41F607B9.80401@simplistix.co.uk> References: <200501241747.18446.mike@infoleak.com> <9cee7ab8050124212343b07340@mail.gmail.com> <41F607B9.80401@simplistix.co.uk> Message-ID: <41F65BF4.9040203@zope.com> Chris Withers wrote: > Fred Drake wrote: > >> I've cleaned up some of the worst in the appendices, but there's a lot >> more to go through. I think I caught all the wiki spam in the >> appendices, and I integrated a few comments into the text (mostly typo >> corrections and the like). > > > This could be a problem. > > The reason I've shyed away from doing anything is 'cos there seems to be > confusion as to whether book development happens on Plope.com or Zope.org. > > Chris, can you comment? > > cheers, > > Chris > Why is development happening on Chris' site? I volunteer to work with him to make whatever he needs to happen on this end to get it back in one, logical place. A -- Zope Managed Hosting Systems Administrator/Software Engineer Zope Corporation (540) 361-1700 From chrism at plope.com Tue Jan 25 09:53:38 2005 From: chrism at plope.com (Chris McDonough) Date: Tue Jan 25 09:54:07 2005 Subject: [Zope] documentation defacement In-Reply-To: <41F65BF4.9040203@zope.com> References: <200501241747.18446.mike@infoleak.com> <9cee7ab8050124212343b07340@mail.gmail.com> <41F607B9.80401@simplistix.co.uk> <41F65BF4.9040203@zope.com> Message-ID: <1106664818.23980.1265.camel@athlon> On Tue, 2005-01-25 at 09:47, Andrew Sawyers wrote: > Chris Withers wrote: > > Fred Drake wrote: > > > >> I've cleaned up some of the worst in the appendices, but there's a lot > >> more to go through. I think I caught all the wiki spam in the > >> appendices, and I integrated a few comments into the text (mostly typo > >> corrections and the like). > > > > > > This could be a problem. > > > > The reason I've shyed away from doing anything is 'cos there seems to be > > confusion as to whether book development happens on Plope.com or Zope.org. > > > > Chris, can you comment? > > > > cheers, > > > > Chris > > > Why is development happening on Chris' site? I volunteer to work with > him to make whatever he needs to happen on this end to get it back in > one, logical place. > A We moved the development to plope.com because zope.org is slower than molasses in winter (totally unacceptable response time for editing). I'm not sure what it will take to fix that or even if it can be fixed. I'd be happy to move development back to zope.org, but I admit if it's as slow as it has always been when we do, I won't have the patience to contribute very much. - C From andrew at zope.com Tue Jan 25 09:58:31 2005 From: andrew at zope.com (Andrew Sawyers) Date: Tue Jan 25 09:58:21 2005 Subject: [Zope] documentation defacement In-Reply-To: <1106664818.23980.1265.camel@athlon> References: <200501241747.18446.mike@infoleak.com> <9cee7ab8050124212343b07340@mail.gmail.com> <41F607B9.80401@simplistix.co.uk> <41F65BF4.9040203@zope.com> <1106664818.23980.1265.camel@athlon> Message-ID: <41F65E97.1000002@zope.com> Chris McDonough wrote: > On Tue, 2005-01-25 at 09:47, Andrew Sawyers wrote: > >>Chris Withers wrote: >> >>>Fred Drake wrote: >>> >>> >>>>I've cleaned up some of the worst in the appendices, but there's a lot >>>>more to go through. I think I caught all the wiki spam in the >>>>appendices, and I integrated a few comments into the text (mostly typo >>>>corrections and the like). >>> >>> >>>This could be a problem. >>> >>>The reason I've shyed away from doing anything is 'cos there seems to be >>>confusion as to whether book development happens on Plope.com or Zope.org. >>> >>>Chris, can you comment? >>> >>>cheers, >>> >>>Chris >>> >> >>Why is development happening on Chris' site? I volunteer to work with >>him to make whatever he needs to happen on this end to get it back in >>one, logical place. >>A > > > We moved the development to plope.com because zope.org is slower than > molasses in winter (totally unacceptable response time for editing). > I'm not sure what it will take to fix that or even if it can be fixed. > I'd be happy to move development back to zope.org, but I admit if it's > as slow as it has always been when we do, I won't have the patience to > contribute very much. > > - C "We" need a commitment to fix it; from the collective "us" and ZC. There are no other options IMNSHO. Driving you (anyone) away due to performance is unacceptable. Andrew > > -- Zope Managed Hosting Systems Administrator/Software Engineer Zope Corporation (540) 361-1700 From farcepest at gmail.com Tue Jan 25 10:01:06 2005 From: farcepest at gmail.com (Andy Dustman) Date: Tue Jan 25 10:01:11 2005 Subject: [Zope] sql_delimiter broken? In-Reply-To: <1106632330.4014.160.camel@Andrea.peacock.de> References: <41F50E8F.11341.18B2EDCA@localhost> <1106632330.4014.160.camel@Andrea.peacock.de> Message-ID: <9826f3800501250701673cf11d@mail.gmail.com> On Tue, 25 Jan 2005 06:52:10 +0100, Tino Wildenhain wrote: > Am Montag, den 24.01.2005, 15:04 -0700 schrieb hpinson@indepthl.com: > > The ability to pass multiple sql calls in one ZSQL method using > > sql_delimiter seems to be broken in 2.7.4. > > > > This no longer works in a single ZSQL method: > > > > INSERT INTO ...; > > > > > > INSERT INTO ...; > > > > > > Crashes the sql on encountering the sql_delimiter. > > > > Does anyone know of any workaround outside of using separate ZSQL > > methods for each statement? I know... convert it to Python. > No, just dont use 2 delimiter. > You have used ; _and_ sql_delimiter which would render to ; > too. I'm also not certain if the syntax was correct. > It should be something like sql-delimiter > Which renders ; too :-) Your diagnosis is correct (I missed the semicolons first time around). However, does NOT render as a semicolon. It is, in fact a zero byte (\0). The ZSQL Method machinery uses that as a split character since it is (AFAIK) impossible to put in the query as a literal value ('\0' for example would be interpreted as backslash zero). Since it is a split character, you don't want one at the end, either. Also, while it's not an issue here, it's worth pointing out that you can only have one SELECT statement in a ZSQL Method. So to sum up, what he needs is: INSERT INTO ... INSERT INTO ... with no semicolons in sight. -- Computer interfaces should never be made of meat. Using GMail? Setting Reply-to address to <> disables this annoying feature. From chrism at plope.com Tue Jan 25 10:07:11 2005 From: chrism at plope.com (Chris McDonough) Date: Tue Jan 25 10:07:12 2005 Subject: [Zope] documentation defacement In-Reply-To: <41F65E97.1000002@zope.com> References: <200501241747.18446.mike@infoleak.com> <9cee7ab8050124212343b07340@mail.gmail.com> <41F607B9.80401@simplistix.co.uk> <41F65BF4.9040203@zope.com> <1106664818.23980.1265.camel@athlon> <41F65E97.1000002@zope.com> Message-ID: <1106665630.23980.1271.camel@athlon> On Tue, 2005-01-25 at 09:58, Andrew Sawyers wrote: > "We" need a commitment to fix it; from the collective "us" and ZC. > There are no other options IMNSHO. Driving you (anyone) away due to > performance is unacceptable. Well, the other option is to just continue using plope.com I suppose and only move them to zope.org when they are "done". Serving up the docs for reading and commenting from zope.org is fine performance-wise, but serving them up for editing them really isn't. Of course, getting "done" is a whole other story. ;-) I've been remiss in my duties here. - C From tino at wildenhain.de Tue Jan 25 12:48:44 2005 From: tino at wildenhain.de (Tino Wildenhain) Date: Tue Jan 25 12:48:52 2005 Subject: [Zope] sql_delimiter broken? In-Reply-To: <9826f3800501250701673cf11d@mail.gmail.com> References: <41F50E8F.11341.18B2EDCA@localhost> <1106632330.4014.160.camel@Andrea.peacock.de> <9826f3800501250701673cf11d@mail.gmail.com> Message-ID: <1106675324.4014.167.camel@Andrea.peacock.de> Am Dienstag, den 25.01.2005, 10:01 -0500 schrieb Andy Dustman: > On Tue, 25 Jan 2005 06:52:10 +0100, Tino Wildenhain wrote: > > Am Montag, den 24.01.2005, 15:04 -0700 schrieb hpinson@indepthl.com: > > > The ability to pass multiple sql calls in one ZSQL method using > > > sql_delimiter seems to be broken in 2.7.4. > > > > > > This no longer works in a single ZSQL method: > > > > > > INSERT INTO ...; > > > > > > > > > INSERT INTO ...; > > > > > > > > > Crashes the sql on encountering the sql_delimiter. > > > > > > Does anyone know of any workaround outside of using separate ZSQL > > > methods for each statement? I know... convert it to Python. > > No, just dont use 2 delimiter. > > You have used ; _and_ sql_delimiter which would render to ; > > too. I'm also not certain if the syntax was correct. > > It should be something like sql-delimiter > > Which renders ; too :-) > > Your diagnosis is correct (I missed the semicolons first time around). > However, does NOT render as a semicolon. It > is, in fact a zero byte (\0). The ZSQL Method machinery uses that as a > split character since it is (AFAIK) impossible to put in the query as > a literal value ('\0' for example would be interpreted as backslash > zero). Since it is a split character, you don't want one at the end, > either. Also, while it's not an issue here, it's worth pointing out > that you can only have one SELECT statement in a ZSQL Method. > > So to sum up, what he needs is: > > INSERT INTO ... > > INSERT INTO ... Ah yes, while 2 selects indeed are possible (just checked) I guess it depends a bit on the database. But you only get the result of the last SELECT of course. Regards Tino From dieter at handshake.de Tue Jan 25 13:54:33 2005 From: dieter at handshake.de (Dieter Maurer) Date: Tue Jan 25 14:21:44 2005 Subject: [Zope] Recursively comparing 2 folders' objects In-Reply-To: References: Message-ID: <16886.38377.12151.301239@gargle.gargle.HOWL> Pascal Peregrina wrote at 2005-1-24 21:21 +0100: > ... >Inside one Zope instance, I have 2 folders, representing a live site and a >development site. > ... >I was thinking about a recursive function that would follow the development >site folders structure, and on each folder, compare contents with live >content, using comparison methods by meta type. You can look at "bobobase_modification_time()" (time of the last write to the ZODB) to shortcut the comparison for atomic (!) objects. -- Dieter From dieter at handshake.de Tue Jan 25 13:01:13 2005 From: dieter at handshake.de (Dieter Maurer) Date: Tue Jan 25 14:21:50 2005 Subject: [Zope] OFS.History (question 2) In-Reply-To: <1106592996.4014.151.camel@Andrea.peacock.de> References: <1106559258.8688.136.camel@sabrina.peacock.de> <16885.15871.89819.20211@gargle.gargle.HOWL> <1106592996.4014.151.camel@Andrea.peacock.de> Message-ID: <16886.35177.659930.861357@gargle.gargle.HOWL> Tino Wildenhain wrote at 2005-1-24 19:56 +0100: >Am Montag, den 24.01.2005, 19:27 +0100 schrieb Dieter Maurer: > ... >> I have something like a historical connection. >> >> It does not help with the history merging but it helps >> to present a consistent view once you have chosen >> a time you are interested in. >> > >Sounds interesting! Where can I see it? :-) Attached. -- Dieter -------------- next part -------------- A non-text attachment was scrubbed... Name: History.py Type: application/x-python Size: 5942 bytes Desc: Historical connection -- delivering versions at a given time Url : http://mail.zope.org/pipermail/zope/attachments/20050125/3a1d85b6/History.bin From pw_lists at slinkp.com Tue Jan 25 16:02:06 2005 From: pw_lists at slinkp.com (Paul Winkler) Date: Tue Jan 25 16:02:18 2005 Subject: [Zope] documentation defacement In-Reply-To: <41F60825.3010607@simplistix.co.uk> References: <200501241747.18446.mike@infoleak.com> <9cee7ab8050124212343b07340@mail.gmail.com> <20050125060522.GA22148@slinkp.com> <9cee7ab80501242306118d817f@mail.gmail.com> <41F60825.3010607@simplistix.co.uk> Message-ID: <20050125210205.GA26702@slinkp.com> On Tue, Jan 25, 2005 at 08:49:41AM +0000, Chris Withers wrote: > Fred Drake wrote: > > >Hmm. If the version on zope.org is not canonical, it shouldn't be > >editable (annotatable, yes, but not editable). Agreed. But I don't have access on zope.org to change the permissions on the book. I have no idea if the workflow even supports such a state. > Indeed. I don't think the BackTalk feature has really helped all that > much, people just abuse it :-( I disagree, having edited a chapter for the 2.6 edition and working on one for the 2.7 edition, many of the comments are invaluable. > >I'd really like to see documentation maintained like other sources, > >using a revision control system (Subversion would be ideal, but CVS > >would be a step forward, IMO). Having yet another place to go doesn't > >help. +1, a couple people volunteered to help me with appendix B and it's been a pain coordinating that "by hand". As always, lack of time is the big problem. -- Paul Winkler http://www.slinkp.com From pw_lists at slinkp.com Tue Jan 25 16:06:46 2005 From: pw_lists at slinkp.com (Paul Winkler) Date: Tue Jan 25 16:06:57 2005 Subject: [Zope] documentation defacement In-Reply-To: <1106665630.23980.1271.camel@athlon> References: <200501241747.18446.mike@infoleak.com> <9cee7ab8050124212343b07340@mail.gmail.com> <41F607B9.80401@simplistix.co.uk> <41F65BF4.9040203@zope.com> <1106664818.23980.1265.camel@athlon> <41F65E97.1000002@zope.com> <1106665630.23980.1271.camel@athlon> Message-ID: <20050125210646.GB26702@slinkp.com> On Tue, Jan 25, 2005 at 10:07:11AM -0500, Chris McDonough wrote: > Well, the other option is to just continue using plope.com I suppose and > only move them to zope.org when they are "done". Or use the sourceforge book project CVS. I tend to agree w/ Fred and Chris W that this would be better and, in the long run, easier. -- Paul Winkler http://www.slinkp.com From chrism at plope.com Tue Jan 25 17:00:50 2005 From: chrism at plope.com (Chris McDonough) Date: Tue Jan 25 17:00:54 2005 Subject: [Zope] documentation defacement In-Reply-To: <20050125210646.GB26702@slinkp.com> References: <200501241747.18446.mike@infoleak.com> <9cee7ab8050124212343b07340@mail.gmail.com> <41F607B9.80401@simplistix.co.uk> <41F65BF4.9040203@zope.com> <1106664818.23980.1265.camel@athlon> <41F65E97.1000002@zope.com> <1106665630.23980.1271.camel@athlon> <20050125210646.GB26702@slinkp.com> Message-ID: <1106690450.23980.1281.camel@athlon> On Tue, 2005-01-25 at 16:06, Paul Winkler wrote: Or use the sourceforge book project CVS. > I tend to agree w/ Fred and Chris W that this would be > better and, in the long run, easier. That'd be fine as well. The only real reason the dev versions are Backtalk now is in order to have them available for display to docs seekers. We could maybe just ditch Backtalk/STX altogether, but I'm not sure what the alternative is. I do think the commenting features are valuable, as much as they may be abused. I'll also note that the last change made to the development docs was many months ago, and I'm not sure that moving them into another system will improve that in any way. - C From fdrake at gmail.com Tue Jan 25 17:33:47 2005 From: fdrake at gmail.com (Fred Drake) Date: Tue Jan 25 17:33:49 2005 Subject: [Zope] documentation defacement In-Reply-To: <1106690450.23980.1281.camel@athlon> References: <200501241747.18446.mike@infoleak.com> <9cee7ab8050124212343b07340@mail.gmail.com> <41F607B9.80401@simplistix.co.uk> <41F65BF4.9040203@zope.com> <1106664818.23980.1265.camel@athlon> <41F65E97.1000002@zope.com> <1106665630.23980.1271.camel@athlon> <20050125210646.GB26702@slinkp.com> <1106690450.23980.1281.camel@athlon> Message-ID: <9cee7ab8050125143363ce4c0d@mail.gmail.com> On Tue, 25 Jan 2005 17:00:50 -0500, Chris McDonough wrote: > That'd be fine as well. The only real reason the dev versions are > Backtalk now is in order to have them available for display to docs > seekers. We could maybe just ditch Backtalk/STX altogether, but I'm not There's no need to move away from STX, and doing so at this point would be a nuissance. > sure what the alternative is. I do think the commenting features are > valuable, as much as they may be abused. I'll also note that the last > change made to the development docs was many months ago, and I'm not > sure that moving them into another system will improve that in any way. I've no objection what-so-ever to making the documents annotatable, though it's not clear to me that BackTalk is the right way to do it. The problems I see are: 1. General editing in the non-canonical location is bad, and misleading for potential contributors. This is especially true for occaisional contributors like me. 2. Being able to incrementally update from the maintained version without losing annotations seems necessary, unless we require that all annotations be handled or integrated by the time the update is performed. Such a requirement is not acceptable. I don't know if BackTalk can be used that way, or can be easily modified to do so. Given the synchonization issue, I'd gladly give up the annotations if the documents became easier to update, and have the updates actually make it to the published version (regardless of where that is). -Fred -- Fred L. Drake, Jr. Zope Corporation From pw_lists at slinkp.com Tue Jan 25 17:37:10 2005 From: pw_lists at slinkp.com (Paul Winkler) Date: Tue Jan 25 17:37:16 2005 Subject: [Zope] documentation defacement In-Reply-To: <1106690450.23980.1281.camel@athlon> References: <200501241747.18446.mike@infoleak.com> <9cee7ab8050124212343b07340@mail.gmail.com> <41F607B9.80401@simplistix.co.uk> <41F65BF4.9040203@zope.com> <1106664818.23980.1265.camel@athlon> <41F65E97.1000002@zope.com> <1106665630.23980.1271.camel@athlon> <20050125210646.GB26702@slinkp.com> <1106690450.23980.1281.camel@athlon> Message-ID: <20050125223710.GC26702@slinkp.com> On Tue, Jan 25, 2005 at 05:00:50PM -0500, Chris McDonough wrote: > On Tue, 2005-01-25 at 16:06, Paul Winkler wrote: > > Or use the sourceforge book project CVS. > > I tend to agree w/ Fred and Chris W that this would be > > better and, in the long run, easier. > > That'd be fine as well. The only real reason the dev versions are > Backtalk now is in order to have them available for display to docs > seekers. We could maybe just ditch Backtalk/STX altogether, but I'm not > sure what the alternative is. I do think the commenting features are > valuable, as much as they may be abused. My thought was that the cvs project would just contain stx files that we can upload as Backtalk chapters. This would mean we should figure out a workflow for the ZODB data and a release process for the CVS data that allows us to merge in both directions (i.e. merge zope.org comments to CVS in preparation for editing a chapter, and lock the zope.org version for a short period of time to allow getting the cvs stuff ready to deploy; then upload to zope.org and unlock it.) This is basically what we're already doing on an informal basis. I've had to search through the zope.org version of Appendix B a couple times, looking for comments added since I started work. And I have to manually keep track of when I last did this. > I'll also note that the last > change made to the development docs was many months ago, and I'm not > sure that moving them into another system will improve that in any way. You mean the dev guide? Yeah AFAIK nobody does much with it. -- Paul Winkler http://www.slinkp.com From tseaver at zope.com Tue Jan 25 17:41:21 2005 From: tseaver at zope.com (Tres Seaver) Date: Tue Jan 25 17:41:40 2005 Subject: [Zope] Re: documentation defacement In-Reply-To: <9cee7ab8050125143363ce4c0d@mail.gmail.com> References: <200501241747.18446.mike@infoleak.com> <9cee7ab8050124212343b07340@mail.gmail.com> <41F607B9.80401@simplistix.co.uk> <41F65BF4.9040203@zope.com> <1106664818.23980.1265.camel@athlon> <41F65E97.1000002@zope.com> <1106665630.23980.1271.camel@athlon> <20050125210646.GB26702@slinkp.com> <1106690450.23980.1281.camel@athlon> <9cee7ab8050125143363ce4c0d@mail.gmail.com> Message-ID: <41F6CB11.4000605@zope.com> Fred Drake wrote: > I've no objection what-so-ever to making the documents annotatable, > though it's not clear to me that BackTalk is the right way to do it. > The problems I see are: > > 1. General editing in the non-canonical location is bad, and > misleading for potential contributors. This is especially true for > occaisional contributors like me. Not being able to work in the "canonical" location at all kills the "ongoing contributor" pool, which is worse. > 2. Being able to incrementally update from the maintained version > without losing annotations seems necessary, unless we require that all > annotations be handled or integrated by the time the update is > performed. Such a requirement is not acceptable. > > I don't know if BackTalk can be used that way, or can be easily > modified to do so. > > Given the synchonization issue, I'd gladly give up the annotations if > the documents became easier to update, and have the updates actually > make it to the published version (regardless of where that is). The BackTalk version *is* the canonical version for Zope 2.7, so the synchronization issue doesn't exist. -1 to moving the project *anywhere* except to zope.org. -1 to moving it to zope.org until after its "author-hostile" problems get fixed. +1 to turning of annotations for the 2.6 version of the book on zope.org (any value there is long lost). Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From chrism at plope.com Tue Jan 25 18:56:58 2005 From: chrism at plope.com (Chris McDonough) Date: Tue Jan 25 18:57:00 2005 Subject: [Zope] documentation defacement In-Reply-To: <9cee7ab8050125143363ce4c0d@mail.gmail.com> References: <200501241747.18446.mike@infoleak.com> <9cee7ab8050124212343b07340@mail.gmail.com> <41F607B9.80401@simplistix.co.uk> <41F65BF4.9040203@zope.com> <1106664818.23980.1265.camel@athlon> <41F65E97.1000002@zope.com> <1106665630.23980.1271.camel@athlon> <20050125210646.GB26702@slinkp.com> <1106690450.23980.1281.camel@athlon> <9cee7ab8050125143363ce4c0d@mail.gmail.com> Message-ID: <1106697418.23980.1335.camel@athlon> On Tue, 2005-01-25 at 17:33, Fred Drake wrote: > 1. General editing in the non-canonical location is bad, and > misleading for potential contributors. This is especially true for > occaisional contributors like me. The canonical location is pretty broken ATM, however. At times, it can take several minutes to save a document. At least that was the case when we decided to move the development docs to plope.com. > 2. Being able to incrementally update from the maintained version > without losing annotations seems necessary, unless we require that all > annotations be handled or integrated by the time the update is > performed. Such a requirement is not acceptable. AFAIK, there is no incremental update to be done from the maintained version. There is only one maintained version of the 2.7 book at the moment, and that's on plope.com. The 2.6 version is no longer maintained. > I don't know if BackTalk can be used that way, or can be easily > modified to do so. > > Given the synchonization issue, I'd gladly give up the annotations if > the documents became easier to update, and have the updates actually > make it to the published version (regardless of where that is). I'm not sure there is a synchronization issue. There's definitely a locking issue... not allowing people to step on each others' changes. But this is currently handled manually (via the maintenance signup process) as well as via DAV locking. The 2.6 book commenting feature should be turned off now that the 2.7 book is in development. That it hasn't been is an oversight. When the 2.7 version is finished, it should accept comments (it currently doesnt). All that said, I'm happy to do whatever everybody else wants to do. I understand that not everyone is a fan of the commenting feature, although I do think it contributes immensely to the docs, especially during new version development. There is also a feature to turn *off* the comments on the viewed output but it appears that it's not "sticky" at the moment... it needs to be clicked for every page. Not sure why that is. That can be fixed, if it made any difference. - C From simon at joyful.com Tue Jan 25 19:11:14 2005 From: simon at joyful.com (Simon Michael) Date: Tue Jan 25 19:11:22 2005 Subject: [Zope] Re: documentation defacement In-Reply-To: <20050125223710.GC26702@slinkp.com> References: <200501241747.18446.mike@infoleak.com> <9cee7ab8050124212343b07340@mail.gmail.com> <41F607B9.80401@simplistix.co.uk> <41F65BF4.9040203@zope.com> <1106664818.23980.1265.camel@athlon> <41F65E97.1000002@zope.com> <1106665630.23980.1271.camel@athlon> <20050125210646.GB26702@slinkp.com> <1106690450.23980.1281.camel@athlon> <20050125223710.GC26702@slinkp.com> Message-ID: Please god not another intermittently-available sourceforge CVS project.. we have a zope.org SVN repo, no ? I don't have a real answer to this problem, but I can tell you what the energetic ubuntu folks are doing just now. They started with a wiki (moin, then zwiki; imagine your-rapid-web-based-tool-of-choice here). The wiki was and is the primary place for making quick notes, gathering and organizing input from the wide user community with minimal hassle (after irc and the mail lists). Now they are working on some more formal docs in SVN using docbook, xml include features etc, which can generate multiple output formats. For these they harvest the wiki content (and eg 3rd party docs like ubuntuguide.org). From simon at joyful.com Tue Jan 25 19:13:34 2005 From: simon at joyful.com (Simon Michael) Date: Tue Jan 25 19:23:04 2005 Subject: [Zope] Re: documentation defacement In-Reply-To: References: <200501241747.18446.mike@infoleak.com> <9cee7ab8050124212343b07340@mail.gmail.com> <41F607B9.80401@simplistix.co.uk> <41F65BF4.9040203@zope.com> <1106664818.23980.1265.camel@athlon> <41F65E97.1000002@zope.com> <1106665630.23980.1271.camel@athlon> <20050125210646.GB26702@slinkp.com> <1106690450.23980.1281.camel@athlon> <20050125223710.GC26702@slinkp.com> Message-ID: PS so, for anyone thinking about whether SVN/docbook might be the way to go, the ubuntu-doc archives are worth reading. From reuven at lerner.co.il Tue Jan 25 20:42:21 2005 From: reuven at lerner.co.il (Reuven M. Lerner) Date: Tue Jan 25 20:58:14 2005 Subject: [Zope] Using pychart from a Zope product Message-ID: <41F6F57D.1030202@lerner.co.il> Hi, everyone. I'm developing a Zope application that needs to do simple line-charts, and PyChart looks like a good solution to my problems. I was able to install PyChart without any trouble, and I also ran the command-line tests without any problems. But when I stick an example into a Zope product and invoke it, I get nothing -- not an error message, not an output chart, not a security violation of some sort... nothing at all. I know that PyChart is being invoked, because I can force an error by invoking theme.get_options(), which throws an error due to the lack of command-line options. I see from the various Zope mailing lists that people are using PyChart, and I have a feeling that I'm missing something obvious. But if someone has an idea regarding what I should be doing in order to get PyChart to work, I would greatly appreciate it. Thanks! Reuven From fdrake at gmail.com Tue Jan 25 21:14:33 2005 From: fdrake at gmail.com (Fred Drake) Date: Tue Jan 25 21:14:46 2005 Subject: [Zope] Re: documentation defacement In-Reply-To: References: <200501241747.18446.mike@infoleak.com> <41F65BF4.9040203@zope.com> <1106664818.23980.1265.camel@athlon> <41F65E97.1000002@zope.com> <1106665630.23980.1271.camel@athlon> <20050125210646.GB26702@slinkp.com> <1106690450.23980.1281.camel@athlon> <20050125223710.GC26702@slinkp.com> Message-ID: <9cee7ab805012518143e845a17@mail.gmail.com> On Tue, 25 Jan 2005 16:13:34 -0800, Simon Michael wrote: > PS so, for anyone thinking about whether SVN/docbook might be the way to > go, the ubuntu-doc archives are worth reading. More specific pointers would be quite helpful. -Fred -- Fred L. Drake, Jr. Zope Corporation From chouchen at 126.com Wed Jan 26 03:25:46 2005 From: chouchen at 126.com (=?gb2312?B?Y2hvdWNoZW4=?=) Date: Wed Jan 26 03:26:23 2005 Subject: [Zope] Is there a bug in x86_64 platform related with zope 2.7.4. Message-ID: <41F7540A.000082.21622@m65.126.com> Hi, all, I managed to install zope2.7.4 in AMD system, but it doesn't work: config: fedora 3 python 2.3.4 zope 2.7.4 gcc gcc-3.4.2-6.fc3 for x86_64 the error message was when I do make as below: AccessControl/cAccessControl.c:2272: warning: data definition has no type or storage class AccessControl/cAccessControl.c:2272: error: syntax error before "if" AccessControl/cAccessControl.c:2272: warning: parameter names (without types) in function declaration AccessControl/cAccessControl.c:2272: warning: data definition has no type or storage class AccessControl/cAccessControl.c:2272: error: conflicting types for 'AcquisitionCAPI' /home/zhouzhen/software/cms/zope/zope27/lib/Components/ExtensionClass/src/Acquisition.h:44: error: previous definition of 'AcquisitionCAPI' was here AccessControl/cAccessControl.c:2272: error: initializer element is not constant AccessControl/cAccessControl.c:2272: warning: data definition has no type or storage class AccessControl/cAccessControl.c:2272: warning: parameter names (without types) in function declaration AccessControl/cAccessControl.c:2272: warning: data definition has no type or storage class AccessControl/cAccessControl.c:2272: error: syntax error before '}' token AccessControl/cAccessControl.c:2275: error: initializer element is not constant AccessControl/cAccessControl.c:2275: warning: data definition has no type or storage class AccessControl/cAccessControl.c:2277: error: syntax error before string constant AccessControl/cAccessControl.c:2278: warning: data definition has no type or storage class AccessControl/cAccessControl.c:2295: error: conflicting types for 'imPermissionRoleObj' AccessControl/cAccessControl.c:659: error: previous definition of 'imPermissionRoleObj' was here AccessControl/cAccessControl.c:2296: error: initializer element is not constant AccessControl/cAccessControl.c:2296: warning: data definition has no type or storage class AccessControl/cAccessControl.c:2298: error: conflicting types for 'aq_validate' AccessControl/cAccessControl.c:674: error: previous definition of 'aq_validate' was here AccessControl/cAccessControl.c:2298: error: initializer element is not constant AccessControl/cAccessControl.c:2298: warning: data definition has no type or storage class AccessControl/cAccessControl.c:2303: error: syntax error before "if" AccessControl/cAccessControl.c:2306: warning: parameter names (without types) in function declaration AccessControl/cAccessControl.c:2306: warning: data definition has no type or storage class AccessControl/cAccessControl.c:2307: error: redefinition of 'module' AccessControl/cAccessControl.c:2268: error: previous definition of 'module' was here AccessControl/cAccessControl.c:2307: warning: initialization makes integer from pointer without a cast AccessControl/cAccessControl.c:2307: warning: data definition has no type or storage class AccessControl/cAccessControl.c:2312: error: syntax error before "if" AccessControl/cAccessControl.c:2314: warning: parameter names (without types) in function declaration AccessControl/cAccessControl.c:2314: warning: data definition has no type or storage class AccessControl/cAccessControl.c:2315: error: redefinition of 'module' AccessControl/cAccessControl.c:2307: error: previous definition of 'module' was here AccessControl/cAccessControl.c:2315: error: redefinition of 'module' AccessControl/cAccessControl.c:2307: error: previous definition of 'module' was here AccessControl/cAccessControl.c:2315: warning: initialization makes integer from pointer without a cast AccessControl/cAccessControl.c:2315: warning: data definition has no type or storage class AccessControl/cAccessControl.c:2320: error: syntax error before "if" AccessControl/cAccessControl.c:2322: warning: parameter names (without types) in function declaration AccessControl/cAccessControl.c:2322: warning: data definition has no type or storage class AccessControl/cAccessControl.c:2323: error: redefinition of 'module' AccessControl/cAccessControl.c:2315: error: previous definition of 'module' was here AccessControl/cAccessControl.c:2323: error: redefinition of 'module' AccessControl/cAccessControl.c:2307: error: previous definition of 'module' was here AccessControl/cAccessControl.c:2323: warning: initialization makes integer from pointer without a cast AccessControl/cAccessControl.c:2323: warning: data definition has no type or storage class AccessControl/cAccessControl.c:2328: error: syntax error before "if" AccessControl/cAccessControl.c:2331: warning: parameter names (without types) in function declaration AccessControl/cAccessControl.c:2331: warning: data definition has no type or storage class AccessControl/cAccessControl.c:2332: error: redefinition of 'module' AccessControl/cAccessControl.c:2323: error: previous definition of 'module' was here AccessControl/cAccessControl.c:2332: error: redefinition of 'module' AccessControl/cAccessControl.c:2307: error: previous definition of 'module' was here AccessControl/cAccessControl.c:2332: warning: initialization makes integer from pointer without a cast AccessControl/cAccessControl.c:2332: warning: data definition has no type or storage class AccessControl/cAccessControl.c:2333: error: syntax error before '}' token error: command 'gcc' failed with exit status 1 make: *** [build] Error 1 TIA Zhou Zhen -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.zope.org/pipermail/zope/attachments/20050126/45774f44/attachment.htm From lists at andreas-jung.com Wed Jan 26 03:37:54 2005 From: lists at andreas-jung.com (Andreas Jung) Date: Wed Jan 26 03:38:06 2005 Subject: [Zope] Is there a bug in x86_64 platform related with zope 2.7.4. In-Reply-To: <41F7540A.000082.21622@m65.126.com> References: <41F7540A.000082.21622@m65.126.com> Message-ID: --On Mittwoch, 26. Januar 2005 16:25 Uhr +0800 "=?gb2312?B?Y2hvdWNoZW4=?=" wrote: > Hi, all, > I managed to install zope2.7.4 in AMD system, but it doesn't work: > config: > fedora 3 > python 2.3.4 > zope 2.7.4 > gcc gcc-3.4.2-6.fc3 for x86_64 > > the error message was when I do make as below: > > AccessControl/cAccessControl.c:2272: warning: data definition has no type > or storage class AccessControl/cAccessControl.c:2272: error: syntax error > before "if" AccessControl/cAccessControl.c:2272: warning: parameter names > (without types) in function declaration > AccessControl/cAccessControl.c:2272: warning: data definition has no type > or storage class AccessControl/cAccessControl.c:2272: error: conflicting > types for 'AcquisitionCAPI' > /home/zhouzhen/software/cms/zope/zope27/lib/Components/ExtensionClass/src > /Acquisition.h:44: error: previous definition of 'AcquisitionCAPI' was > here AccessControl/cAccessControl.c:2272: error: initializer element is > not constant AccessControl/cAccessControl.c:2272: warning: data > definition has no type or storage class > AccessControl/cAccessControl.c:2272: warning: parameter names (without > types) in function declaration AccessControl/cAccessControl.c:2272: > warning: data definition has no type or storage class > AccessControl/cAccessControl.c:2272: error: syntax error before '}' token > AccessControl/cAccessControl.c:2275: error: initializer element is not > constant AccessControl/cAccessControl.c:2275: warning: data definition > has no type or storage class AccessControl/cAccessControl.c:2277: error: > syntax error before string constant AccessControl/cAccessControl.c:2278: > warning: data definition has no type or storage class > AccessControl/cAccessControl.c:2295: error: conflicting types for > 'imPermissionRoleObj' AccessControl/cAccessControl.c:659: error: previous > definition of 'imPermissionRoleObj' was here > AccessControl/cAccessControl.c:2296: error: initializer element is not > constant AccessControl/cAccessControl.c:2296: warning: data definition > has no type or storage class AccessControl/cAccessControl.c:2298: error: > conflicting types for 'aq_validate' AccessControl/cAccessControl.c:674: > error: previous definition of 'aq_validate' was here > AccessControl/cAccessControl.c:2298: error: initializer element is not > constant AccessControl/cAccessControl.c:2298: warning: data definition > has no type or storage class AccessControl/cAccessControl.c:2303: error: > syntax error before "if" AccessControl/cAccessControl.c:2306: warning: > parameter names (without types) in function declaration > AccessControl/cAccessControl.c:2306: warning: data definition has no type > or storage class AccessControl/cAccessControl.c:2307: error: redefinition > of 'module' AccessControl/cAccessControl.c:2268: error: previous > definition of 'module' was here AccessControl/cAccessControl.c:2307: > warning: initialization makes integer from pointer without a cast > AccessControl/cAccessControl.c:2307: warning: data definition has no type > or storage class AccessControl/cAccessControl.c:2312: error: syntax error > before "if" AccessControl/cAccessControl.c:2314: warning: parameter names > (without types) in function declaration > AccessControl/cAccessControl.c:2314: warning: data definition has no type > or storage class AccessControl/cAccessControl.c:2315: error: redefinition > of 'module' AccessControl/cAccessControl.c:2307: error: previous > definition of 'module' was here AccessControl/cAccessControl.c:2315: > error: redefinition of 'module' AccessControl/cAccessControl.c:2307: > error: previous definition of 'module' was here > AccessControl/cAccessControl.c:2315: warning: initialization makes > integer from pointer without a cast AccessControl/cAccessControl.c:2315: > warning: data definition has no type or storage class > AccessControl/cAccessControl.c:2320: error: syntax error before "if" > AccessControl/cAccessControl.c:2322: warning: parameter names (without > types) in function declaration AccessControl/cAccessControl.c:2322: > warning: data definition has no type or storage class > AccessControl/cAccessControl.c:2323: error: redefinition of 'module' > AccessControl/cAccessControl.c:2315: error: previous definition of > 'module' was here AccessControl/cAccessControl.c:2323: error: > redefinition of 'module' AccessControl/cAccessControl.c:2307: error: > previous definition of 'module' was here > AccessControl/cAccessControl.c:2323: warning: initialization makes > integer from pointer without a cast AccessControl/cAccessControl.c:2323: > warning: data definition has no type or storage class > AccessControl/cAccessControl.c:2328: error: syntax error before "if" > AccessControl/cAccessControl.c:2331: warning: parameter names (without > types) in function declaration AccessControl/cAccessControl.c:2331: > warning: data definition has no type or storage class > AccessControl/cAccessControl.c:2332: error: redefinition of 'module' > AccessControl/cAccessControl.c:2323: error: previous definition of > 'module' was here AccessControl/cAccessControl.c:2332: error: > redefinition of 'module' AccessControl/cAccessControl.c:2307: error: > previous definition of 'module' was here > AccessControl/cAccessControl.c:2332: warning: initialization makes > integer from pointer without a cast AccessControl/cAccessControl.c:2332: > warning: data definition has no type or storage class > AccessControl/cAccessControl.c:2333: error: syntax error before '}' token > error: command 'gcc' failed with exit status 1 > make: *** [build] Error 1 Is this really the *full* traceback? Any headers missing? -aj From chris at simplistix.co.uk Wed Jan 26 04:52:36 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Wed Jan 26 04:52:44 2005 Subject: [Zope] documentation defacement In-Reply-To: <1106690450.23980.1281.camel@athlon> References: <200501241747.18446.mike@infoleak.com> <9cee7ab8050124212343b07340@mail.gmail.com> <41F607B9.80401@simplistix.co.uk> <41F65BF4.9040203@zope.com> <1106664818.23980.1265.camel@athlon> <41F65E97.1000002@zope.com> <1106665630.23980.1271.camel@athlon> <20050125210646.GB26702@slinkp.com> <1106690450.23980.1281.camel@athlon> Message-ID: <41F76864.8010404@simplistix.co.uk> Chris McDonough wrote: > That'd be fine as well. The only real reason the dev versions are > Backtalk now is in order to have them available for display to docs > seekers. We could maybe just ditch Backtalk/STX altogether, but I'm not > sure what the alternative is. I do think the commenting features are > valuable, as much as they may be abused. I agree, STX is fine, and comments are worthwhile provided there's a canonical place to update things crap comments can be weeded safely and good comments can be integrated back ASAP. The problem I see is that with a source repository, you'll forever be synching with the ZODB copy and worrying about comments. Years ago, I dreamed of something ViewCVS-ish that could render stuff instead of just checking it out, that way anyone could instantly view and comment on any branch and usual version control practices could be used to control what changes happen and where. Sadly, I don't think anyone has the time to develop such a beast ;-) So, I reckon we should stick with the current software, and do work in one canonical place. Although I do have some feature requests: - make that f'ing comments button stick, and be off by default ;-) - add a check box per chapter that lets an Editor lock a chapter for editing. This is a shroter term thn the chapter signup on Plope.org and just lets you lock the chapter so only you can edit, while you're editing. Anyone leaving a chapter in a locked state at any other time should be neutered... > I'll also note that the last > change made to the development docs was many months ago, and I'm not > sure that moving them into another system will improve that in any way. Which development docs are you referring to? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From chris at simplistix.co.uk Wed Jan 26 04:54:43 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Wed Jan 26 04:54:45 2005 Subject: [Zope] Re: documentation defacement In-Reply-To: <41F6CB11.4000605@zope.com> References: <200501241747.18446.mike@infoleak.com> <9cee7ab8050124212343b07340@mail.gmail.com> <41F607B9.80401@simplistix.co.uk> <41F65BF4.9040203@zope.com> <1106664818.23980.1265.camel@athlon> <41F65E97.1000002@zope.com> <1106665630.23980.1271.camel@athlon> <20050125210646.GB26702@slinkp.com> <1106690450.23980.1281.camel@athlon> <9cee7ab8050125143363ce4c0d@mail.gmail.com> <41F6CB11.4000605@zope.com> Message-ID: <41F768E3.80603@simplistix.co.uk> Tres Seaver wrote: > > The BackTalk version *is* the canonical version for Zope 2.7, so the > synchronization issue doesn't exist. Which backtalk version though? The one on Plone.com or the one on Zope.org? > -1 to moving the project *anywhere* except to zope.org. Agreed, after reading this thread. Sourceforge won't help here without more development work than is likely to happen. > -1 to moving it to zope.org until after its "author-hostile" problems > get fixed. Does this mean "officially" making Plope.com canonical until zope.org is ready? > +1 to turning of annotations for the 2.6 version of the book on zope.org > (any value there is long lost). If someone tells me how, I'll get on and do it... cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From gtesseris at ebox.gr Wed Jan 26 05:36:18 2005 From: gtesseris at ebox.gr (George Tesseris) Date: Wed Jan 26 05:33:54 2005 Subject: [Zope] Passing parameters Message-ID: <41F772A2.9020405@ebox.gr> Is there a way to pass parameters to a dtml method from within another dtml method? thx in advance! From mihalop at VTrip.NET Wed Jan 26 06:08:08 2005 From: mihalop at VTrip.NET (Vangelis Mihalopoulos) Date: Wed Jan 26 06:08:29 2005 Subject: [Zope] Passing parameters In-Reply-To: <41F772A2.9020405@ebox.gr> References: <41F772A2.9020405@ebox.gr> Message-ID: <41F77A18.2000703@vtrip.net> George Tesseris wrote: > Is there a way to pass parameters to a dtml method from within another > dtml method? > thx in advance! Yes, 1) you can use a python expression when calling, like: calling DTML method (test1): called DTML method (test2): this is a 2)you can set a parameter in the REQUEST, which is global, but i wouldn't do it From florian_reiser at gmx.de Wed Jan 26 07:18:29 2005 From: florian_reiser at gmx.de (Florian Reiser) Date: Wed Jan 26 07:18:38 2005 Subject: [Zope] Generating editable grid with Zope2.6/ZopeX3? Message-ID: <16054.1106741909@www57.gmx.net> Hello, I want to generate an editable grid with Zope (2.6 or X3). E.g. Field 1 | Field 2| Field 3 -------------------------- Id 1 | Edit 2 | Edit 3 Id 2 | Edit 2 | Edit 3 Id 3 | Edit 2 | Edit 3 . . . I've already looked into Formulator for Zope 2.6, but this product doesn't seem to be able to render :records objects. Is it possible to render such a form with zope? Manual alignment is ok, but I would like to use the input validation mechanisms that are provided by Formulator or ZopeX3. Regards Florian -- Sparen beginnt mit GMX DSL: http://www.gmx.net/de/go/dsl From johanc at easypublisher.com Wed Jan 26 09:55:29 2005 From: johanc at easypublisher.com (Johan Carlsson) Date: Wed Jan 26 09:54:04 2005 Subject: [Zope] Generating editable grid with Zope2.6/ZopeX3? In-Reply-To: <16054.1106741909@www57.gmx.net> References: <16054.1106741909@www57.gmx.net> Message-ID: <41F7AF61.9060306@easypublisher.com> Florian Reiser wrote: > Hello, > > I want to generate an editable grid with Zope (2.6 or X3). > E.g. > > Field 1 | Field 2| Field 3 > -------------------------- > Id 1 | Edit 2 | Edit 3 > Id 2 | Edit 2 | Edit 3 > Id 3 | Edit 2 | Edit 3 > . > . > . > > I've already looked into Formulator for Zope 2.6, but this product doesn't > seem to be able to render :records objects. > > Is it possible to render such a form with zope? > > Manual alignment is ok, but I would like to use the input validation > mechanisms that are provided by Formulator or ZopeX3. In pure-zope (non-cmf-ish) you could very well use Formulator but you would need to provide a custom layout template (or at least you needed that when I last used formulator). If you find a better solution, let me know ;-) -- Johan Carlsson Tel: + 46 8 31 24 94 Colliberty Mob: + 46 70 558 25 24 Torsgatan 72 Email: johanc@easypublisher.com SE-113 37 STOCKHOLM From alex at nexedi.com Wed Jan 26 09:59:44 2005 From: alex at nexedi.com (Alexandre Boeglin) Date: Wed Jan 26 09:59:42 2005 Subject: [Zope] Generating editable grid with Zope2.6/ZopeX3? In-Reply-To: <16054.1106741909@www57.gmx.net> References: <16054.1106741909@www57.gmx.net> Message-ID: <200501261459.44324.alex@nexedi.com> Le mercredi 26 Janvier 2005 12:18, Florian Reiser a ?crit?: > I want to generate an editable grid with Zope (2.6 or X3). > E.g. > > Field 1 | Field 2| Field 3 > -------------------------- > Id 1 | Edit 2 | Edit 3 > Id 2 | Edit 2 | Edit 3 > Id 3 | Edit 2 | Edit 3 Hello, you can have a look at ERP5Form.ListBox which just does this, on http://cvs.erp5.org/ . Regards, Alex. From jgentry at jimmy.harvard.edu Wed Jan 26 11:07:01 2005 From: jgentry at jimmy.harvard.edu (Jeff Gentry) Date: Wed Jan 26 11:05:20 2005 Subject: [Zope] Problem with Product example in 2.7 manual Message-ID: Hello ... I've been following the Product creation example in the 2.7 Zope manual (at http://www.plope.com/Books/2_7Edition/CustomZopeObjects.stx). The very first portion has one create a trivial product which can be selected to add via 'Hello' and thus call the 'hello' method from earlier in the example. However, when I go to add this product, I get the login dialog constantly (yet I am already logged in) and if I hit 'cancel' to avoid it get the error: Error Type: Unauthorized Error Value: You are not allowed to access 'title_or_id' in this context Note that I have a stock/brand new zope instance that I'm working on and have not edited the permissions from the defaults in any way. Is there some permission change that I need to make for this to work? Thanks -J From pw_lists at slinkp.com Wed Jan 26 12:46:49 2005 From: pw_lists at slinkp.com (Paul Winkler) Date: Wed Jan 26 12:47:00 2005 Subject: [Zope] Re: documentation defacement In-Reply-To: <9cee7ab805012515135d2b586b@mail.gmail.com> References: <41F607B9.80401@simplistix.co.uk> <41F65BF4.9040203@zope.com> <1106664818.23980.1265.camel@athlon> <41F65E97.1000002@zope.com> <1106665630.23980.1271.camel@athlon> <20050125210646.GB26702@slinkp.com> <1106690450.23980.1281.camel@athlon> <9cee7ab8050125143363ce4c0d@mail.gmail.com> <41F6CB11.4000605@zope.com> <9cee7ab805012515135d2b586b@mail.gmail.com> Message-ID: <20050126174649.GF2210@slinkp.com> On Tue, Jan 25, 2005 at 06:13:01PM -0500, Fred Drake wrote: > On Tue, 25 Jan 2005 17:41:21 -0500, Tres Seaver wrote: > > The BackTalk version *is* the canonical version for Zope 2.7, so the > > synchronization issue doesn't exist. > > The catch seems to be that there's more than one BackTalk version. > One's on zope.org, and that's what I worked on. As if any more evidence were needed that the current situation is untenable, I just attempted to figure out what Fred changed. The diff between the zope.org version and the plope.com version, according to diff -b -B, is now over 6203 lines long. There is no way in hell I'm going to sort that out. It feels too much like Fred and I are being punished for trying to help out. -- Paul Winkler http://www.slinkp.com From fdrake at gmail.com Wed Jan 26 12:54:02 2005 From: fdrake at gmail.com (Fred Drake) Date: Wed Jan 26 12:54:11 2005 Subject: [Zope] Re: documentation defacement In-Reply-To: <20050126174649.GF2210@slinkp.com> References: <41F607B9.80401@simplistix.co.uk> <1106664818.23980.1265.camel@athlon> <41F65E97.1000002@zope.com> <1106665630.23980.1271.camel@athlon> <20050125210646.GB26702@slinkp.com> <1106690450.23980.1281.camel@athlon> <9cee7ab8050125143363ce4c0d@mail.gmail.com> <41F6CB11.4000605@zope.com> <9cee7ab805012515135d2b586b@mail.gmail.com> <20050126174649.GF2210@slinkp.com> Message-ID: <9cee7ab805012609543ac9e5d0@mail.gmail.com> On Wed, 26 Jan 2005 12:46:49 -0500, Paul Winkler wrote: > It feels too much like Fred and I are being punished for trying to help out. Ding, ding, ding! You've rung the bell on that one. -Fred -- Fred L. Drake, Jr. Zope Corporation From chrism at plope.com Wed Jan 26 13:06:50 2005 From: chrism at plope.com (Chris McDonough) Date: Wed Jan 26 13:06:52 2005 Subject: [Zope] Re: documentation defacement In-Reply-To: <20050126174649.GF2210@slinkp.com> References: <41F607B9.80401@simplistix.co.uk> <41F65BF4.9040203@zope.com> <1106664818.23980.1265.camel@athlon> <41F65E97.1000002@zope.com> <1106665630.23980.1271.camel@athlon> <20050125210646.GB26702@slinkp.com> <1106690450.23980.1281.camel@athlon> <9cee7ab8050125143363ce4c0d@mail.gmail.com> <41F6CB11.4000605@zope.com> <9cee7ab805012515135d2b586b@mail.gmail.com> <20050126174649.GF2210@slinkp.com> Message-ID: <1106762810.2975.107.camel@athlon> On Wed, 2005-01-26 at 12:46, Paul Winkler wrote: > On Tue, Jan 25, 2005 at 06:13:01PM -0500, Fred Drake wrote: > > On Tue, 25 Jan 2005 17:41:21 -0500, Tres Seaver wrote: > > > The BackTalk version *is* the canonical version for Zope 2.7, so the > > > synchronization issue doesn't exist. > > > > The catch seems to be that there's more than one BackTalk version. > > One's on zope.org, and that's what I worked on. > > As if any more evidence were needed that the current situation > is untenable, I just attempted to figure out what Fred changed. > The diff between the zope.org version and the plope.com version, > according to diff -b -B, is now over 6203 lines long. > There is no way in hell I'm going to sort that out. > > It feels too much like Fred and I are being punished for trying to help out. I'm fine with any other solution. I don't really have a problem with the current one, but if it makes things easier for all involved, I'll get behind whatever folks come up with. - C From simon at joyful.com Wed Jan 26 13:10:07 2005 From: simon at joyful.com (Simon Michael) Date: Wed Jan 26 13:10:22 2005 Subject: [Zope] Re: documentation defacement In-Reply-To: <9cee7ab805012518143e845a17@mail.gmail.com> References: <200501241747.18446.mike@infoleak.com> <41F65BF4.9040203@zope.com> <1106664818.23980.1265.camel@athlon> <41F65E97.1000002@zope.com> <1106665630.23980.1271.camel@athlon> <20050125210646.GB26702@slinkp.com> <1106690450.23980.1281.camel@athlon> <20050125223710.GC26702@slinkp.com> <9cee7ab805012518143e845a17@mail.gmail.com> Message-ID: Fred Drake wrote: > More specific pointers would be quite helpful. http://news.gmane.org/gmane.linux.ubuntu.doc I can't really point to specific messages, there's too much going on - but a good way to find things of interest might be to point thunderbird at nntp://news.gmane.org/gmane.linux.ubuntu.doc and filter on "ubuntu-doc report". From andrew at zope.com Wed Jan 26 13:11:10 2005 From: andrew at zope.com (Andrew Sawyers) Date: Wed Jan 26 13:11:06 2005 Subject: [Zope] Re: documentation defacement In-Reply-To: <20050126174649.GF2210@slinkp.com> References: <41F607B9.80401@simplistix.co.uk> <41F65BF4.9040203@zope.com> <1106664818.23980.1265.camel@athlon> <41F65E97.1000002@zope.com> <1106665630.23980.1271.camel@athlon> <20050125210646.GB26702@slinkp.com> <1106690450.23980.1281.camel@athlon> <9cee7ab8050125143363ce4c0d@mail.gmail.com> <41F6CB11.4000605@zope.com> <9cee7ab805012515135d2b586b@mail.gmail.com> <20050126174649.GF2210@slinkp.com> Message-ID: <41F7DD3E.20002@zope.com> Paul Winkler wrote: > > It feels too much like Fred and I are being punished for trying to help out. > Not a chance. We're talking locally about how to approach this. I think the interest and 'noise' is going to equal the *right thing* being done. Andrew -- Zope Managed Hosting Systems Administrator/Software Engineer Zope Corporation (540) 361-1700 From pw_lists at slinkp.com Wed Jan 26 13:18:56 2005 From: pw_lists at slinkp.com (Paul Winkler) Date: Wed Jan 26 13:18:59 2005 Subject: [Zope] Re: documentation defacement In-Reply-To: <41F7DD3E.20002@zope.com> References: <1106664818.23980.1265.camel@athlon> <41F65E97.1000002@zope.com> <1106665630.23980.1271.camel@athlon> <20050125210646.GB26702@slinkp.com> <1106690450.23980.1281.camel@athlon> <9cee7ab8050125143363ce4c0d@mail.gmail.com> <41F6CB11.4000605@zope.com> <9cee7ab805012515135d2b586b@mail.gmail.com> <20050126174649.GF2210@slinkp.com> <41F7DD3E.20002@zope.com> Message-ID: <20050126181856.GH2210@slinkp.com> On Wed, Jan 26, 2005 at 01:11:10PM -0500, Andrew Sawyers wrote: > Paul Winkler wrote: > > > > >It feels too much like Fred and I are being punished for trying to help > >out. > > > Not a chance. Just to clarify - I don't mean by the people here, I mean punished by the current lack of process. > We're talking locally about how to approach this. I > think the interest and 'noise' is going to equal the *right thing* being > done. w00t. -- Paul Winkler http://www.slinkp.com From andrew at zope.com Wed Jan 26 13:24:01 2005 From: andrew at zope.com (Andrew Sawyers) Date: Wed Jan 26 13:23:49 2005 Subject: [Zope] Re: documentation defacement In-Reply-To: <20050126181856.GH2210@slinkp.com> References: <1106664818.23980.1265.camel@athlon> <41F65E97.1000002@zope.com> <1106665630.23980.1271.camel@athlon> <20050125210646.GB26702@slinkp.com> <1106690450.23980.1281.camel@athlon> <9cee7ab8050125143363ce4c0d@mail.gmail.com> <41F6CB11.4000605@zope.com> <9cee7ab805012515135d2b586b@mail.gmail.com> <20050126174649.GF2210@slinkp.com> <41F7DD3E.20002@zope.com> <20050126181856.GH2210@slinkp.com> Message-ID: <41F7E041.5070906@zope.com> Paul Winkler wrote: > On Wed, Jan 26, 2005 at 01:11:10PM -0500, Andrew Sawyers wrote: > >>Paul Winkler wrote: >> >> >>>It feels too much like Fred and I are being punished for trying to help >>>out. >>> >> >>Not a chance. > > > Just to clarify - I don't mean by the people here, I mean punished > by the current lack of process. Well, you might have been; I personally want to make sure it doesn't happen again. > > >>We're talking locally about how to approach this. I >>think the interest and 'noise' is going to equal the *right thing* being >>done. > > > w00t. > A -- Zope Managed Hosting Systems Administrator/Software Engineer Zope Corporation (540) 361-1700 From remypinsonnault at gmail.com Wed Jan 26 13:57:06 2005 From: remypinsonnault at gmail.com (Remy Pinsonnault) Date: Wed Jan 26 13:57:18 2005 Subject: [Zope] Generating editable grid with Zope2.6/ZopeX3? In-Reply-To: <200501261459.44324.alex@nexedi.com> References: <16054.1106741909@www57.gmx.net> <200501261459.44324.alex@nexedi.com> Message-ID: <30cf185f05012610577e80f6a2@mail.gmail.com> Also take a look at ZNOLK SQL WIZARD: http://www.bluedynamics.org/products/znolk On Wed, 26 Jan 2005 14:59:44 +0000, Alexandre Boeglin wrote: > Le mercredi 26 Janvier 2005 12:18, Florian Reiser a ?crit : > > I want to generate an editable grid with Zope (2.6 or X3). > > E.g. > > > > Field 1 | Field 2| Field 3 > > -------------------------- > > Id 1 | Edit 2 | Edit 3 > > Id 2 | Edit 2 | Edit 3 > > Id 3 | Edit 2 | Edit 3 > > Hello, you can have a look at ERP5Form.ListBox which just does this, on > http://cvs.erp5.org/ . > > Regards, > Alex. > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) > From dieter at handshake.de Wed Jan 26 13:48:57 2005 From: dieter at handshake.de (Dieter Maurer) Date: Wed Jan 26 13:58:39 2005 Subject: [Zope] Passing parameters In-Reply-To: <41F77A18.2000703@vtrip.net> References: <41F772A2.9020405@ebox.gr> <41F77A18.2000703@vtrip.net> Message-ID: <16887.58905.971931.40456@gargle.gargle.HOWL> Vangelis Mihalopoulos wrote at 2005-1-26 13:08 +0200: >George Tesseris wrote: > >> Is there a way to pass parameters to a dtml method from within another >> dtml method? >> thx in advance! > > >Yes, > >1) you can use a python expression when calling, like: >calling DTML method (test1): > Be warned. You will loose the DTML namespace with this. For details, please read "Calling DTML Objects" in >called DTML method (test2): > this is a > >2)you can set a parameter in the REQUEST, which is global, but i >wouldn't do it 3) Usually (when you call DTML objects correctly), the DTML namespace is global. I.e. any variable in the DTML namespace visible at the calling point is visible inside the called DTML object. -- Dieter From dieter at handshake.de Wed Jan 26 13:43:35 2005 From: dieter at handshake.de (Dieter Maurer) Date: Wed Jan 26 13:58:46 2005 Subject: [Zope] Using pychart from a Zope product In-Reply-To: <41F6F57D.1030202@lerner.co.il> References: <41F6F57D.1030202@lerner.co.il> Message-ID: <16887.58583.35741.944049@gargle.gargle.HOWL> Reuven M. Lerner wrote at 2005-1-25 19:42 -0600: > .. >But when I stick an example >into a Zope product and invoke it, I get nothing -- not an error >message, not an output chart, not a security violation of some sort... >nothing at all. > ... >I see from the various Zope mailing lists that people are using PyChart, >and I have a feeling that I'm missing something obvious. You are missing that we need your piece of code that interfaces "PyChart" with Zope. How do you pass the result of "PyChart" back to Zope/ZPublisher? Without this information, we (at least I) cannot help you. -- Dieter From reuven at lerner.co.il Wed Jan 26 14:37:12 2005 From: reuven at lerner.co.il (Reuven M. Lerner) Date: Wed Jan 26 14:37:18 2005 Subject: [Zope] Using pychart from a Zope product In-Reply-To: <16887.58583.35741.944049@gargle.gargle.HOWL> References: <41F6F57D.1030202@lerner.co.il> <16887.58583.35741.944049@gargle.gargle.HOWL> Message-ID: <41F7F168.3080903@lerner.co.il> Hi, Dieter. You wrote: >You are missing that we need your piece of code that interfaces >"PyChart" with Zope. How do you pass the result of "PyChart" >back to Zope/ZPublisher? > > > For now, I just wanted to save the resulting chart to disk, just to see if the darned thing would produce any output. My next question was going to be if there's a more intelligent way to integrate PyChart with Zope than saving charts to a directory that's exposed to the outside world via the Web. The following is the method that I wrote in my Zope product, taken almost 100 percent from one of the demos that came with PyChart: def return_basic_chart(self, REQUEST): "Return a basic chart" can = canvas.init("/tmp/chart.pdf") # We have 10 sample points total. The first value in each tuple is # the X value, and subsequent values are Y values for different lines. data = [(10, 20, 30), (20, 65, 33), (30, 55, 30), (40, 45, 51), (50, 25, 27), (60, 75, 30), (70, 80, 42), (80, 62, 32), (90, 42, 39), (100, 32, 39)] # The format attribute specifies the text to be drawn at each tick mark. # Here, texts are rotated -60 degrees ("/a-60"), left-aligned ("/hL"), # and numbers are printed as integers ("%d"). xaxis = axis.X(format="/a-60/hL%d", tic_interval = 20, label="Stuff") yaxis = axis.Y(tic_interval = 20, label="Value") # Define the drawing area. "y_range=(0,None)" tells that the Y minimum # is 0, but the Y maximum is to be computed automatically. Without # y_ranges, Pychart will pick the minimum Y value among the samples, # i.e., 20, as the base value of Y axis. ar = area.T(x_axis=xaxis, y_axis=yaxis, y_range=(0,None)) # The first plot extracts Y values from the 2nd column # ("ycol=1") of DATA ("data=data"). X values are takes from the first # column, which is the default. plot = line_plot.T(label="foo", data=data, ycol=1, tick_mark=tick_mark.star) plot2 = line_plot.T(label="bar", data=data, ycol=2, tick_mark=tick_mark.square) ar.add_plot(plot, plot2) # The call to ar.draw() usually comes at the end of a program. It # draws the axes, the plots, and the legend (if any). ar.draw(can) return "drawn" As I wrote in my previous note, the above code executes without any errors. And I get the plain-text "drawn" in my Web browser when I go to the /return_basic_chart method via the browser. But no chart is actually generated on disk, so far as I can tell. If there's a better/smarter way to take PyChart output and display it via Zope, I'm all in favor. And indeed, that's my eventual goal. But right now, I'm concerned that I have a problem whose cause isn't obvious, but which might be indicative of something else. Thanks again, Reuven > > From andre.duque at varig.com Wed Jan 26 14:59:31 2005 From: andre.duque at varig.com (=?ISO-8859-1?Q?Andr=E9_Amram_Duque?=) Date: Wed Jan 26 15:01:29 2005 Subject: [Zope] Problem with product MultilingualWorkflow Message-ID: <41F7F6A3.2000800@varig.com> Somebody already had the problem in the instalation of the product MultiLingualWorkFlow, the following message when Zope App Server was loading >>MESSAGE: OSError: [Errno 2] No such file or directory: '/home/aaduque/zope_amsterdam/Products/MultilingualWorkflow/skins' Regards, -- Andre Amram Duque Analista de Sistemas VARIG Brazilian Airlines - RIONS GGTI - Gerencia Geral de Tecnologia da Informac??o Tel.: + 55-0XX-21-3814-5920 Fax:: + 55-0XX-21-3814-5796 e-mail: andre.duque@varig.com From polar_ninja at yahoo.com Wed Jan 26 17:12:28 2005 From: polar_ninja at yahoo.com (iroro) Date: Wed Jan 26 17:12:59 2005 Subject: [Zope] ZODB storage errors ...Surrogate instance has no attribute Message-ID: <20050126221228.51892.qmail@web30503.mail.mud.yahoo.com> ---- Andy Dustman wrote: > > On Mon, 24 Jan 2005 19:06:24 -0800 (PST), iroro wrote: > > > --- ------ > > > > 2005-01-24T01:00:33 ERROR(200) ZODB A storage error occured during object abort. This shouldn't happen. > > Traceback (innermost last): > > File /var/local/zope-2.6.4/lib/python/ZODB/Transaction.py, line 401, in _commit_error > > File /var/local/zope-2.6.4/lib/python/Shared/DC/ZRDB/TM.py, line 60, in abort > > File /var/local/zope/lib/python/Products/ZMySQLDA/db.py, line 405, in _abort > > This is almost certainly due to trying to use non-transactional > tables. Are you using MySQL with transactions enabled, and are your > table types MyISAM or BDB or InnoDB? The latter two support > transactions, and as a practical matter, you need transactions to work > properly with Zope. Hi Andy, thanks for the recommendation!! I did indeed have 4 tables that were MyISAM rather than InnoDB. So I did an ALTER TABLE TYPE=3Dinnodb; on all of the tables in question. However, I'm still getting these errors in my event log. Do I need to restart Zope, the database or refesh anything else ? also, the reason why I'm interested in this bug is that every couple of days, after seeing this storage error msg, Zope hangs, in the log files the hang is always associated with this error msg: "AttributeError: Surrogate instance has no attribute '_p_oid'" which i figured out is this bug. http://collector.zope.org/Zope/852, but the resolution is not clear. does anyone have any more light to shed on these ? thanks a lot, iroro Zope 2.6.4 (binary release, python 2.1, linux2-x86) Python 2.1.3, linux2) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca From farcepest at gmail.com Wed Jan 26 17:42:12 2005 From: farcepest at gmail.com (Andy Dustman) Date: Wed Jan 26 17:42:21 2005 Subject: [Zope] ZODB storage errors ...during object abort In-Reply-To: <200501262129.QAA26990@swiftsure.cnchost.com> References: <200501250306.WAA24475@courageux.cnchost.com> <200501262129.QAA26990@swiftsure.cnchost.com> Message-ID: <9826f3800501261442c7c5f4c@mail.gmail.com> On Wed, 26 Jan 2005 13:29:33 -0800 (PST), iroro wrote: > thanks for the recommendation!! I did indeed have 4 tables that were > MyISAM rather than InnoDB. So I did an ALTER TABLE > TYPE=innodb; on all of the tables in question. However, I'm still getting these errors in my event log. Do I need to restart Zope, the database or refesh anything else ? Two other things: There is a flag that can be added to the connection string which manually enables or disables transactions; without flags, transactions are enabled if supported by the server, i.e. it has support for InnoDB (and not whether or not your tables are InnoDB, because it can't detect that). If you have something like that in your connection string, remove it; IIRC, it's + or - in front of the database name. It's a ZMySQLDA extension, so it won't work on other DAs. The other one should not affect you: MySQLdb-0.9.2 has issues with Python-2.2 or newer that affect Zope specifically (the infamous "server_capabilities" error). Newer versions (1.0 and 1.1 series) don't have this problem, but you appear to be using Python-2.1.3, so this should not be an issue. If it were, the product wouldn't work at all, unless you patched it manually to avoid the check, and since have forgotten about it. Please try ZMySQLDA-2.0.9b2 with MySQLdb-1.1.9. -- Computer interfaces should never be made of meat. Using GMail? Setting Reply-to address to <> disables this annoying feature. From mwilliams at haywood.k12.nc.us Wed Jan 26 20:32:11 2005 From: mwilliams at haywood.k12.nc.us (Michael Williams) Date: Wed Jan 26 19:43:19 2005 Subject: [Zope] zopectlsocket dies Message-ID: <37125.10.20.1.6.1106789531.squirrel@10.20.1.6> My plone site died today and I can't get it running again. I have located the following entries in my logs: In /var/log/messages: zopectl: Unlinking stale socket /var/lob/zope-2.7.2/main/var/zopectlsock; sleep 1 zopectl: . After each restart attempt: zopectl: daemon process started, pid=xxxx "14 seconds later" zopectl: daemon manager not running event.log: I'm getting ZODB conflict errors When the zopectlsock dies it leaves Z2.pid and Z2.lock but no corresponding process is running. I've checked around the web and can't find any solutions. Hopefully someone here can help? Thanks Michael -- Michael Williams Haywood County Schools Technology Director Instructional Technology http://www.haywood.k12.nc.us (828) 627-8314 From robert at redcor.ch Thu Jan 27 00:58:37 2005 From: robert at redcor.ch (robert) Date: Thu Jan 27 00:58:55 2005 Subject: [Zope] zopectlsocket dies In-Reply-To: <37125.10.20.1.6.1106789531.squirrel@10.20.1.6> References: <37125.10.20.1.6.1106789531.squirrel@10.20.1.6> Message-ID: <41F8830D.5080503@redcor.ch> Michael Williams wrote: >My plone site died today and I can't get it running again. I have located >the following entries in my logs: > >In /var/log/messages: > zopectl: Unlinking stale socket /var/lob/zope-2.7.2/main/var/zopectlsock; >sleep 1 > zopectl: . > >After each restart attempt: > >zopectl: daemon process started, pid=xxxx >"14 seconds later" >zopectl: daemon manager not running > >event.log: > >I'm getting ZODB conflict errors > >When the zopectlsock dies it leaves Z2.pid and Z2.lock but no >corresponding process is running. > >I've checked around the web and can't find any solutions. Hopefully >someone here can help? > >Thanks >Michael > > > Are you sure Zope is not still running in the background? Try killall -9 python an then restart zope again Robert From pw_lists at slinkp.com Thu Jan 27 01:42:46 2005 From: pw_lists at slinkp.com (Paul Winkler) Date: Thu Jan 27 01:42:57 2005 Subject: [Zope] Re: documentation defacement In-Reply-To: <20050126181856.GH2210@slinkp.com> References: <41F65E97.1000002@zope.com> <1106665630.23980.1271.camel@athlon> <20050125210646.GB26702@slinkp.com> <1106690450.23980.1281.camel@athlon> <9cee7ab8050125143363ce4c0d@mail.gmail.com> <41F6CB11.4000605@zope.com> <9cee7ab805012515135d2b586b@mail.gmail.com> <20050126174649.GF2210@slinkp.com> <41F7DD3E.20002@zope.com> <20050126181856.GH2210@slinkp.com> Message-ID: <20050127064246.GA2815@slinkp.com> Well, as usual when this subject comes up, I felt sufficiently guilty to spend a couple hours working on my assigned chapter (Appendix B). Latest and greatest at http://www.plope.com/Books/2_7Edition/AppendixB.stx as usual. I would really like ZMI access to zope.org, where I hope the history would help me extract Fred's changes and merge them with mine. I think I've filled out all the relevant agreements - anything missing there? -- Paul Winkler http://www.slinkp.com From florian_reiser at gmx.de Thu Jan 27 02:19:13 2005 From: florian_reiser at gmx.de (Florian Reiser) Date: Thu Jan 27 02:19:22 2005 Subject: [Zope] Generating editable grid with Zope2.6/ZopeX3? References: <41F7AF61.9060306@easypublisher.com> Message-ID: <24478.1106810353@www34.gmx.net> Hello Johan, how do you mean that "you must provide a custom layout template". I think the main problem is to get formulator to generate the field names as e.g. "record_name.field_name:records:int" and validate it accordingly. Greets Florian > Florian Reiser wrote: > > Hello, > > > > I want to generate an editable grid with Zope (2.6 or X3). > > E.g. > > > > Field 1 | Field 2| Field 3 > > -------------------------- > > Id 1 | Edit 2 | Edit 3 > > Id 2 | Edit 2 | Edit 3 > > Id 3 | Edit 2 | Edit 3 > > . > > . > > . > > > > I've already looked into Formulator for Zope 2.6, but this product > doesn't > > seem to be able to render :records objects. > > > > Is it possible to render such a form with zope? > > > > Manual alignment is ok, but I would like to use the input validation > > mechanisms that are provided by Formulator or ZopeX3. > > In pure-zope (non-cmf-ish) you could very well use Formulator > but you would need to provide a custom layout template (or at > least you needed that when I last used formulator). > > If you find a better solution, let me know ;-) > > -- > Johan Carlsson Tel: + 46 8 31 24 94 > Colliberty Mob: + 46 70 558 25 24 > Torsgatan 72 Email: johanc@easypublisher.com > SE-113 37 STOCKHOLM > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) > -- 10 GB Mailbox, 100 FreeSMS http://www.gmx.net/de/go/topmail +++ GMX - die erste Adresse für Mail, Message, More +++ From florian_reiser at gmx.de Thu Jan 27 02:22:27 2005 From: florian_reiser at gmx.de (Florian Reiser) Date: Thu Jan 27 02:22:35 2005 Subject: [Zope] Generating editable grid with Zope2.6/ZopeX3? References: <30cf185f05012610577e80f6a2@mail.gmail.com> Message-ID: <1186.1106810547@www34.gmx.net> Hello Remy, thanks for your answer. I'll look into it. When I tried to open version 0.1.10f with WinZip, I got an error "Error reading header after processing 0 entries". But I'll have a look at the 0.1.9 version. Greets Florian > Also take a look at ZNOLK SQL WIZARD: > > http://www.bluedynamics.org/products/znolk > > > On Wed, 26 Jan 2005 14:59:44 +0000, Alexandre Boeglin > wrote: > > Le mercredi 26 Janvier 2005 12:18, Florian Reiser a ?crit : > > > I want to generate an editable grid with Zope (2.6 or X3). > > > E.g. > > > > > > Field 1 | Field 2| Field 3 > > > -------------------------- > > > Id 1 | Edit 2 | Edit 3 > > > Id 2 | Edit 2 | Edit 3 > > > Id 3 | Edit 2 | Edit 3 > > > > Hello, you can have a look at ERP5Form.ListBox which just does this, on > > http://cvs.erp5.org/ . > > > > Regards, > > Alex. > > _______________________________________________ > > Zope maillist - Zope@zope.org > > http://mail.zope.org/mailman/listinfo/zope > > ** No cross posts or HTML encoding! ** > > (Related lists - > > http://mail.zope.org/mailman/listinfo/zope-announce > > http://mail.zope.org/mailman/listinfo/zope-dev ) > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) > -- GMX im TV ... Die Gedanken sind frei ... Schon gesehen? Jetzt Spot online ansehen: http://www.gmx.net/de/go/tv-spot From florian_reiser at gmx.de Thu Jan 27 02:24:32 2005 From: florian_reiser at gmx.de (Florian Reiser) Date: Thu Jan 27 02:24:37 2005 Subject: [Zope] Generating editable grid with Zope2.6/ZopeX3? References: <200501261459.44324.alex@nexedi.com> Message-ID: <7863.1106810672@www34.gmx.net> Hello Alexandre, the ListBox looks great. Maybe you could send me a screenshot of it in action and the html code it generates? Then I could understand the program more easily, I think. Greets Florian > Le mercredi 26 Janvier 2005 12:18, Florian Reiser a ?crit?: > > I want to generate an editable grid with Zope (2.6 or X3). > > E.g. > > > > Field 1 | Field 2| Field 3 > > -------------------------- > > Id 1 | Edit 2 | Edit 3 > > Id 2 | Edit 2 | Edit 3 > > Id 3 | Edit 2 | Edit 3 > > Hello, you can have a look at ERP5Form.ListBox which just does this, on > http://cvs.erp5.org/ . > > Regards, > Alex. > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) > -- Sparen beginnt mit GMX DSL: http://www.gmx.net/de/go/dsl From chris at simplistix.co.uk Thu Jan 27 04:44:19 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Thu Jan 27 04:44:44 2005 Subject: [Zope] Generating editable grid with Zope2.6/ZopeX3? In-Reply-To: <1186.1106810547@www34.gmx.net> References: <30cf185f05012610577e80f6a2@mail.gmail.com> <1186.1106810547@www34.gmx.net> Message-ID: <41F8B7F3.1020009@simplistix.co.uk> Florian Reiser wrote: > When I tried to open version 0.1.10f with WinZip, I got an error "Error > reading header after processing 0 entries". > But I'll have a look at the 0.1.9 version. Did you make sure you renamed the downloaded file to whatever.tgz because "somethign windoze" stupid saved the file with an extension of .tar? ;-) Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From chris at simplistix.co.uk Thu Jan 27 04:46:17 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Thu Jan 27 04:46:24 2005 Subject: [Zope] Problem with Product example in 2.7 manual In-Reply-To: References: Message-ID: <41F8B869.5020001@simplistix.co.uk> Jeff Gentry wrote: > Error Type: Unauthorized > Error Value: You are not allowed to access 'title_or_id' in this context > > Note that I have a stock/brand new zope instance that I'm working on and > have not edited the permissions from the defaults in any way. Is there > some permission change that I need to make for this to work? That is odd. Have a loot at Shane Hathaway's VerbosSecurity product to see if it can enlighten you... Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From chris at simplistix.co.uk Thu Jan 27 04:48:44 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Thu Jan 27 04:48:50 2005 Subject: [Zope] Problem with product MultilingualWorkflow In-Reply-To: <41F7F6A3.2000800@varig.com> References: <41F7F6A3.2000800@varig.com> Message-ID: <41F8B8FC.1040202@simplistix.co.uk> Andr? Amram Duque wrote: > Somebody already had the problem in the instalation of the product > MultiLingualWorkFlow, the following message when Zope App Server was > loading >>MESSAGE: OSError: [Errno 2] No such file or directory: > '/home/aaduque/zope_amsterdam/Products/MultilingualWorkflow/skins' I'd suggest you contact the product's author direct. I, for one, have never even heard on MultiLingualWorkFlow ;-) Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From mailing.coletti at finnat.it Thu Jan 27 06:15:57 2005 From: mailing.coletti at finnat.it (Massimo Coletti) Date: Thu Jan 27 06:12:00 2005 Subject: [Zope] How can I searchResults NOT containing a specific path Message-ID: <41F8CD6D.5080802@finnat.it> Looking at the documentation, I see that path searches allow me only to select items when they HAVE a specific path. Is there any way to EXCLUDE objects with the specific path (i.e. a negate clause)? Many thanks, Massimo From lists at andreas-jung.com Thu Jan 27 06:26:29 2005 From: lists at andreas-jung.com (Andreas Jung) Date: Thu Jan 27 06:26:34 2005 Subject: [Zope] How can I searchResults NOT containing a specific path In-Reply-To: <41F8CD6D.5080802@finnat.it> References: <41F8CD6D.5080802@finnat.it> Message-ID: --On Donnerstag, 27. Januar 2005 12:15 Uhr +0100 Massimo Coletti wrote: > Looking at the documentation, I see that path searches allow me only to > select items when they HAVE a specific path. > > Is there any way to EXCLUDE objects with the specific path (i.e. a negate > clause)? > maybe look at AdvancedQuery. -aj From ray_lawlor at excite.com Thu Jan 27 06:51:03 2005 From: ray_lawlor at excite.com (ray_lawlor@excite.com) Date: Thu Jan 27 06:51:21 2005 Subject: [Zope] Installation Problem(gcc error) Message-ID: <20050127115103.A25183DC1@xprdmailfe12.nwk.excite.com> Hi I am installing Zope 2.7.4-0. I have installed Python 2.3.4 successfully. When i run "./configure --prefix=/..." it finds the optimum version of python and writes the make file. When i then then try to run "make" it gives errors in AccessControl/cAccessControl.c/.... and then exits with the message "error: command 'gcc' failed with exit status 1 make: *** [build] Error 1" Just wondering if anybody could point me in the right direction or what could be causing the problem. Thanks. _______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web! From mailing.coletti at finnat.it Thu Jan 27 07:00:31 2005 From: mailing.coletti at finnat.it (Massimo Coletti) Date: Thu Jan 27 06:56:29 2005 Subject: [Zope] How can I searchResults NOT containing a specific path In-Reply-To: References: <41F8CD6D.5080802@finnat.it> Message-ID: <41F8D7DF.6060100@finnat.it> Andreas Jung wrote: > > > --On Donnerstag, 27. Januar 2005 12:15 Uhr +0100 Massimo Coletti > wrote: > >> Looking at the documentation, I see that path searches allow me only to >> select items when they HAVE a specific path. >> >> Is there any way to EXCLUDE objects with the specific path (i.e. a >> negate >> clause)? >> > > maybe look at AdvancedQuery. > > -aj Andreas, from which release is available AdvancedQuery? thanks massimo From lists at andreas-jung.com Thu Jan 27 07:06:43 2005 From: lists at andreas-jung.com (Andreas Jung) Date: Thu Jan 27 07:06:53 2005 Subject: [Zope] Installation Problem(gcc error) In-Reply-To: <20050127115103.A25183DC1@xprdmailfe12.nwk.excite.com> References: <20050127115103.A25183DC1@xprdmailfe12.nwk.excite.com> Message-ID: <87627A8A6B27135021142E1D@[192.168.0.100]> --On Donnerstag, 27. Januar 2005 6:51 Uhr -0500 ray_lawlor@excite.com wrote: > > Hi I am installing Zope 2.7.4-0. I have installed Python 2.3.4 > successfully. > > When i run "./configure --prefix=/..." it finds the optimum version of > python and writes the make file. When i then then try to run "make" it > gives errors in AccessControl/cAccessControl.c/.... and then exits with > the message > Provide the *full* error messages otherwise your posting is pretty much worthless. -aj From lists at andreas-jung.com Thu Jan 27 07:07:33 2005 From: lists at andreas-jung.com (Andreas Jung) Date: Thu Jan 27 07:07:37 2005 Subject: [Zope] How can I searchResults NOT containing a specific path In-Reply-To: <41F8D7DF.6060100@finnat.it> References: <41F8CD6D.5080802@finnat.it> <41F8D7DF.6060100@finnat.it> Message-ID: <9A053A31FB73F2BEB9E66725@[192.168.0.100]> --On Donnerstag, 27. Januar 2005 13:00 Uhr +0100 Massimo Coletti wrote: > Andreas Jung wrote: > >> >> >> --On Donnerstag, 27. Januar 2005 12:15 Uhr +0100 Massimo Coletti >> wrote: >> >>> Looking at the documentation, I see that path searches allow me only to >>> select items when they HAVE a specific path. >>> >>> Is there any way to EXCLUDE objects with the specific path (i.e. a >>> negate >>> clause)? >>> >> >> maybe look at AdvancedQuery. >> >> -aj > > Andreas, > > from which release is available AdvancedQuery? > Goggle will tell where to find AQ and how to use it. -aj From apaku at gmx.de Thu Jan 27 07:27:47 2005 From: apaku at gmx.de (Andreas Pakulat) Date: Thu Jan 27 07:27:20 2005 Subject: [Zope] How can I searchResults NOT containing a specific path In-Reply-To: <41F8D7DF.6060100@finnat.it> References: <41F8CD6D.5080802@finnat.it> <41F8D7DF.6060100@finnat.it> Message-ID: <20050127122716.D6CD72032C8@mail.zope.org> On 27.Jan 2005 - 13:00:31, Massimo Coletti wrote: > Andreas Jung wrote: > >maybe look at AdvancedQuery. > > > from which release is available AdvancedQuery? It is a separate Product. Andreas -- You are confused; but this is your normal state. From mailing.coletti at finnat.it Thu Jan 27 08:39:03 2005 From: mailing.coletti at finnat.it (Massimo Coletti) Date: Thu Jan 27 08:39:14 2005 Subject: [Zope] How can I searchResults NOT containing a specific path In-Reply-To: <9A053A31FB73F2BEB9E66725@[192.168.0.100]> References: <41F8CD6D.5080802@finnat.it> <41F8D7DF.6060100@finnat.it> <9A053A31FB73F2BEB9E66725@[192.168.0.100]> Message-ID: <41F8EEF7.9040204@finnat.it> Thanks to all, I found it. From remypinsonnault at gmail.com Thu Jan 27 08:54:28 2005 From: remypinsonnault at gmail.com (Remy Pinsonnault) Date: Thu Jan 27 08:54:31 2005 Subject: [Zope] Generating editable grid with Zope2.6/ZopeX3? In-Reply-To: <1186.1106810547@www34.gmx.net> References: <30cf185f05012610577e80f6a2@mail.gmail.com> <1186.1106810547@www34.gmx.net> Message-ID: <30cf185f05012705544aa7ae7e@mail.gmail.com> You should rename the .tar file to .tgz and it will be allright... On Thu, 27 Jan 2005 08:22:27 +0100 (MET), Florian Reiser wrote: > Hello Remy, > > thanks for your answer. I'll look into it. > > When I tried to open version 0.1.10f with WinZip, I got an error "Error > reading header after processing 0 entries". > But I'll have a look at the 0.1.9 version. > > Greets > Florian > > > Also take a look at ZNOLK SQL WIZARD: > > > > http://www.bluedynamics.org/products/znolk > > > > > > On Wed, 26 Jan 2005 14:59:44 +0000, Alexandre Boeglin > > wrote: > > > Le mercredi 26 Janvier 2005 12:18, Florian Reiser a ?crit : > > > > I want to generate an editable grid with Zope (2.6 or X3). > > > > E.g. > > > > > > > > Field 1 | Field 2| Field 3 > > > > -------------------------- > > > > Id 1 | Edit 2 | Edit 3 > > > > Id 2 | Edit 2 | Edit 3 > > > > Id 3 | Edit 2 | Edit 3 > > > > > > Hello, you can have a look at ERP5Form.ListBox which just does this, on > > > http://cvs.erp5.org/ . > > > > > > Regards, > > > Alex. > > > _______________________________________________ > > > Zope maillist - Zope@zope.org > > > http://mail.zope.org/mailman/listinfo/zope > > > ** No cross posts or HTML encoding! ** > > > (Related lists - > > > http://mail.zope.org/mailman/listinfo/zope-announce > > > http://mail.zope.org/mailman/listinfo/zope-dev ) > > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > http://mail.zope.org/mailman/listinfo/zope > > ** No cross posts or HTML encoding! ** > > (Related lists - > > http://mail.zope.org/mailman/listinfo/zope-announce > > http://mail.zope.org/mailman/listinfo/zope-dev ) > > > > -- > GMX im TV ... Die Gedanken sind frei ... Schon gesehen? > Jetzt Spot online ansehen: http://www.gmx.net/de/go/tv-spot > From ray_lawlor at excite.com Thu Jan 27 09:52:01 2005 From: ray_lawlor at excite.com (ray_lawlor@excite.com) Date: Thu Jan 27 09:52:03 2005 Subject: [Zope] Installation Problem(gcc error) Message-ID: <20050127145201.19D933E27@xprdmailfe12.nwk.excite.com> Sorry about that, Here are the errors AccessControl/cAccessControl.c:2272: error: syntax error before "if" AccessControl/cAccessControl.c:2272: warnig: parameter names (without types) in function declaration AccessControl/cAccessControl.c:2272: warning :data definition has no type or storage class AccessControl/cAccessControl.c:2272: error: confliction tyoes for 'AcquisitionCAPI' /home/user1/Zope-2.7.4-0/lib/Components/ExtentionClass/src/Acquisition.h:44: error: previous definition of 'AcquisitionCAPI' was here AccessControl/cAccessControl.c:2272: error: initializer element is not constant AccessControl/cAccessControl.c:2272: warning: data definition has no type or storage class AccessControl/cAccessControl.c:2272: warnig: parameter names (without types) in function declaration AccessControl/cAccessControl.c:2272: warning: data definition has no type or storage class AccessControl/cAccessControl.c:2272: error: syntax error before '}' token AccessControl/cAccessControl.c:2275: error: initializer element is not constant AccessControl/cAccessControl.c:2275: warning: data definition has no type or storage class AccessControl/cAccessControl.c:2277: error: syntax error before string constant AccessControl/cAccessControl.c:2278: warning: warning: data definition has no type or storage class AccessControl/cAccessControl.c:2295: error: conflicting types for 'imPermissionRoleObj' AccessControl/cAccessControl.c:659: error: previous definition of 'imPermissionRoleObj' was here AccessControl/cAccessControl.c:2296: error: initializer element is not constant AccessControl/cAccessControl.c:2296: warning: data definition has no type or storage class AccessControl/cAccessControl.c:2298: error: conflicting types for 'aq_validate' AccessControl/cAccessControl.c:674: error: previous definition of 'aq_validate' was here AccessControl/cAccessControl.c:2298: error: initializer element is not constant AccessControl/cAccessControl.c:2298: warning: data definition has no type or storage class AccessControl/cAccessControl.c:2303: error: syntax error before "if" AccessControl/cAccessControl.c:2306: warning: parameter names (without types) in function decloration AccessControl/cAccessControl.c:2306: warning: data definition has no type or storage class AccessControl/cAccessControl.c:2307: error: redefinition of 'module' AccessControl/cAccessControl.c:2268: error: previous definition of 'module' was here AccessControl/cAccessControl.c:2307: warning: initialization makes integer from pointer without a class AccessControl/cAccessControl.c:2307: warning: data definition has no type or storage class AccessControl/cAccessControl.c:2312: error: syntax error before "if" AccessControl/cAccessControl.c:2314: warning: parameter names (without types) in function declaration AccessControl/cAccessControl.c:2314: warning: data defination has no type or storage class AccessControl/cAccessControl.c:2315: error: redefinition of 'module' AccessControl/cAccessControl.c:2307: error: previous definition of 'module' was here AccessControl/cAccessControl.c:2315: warning: initialization makes integer from pointer without a cast AccessControl/cAccessControl.c:2315: warning: data defination has no type or storage class AccessControl/cAccessControl.c:2320: error: syntax error before "if" AccessControl/cAccessControl.c:2322: warning: parameter names (without types) in function declaration AccessControl/cAccessControl.c:2322: warning: data defination has no type or storage class AccessControl/cAccessControl.c:2323: error: redefinition of 'module' AccessControl/cAccessControl.c:2315: error: previous definition of 'module' was here AccessControl/cAccessControl.c:2323: error: redefinition of 'module' AccessControl/cAccessControl.c:2307: error: previous definition of 'module' was here AccessControl/cAccessControl.c:2323: warning: initialization makes integer from pointer without a cast AccessControl/cAccessControl.c:2323: warning: data defination has no type or storage class AccessControl/cAccessControl.c:2328: error: syntax error before "if" AccessControl/cAccessControl.c:2331: warning: parameter names (without types) in function declaration AccessControl/cAccessControl.c:2331: warning: data defination has no type or storage class AccessControl/cAccessControl.c:2332: error: redefinition of 'module' AccessControl/cAccessControl.c:2323: error: previous definition of 'module' was here AccessControl/cAccessControl.c:2332: error: redefinition of 'module' AccessControl/cAccessControl.c:2307: error: previous definition of 'module' was here AccessControl/cAccessControl.c:2332: warning: initialization makes integer from pointer without a cast AccessControl/cAccessControl.c:2332: warning: data defination has no type or storage class AccessControl/cAccessControl.c:2333: error: syntax error before '}' token error: command 'gcc' failed with exit status 1 make: *** [build] Error 1 _______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web! From tseaver at zope.com Thu Jan 27 10:18:02 2005 From: tseaver at zope.com (Tres Seaver) Date: Thu Jan 27 10:18:10 2005 Subject: [Zope] Re: Installation Problem(gcc error) In-Reply-To: <20050127145201.19D933E27@xprdmailfe12.nwk.excite.com> References: <20050127145201.19D933E27@xprdmailfe12.nwk.excite.com> Message-ID: <41F9062A.4080107@zope.com> ray_lawlor@excite.com wrote: I suspect that you have a damaged header file in there somewhere. You might try a couple of things: - Please verify the MD5 checksum on the Zope-2.7.4-0,tgz tarball against the Zope.org product page, http://zope.org/Products/Zope/2.7.4/ - Please unpack the tarball into a temporary location and try re-running the configure and make, passing an explicit '--with-python' to the Python 2.3.4 installation. - If that fails, you could try building your own Python (a good idea, anyway), and configuring Zope with it. - If things are still broken, please report OS and gcc versions. Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From lists at andreas-jung.com Thu Jan 27 10:20:11 2005 From: lists at andreas-jung.com (Andreas Jung) Date: Thu Jan 27 10:20:15 2005 Subject: [Zope] Is there a bug in x86_64 platform related with zope 2.7.4. In-Reply-To: References: <41F7540A.000082.21622@m65.126.com> Message-ID: <913E98DF2A177B1F4BC90E97@[192.168.0.100]> --On Mittwoch, 26. Januar 2005 9:37 Uhr +0100 Andreas Jung wrote: >> >> AccessControl/cAccessControl.c:2272: warning: data definition has no type >> or storage class AccessControl/cAccessControl.c:2272: error: syntax error >> before "if" AccessControl/cAccessControl.c:2272: warning: parameter names >> (without types) in function declaration >> AccessControl/cAccessControl.c:2272: warning: data definition has no type >> or storage class AccessControl/cAccessControl.c:2272: error: conflicting >> types for 'AcquisitionCAPI' >> /home/zhouzhen/software/cms/zope/zope27/lib/Components/ExtensionClass/src >> /Acquisition.h:44: error: previous definition of 'AcquisitionCAPI' was >> here AccessControl/cAccessControl.c:2272: error: initializer element is >> not constant AccessControl/cAccessControl.c:2272: warning: data >> definition has no type or storage class >> AccessControl/cAccessControl.c:2272: warning: parameter names (without >> types) in function declaration AccessControl/cAccessControl.c:2272: >> warning: data definition has no type or storage class >> AccessControl/cAccessControl.c:2272: error: syntax error before '}' token >> AccessControl/cAccessControl.c:2275: error: initializer element is not >> constant AccessControl/cAccessControl.c:2275: warning: data definition >> has no type or storage class AccessControl/cAccessControl.c:2277: error: >> syntax error before string constant AccessControl/cAccessControl.c:2278: >> warning: data definition has no type or storage class >> AccessControl/cAccessControl.c:2295: error: conflicting types for >> 'imPermissionRoleObj' AccessControl/cAccessControl.c:659: error: previous >> definition of 'imPermissionRoleObj' was here >> AccessControl/cAccessControl.c:2296: error: initializer element is not >> constant AccessControl/cAccessControl.c:2296: warning: data definition >> has no type or storage class AccessControl/cAccessControl.c:2298: error: >> conflicting types for 'aq_validate' AccessControl/cAccessControl.c:674: >> error: previous definition of 'aq_validate' was here >> AccessControl/cAccessControl.c:2298: error: initializer element is not >> constant AccessControl/cAccessControl.c:2298: warning: data definition >> has no type or storage class AccessControl/cAccessControl.c:2303: error: >> syntax error before "if" AccessControl/cAccessControl.c:2306: warning: >> parameter names (without types) in function declaration >> AccessControl/cAccessControl.c:2306: warning: data definition has no type >> or storage class AccessControl/cAccessControl.c:2307: error: redefinition >> of 'module' AccessControl/cAccessControl.c:2268: error: previous >> definition of 'module' was here AccessControl/cAccessControl.c:2307: >> warning: initialization makes integer from pointer without a cast >> AccessControl/cAccessControl.c:2307: warning: data definition has no type >> or storage class AccessControl/cAccessControl.c:2312: error: syntax error >> before "if" AccessControl/cAccessControl.c:2314: warning: parameter names >> (without types) in function declaration >> AccessControl/cAccessControl.c:2314: warning: data definition has no type >> or storage class AccessControl/cAccessControl.c:2315: error: redefinition >> of 'module' AccessControl/cAccessControl.c:2307: error: previous >> definition of 'module' was here AccessControl/cAccessControl.c:2315: >> error: redefinition of 'module' AccessControl/cAccessControl.c:2307: >> error: previous definition of 'module' was here >> AccessControl/cAccessControl.c:2315: warning: initialization makes >> integer from pointer without a cast AccessControl/cAccessControl.c:2315: >> warning: data definition has no type or storage class >> AccessControl/cAccessControl.c:2320: error: syntax error before "if" >> AccessControl/cAccessControl.c:2322: warning: parameter names (without >> types) in function declaration AccessControl/cAccessControl.c:2322: >> warning: data definition has no type or storage class >> AccessControl/cAccessControl.c:2323: error: redefinition of 'module' >> AccessControl/cAccessControl.c:2315: error: previous definition of >> 'module' was here AccessControl/cAccessControl.c:2323: error: >> redefinition of 'module' AccessControl/cAccessControl.c:2307: error: >> previous definition of 'module' was here >> AccessControl/cAccessControl.c:2323: warning: initialization makes >> integer from pointer without a cast AccessControl/cAccessControl.c:2323: >> warning: data definition has no type or storage class >> AccessControl/cAccessControl.c:2328: error: syntax error before "if" >> AccessControl/cAccessControl.c:2331: warning: parameter names (without >> types) in function declaration AccessControl/cAccessControl.c:2331: >> warning: data definition has no type or storage class >> AccessControl/cAccessControl.c:2332: error: redefinition of 'module' >> AccessControl/cAccessControl.c:2323: error: previous definition of >> 'module' was here AccessControl/cAccessControl.c:2332: error: >> redefinition of 'module' AccessControl/cAccessControl.c:2307: error: >> previous definition of 'module' was here >> AccessControl/cAccessControl.c:2332: warning: initialization makes >> integer from pointer without a cast AccessControl/cAccessControl.c:2332: >> warning: data definition has no type or storage class >> AccessControl/cAccessControl.c:2333: error: syntax error before '}' token >> error: command 'gcc' failed with exit status 1 >> make: *** [build] Error 1 This looks like a broken or incomplete gcc installation. I compiled Zope 2.7 on the x64 Linux this afternoon and did not see any failures. -aj From ahabib at engin.umich.edu Thu Jan 27 10:43:28 2005 From: ahabib at engin.umich.edu (Asad Habib) Date: Thu Jan 27 10:43:30 2005 Subject: [Zope] Calling a Z SQL Method Message-ID: I have a Z SQL method that contains a simple SELECT statement and takes no arguments. When I call this Z SQL method from a DTML document/method I use the following: This works just fine. However, when I place the Z SQL method inside a Folder called selects and then use the following, I get an error: The error I get is the following: KeyError: 0 On the other hand, when I use the following I do not get an error: I understand the difference between the 2 statements but why isit that I have to explicitly show that retrieve_names_sql does not take any arguments in the latter case and not the former. The id of this Z SQL method/Zope object is retrieve_names_sql and it seems to me that this should be recognized within the object hierarchy. Any help/input would be greatly appreciated. Thank you. - Asad From tino at wildenhain.de Thu Jan 27 10:56:45 2005 From: tino at wildenhain.de (Tino Wildenhain) Date: Thu Jan 27 10:57:02 2005 Subject: [Zope] Calling a Z SQL Method In-Reply-To: References: Message-ID: <1106841405.30525.12.camel@sabrina.peacock.de> On Thu, 2005-01-27 at 10:43 -0500, Asad Habib wrote: > I have a Z SQL method that contains a simple SELECT statement and takes > no arguments. When I call this Z SQL method from a DTML document/method I > use the following: > > This works just fine. > > However, when I place the Z SQL method inside a Folder called selects and > then use the following, I get an error: > > > The error I get is the following: > KeyError: 0 > > On the other hand, when I use the following I do not get an error: > > I understand the difference between the 2 statements but why > isit that I have to explicitly show that retrieve_names_sql does not take > any arguments in the latter case and not the former. The id of this Z SQL > method/Zope object is retrieve_names_sql and it seems to me that this > should be recognized within the object hierarchy. Any help/input would be > greatly appreciated. Thank you. is equivalent to and does some magic tricks to find out if the object identified by name is callable, and if so how, and then it is used as ordinary attribute or called via () or with some default arguments (REQUEST, Namespace etc) and are equivalent also and expect the contents beeing a valid python expression, that is, you cant simply use . and - in names (since they have a meaning in python expressions) and you have to write the call explicit if you have a method or function. Otoh, this offers you the way to call the function with arguments. Regards Tino From dieter at handshake.de Thu Jan 27 13:43:00 2005 From: dieter at handshake.de (Dieter Maurer) Date: Thu Jan 27 14:07:33 2005 Subject: [Zope] zopectlsocket dies In-Reply-To: <37125.10.20.1.6.1106789531.squirrel@10.20.1.6> References: <37125.10.20.1.6.1106789531.squirrel@10.20.1.6> Message-ID: <16889.13876.425063.850242@gargle.gargle.HOWL> Michael Williams wrote at 2005-1-26 20:32 -0500: >My plone site died today and I can't get it running again. I have located >the following entries in my logs: > >In /var/log/messages: > zopectl: Unlinking stale socket /var/lob/zope-2.7.2/main/var/zopectlsock; >sleep 1 > zopectl: . > >After each restart attempt: > >zopectl: daemon process started, pid=xxxx >"14 seconds later" >zopectl: daemon manager not running A typical startup problem. Due to a Zope bug (unfortunately not recognized by the maintainers), startup problems are very difficult to analyse. If your Zope run in debug mode (no "debug-mode off" in your configuration file), you can use "zopectl fg" to start it in the foreground. Then you should see why Zope cannot start on the screen. -- Dieter From dieter at handshake.de Thu Jan 27 12:53:23 2005 From: dieter at handshake.de (Dieter Maurer) Date: Thu Jan 27 14:07:38 2005 Subject: [Zope] Using pychart from a Zope product In-Reply-To: <41F7F168.3080903@lerner.co.il> References: <41F6F57D.1030202@lerner.co.il> <16887.58583.35741.944049@gargle.gargle.HOWL> <41F7F168.3080903@lerner.co.il> Message-ID: <16889.10899.895792.851428@gargle.gargle.HOWL> Reuven M. Lerner wrote at 2005-1-26 13:37 -0600: [DM] >>You are missing that we need your piece of code that interfaces >>"PyChart" with Zope. How do you pass the result of "PyChart" >>back to Zope/ZPublisher? > ... >For now, I just wanted to save the resulting chart to disk... > ... >The following is the method that I wrote in my Zope product, taken >almost 100 percent from one of the demos that came with PyChart: > > def return_basic_chart(self, REQUEST): > "Return a basic chart" > > can = canvas.init("/tmp/chart.pdf") > ... > ar = area.T(x_axis=xaxis, y_axis=yaxis, y_range=(0,None)) > ... > ar.draw(can) > > return "drawn" > >As I wrote in my previous note, the above code executes without any >errors. And I get the plain-text "drawn" in my Web browser when I go to >the /return_basic_chart method via the browser. But no chart is >actually generated on disk, so far as I can tell. I expect that you must tell your canvas that it should write its content to disk (however, I do not know "Pychart"). >If there's a better/smarter way to take PyChart output and display it >via Zope, I'm all in favor. There is "ZGDChart". It's a Zope interface to the "GDChart" package. Maybe, you look at it and how it exposes charts to Zope. -- Dieter From chrism at plope.com Thu Jan 27 15:00:17 2005 From: chrism at plope.com (Chris McDonough) Date: Thu Jan 27 15:00:20 2005 Subject: [Zope] zopectlsocket dies In-Reply-To: <16889.13876.425063.850242@gargle.gargle.HOWL> References: <37125.10.20.1.6.1106789531.squirrel@10.20.1.6> <16889.13876.425063.850242@gargle.gargle.HOWL> Message-ID: <1106856017.2975.1647.camel@athlon> On Thu, 2005-01-27 at 13:43, Dieter Maurer wrote: > Michael Williams wrote at 2005-1-26 20:32 -0500: > >My plone site died today and I can't get it running again. I have located > >the following entries in my logs: > > > >In /var/log/messages: > > zopectl: Unlinking stale socket /var/lob/zope-2.7.2/main/var/zopectlsock; > >sleep 1 > > zopectl: . > > > >After each restart attempt: > > > >zopectl: daemon process started, pid=xxxx > >"14 seconds later" > >zopectl: daemon manager not running > > A typical startup problem. > > Due to a Zope bug (unfortunately not recognized by the maintainers), > startup problems are very difficult to analyse. > > If your Zope run in debug mode (no "debug-mode off" in your configuration > file), you can use "zopectl fg" to start it in the foreground. > Then you should see why Zope cannot start on the screen. bin/runzope does the same thing, FWIW. - C From chris at simplistix.co.uk Thu Jan 27 18:05:47 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Thu Jan 27 18:05:49 2005 Subject: [Zope] LocalFS-1-3-andreas and Zope 2.7.2 Message-ID: <41F973CB.1050501@simplistix.co.uk> Hi, Has anyone else here noticed that with Zope 2.7.x and LocalFS-1-3-andreas, when FS-based objects are changes through LocalFS, changes are also stored to the ZODB (you'll see a transaction for any change made in the Undo tab of the root of your Zope instance) as well? The changes are made up as follows (from fsdump.py): data #00000 oid=000000000000727e class=OFS.Image.Pdata data #00001 oid=000000000000727f class=OFS.Image.Pdata data #00002 oid=000000000000727c class=OFS.Image.Pdata data #00003 oid=000000000000727d class=OFS.Image.Pdata data #00004 oid=000000000000727b class=OFS.Image.Pdata data #00005 oid=0000000000007282 class=OFS.Image.Pdata data #00006 oid=0000000000007283 class=Products.LocalFS.LocalFS.ObjectWrapper data #00007 oid=0000000000007280 class=OFS.Image.Pdata data #00008 oid=0000000000007281 class=OFS.Image.Pdata ...and packing removes them. Does anyone know what's causing this and what could be done to fix it? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From david.ayres3 at verizon.net Thu Jan 27 20:49:43 2005 From: david.ayres3 at verizon.net (David Ayres) Date: Thu Jan 27 20:50:24 2005 Subject: [Zope] PAM Authentication & RSA Authentication Manager Message-ID: Hey Everyone, Any information I have found related to utilizing PAM for authentication dates back in 1999, so I'm assuming some solution has been found and I'm just not seeing it or the issue was dropped. I'm interested in implementing PAM for authentication mainly because I ideally need authentication that draws from a variety of sources including RSA's Authentication Manager. Any suggestions would be greatly appreciated! Thanks in Advance, Dave From ginunn at digitaldoor.net Thu Jan 27 20:54:02 2005 From: ginunn at digitaldoor.net (Ian Nunn) Date: Thu Jan 27 20:54:04 2005 Subject: [Zope] Plone Forum Message-ID: <000601c504dc$3e5e70a0$6401a8c0@main> Does one exist - I haven't found one. Best Regards Ian Nunn -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.zope.org/pipermail/zope/attachments/20050127/7b8b64f4/attachment.htm From ginunn at digitaldoor.net Thu Jan 27 20:57:47 2005 From: ginunn at digitaldoor.net (Ian Nunn) Date: Thu Jan 27 20:57:45 2005 Subject: [Zope] Sorry - Found a forum - ignore last post Message-ID: <001901c504dc$c4784620$6401a8c0@main> Best Regards Ian Nunn -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.zope.org/pipermail/zope/attachments/20050127/59203c72/attachment.htm From kalperin at mac.com Thu Jan 27 22:59:17 2005 From: kalperin at mac.com (Keith Alperin) Date: Thu Jan 27 22:59:15 2005 Subject: [Zope] adding dtml/zpt methods to product classes Message-ID: Greetings Zopistas! I have been a Zope tinkerer for a few years and have never been able to adequately solve this problem: When I create a Product class with DTML/ZPT methods, how can I make those methods members of the class rather than simply instance methods? These examples should illustrate what I mean. My first try was like this: class HyperTextArea(Implicit, Globals.Persistent, RoleManager, Item): def __init__(self,resourcePath, imageFolder): self.my_method = Globals.HTMLFile("dtml/my_method",globals()) That works fine until you want to add a new method to your class like so: class HyperTextArea(Implicit, Globals.Persistent, RoleManager, Item): def __init__(self,resourcePath, imageFolder): self.my_method = Globals.HTMLFile("dtml/my_method",globals()) self.my_new_method = Globals.HTMLFile("dtml/my_new_method",globals()) new instances of your product will get the my_new_method, but instances that have already been created will not. My second try was like this: class HyperTextArea(Implicit, Globals.Persistent, RoleManager, Item): def my_method(self, REQUEST): """ template """ if (not hasattr(self,"my_method_member")): self.my_method_member = Globals.DTMLFile("dtml/my_method",globals()) return self.my_method_member(self,REQUEST) This allows me to add methods to the class at any time and all instances will get the method. However, for some reason, when I use this pattern, i get strange acquisition results (for example, some of my objects children's dtml methods will use the parent's namespace for lookups). Currently, I'm doing this: class HyperTextArea(Implicit, Globals.Persistent, RoleManager, Item): def my_method(self, REQUEST): """ template """ self.my_method_member = Globals.DTMLFile("dtml/my_method",globals()) return self.my_method_member(self,REQUEST) which seems ugly, and like it might have performance problems, but i haven't had any acquisition problems yet. My real question here is: What is the standard way to handle this problem of being able to add dtml/zpt methods to classes such that all instances of those classes get the new methods? Thanks in advance for any insight. Sincerely, Keith Alperin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 3300 bytes Desc: not available Url : http://mail.zope.org/pipermail/zope/attachments/20050127/ce39d294/attachment.bin From pw_lists at slinkp.com Fri Jan 28 00:23:39 2005 From: pw_lists at slinkp.com (Paul Winkler) Date: Fri Jan 28 00:23:53 2005 Subject: [Zope] adding dtml/zpt methods to product classes In-Reply-To: References: Message-ID: <20050128052339.GA29148@slinkp.com> On Thu, Jan 27, 2005 at 09:59:17PM -0600, Keith Alperin wrote: > Greetings Zopistas! > > I have been a Zope tinkerer for a few years and have never been able to > adequately solve this problem: When I create a Product class with > DTML/ZPT methods, how can I make those methods members of the class > rather than simply instance methods? These examples should illustrate > what I mean. I feel like I must be misunderstanding the question. Your examples are so odd, you must be trying to do something unusual ;-) But if you're asking what I think you're asking, just do what nearly ever other zope Product on the planet does: class Foo(SimpleItem): my_method1 = DTMLFile('dtml/my_method', globals()) my_method2 = PageTemplateFile('zpt/my_other_method', globals()) In other words, set them as class attributes, not within another method. And to secure them, do this: class Foo2(SimpleItem): security = AccessControl.classSecurityInfo() security.declareProtected('Some Permission', 'method1') method1 = PageTemplateFile('zpt/method1', globals()) security.declarePrivate('method2') method2 = PageTemplateFile('zpt/method1', globals()) security.declarePublic('method3') method3 = PageTemplateFile('zpt/method3', globals()) -- Paul Winkler http://www.slinkp.com From zope at benlast.com Fri Jan 28 01:52:10 2005 From: zope at benlast.com (Ben Last (Zope)) Date: Fri Jan 28 01:52:17 2005 Subject: [Zope] Investigating a reference leak... Message-ID: Dear Zopistas I've been trying to track down what's either a memory or a reference leak in a Zope 2.7.3 (Python 2.3.4) system. The symptoms are that after several days of normal running on the agressively proxy-cached production site or a few hours on the development site under simulated load, the number of OFS.Image.Image references reaches very high levels, such as 17761. In the cache at that time are just 4345 images. There are only 1332 images on the whole site, so assuming (as I understand it) that each of the 5 Zope thread has its own cache, there should be a maximum of (1332 * threads) = 6660 Images. The site never creates new Images, it just loads existing ones. In a bid to see where these references are being created, I installed LeakFinder, but that doesn't help me because Images are persistent objects, and thus their __init__ methods are not called (LeakFinder appears to patch just the __init__ and __del__ methods for tracking). Thus I've been on a quest to find a place to stick a patch that will show me, for a persistent object, from where a reference to it is being created. I've tried __setstate__, and overridden it for OFS.Image.Image to print a traceback to stdout. Then I run the development Zope site with bin/runzope and watch. This shows me Images being created in the expected places, but not in quantities that would explain those huge refcounts. So; to questions: 1) Is there a better place than __setcache__ to identify where references to Images are being created? I don't fully understand the way in which persistent objects are actually created and populated. 2) Our site is very dependent on ExternalMethods (Zope provides the visual layout, business logic is in ExternalMethods, all from one module). In some of those methods, the code loads Images in order to look up information about them - this is because we have some particular standards for things like Image tags which the built-in tag() method can't support, so we have to build our own. Thus there's code like: img = getattr(self.Images,'image.gif') #all images live in /Images, got by acquisition from self buildTag(img.title,img.width,img.height) #use image attributes to build fuller tag del img #avoid leaving references around (this is paranoid!) Is there any reason that this is bad practise? I see __setstate__ for images being called from this code and then again shortly afterwards when the Image is served up to the browser. I'd be very grateful for any help on this! Regards to all Ben Ben Last Technical Director SleepyDog From Pperegrina at Lastminute.com Fri Jan 28 02:33:28 2005 From: Pperegrina at Lastminute.com (Pascal Peregrina) Date: Fri Jan 28 02:33:38 2005 Subject: [Zope] adding dtml/zpt methods to product classes Message-ID: Why don't you simply define the DTML/ZPT objects attributes outside any class method ? class HyperTextArea(Implicit, Globals.Persistent, RoleManager, Item): my_method = Globals.HTMLFile("dtml/my_method",globals()) my_new_method = Globals.HTMLFile("dtml/my_new_method",globals()) ... This is what I do, and any new DTML/ZPT object I define that way gets added to any existing instance of this class type when I restart Zope (or when refresh my product). Pascal -----Message d'origine----- De : zope-bounces+pperegrina=lastminute.com@zope.org [mailto:zope-bounces+pperegrina=lastminute.com@zope.org]De la part de Keith Alperin Envoy? : vendredi 28 janvier 2005 04:59 ? : zope@zope.org Objet : [Zope] adding dtml/zpt methods to product classes Greetings Zopistas! I have been a Zope tinkerer for a few years and have never been able to adequately solve this problem: When I create a Product class with DTML/ZPT methods, how can I make those methods members of the class rather than simply instance methods? These examples should illustrate what I mean. My first try was like this: class HyperTextArea(Implicit, Globals.Persistent, RoleManager, Item): def __init__(self,resourcePath, imageFolder): self.my_method = Globals.HTMLFile("dtml/my_method",globals()) That works fine until you want to add a new method to your class like so: class HyperTextArea(Implicit, Globals.Persistent, RoleManager, Item): def __init__(self,resourcePath, imageFolder): self.my_method = Globals.HTMLFile("dtml/my_method",globals()) self.my_new_method = Globals.HTMLFile("dtml/my_new_method",globals()) new instances of your product will get the my_new_method, but instances that have already been created will not. My second try was like this: class HyperTextArea(Implicit, Globals.Persistent, RoleManager, Item): def my_method(self, REQUEST): """ template """ if (not hasattr(self,"my_method_member")): self.my_method_member = Globals.DTMLFile("dtml/my_method",globals()) return self.my_method_member(self,REQUEST) This allows me to add methods to the class at any time and all instances will get the method. However, for some reason, when I use this pattern, i get strange acquisition results (for example, some of my objects children's dtml methods will use the parent's namespace for lookups). Currently, I'm doing this: class HyperTextArea(Implicit, Globals.Persistent, RoleManager, Item): def my_method(self, REQUEST): """ template """ self.my_method_member = Globals.DTMLFile("dtml/my_method",globals()) return self.my_method_member(self,REQUEST) which seems ugly, and like it might have performance problems, but i haven't had any acquisition problems yet. My real question here is: What is the standard way to handle this problem of being able to add dtml/zpt methods to classes such that all instances of those classes get the new methods? Thanks in advance for any insight. Sincerely, Keith Alperin ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** From chris at simplistix.co.uk Fri Jan 28 02:34:51 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Fri Jan 28 02:38:00 2005 Subject: [Zope] PAM Authentication & RSA Authentication Manager In-Reply-To: References: Message-ID: <41F9EB1B.2040804@simplistix.co.uk> David Ayres wrote: > Any information I have found related to utilizing PAM for authentication > dates back in 1999, so I'm assuming some solution has been found and I'm > just not seeing it or the issue was dropped. I'm interested in implementing > PAM for authentication mainly because I ideally need authentication that > draws from a variety of sources including RSA's Authentication Manager. Any > suggestions would be greatly appreciated! PluggableAuthenticationService is your friend, you may not even need PAM ;-) Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From chris at simplistix.co.uk Fri Jan 28 02:39:57 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Fri Jan 28 02:40:01 2005 Subject: [Zope] Investigating a reference leak... In-Reply-To: References: Message-ID: <41F9EC4D.3080501@simplistix.co.uk> Ben Last (Zope) wrote: > 1) Is there a better place than __setcache__ to identify where references to Images are being created? I don't fully understand the > way in which persistent objects are actually created and populated. Not sure you mean __setcache__, but this is the kind of question the good folks on zodb-dev@zope.org maybe be able to help with... > 2) Our site is very dependent on ExternalMethods (Zope provides the visual layout, business logic is in ExternalMethods, all from > one module). In some of those methods, the code loads Images in order to look up information about them - this is because we have > some particular standards for things like Image tags which the built-in tag() method can't support, you sure about that? tag() is pretty flexible... > img = getattr(self.Images,'image.gif') #all images live in /Images, got by acquisition from self > buildTag(img.title,img.width,img.height) #use image attributes to build fuller tag > del img #avoid leaving references around (this is paranoid!) what does buildTag look like? > I'd be very grateful for any help on this! Looks like something somewhere is hanging on to references. You could try the old fashioned way: keep commenting out bits of your code in small chunks until the leak goes away, when it does, analyse the bit you've just take out to death ;-) Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From zope at benlast.com Fri Jan 28 03:11:33 2005 From: zope at benlast.com (Ben Last (Zope)) Date: Fri Jan 28 03:11:35 2005 Subject: [Zope] Investigating a reference leak... In-Reply-To: <41F9EC4D.3080501@simplistix.co.uk> Message-ID: > From: Chris Withers [mailto:chris@simplistix.co.uk] > Ben Last (Zope) wrote: > > 1) Is there a better place than __setcache__... > Not sure you mean __setcache__, but this is the kind of question the > good folks on zodb-dev@zope.org maybe be able to help with... Ouch - I mean "__setstate__" . I believe the appropriate phrase is "D'oh!" I'll join zope-dev and see what they have to say. > > some particular standards for things like Image tags which the built-in tag() method can't support, > you sure about that? tag() is pretty flexible... Yeah, we're sure. Our tag handling does stuff like override a GIF with a SWF for the flash version, forces the images to be served via a dedicated images hostname, etc. These are external requirements set on us by others... > > img = getattr(self.Images,'image.gif') #all images live in /Images, got by acquisition from self > > buildTag(img.title,img.width,img.height) #use image attributes to build fuller tag > > del img #avoid leaving references around (this is paranoid!) > what does buildTag look like? It's just code that builds up a full tag using the passed in parameters. Something I did notice is that, according to the traceback, __setstate__ is invoked on a line that reads: if img: ...which seems odd to me. Is there any reason that tracebacks through ExternalMethods would dump the wrong line numbers/lines? > Looks like something somewhere is hanging on to references. > You could try the old fashioned way: keep commenting out bits of your > code in small chunks until the leak goes away, when it does, analyse the > bit you've just take out to death ;-) Yeah... am sort of doing that by trying single URLs and watching the refcounts. However, they don't seem to follow any strict relationship between page templates and increases... Thanks anyway :) Ben From chris at simplistix.co.uk Fri Jan 28 06:06:49 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Fri Jan 28 06:06:58 2005 Subject: [Zope] January Bug Day Roundup Message-ID: <41FA1CC9.30703@simplistix.co.uk> Hi All, Well, it was certainly a quiet one. Both Andreas and myself were busy and things felt very quiet indeed... One 3 issues resolved, but lots of work done by Tres on some nasties. Special mention must go to brentmh/Crouton who was brave enough to try and solve a bug in dtml's sequence stuff: http://collector.zope.org/Zope/456 Brave man! Anyway, looks like not-having-it-on-a-Friday was major flop, even the one person who always asks for it not to be on a Friday wasn't there, so we'll see you all again, last Friday of February! cheers, Chris PS: Here's the lowdown: Resolved: #533 - ZMI "find" doesnt find in File with text #1469 - win32 install 2.7.2 XP SP1 #1648 - bug with medusa FTP Wontfix: #1331 - Most Frequently used product selection #1418 - Hotfix for TAL issue has no version check Rejected: #1422 - AssertionError after installing Zope Hotfix Release, 2004/07/13 #1485 - Re-ocurrence of Hotfix_2002-03-01/security_alert #1555 - more flexible logger config (duplicate) #1578 - Mounting a non-folder object fails #1670 - No log out button in Zope ..and here's the "player stats" :-) Resolved Assists Wontfix Rejected Deferred shh 1 ajung 1 chrisw 1 1 1 5 tseaver 3 Tiran 1 Crouton 1 -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From maik.ihde at haarmannhemmelrath.com Fri Jan 28 05:49:01 2005 From: maik.ihde at haarmannhemmelrath.com (Maik Ihde) Date: Fri Jan 28 06:12:01 2005 Subject: [Zope] Is Zope in Use in the law firm sector? Message-ID: Hi there does anyone know of a succesful Zope-Project (especially together with CMF/Plone or similar CMS) in a major law firm ? Background: We use a Zope-based CMS for our Website and are also using a small Plone based Intranet App for our IT Department. At the moment there is a strong interest in implementing a solution which shall cover Intranet, collaborative Document Management, eLearning and various "Connectors" to other Systems like SAP R3 and Lotus Notes. Of course there are some hi-class ECMS Systems like Hyperwave which go into that direction. But these are expensive pieces of software, and I personally would rather like to see a Zope based solution here. I know of a few major Zope Projects in Germany, like the ones at Ver.di (largest trade union in Germany) and TU M?nchen (Technical University of Munich) which address really large Scale Installations. But are there any references about Intranet Solutions for larger law firms with like 500-1500 Users? Kind Regards Maik From marc at sharedbase.com Fri Jan 28 08:31:49 2005 From: marc at sharedbase.com (Marc Burgauer) Date: Fri Jan 28 08:29:44 2005 Subject: [Zope] Performance Monitoring Message-ID: Hi After having tried to get a couple of commercial apps running without success (lack of platform support), I wonder if somebody on the list can point me to a product. I need to build a server cost model for an existing Zope/PostgreSQL app, currently running on Solaris/Intel. I want to be able to measure: - CPU and Memory load of PostgreSQL, Zope and Apache processes - Disk usage - Network usage I am not a UNIX guru, hence I was looking to a commercial solution, assuming I'll learn from it. I need to be able to predict requirements as usage is increasing. Any help very appreciated. Cheers Marc -- Marc Burgauer Sharedbase Solutions Ltd 60 Dumfries Road Elvanfoot ML12 6TF http://www.sharedbase.com Tel: +44 (0) 870 765 5600 Fax: +44 (0) 1864 505 166 Mob: +44 (0) 7909 913 903 Company registration: SC226521 VAT registration: 789 7904 46 Registered office: 29 Brandon Street, Hamilton ML3 6DA From brinegar at purdue.edu Fri Jan 28 09:46:37 2005 From: brinegar at purdue.edu (Brian Brinegar) Date: Fri Jan 28 09:46:51 2005 Subject: [Zope] [Fwd: TALs Expressions] Message-ID: <41FA504D.5020007@purdue.edu> Please explain, I've got this page template, with an empty title.

Has a Title

Has an Id

Has a Title or Id

The rendered out put is:

Has an Id

So...

Has a Title

The tag is omitted because there is no title, which is what I would expect (empty string evaluates to false).

Has an Id

The tag is included because there is an Id, again what I would expect.

Has a Title or Id

The tag is omitted (what???) but there is an id, I would expect this to evaluate to true (false | true == true). (In fact.. anything to the right of the pipe is not even accessed/called) Is there something wrong in my thinking? -Brian From zope at benlast.com Fri Jan 28 10:14:36 2005 From: zope at benlast.com (Ben Last (Zope)) Date: Fri Jan 28 10:15:11 2005 Subject: [Zope] [Fwd: TALs Expressions] In-Reply-To: <41FA504D.5020007@purdue.edu> Message-ID: At the risk of being thought somewhat lateral here... >

Has a Title or Id

I'd do this as:

Has a Title or Id

...since the rules for Python expressions are generally easier to understand or clarify with the use of parentheses. :) ben From brinegar at purdue.edu Fri Jan 28 10:18:31 2005 From: brinegar at purdue.edu (Brian Brinegar) Date: Fri Jan 28 10:18:53 2005 Subject: [Zope] [Fwd: TALs Expressions] In-Reply-To: References: Message-ID: <41FA57C7.9010308@purdue.edu> After some more searching I found my answer. The pipe is not an OR operator in TALs. Instead it separates path expressions and the first expression that exists is evaluated. -Brian Ben Last (Zope) wrote: > At the risk of being thought somewhat lateral here... > >>

Has a Title or Id

> > > I'd do this as: >

Has a Title or Id

> ...since the rules for Python expressions are generally easier to understand or clarify with the use of parentheses. :) > > ben > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) From kalperin at mac.com Fri Jan 28 11:39:38 2005 From: kalperin at mac.com (Keith Alperin) Date: Fri Jan 28 11:39:21 2005 Subject: [Zope] adding dtml/zpt methods to product classes In-Reply-To: <20050128052339.GA29148@slinkp.com> References: <20050128052339.GA29148@slinkp.com> Message-ID: <33A7DA34-714B-11D9-BE1C-0003938346CC@mac.com> You understood the question perfectly; this is exactly what i was looking for. I'm not sure where I got the idea of making those methods instance variables, but once I started, I never even looked for a better (even standard!) alternative. Thank you (and Pascal Peregrina who gave the same answer) for your help!! Sincerely, Keith Alperin On Jan 27, 2005, at 11:23 PM, Paul Winkler wrote: > On Thu, Jan 27, 2005 at 09:59:17PM -0600, Keith Alperin wrote: >> Greetings Zopistas! >> >> I have been a Zope tinkerer for a few years and have never been able >> to >> adequately solve this problem: When I create a Product class with >> DTML/ZPT methods, how can I make those methods members of the class >> rather than simply instance methods? These examples should illustrate >> what I mean. > > I feel like I must be misunderstanding the question. > Your examples are so odd, you must be trying to do something > unusual ;-) > > But if you're asking what I think you're asking, > just do what nearly ever other zope Product on the planet does: > > class Foo(SimpleItem): > > my_method1 = DTMLFile('dtml/my_method', globals()) > > my_method2 = PageTemplateFile('zpt/my_other_method', globals()) > > In other words, set them as class attributes, not within > another method. > > And to secure them, do this: > > class Foo2(SimpleItem): > > security = AccessControl.classSecurityInfo() > > security.declareProtected('Some Permission', 'method1') > method1 = PageTemplateFile('zpt/method1', globals()) > > security.declarePrivate('method2') > method2 = PageTemplateFile('zpt/method1', globals()) > > security.declarePublic('method3') > method3 = PageTemplateFile('zpt/method3', globals()) > > -- > > Paul Winkler > http://www.slinkp.com > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) From xaver at babilo.homelinux.net Fri Jan 28 13:55:04 2005 From: xaver at babilo.homelinux.net (Xaver) Date: Fri Jan 28 13:56:24 2005 Subject: [Zope] webmail product Message-ID: <41FA8A88.9010402@babilo.homelinux.net> Hi, I've installed the webmail product v4.3.1 on zope 2.7 but I can't see all the options as described in the readme, I can't see any icons also. when I call the webmail page at the top of the page I see this: "Il n y a pas de carnet d adresse,cliquez sur l icone -Contact- pour en creer un" but I don't know what it is. I'm quite new to zope, i find it fantastic. I'm traing to unterstand how can I automatically add the webmail to every new registered user, is this possible? How can I set automatically the username and the password which the user has choosed by registering in the property of the webmail modul I'm looking for a good zope programmer for the costruction of a webmail portal. Interested people can contact me at javier@callwayonline.de. Regards. Xaver From dieter at handshake.de Fri Jan 28 14:02:49 2005 From: dieter at handshake.de (Dieter Maurer) Date: Fri Jan 28 14:12:55 2005 Subject: [Zope] Performance Monitoring In-Reply-To: References: Message-ID: <16890.35929.228477.924251@gargle.gargle.HOWL> Marc Burgauer wrote at 2005-1-28 13:31 +0000: >After having tried to get a couple of commercial apps running without >success (lack of platform support), I wonder if somebody on the list >can point me to a product. > >I need to build a server cost model for an existing Zope/PostgreSQL >app, currently running on Solaris/Intel. I want to be able to measure: >- CPU and Memory load of PostgreSQL, Zope and Apache processes I use "top" for this. >- Disk usage "du" and "df" might help you. >- Network usage "netstat" might help you. -- Dieter From dieter at handshake.de Fri Jan 28 14:00:26 2005 From: dieter at handshake.de (Dieter Maurer) Date: Fri Jan 28 14:13:03 2005 Subject: [Zope] LocalFS-1-3-andreas and Zope 2.7.2 In-Reply-To: <41F973CB.1050501@simplistix.co.uk> References: <41F973CB.1050501@simplistix.co.uk> Message-ID: <16890.35786.550512.96072@gargle.gargle.HOWL> Chris Withers wrote at 2005-1-27 23:05 +0000: >Has anyone else here noticed that with Zope 2.7.x and >LocalFS-1-3-andreas, when FS-based objects are changes through LocalFS, >changes are also stored to the ZODB (you'll see a transaction for any >change made in the Undo tab of the root of your Zope instance) as well? > >The changes are made up as follows (from fsdump.py): > > data #00000 oid=000000000000727e class=OFS.Image.Pdata > data #00001 oid=000000000000727f class=OFS.Image.Pdata > data #00002 oid=000000000000727c class=OFS.Image.Pdata > data #00003 oid=000000000000727d class=OFS.Image.Pdata > data #00004 oid=000000000000727b class=OFS.Image.Pdata > data #00005 oid=0000000000007282 class=OFS.Image.Pdata > data #00006 oid=0000000000007283 >class=Products.LocalFS.LocalFS.ObjectWrapper > > data #00007 oid=0000000000007280 class=OFS.Image.Pdata > data #00008 oid=0000000000007281 class=OFS.Image.Pdata > >...and packing removes them. This is funny indeed. When a transaction contains an object's data, then this means that either * this object was modified * this object was new *AND* is referenced by a modified persistent object * this object explicitely was assigned a "_p_oid" and was later modified In the first and second case, one would expect that the object is still reachable after the transaction. Thus packing should not remove it. It is highly unlikely, that LocalFS assigns oids explicitly. Thus, three should not apply. Did you show us a complete transaction? Or are more objects involved? >Does anyone know what's causing this and what could be done to fix it? Debugging in an interactive Python session? -- Dieter From simon at joyful.com Fri Jan 28 15:43:55 2005 From: simon at joyful.com (Simon Michael) Date: Fri Jan 28 15:43:59 2005 Subject: [Zope] Re: January Bug Day Roundup In-Reply-To: <41FA1CC9.30703@simplistix.co.uk> References: <41FA1CC9.30703@simplistix.co.uk> Message-ID: Thank you all! -Simon From mlopez at qipro.org Fri Jan 28 21:20:35 2005 From: mlopez at qipro.org (Lopez Melvin) Date: Fri Jan 28 21:21:16 2005 Subject: [Zope] WEBPAGE ERROR Message-ID: <002901c505a9$28de5b00$6ccc3242@MLOPEZLAP> Greetings, Please help me with this error. http://67.19.219.106:88/QIPRO/index Please let me knwo how to fix it. I think is the Siteroot, but we don't know how to fix it. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.zope.org/pipermail/zope/attachments/20050128/ca5edd3c/attachment.htm From rpjennings at gmail.com Sat Jan 29 00:55:06 2005 From: rpjennings at gmail.com (Richard Jennings) Date: Sat Jan 29 00:55:07 2005 Subject: [Zope] User-private folderish object Message-ID: Hi All, A python product I am developing needs a 'user-private' folderish object. This seems to be a need that others might have solved but googling has not turned up any results. If I have to do this, my first strategy would be to as follows: Use a __before_publishing_traverse__ hook on my root object to create a session data object. Use its onAdd method to create the user-private object in the root object. Use its onDelete method to destroy the user-private object. I am assuming that this will cause the owner of the 'user-private' object to be the person who logged in and that setting its __ac_roles__ as 'Owner' will limit access to the object to just the session owner. (seems a bit complicated, though!) My question to the Zope cognoscenti is: Is this a viable strategy? Is there a better solution? I use python 2.3 & Zope 2.7.1 TIA Rich From thomas.adams at onlinehome.de Sat Jan 29 07:46:35 2005 From: thomas.adams at onlinehome.de (Thomas Adams) Date: Sat Jan 29 07:46:38 2005 Subject: [Zope] Accessing the ZODB from other applications via ODBC on windows Message-ID: <002501c50600$918498c0$a542e9d9@XPH0001LC> Hello, Perhaps this is a newbie question, but I didn't find something similar in the list now. I want to connect to the ZODB from another applications (something that runs on windows, in this case it should be in MS Access), and read some data entries which I need for this application. Is there a ODBC-Diver availabe for the ZODB, that allows one to access the ZODB from another application? Regards Thomas Adams From bruno at modulix.org Sat Jan 29 14:29:36 2005 From: bruno at modulix.org (bruno modulix) Date: Sat Jan 29 14:20:53 2005 Subject: [Zope] Accessing the ZODB from other applications via ODBC on windows In-Reply-To: <002501c50600$918498c0$a542e9d9@XPH0001LC> References: <002501c50600$918498c0$a542e9d9@XPH0001LC> Message-ID: <41FBE420.7020104@modulix.org> Thomas Adams a ?crit : > Hello, > > Perhaps this is a newbie question, but I didn't find something similar > in the list now. > I want to connect to the ZODB from another applications (something that > runs on windows, > in this case it should be in MS Access), and read > some data entries which I need for this application. > > Is there a ODBC-Diver availabe for the ZODB, that allows one to access > the ZODB from > another application? You can of course connect to the ZODB from any Python app, this is almost trivial (there are some tips on zope.org and other Zope-related sites and lists). I know that Python integrates well with COM, so I guess that it could be possible to write a Python COM object to interface Access with the ZODB. I've also heard of a Catalog-like (was it ZSQLCatalog or like ?) product that allow to run SQL queries on the ZODB. HTH Bruno From dieter at handshake.de Sat Jan 29 15:31:38 2005 From: dieter at handshake.de (Dieter Maurer) Date: Sat Jan 29 15:40:13 2005 Subject: [Zope] Accessing the ZODB from other applications via ODBC on windows In-Reply-To: <002501c50600$918498c0$a542e9d9@XPH0001LC> References: <002501c50600$918498c0$a542e9d9@XPH0001LC> Message-ID: <16891.62122.779692.222228@gargle.gargle.HOWL> Thomas Adams wrote at 2005-1-29 13:46 +0100: > ... >Is there a ODBC-Diver availabe for the ZODB, that allows one to access the >ZODB from >another application? As the ZODB is not a relational (but an object) database and ODBC is designed for access to relational databases, the answer is "no". -- Dieter From dieter at handshake.de Sat Jan 29 15:30:00 2005 From: dieter at handshake.de (Dieter Maurer) Date: Sat Jan 29 15:40:20 2005 Subject: [Zope] User-private folderish object In-Reply-To: References: Message-ID: <16891.62024.413705.535107@gargle.gargle.HOWL> Richard Jennings wrote at 2005-1-29 06:55 +0100: >A python product I am developing needs a 'user-private' folderish >object... > ... >If I have to do this, my first strategy would be to as follows: >Use a __before_publishing_traverse__ hook on my root object to create >a session data object. > >Use its onAdd method to create the user-private object in the root object. Seems to be a very indirect way. Why do you not create the object when you create the user? Or use the session object directly? >Use its onDelete method to destroy the user-private object. Note that this is highly unreliable. Your session may go away without the "onDelete" method being called (e.g. when you shut down your Zope server). >I am assuming that this will cause the owner of the 'user-private' >object to be the person who logged in and that setting its >__ac_roles__ as 'Owner' will limit access to the object to just the >session owner. (seems a bit complicated, though!) "__ac_roles__" has a different purpose (it defines new roles created at this object). You must change the permission role mapping. You can use the "manage_permission" method for this (source somewhere in the "AccessControl" package). >My question to the Zope cognoscenti is: >Is this a viable strategy? will not work. >Is there a better solution? Apparently, you want the lifetime of the "user-private object" be bound to the lifetime of the session. In this case, I would simply put it into the session. This is as safe (and private) as the session itself (which is not completely but rather safe). -- Dieter From ginunn at digitaldoor.net Sat Jan 29 20:45:45 2005 From: ginunn at digitaldoor.net (Ian Nunn) Date: Sat Jan 29 20:45:39 2005 Subject: [Zope] How do you do this? Message-ID: <000f01c5066d$6abefab0$6401a8c0@main> Suppose I have a domain say "mydomain.com". I want to set up n subdomains for user1, user2, ..., usern of the form "useri.mydomain.com". Typing "useri.mydomain.com" in your browser would take you to useri's home page. How do I set up Zope so that useri's pages are served from Zope (actually Plone)? Best Regards Ian Nunn -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.zope.org/pipermail/zope/attachments/20050129/78b46ad4/attachment.htm From rbickers-list-zope2 at logicetc.com Sun Jan 30 03:47:03 2005 From: rbickers-list-zope2 at logicetc.com (Ron Bickers) Date: Sun Jan 30 03:47:39 2005 Subject: [Zope] DateTime.strftime problem Message-ID: <200501300347.03885.rbickers-list-zope2@logicetc.com> I'm running Zope 2.7.4 and I'm trying to format the current time in the format "yyyymmddhhmmssZ" (that is with a timezone of UTC), but I can't do it. The DateTime API says that "A DateTime object's methods return values based on the timezone context." This appares to be the case for all except strftime(). For example (my local timezone is US/Eastern): now = DateTime('US/Pacific') now.pCommonZ() Jan. 30, 2005 12:35 am US/Pacific now.rfc822() Sun, 30 Jan 2005 00:35:58 -0800 now.strftime('%Y/%m/%d %H:%M:%S %Z') 2005/01/30 03:35:58 EST It looks like Collector Bug 1127 (http://zope.org/Collectors/Zope/1127/) changed strftime() to always work in the local timezone, instead of always working in GMT as it did before. But shouldn't it respect the timezone of the DateTime object as do the other methods? Is this a bug? -- Ron From thomas.adams at onlinehome.de Sun Jan 30 05:37:23 2005 From: thomas.adams at onlinehome.de (Thomas Adams) Date: Sun Jan 30 05:37:23 2005 Subject: [Zope] Error when connecting to MYSQL Message-ID: <002101c506b7$aee78f00$c84ce9d9@XPH0001LC> Hello Zopistas, I'm currently using MySQL-python 0.9.2 Zope 2.7.3 Pythom 2.3.4 MySQL 4.0.16 ZMySQLDA 2.0.9 When I try to create or open a mysql database connection I get the following error message: Traceback (innermost last): Module ZPublisher.Publish, line 101, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module Shared.DC.ZRDB.Connection, line 163, in manage_open_connection Module Products.ZMySQLDA.DA, line 126, in connect Module Products.ZMySQLDA.db, line 193, in __init__ AttributeError: server_capabilities Does anybody have an idea about this. Have I used the right versions of the tools above From lists at andreas-jung.com Sun Jan 30 05:49:22 2005 From: lists at andreas-jung.com (Andreas Jung) Date: Sun Jan 30 05:49:27 2005 Subject: [Zope] Error when connecting to MYSQL In-Reply-To: <002101c506b7$aee78f00$c84ce9d9@XPH0001LC> References: <002101c506b7$aee78f00$c84ce9d9@XPH0001LC> Message-ID: <05E40A6B484145E07D12C15F@[192.168.0.100]> --On Sonntag, 30. Januar 2005 11:37 Uhr +0100 Thomas Adams wrote: > Hello Zopistas, > > I'm currently using > > MySQL-python 0.9.2 > Zope 2.7.3 > Pythom 2.3.4 > MySQL 4.0.16 > ZMySQLDA 2.0.9 > > When I try to create or open a mysql database connection > I get the following error message: > > Traceback (innermost last): > Module ZPublisher.Publish, line 101, in publish > Module ZPublisher.mapply, line 88, in mapply > Module ZPublisher.Publish, line 39, in call_object > Module Shared.DC.ZRDB.Connection, line 163, in manage_open_connection > Module Products.ZMySQLDA.DA, line 126, in connect > Module Products.ZMySQLDA.db, line 193, in __init__ > AttributeError: server_capabilities > Does anybody have an idea about this. Have I used the right versions of > the tools above This is a FAQ and answered already a bunch of times. Please look through the mailinglist archive or the archive of the zope-db list. -aj From dieter at handshake.de Sun Jan 30 13:25:58 2005 From: dieter at handshake.de (Dieter Maurer) Date: Sun Jan 30 13:41:31 2005 Subject: [Zope] User-private folderish object In-Reply-To: References: <16891.62024.413705.535107@gargle.gargle.HOWL> Message-ID: <16893.9910.426622.498195@gargle.gargle.HOWL> Please stay on the list (readded)! Richard Jennings wrote at 2005-1-30 07:17 +0100: > ... user-private folder with session lifetime ... > ... >The available documentation talks of session *data* objects. You can put any serializable (picklable) and especially any persistent object into a session. It looks like: obj = (...) session[] = obj You can later access your object with "session[]". [DM] >> This is as safe (and private) as the session itself (which >> is not completely but rather safe). [RJ] >What, exactly, is the weakness here? If someone spoofs the session id, it can look into the session and change it. With sufficient priviledges, someone can list all session objects and look into them (and change them). -- Dieter From dieter at handshake.de Sun Jan 30 13:33:56 2005 From: dieter at handshake.de (Dieter Maurer) Date: Sun Jan 30 13:41:37 2005 Subject: [Zope] DateTime.strftime problem In-Reply-To: <200501300347.03885.rbickers-list-zope2@logicetc.com> References: <200501300347.03885.rbickers-list-zope2@logicetc.com> Message-ID: <16893.10388.626979.777372@gargle.gargle.HOWL> Ron Bickers wrote at 2005-1-30 03:47 -0500: >I'm running Zope 2.7.4 and I'm trying to format the current time in the >format "yyyymmddhhmmssZ" (that is with a timezone of UTC), but I can't do >it. > >The DateTime API says that "A DateTime object's methods return values based >on the timezone context." This appares to be the case for all except >strftime(). > ... > now.rfc822() > Sun, 30 Jan 2005 00:35:58 -0800 > > now.strftime('%Y/%m/%d %H:%M:%S %Z') > 2005/01/30 03:35:58 EST > >It looks like Collector Bug 1127 (http://zope.org/Collectors/Zope/1127/) >changed strftime() to always work in the local timezone, instead of always >working in GMT as it did before. But shouldn't it respect the timezone of >the DateTime object as do the other methods? Is this a bug? I yesterday looked at the implementation of "DateTime.strftime" (Zope 2.7.2). Apparently, it tries to take the timezone into account. And it works for me: >>> now=DateTime() >>> now DateTime('2005/01/30 19:32:08.823 GMT+1') >>> now.strftime('%H') '19' -- Dieter From farcepest at gmail.com Sun Jan 30 13:52:28 2005 From: farcepest at gmail.com (Andy Dustman) Date: Sun Jan 30 13:52:31 2005 Subject: [Zope] Error when connecting to MYSQL In-Reply-To: <05E40A6B484145E07D12C15F@192.168.0.100> References: <002101c506b7$aee78f00$c84ce9d9@XPH0001LC> <05E40A6B484145E07D12C15F@192.168.0.100> Message-ID: <9826f3800501301052770f3c08@mail.gmail.com> On Sun, 30 Jan 2005 11:49:22 +0100, Andreas Jung wrote: > > > --On Sonntag, 30. Januar 2005 11:37 Uhr +0100 Thomas Adams > wrote: > > MySQL-python 0.9.2 > > Zope 2.7.3 > > Pythom 2.3.4 > > MySQL 4.0.16 > > AttributeError: server_capabilities > This is a FAQ and answered already a bunch of times. Please look through > the mailinglist > archive or the archive of the zope-db list. And while you're at it, get a newer version of MySQLdb. -- Computer interfaces should never be made of meat. Using GMail? Setting Reply-to address to <> disables this annoying feature. From dcinege-mlists-dated-1107549322.2ae079 at psychosis.com Sun Jan 30 15:35:15 2005 From: dcinege-mlists-dated-1107549322.2ae079 at psychosis.com (Dave Cinege) Date: Sun Jan 30 15:35:31 2005 Subject: [Zope] ZServerSSL deadlocking Message-ID: <200501301535.15980.dcinege-mlists@psychosis.com> I'm seeing an issue, that (I'm pretty sure) is limited to ZServerSSL for m2c 0.13. I'm using Zope 2.7.4, Python 2.3.4, Linux 2.4.28 and Debian sid. My application is an appliance that I use Zope to mainly handle authentication, and the content is generated by my external methods, which deal with a mysql DB. Clients are directly connected to the LAN, and the amount of requests doesn't really exceed 1 per 3 seconds. All requests (are to) go through https. I consider this a fairly light load. It seems that after a few hours or days of uptime Zope will just cease to serve content. It's sporadic. Today it happened on a unit at a customers location. I was able to ssh in and see it first hand. If I restarted Zope, it MIGHT come back to life. But would only serve a few pages and then dead lock again. I narrowed it down to SSL as I would restart restart zope, and telnet-ssl 127.0.0.1 80 HEAD / HTTP/1.0 And it would return fine. But the first attempt to the same on port 443 would deadlock, and no requests would come back on 80. (I can reconnect to 80, but it never replies) What is REALLY strange is I know if I had rebooted the unit it would have went back to normal. But in what ever state things were in, by COMPLETELY killing the zope application and restarting it would deadlock very quickly upon SSL connect. After I saw this, I removed the HTTPS section from the zope.conf and allowed clients to connect with http. So far, it's seems ZServerSSL is the cause of this issue. Now to make matters worse: I see nothing in the logs before the deadlock. No dmesg output. No syslog output. Free output looks fine. PS output looks fine I see no active memory leaks The the very strange thing is if I reboot the unit, it would work fine again, for an indeterminable amount of time. One thought that has come to mind is it's running the random pool dry and waiting...but m2crypto draws from /dev/urandom, right? So that shouldn't be an issue. Any ideas? From tseaver at zope.com Sun Jan 30 15:55:47 2005 From: tseaver at zope.com (Tres Seaver) Date: Sun Jan 30 15:56:04 2005 Subject: [Zope] Re: How do you do this? In-Reply-To: <000f01c5066d$6abefab0$6401a8c0@main> References: <000f01c5066d$6abefab0$6401a8c0@main> Message-ID: <41FD49D3.7040007@zope.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ian Nunn wrote: | Suppose I have a domain say "mydomain.com". I want to set up n | subdomains for user1, user2, ..., usern of the form | "useri.mydomain.com". Typing "useri.mydomain.com" in your browser | would take you to useri's home page. How do I set up Zope so that | useri's pages are served from Zope (actually Plone)? Have a look at the mappings tab of the VirtualHostMonster you add in the root of your Zope. Tres. - -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFB/UnTGqWXf00rNCgRAouiAJsED6tqTYQn0bkS3OXOuxaeu74BoACffndl JUc0bMkmMNVcLXbJ9jbCEg0= =GqtD -----END PGP SIGNATURE----- From gtesseris at ebox.gr Sun Jan 30 16:45:45 2005 From: gtesseris at ebox.gr (George Tesseris) Date: Sun Jan 30 16:46:02 2005 Subject: [Zope] Indexes and not engilsh texts Message-ID: <41FD5589.3080906@ebox.gr> Only english text is cataloged by a ZCTextIndex? Is this true? Any solutions? Thx in advance... George From davids at sdsc.edu Sun Jan 30 17:46:36 2005 From: davids at sdsc.edu (David Stockwell) Date: Sun Jan 30 17:46:39 2005 Subject: [Zope] web server in zope problem Message-ID: <41FD63CC.9070105@sdsc.edu> Hi, I have a problem where the zope instance I have been running has suddenly gone down. I seems that zope processes are alive, but is just not responding to http requests. The only indication I can find is from the Z2.log file below: where it chokes on the http header. Any suggestions welcome. zope: Zope-2.6.0b2-linux2-x86 python: Python 2.3.2 (#1, Nov 24 2003, 21:39:46) Cheers 64.242.88.10 - Anonymous [30/Jan/2005:18:37:05 +0000] "GET /PHYLO/focus_groups/central_resource/Collector.CentralResource/7 HTTP/1.1" 200 29659 "" "Mozilla/4.0 compatible ZyBorg/1.0 (wn-12.zyborg@looksmart.net; http://www.WISEnutbot.com)" 64.242.88.10 - Anonymous [30/Jan/2005:20:05:56 +0000] "GET /PHYLO/Members/bmishler/index_html/portal_form/sendto_form HTTP/1.1" 200 17653 "" "Mozilla/4.0 compatible ZyBorg/1.0 (wn-12.zyborg@looksmart.net; http://www.WISEnutbot.com)" 64.242.88.10 - Anonymous [30/Jan/2005:20:39:42 +0000] "GET /PHYLO/focus_groups/?month:int=2&year:int=2005 HTTP/1.1" 200 20404 "" "Mozilla/4.0 compatible ZyBorg/1.0 (wn-12.zyborg@looksmart.net; http://www.WISEnutbot.com)" 63.94.64.78 - Anonymous [30/Jan/2005:20:48:24 +0000] "HEAD /PHYLO HTTP/1.1" 200 415 "" "NetMechanic V4.0" 67.111.84.2 1544 ==> 220 landscape FTP server (Medusa Async V1.21 [experimental]) ready. 67.111.84.2 1544 <== GET / HTTP/1.1 67.111.84.2 1544 ==> 500 'GET': command not understood. 67.111.84.2 1544 <== Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */* 67.111.84.2 1544 ==> 500 'Accept:': command not understood. 67.111.84.2 1544 <== Accept-Language: en-us 67.111.84.2 1544 ==> 500 'Accept-Language:': command not understood. 67.111.84.2 1544 <== Accept-Encoding: gzip, deflate 67.111.84.2 1544 ==> 500 'Accept-Encoding:': command not understood. 67.111.84.2 1544 <== User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) 67.111.84.2 1544 ==> 500 'User-Agent:': command not understood. 67.111.84.2 1544 <== Host: landscape.sdsc.edu:8021 67.111.84.2 1544 ==> 500 'Host:': command not understood. 67.111.84.2 1544 <== Connection: Keep-Alive 67.111.84.2 1544 ==> 500 'Connection:': command not understood. 67.111.84.2 1544 <== Cookie: __ac_name="mmiller"; Bugzilla_login=mmiller@sdsc.edu; Bugzilla_logincookie=100; VERSION-Web site=unspecified 67.111.84.2 1544 ==> 500 'Cookie:': command not understood. 64.242.88.10 - Anonymous [30/Jan/2005:21:38:51 +0000] "GET /PHYLO/focus_groups/software/Collector.Software/collector_contents HTTP/1.1" 200 27827 "" "Mozilla/4.0 compatible ZyBorg/1.0 (wn-12.zyborg@looksmart.net; http://www.WISEnutbot.com)" 81.225.33.73 - Anonymous [30/Jan/2005:22:02:10 +0000] "GET /favicon.ico HTTP/1.1" 404 1538 "" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0" 81.225.33.73 - Anonymous [30/Jan/2005:22:02:12 +0000] "GET /IPBIR/Members/nbekiares/tax_summary_10jan03 HTTP/1.1" 200 307500 "http://www.google.com/search?q=%22callicebus+coimbrai%22&hl=en&lr=&start=40&sa=N" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0" -- David R.B. Stockwell, PhD Assistant Research Scientist University of California, San Diego San Diego Supercomputer Center, MC 0505 9500 Gilman Dr, Bldg 109 La Jolla, CA 92093-0505 Tel: 858 8220942 Fax: 858 5345056 Web: http://biodi.sdsc.edu Email: davids@sdsc.edu From fernando at cmartins.demon.nl Sun Jan 30 18:14:20 2005 From: fernando at cmartins.demon.nl (Fernando Martins) Date: Sun Jan 30 18:15:46 2005 Subject: [Zope] permissions for a single user Message-ID: I've given "View management screen" permissions to authenticated users and I want to create for a specific user a sub-folder where he can create instances of zope products (Intranet site). How can I assign specific permissions to specific users? Regards, Fernando From allison at sumeru.stanford.EDU Sun Jan 30 18:32:51 2005 From: allison at sumeru.stanford.EDU (Dennis Allison) Date: Sun Jan 30 18:33:00 2005 Subject: [Zope] permissions for a single user In-Reply-To: Message-ID: Review the permissions for a Manager and see if they are OK for you user. Is so, give her a Manager's role at login. Alternatively, you can add a special role, say "wheel" and assign appropriate permissions. Set the permissions you want in the security tab at the root of your account. If you want them to apply to only a subpart of the site, you can add them at an interior node. If there's only one thing, you may be able to use the proxy mechanism. On Mon, 31 Jan 2005, Fernando Martins wrote: > I've given "View management screen" permissions to authenticated users and I > want to create for a specific user a sub-folder where he can create > instances of zope products (Intranet site). > > How can I assign specific permissions to specific users? > > Regards, > Fernando > > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) > From chrism at plope.com Sun Jan 30 18:34:00 2005 From: chrism at plope.com (Chris McDonough) Date: Sun Jan 30 18:34:06 2005 Subject: [Zope] permissions for a single user In-Reply-To: References: Message-ID: <1107128039.9770.124.camel@athlon> Use the "local roles" facility on the security tab. On Sun, 2005-01-30 at 18:14, Fernando Martins wrote: > I've given "View management screen" permissions to authenticated users and I > want to create for a specific user a sub-folder where he can create > instances of zope products (Intranet site). > > How can I assign specific permissions to specific users? > > Regards, > Fernando > > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) > From mlopez at qipro.org Sun Jan 30 19:09:23 2005 From: mlopez at qipro.org (Lopez Melvin) Date: Sun Jan 30 19:10:01 2005 Subject: [Zope] Module ZPublisher.Publish Message-ID: <000801c50729$22f67d40$71cc3242@MLOPEZLAP> Please help me with this issue. Site Error An error was encountered while publishing this resource. Bad Request Sorry, a site error occurred. Traceback (innermost last): a.. Module ZPublisher.Publish, line 150, in publish_module b.. Module ZPublisher.Publish, line 114, in publish c.. Module Zope.App.startup, line 199, in zpublisher_exception_hook d.. Module ZPublisher.Publish, line 98, in publish e.. Module ZPublisher.mapply, line 88, in mapply f.. Module ZPublisher.Publish, line 39, in call_object g.. Module OFS.ObjectManager, line 527, in manage_importObject Bad Request: File does not exist: Examples.zexp (Also, an error occurred while attempting to render the standard error message.) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.zope.org/pipermail/zope/attachments/20050130/d34d5791/attachment.htm From tseaver at zope.com Sun Jan 30 19:10:20 2005 From: tseaver at zope.com (Tres Seaver) Date: Sun Jan 30 19:10:34 2005 Subject: [Zope] Re: web server in zope problem In-Reply-To: <41FD63CC.9070105@sdsc.edu> References: <41FD63CC.9070105@sdsc.edu> Message-ID: <41FD776C.8000105@zope.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 David Stockwell wrote: | Hi, | I have a problem where the zope instance I have been running has suddenly | gone down. I seems that zope processes are alive, but is just not | responding | to http requests. The only indication I can find is from the Z2.log | file below: | where it chokes on the http header. Any suggestions welcome. | zope: Zope-2.6.0b2-linux2-x86 | python: Python 2.3.2 (#1, Nov 24 2003, 21:39:46) | Cheers | | 64.242.88.10 - Anonymous [30/Jan/2005:18:37:05 +0000] "GET | /PHYLO/focus_groups/central_resource/Collector.CentralResource/7 | HTTP/1.1" 200 29659 "" "Mozilla/4.0 compatible ZyBorg/1.0 | (wn-12.zyborg@looksmart.net; http://www.WISEnutbot.com)" | 64.242.88.10 - Anonymous [30/Jan/2005:20:05:56 +0000] "GET | /PHYLO/Members/bmishler/index_html/portal_form/sendto_form HTTP/1.1" 200 | 17653 "" "Mozilla/4.0 compatible ZyBorg/1.0 (wn-12.zyborg@looksmart.net; | http://www.WISEnutbot.com)" | 64.242.88.10 - Anonymous [30/Jan/2005:20:39:42 +0000] "GET | /PHYLO/focus_groups/?month:int=2&year:int=2005 HTTP/1.1" 200 20404 "" | "Mozilla/4.0 compatible ZyBorg/1.0 (wn-12.zyborg@looksmart.net; | http://www.WISEnutbot.com)" | 63.94.64.78 - Anonymous [30/Jan/2005:20:48:24 +0000] "HEAD /PHYLO | HTTP/1.1" 200 415 "" "NetMechanic V4.0" | 67.111.84.2 1544 ==> 220 landscape FTP server (Medusa Async V1.21 | [experimental]) ready. | 67.111.84.2 1544 <== GET / HTTP/1.1 | 67.111.84.2 1544 ==> 500 'GET': command not understood. | 67.111.84.2 1544 <== Accept: image/gif, image/x-xbitmap, image/jpeg, | image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, | application/msword, application/x-shockwave-flash, */* | 67.111.84.2 1544 ==> 500 'Accept:': command not understood. | 67.111.84.2 1544 <== Accept-Language: en-us | 67.111.84.2 1544 ==> 500 'Accept-Language:': command not understood. | 67.111.84.2 1544 <== Accept-Encoding: gzip, deflate | 67.111.84.2 1544 ==> 500 'Accept-Encoding:': command not understood. | 67.111.84.2 1544 <== User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; | Windows NT 5.1; SV1; .NET CLR 1.1.4322) | 67.111.84.2 1544 ==> 500 'User-Agent:': command not understood. | 67.111.84.2 1544 <== Host: landscape.sdsc.edu:8021 | 67.111.84.2 1544 ==> 500 'Host:': command not understood. | 67.111.84.2 1544 <== Connection: Keep-Alive | 67.111.84.2 1544 ==> 500 'Connection:': command not understood. | 67.111.84.2 1544 <== Cookie: __ac_name="mmiller"; | Bugzilla_login=mmiller@sdsc.edu; Bugzilla_logincookie=100; VERSION-Web | site=unspecified | 67.111.84.2 1544 ==> 500 'Cookie:': command not understood. | 64.242.88.10 - Anonymous [30/Jan/2005:21:38:51 +0000] "GET | /PHYLO/focus_groups/software/Collector.Software/collector_contents | HTTP/1.1" 200 27827 "" "Mozilla/4.0 compatible ZyBorg/1.0 | (wn-12.zyborg@looksmart.net; http://www.WISEnutbot.com)" | 81.225.33.73 - Anonymous [30/Jan/2005:22:02:10 +0000] "GET /favicon.ico | HTTP/1.1" 404 1538 "" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; | rv:1.7.5) Gecko/20041107 Firefox/1.0" | 81.225.33.73 - Anonymous [30/Jan/2005:22:02:12 +0000] "GET | /IPBIR/Members/nbekiares/tax_summary_10jan03 HTTP/1.1" 200 307500 | "http://www.google.com/search?q=%22callicebus+coimbrai%22&hl=en&lr=&start=40&sa=N" | "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) | Gecko/20041107 Firefox/1.0" | Looks like somebody is connecting to your FTP port with an HTTP client. Tres. - -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFB/XdsGqWXf00rNCgRAiJcAJ9WkyQnSL8wBnLjyGLinrM3SNjiaQCgmubs wCxAJv5Wi7+htpK0jwBzsg8= =wqyz -----END PGP SIGNATURE----- From segedunum at actuaria.co.uk Sun Jan 30 19:43:02 2005 From: segedunum at actuaria.co.uk (Segedunum) Date: Sun Jan 30 19:43:04 2005 Subject: [Zope] Migration of Zope 2.2.3 Installation Message-ID: <200501310043.02496.segedunum@actuaria.co.uk> Hi All, I've got a server that is running Zope 2.2.3 (currently using Python 1.5) that I need to migrate, and I'd appreciate some advice. Given some cyclic dependencies on this system we can't upgrade Zope straight away, but we need to upgrade the rest of the system which indirectly entails updating to Python 2.4 which is unavoidable. Does Zope 2.2.3 depend tightly on Python 1.5, or could it run under 2.4? If not I'll have to think about some kind of slotted install and move over. Just wondering if there any issues people have encountered in upgrading pretty old Zope servers that may be helpful, such as migrating the Data.fs (this is pretty large). Thanks, David From pw_lists at slinkp.com Sun Jan 30 20:12:49 2005 From: pw_lists at slinkp.com (Paul Winkler) Date: Sun Jan 30 20:12:52 2005 Subject: [Zope] Migration of Zope 2.2.3 Installation In-Reply-To: <200501310043.02496.segedunum@actuaria.co.uk> References: <200501310043.02496.segedunum@actuaria.co.uk> Message-ID: <20050131011249.GA2900@slinkp.com> On Mon, Jan 31, 2005 at 12:43:02AM +0000, Segedunum wrote: > Given some cyclic dependencies on this system we can't upgrade Zope straight > away, but we need to upgrade the rest of the system which indirectly entails > updating to Python 2.4 which is unavoidable. Does Zope 2.2.3 depend tightly > on Python 1.5, or could it run under 2.4? Even *current* stable releases of Zope are not officially supported for python 2.4. >If not I'll have to think about > some kind of slotted install and move over. Your zope start scripts should specify which version of python they use, and there is no reason not to have multiple versions of python installed. Dunno about your upgrade process per se, it's been so long since I've even *seen* a zope 2.2 system :-) But I would NOT try to run it on anything other than python 1.5. -- Paul Winkler http://www.slinkp.com From rbickers-list-zope2 at logicetc.com Sun Jan 30 21:02:29 2005 From: rbickers-list-zope2 at logicetc.com (Ron Bickers) Date: Sun Jan 30 21:02:45 2005 Subject: [Zope] DateTime.strftime problem In-Reply-To: <16893.10388.626979.777372@gargle.gargle.HOWL> References: <200501300347.03885.rbickers-list-zope2@logicetc.com> <16893.10388.626979.777372@gargle.gargle.HOWL> Message-ID: <200501302102.29561.rbickers-list-zope2@logicetc.com> On Sunday 30 January 2005 01:33 pm, Dieter Maurer wrote: > I yesterday looked at the implementation of "DateTime.strftime" (Zope > 2.7.2). Apparently, it tries to take the timezone into account. > > And it works for me: > >>> now=DateTime() > >>> now > > DateTime('2005/01/30 19:32:08.823 GMT+1') > > >>> now.strftime('%H') > > '19' What do you get when you try my examples? You only used your local timezone, which works fine for me too, but it doesn't work when I'm trying to use a different timezone than my own. Also, according to notes in the bug I referenced, it looks like the behavior may have changed starting with 2.7.4. -- Ron -- Ron Bickers Logic Etc, Inc. From a_bloke at mac.com Sun Jan 30 22:04:39 2005 From: a_bloke at mac.com (Jamie van Dyke) Date: Sun Jan 30 22:06:03 2005 Subject: [Zope] KeyError with everything Message-ID: Hi, I wondered if anyone could help me on this issue that is driving me nuts. I'm new to zope, and google has been fruitless on this. I have installed Zope 2.7, Plone 2.0.5, and have Python 2.4 on. Not supported, I know, but I needed 2.4 for something else, so figured I'd try it. Anyway, I have it all up and running fine, but some Products won't install. E.g. SimpleBlog, CMFBoard, and ArchExample. Well, okay, they will install, and zope will start, but they all have the same symptoms. Whenever I add a blog, forum, or article from them, I get a KeyError, on field 'zid'. With ArchExample, it actually says "I can't find this file", but I know it means the same error (I hope). I've also tried creating my own class in ArgoUML, ArchGenXML'ing it, and I get the same with that too. Even if I create the simplest of classes. Wha could be wrong here? Give me hints and I'll dig deeper, it's just that I can't find anything on google at all :-/ Thanks, Jamie From lists at andreas-jung.com Mon Jan 31 01:21:02 2005 From: lists at andreas-jung.com (Andreas Jung) Date: Mon Jan 31 01:21:05 2005 Subject: [Zope] Indexes and not engilsh texts In-Reply-To: <41FD5589.3080906@ebox.gr> References: <41FD5589.3080906@ebox.gr> Message-ID: --On Sonntag, 30. Januar 2005 23:45 Uhr +0200 George Tesseris wrote: > Only english text is cataloged by a ZCTextIndex? Is this true? Any > solutions? This is not true. Why do you ask?? Otherwise look at TextIndexNG. -aj From rbickers-list-zope2 at logicetc.com Mon Jan 31 01:38:37 2005 From: rbickers-list-zope2 at logicetc.com (Ron Bickers) Date: Mon Jan 31 01:39:00 2005 Subject: [Zope] DateTime.strftime problem In-Reply-To: <200501300347.03885.rbickers-list-zope2@logicetc.com> References: <200501300347.03885.rbickers-list-zope2@logicetc.com> Message-ID: <200501310138.37744.rbickers-list-zope2@logicetc.com> On Sunday 30 January 2005 03:47 am, Ron Bickers wrote: > I'm running Zope 2.7.4 and I'm trying to format the current time in the > format "yyyymmddhhmmssZ" (that is with a timezone of UTC), but I can't do > it. > > The DateTime API says that "A DateTime object's methods return values > based on the timezone context." This appares to be the case for all > except strftime(). Ok. Looking into time.strftime(), I can see the difficulty in making this work as expected, but I found a way to get what I want. Don't know why I didn't think of it before. utc = DateTime('UTC') "%4d%02d%02d%02d%02d%02dZ" % utc.parts()[:6] Not as pretty, but it works. I guess one can always roll their own strftime with string formatting and all the other DateTime methods. If strftime() is always going to return the time in the local timezone, I suggest it be documented in the API since it's inconsistent with the other methods. Thanks! -- Ron From lists at andreas-jung.com Mon Jan 31 01:51:44 2005 From: lists at andreas-jung.com (Andreas Jung) Date: Mon Jan 31 01:51:48 2005 Subject: [Zope] DateTime.strftime problem In-Reply-To: <200501310138.37744.rbickers-list-zope2@logicetc.com> References: <200501300347.03885.rbickers-list-zope2@logicetc.com> <200501310138.37744.rbickers-list-zope2@logicetc.com> Message-ID: --On Montag, 31. Januar 2005 1:38 Uhr -0500 Ron Bickers wrote: > On Sunday 30 January 2005 03:47 am, Ron Bickers wrote: > >> I'm running Zope 2.7.4 and I'm trying to format the current time in the >> format "yyyymmddhhmmssZ" (that is with a timezone of UTC), but I can't do >> it. >> >> The DateTime API says that "A DateTime object's methods return values >> based on the timezone context." This appares to be the case for all >> except strftime(). > > Ok. Looking into time.strftime(), I can see the difficulty in making this > work as expected, but I found a way to get what I want. Don't know why I > didn't think of it before. > > utc = DateTime('UTC') > "%4d%02d%02d%02d%02d%02dZ" % utc.parts()[:6] > > Not as pretty, but it works. I guess one can always roll their own > strftime with string formatting and all the other DateTime methods. > > If strftime() is always going to return the time in the local timezone, I > suggest it be documented in the API since it's inconsistent with the > other methods. > If you think that this is a bug: file a collector issue preferred with a patch and unittests if you want to see this fixed in the next releases. Andreas From neil_matthews at excite.com Mon Jan 31 03:03:27 2005 From: neil_matthews at excite.com (neil) Date: Mon Jan 31 03:03:29 2005 Subject: [Zope] Linking Zope to Apache 1.3 Message-ID: <20050131080327.4FA903E1D@xprdmailfe11.nwk.excite.com> Hi i am setting up apache to work with Zope. I am using the documentation at http://plone.org/documentation/howto/plone-with-apache-1.3/view?searchterm=plone%20with%20apache I have istalled the Virtual host monster ok but my question is reguards the piece of code ServerName me.com ServerAlias www.me.com ServerAdmin webmaster@me.com ProxyPass / http://localhost:8080/VirtualHostBase/http/me.com:80/mysite/VirtualHostRoot/ ProxyPassReverse / http://localhost:8080/VirtualHostBase/http/me.com:80/mysite/VirtualHostRoot/ I was wondering if you simply add this to your httpd.conf file or do you replace what is already there with this? Thanks for any help. Neil _______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web! From Pperegrina at Lastminute.com Mon Jan 31 03:06:23 2005 From: Pperegrina at Lastminute.com (Pascal Peregrina) Date: Mon Jan 31 03:06:34 2005 Subject: [Zope] Module ZPublisher.Publish Message-ID: Well, it looks like you are trying to import an object but Zope can not find the file in it's "Import" directory. (by default, objects get exported to the "var" directory, so you then have to move them to the "Import" directory to import them back) Pascal -----Message d'origine----- De : zope-bounces@zope.org [mailto:zope-bounces@zope.org]De la part de Lopez Melvin Envoy? : lundi 31 janvier 2005 01:09 ? : zope@zope.org Objet : [Zope] Module ZPublisher.Publish Please help me with this issue. Site Error An error was encountered while publishing this resource. Bad Request Sorry, a site error occurred. Traceback (innermost last): Module ZPublisher.Publish, line 150, in publish_module Module ZPublisher.Publish, line 114, in publish Module Zope.App.startup, line 199, in zpublisher_exception_hook Module ZPublisher.Publish, line 98, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module OFS.ObjectManager, line 527, in manage_importObject Bad Request: File does not exist: Examples.zexp (Also, an error occurred while attempting to render the standard error message.) ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** From lists at andreas-jung.com Mon Jan 31 03:17:32 2005 From: lists at andreas-jung.com (Andreas Jung) Date: Mon Jan 31 03:17:36 2005 Subject: [Zope] Linking Zope to Apache 1.3 In-Reply-To: <20050131080327.4FA903E1D@xprdmailfe11.nwk.excite.com> References: <20050131080327.4FA903E1D@xprdmailfe11.nwk.excite.com> Message-ID: --On Montag, 31. Januar 2005 3:03 Uhr -0500 neil wrote: > > Hi i am setting up apache to work with Zope. I am using the documentation > at > > http://plone.org/documentation/howto/plone-with-apache-1.3/view?searchter > m=plone%20with%20apache > > I have istalled the Virtual host monster ok but my question is reguards > the piece of code > > > ServerName me.com > ServerAlias www.me.com > ServerAdmin webmaster@me.com > ProxyPass / > http://localhost:8080/VirtualHostBase/http/me.com:80/mysite/VirtualHostRo > ot/ ProxyPassReverse / > http://localhost:8080/VirtualHostBase/http/me.com:80/mysite/VirtualHostRo > ot/ > > I was wondering if you simply add this to your httpd.conf file or do you > replace what is already there with this? > That's really your choice how to organize your configuration. If you want it modular then create a dedicated config file and include it into the main httpd.conf or put everything together in one place.....a decision that you must make... -aj From bruno at modulix.org Mon Jan 31 04:39:53 2005 From: bruno at modulix.org (bruno modulix) Date: Mon Jan 31 04:39:58 2005 Subject: [Zope] KeyError with everything In-Reply-To: References: Message-ID: <41FDFCE9.3050500@modulix.org> Jamie van Dyke wrote: > Hi, I wondered if anyone could help me on this issue that is driving me > nuts. I'm new to zope, and google has been fruitless on this. > > I have installed Zope 2.7, Plone 2.0.5, and have Python 2.4 on. Not > supported, I know, but I needed 2.4 for something else, so figured I'd > try it. > > Anyway, I have it all up and running fine, but some Products won't > install. E.g. SimpleBlog, CMFBoard, and ArchExample. Well, okay, they > will install, and zope will start, but they all have the same symptoms. > Whenever I add a blog, forum, or article from them, I get a KeyError, on > field 'zid'. With ArchExample, it actually says "I can't find this > file", but I know it means the same error (I hope). > > I've also tried creating my own class in ArgoUML, ArchGenXML'ing it, and > I get the same with that too. Even if I create the simplest of classes. > > Wha could be wrong here? Give me hints and I'll dig deeper, it's just > that I can't find anything on google at all :-/ You already answered the question : Zope 2.7.x does not run on Python 2.4.x. Note that nothing prevents you from having two Python versions on the same system. -- Bruno Desthuilliers D?veloppeur bruno@modulix.org From chris at simplistix.co.uk Mon Jan 31 05:22:21 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Mon Jan 31 05:22:23 2005 Subject: [Zope] LocalFS-1-3-andreas and Zope 2.7.2 In-Reply-To: <16890.35786.550512.96072@gargle.gargle.HOWL> References: <41F973CB.1050501@simplistix.co.uk> <16890.35786.550512.96072@gargle.gargle.HOWL> Message-ID: <41FE06DD.9030501@simplistix.co.uk> Dieter Maurer wrote: >>...and packing removes them. > > This is funny indeed. I think that depends on whether you're maintaining the Zope server that has 1.5GB of disk space eaten up by junk ;-) > When a transaction contains an object's data, then this > means that either > > * this object was modified > > * this object was new *AND* is referenced by a modified > persistent object > > * this object explicitely was assigned a "_p_oid" and > was later modified > > In the first and second case, one would expect that the > object is still reachable after the transaction. > Thus packing should not remove it. > > It is highly unlikely, that LocalFS assigns oids explicitly. > Thus, three should not apply. Yes, but remember what LocalFS is doing is trying to spoof Zope into believing objects come from within the ZODB, while actually storing them on the file system. I have a hunch that it probably mixes OFS.Image.File into its "File" objects, and OFS.Image.File is doing something naughty (it usually does, it's got some VERY esoteric code in it ;-) which results in data being comitted to the ZODB. However, since LocalFS manages to not store any data in the ZODB, the stuff OFS.Image.File causes to get comitted probably gets packed away... Sound plausible? I'm still keen to hear of anyone else who can reproduce this... > Did you show us a complete transaction? Yep, pretty sure I did. > Or are more objects involved? Nope. All data in this project is supposed to be stored either in Oracle or on the file system (accessed through LocalFS). >>Does anyone know what's causing this and what could be done to fix it? > > Debugging in an interactive Python session? Okay, but what am I looking for? Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From chris at simplistix.co.uk Mon Jan 31 05:27:49 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Mon Jan 31 05:27:51 2005 Subject: [Zope] webmail product In-Reply-To: <41FA8A88.9010402@babilo.homelinux.net> References: <41FA8A88.9010402@babilo.homelinux.net> Message-ID: <41FE0825.2040203@simplistix.co.uk> Xaver wrote: > I've installed the webmail product v4.3.1 on zope 2.7 but I can't see What webmail product?! > I'm traing to unterstand how can I automatically add the webmail to > every new registered user, is this possible? "registered user" sounds like you might be dealing with CMF or Plone, is that the case? Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From chris at simplistix.co.uk Mon Jan 31 05:26:32 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Mon Jan 31 05:27:56 2005 Subject: [Zope] [Fwd: TALs Expressions] In-Reply-To: <41FA504D.5020007@purdue.edu> References: <41FA504D.5020007@purdue.edu> Message-ID: <41FE07D8.1020103@simplistix.co.uk> Brian Brinegar wrote: >

Has a Title

>

Has an Id

>

Has a Title or Id

I believe what you really may be looking for is:

cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From chris at simplistix.co.uk Mon Jan 31 05:52:00 2005 From: chris at simplistix.co.uk (Chris Withers) Date: Mon Jan 31 05:52:04 2005 Subject: [Zope] Re: PAM In-Reply-To: References: Message-ID: <41FE0DD0.4010009@simplistix.co.uk> (please keep replies on the lists) dma0380 wrote: > In as far as the PluggableAuthenticationService, that is new in Zope > 3, correct? Zope 3 has it's own PAS implementation. There is also a PAS product for Zope 2. > I'm still running 2.6.4 because of a lot of problems I > had attempting to upgrade. So, I'm also currently working on that > issue as well. You should probably ask about that on the mailing lists. 2.6.x is somewhat fossilized now and ther are many features in the 2.7 series that make it well worthwhile upgrading... cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From bennetttm at appstate.edu Mon Jan 31 08:44:05 2005 From: bennetttm at appstate.edu (Thomas Bennett) Date: Mon Jan 31 08:53:40 2005 Subject: [Zope] permissions for a single user In-Reply-To: <1107128039.9770.124.camel@athlon> References: <1107128039.9770.124.camel@athlon> Message-ID: <1107179044.9860.1395.camel@bennetttm-1.library.appstate.edu> Isn't anonymous an authenticated user even though the default rights are usually view only? Thomas On Sun, 2005-01-30 at 18:34, Chris McDonough wrote: > Use the "local roles" facility on the security tab. > > On Sun, 2005-01-30 at 18:14, Fernando Martins wrote: > > I've given "View management screen" permissions to authenticated users and I > > want to create for a specific user a sub-folder where he can create > > instances of zope products (Intranet site). > > > > How can I assign specific permissions to specific users? > > > > Regards, > > Fernando > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > http://mail.zope.org/mailman/listinfo/zope > > ** No cross posts or HTML encoding! ** > > (Related lists - > > http://mail.zope.org/mailman/listinfo/zope-announce > > http://mail.zope.org/mailman/listinfo/zope-dev ) > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) From jan at bruvoll.com Mon Jan 31 09:40:43 2005 From: jan at bruvoll.com (Jan Bruvoll) Date: Mon Jan 31 09:41:04 2005 Subject: [Zope] Acquisition - I don't get it Message-ID: <41FE436B.3010604@bruvoll.com> Hi there, I've been struggling with something that must be very basic, but I just don't get it. Hopefully, there's somebody out there who could enlighten me a little... I have this site hierarchy, something like this: /top /top/section1/ /top/section1/chapter1 /top/section1/chapter1/paragraph1 /top/section1/chapter1/paragraph2 /top/section1/chapter2 /top/section1/chapter2/paragraph1 /top/section2/ /top/section2/chapter1 /top/section2/chapter1/paragraph1 etc. These are all folders with an index_html inside them. The template will have, among other things, a site title image, a section title image, and a page title image for each page. The idea here is to be able to create a folder img/ at appropriate levels of this hierarchy and use images section_title.gif, chapter_title.gif, page_title.gif, etc. This might be where I've misunderstood everything, but I was hoping to do something like this: If for instance looking at one of the paragraph pages, the template would then, in my perfect world, start looking for an "img/" folder at the current level, and within it a file named "section_title.gif", and if it does not find it, it will try again one level up in the hierarchy, until it then finds the section_title.gif in the folder /top/section1/img/section_title.gif. Same goes for the other images, but they would "hit" further down in the hierarchy so that I could effectively let a "closer" image override one with the same name, but further up. Have I got it completely wrong? Is my thinking right, but my syntax wrong? Haven't been able to get anywhere on this - all documentation I can find gives hints and pointers, but I'm still stuck... Any help & comments highly appreciated! Best regards Jan From malcolm at jamkit.com Mon Jan 31 09:49:42 2005 From: malcolm at jamkit.com (Malcolm Cleaton) Date: Mon Jan 31 09:49:59 2005 Subject: [Zope] Re: Acquisition - I don't get it References: <41FE436B.3010604@bruvoll.com> Message-ID: Each element of the path is acquired in turn, and acquisition doesn't backtrack when something cannot be found. So in this case, it starts at the current level and looks for "img", and finds it. So far so good! Then, it starts from that img folder and looks for your image "section_title.gif". It's not here! So, acquisition will move on to search the parent of the img folder, and the parent of that, and so on. Your section title image can't be found anywhere! Result: Not found. At no point will the process backtrack and try other possible "img" folders - when you say "img", you get the first one that can be acquired, and then that's that. To acquire images in the way you describe, you would need to do away with your "img" folders, and include the images directly in each folder in your hierarchy. Thanks, Malcolm. On Mon, 31 Jan 2005 14:40:43 +0000, Jan Bruvoll wrote: > Hi there, > > I've been struggling with something that must be very basic, but I just > don't get it. Hopefully, there's somebody out there who could enlighten > me a little... > > I have this site hierarchy, something like this: > > /top > /top/section1/ > /top/section1/chapter1 > /top/section1/chapter1/paragraph1 > /top/section1/chapter1/paragraph2 > /top/section1/chapter2 > /top/section1/chapter2/paragraph1 > /top/section2/ > /top/section2/chapter1 > /top/section2/chapter1/paragraph1 > > etc. > > These are all folders with an index_html inside them. The template will > have, among other things, a site title image, a section title image, and > a page title image for each page. > > The idea here is to be able to create a folder img/ at appropriate > levels of this hierarchy and use images section_title.gif, > chapter_title.gif, page_title.gif, etc. This might be where I've > misunderstood everything, but I was hoping to do something like this: > > > > If for instance looking at one of the paragraph pages, the template > would then, in my perfect world, start looking for an "img/" folder at > the current level, and within it a file named "section_title.gif", and > if it does not find it, it will try again one level up in the hierarchy, > until it then finds the section_title.gif in the folder > /top/section1/img/section_title.gif. Same goes for the other images, but > they would "hit" further down in the hierarchy so that I could > effectively let a "closer" image override one with the same name, but > further up. > > Have I got it completely wrong? Is my thinking right, but my syntax > wrong? Haven't been able to get anywhere on this - all documentation I > can find gives hints and pointers, but I'm still stuck... > > Any help & comments highly appreciated! > > Best regards > Jan > > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) -- [] j a m k i t web solutions for charities malcolm cleaton T: 020 7549 0520 F: 020 7490 1152 M: 07986 563852 W: www.jamkit.com From jan at bruvoll.com Mon Jan 31 09:57:53 2005 From: jan at bruvoll.com (Jan Bruvoll) Date: Mon Jan 31 09:58:07 2005 Subject: [Zope] Re: Acquisition - I don't get it In-Reply-To: References: <41FE436B.3010604@bruvoll.com> Message-ID: <41FE4771.9040606@bruvoll.com> Hi Malcolm, thanks for your very quick reply. So - if I want to do it "my way", I'd have to write a quick python method that does the searching for me, I presume. However, I already tried doing away with the folders and putting those images directly into the folders, so that there are images across the site like this: /top /top/site-title.gif /top/section1/ /top/section1/section-title.gif /top/section1/chapter1 /top/section1/chapter1/page-title.gif /top/section1/chapter1/paragraph1 /top/section1/chapter1/paragraph1/page-title.gif ... It works in those folders where the relevant images actually are, but the traversal does not kick in. Any pointers to this as well maybe? Thanks again Best regards Jan Malcolm Cleaton wrote: >Each element of the path is acquired in turn, and acquisition doesn't >backtrack when something cannot be found. > >So in this case, it starts at the current level and looks for "img", and >finds it. So far so good! Then, it starts from that img folder and looks >for your image "section_title.gif". It's not here! So, acquisition will >move on to search the parent of the img folder, and the parent of that, >and so on. Your section title image can't be found anywhere! Result: Not >found. At no point will the process backtrack and try other possible "img" >folders - when you say "img", you get the first one that can be acquired, >and then that's that. > >To acquire images in the way you describe, you would need to do away with >your "img" folders, and include the images directly in each folder in your >hierarchy. > >Thanks, >Malcolm. > > >On Mon, 31 Jan 2005 14:40:43 +0000, Jan Bruvoll wrote: > > >>Hi there, >> >>I've been struggling with something that must be very basic, but I just >>don't get it. Hopefully, there's somebody out there who could enlighten >>me a little... >> >>I have this site hierarchy, something like this: >> >>/top >>/top/section1/ >>/top/section1/chapter1 >>/top/section1/chapter1/paragraph1 >>/top/section1/chapter1/paragraph2 >>/top/section1/chapter2 >>/top/section1/chapter2/paragraph1 >>/top/section2/ >>/top/section2/chapter1 >>/top/section2/chapter1/paragraph1 >> >>etc. >> >>These are all folders with an index_html inside them. The template will >>have, among other things, a site title image, a section title image, and >>a page title image for each page. >> >>The idea here is to be able to create a folder img/ at appropriate >>levels of this hierarchy and use images section_title.gif, >>chapter_title.gif, page_title.gif, etc. This might be where I've >>misunderstood everything, but I was hoping to do something like this: >> >> >> >>If for instance looking at one of the paragraph pages, the template >>would then, in my perfect world, start looking for an "img/" folder at >>the current level, and within it a file named "section_title.gif", and >>if it does not find it, it will try again one level up in the hierarchy, >>until it then finds the section_title.gif in the folder >>/top/section1/img/section_title.gif. Same goes for the other images, but >>they would "hit" further down in the hierarchy so that I could >>effectively let a "closer" image override one with the same name, but >>further up. >> >>Have I got it completely wrong? Is my thinking right, but my syntax >>wrong? Haven't been able to get anywhere on this - all documentation I >>can find gives hints and pointers, but I'm still stuck... >> >>Any help & comments highly appreciated! >> >>Best regards >>Jan >> >> From jan at bruvoll.com Mon Jan 31 10:16:48 2005 From: jan at bruvoll.com (Jan Bruvoll) Date: Mon Jan 31 10:17:02 2005 Subject: [Zope] Re: Acquisition - I don't get it In-Reply-To: <41FE4771.9040606@bruvoll.com> References: <41FE436B.3010604@bruvoll.com> <41FE4771.9040606@bruvoll.com> Message-ID: <41FE4BE0.9040106@bruvoll.com> Hi again, forget it - I'm just being daft. Of course it works - had just moved the images around a little too much in my desperation. Thanks for the update on the way the traversal works - everything's a little clearer now! Best regards Jan Jan Bruvoll wrote: > Hi Malcolm, > > thanks for your very quick reply. > > So - if I want to do it "my way", I'd have to write a quick python > method that does the searching for me, I presume. > > However, I already tried doing away with the folders and putting those > images directly into the folders, so that there are images across the > site like this: > > /top > /top/site-title.gif > /top/section1/ > /top/section1/section-title.gif > /top/section1/chapter1 > /top/section1/chapter1/page-title.gif > /top/section1/chapter1/paragraph1 > /top/section1/chapter1/paragraph1/page-title.gif > ... > > It works in those folders where the relevant images actually are, but > the traversal does not kick in. Any pointers to this as well maybe? > > Thanks again > > Best regards > Jan > > > Malcolm Cleaton wrote: > >> Each element of the path is acquired in turn, and acquisition doesn't >> backtrack when something cannot be found. >> >> So in this case, it starts at the current level and looks for "img", and >> finds it. So far so good! Then, it starts from that img folder and looks >> for your image "section_title.gif". It's not here! So, acquisition will >> move on to search the parent of the img folder, and the parent of that, >> and so on. Your section title image can't be found anywhere! Result: Not >> found. At no point will the process backtrack and try other possible >> "img" >> folders - when you say "img", you get the first one that can be >> acquired, >> and then that's that. >> >> To acquire images in the way you describe, you would need to do away >> with >> your "img" folders, and include the images directly in each folder in >> your >> hierarchy. >> >> Thanks, >> Malcolm. >> >> >> On Mon, 31 Jan 2005 14:40:43 +0000, Jan Bruvoll wrote: >> >> >>> Hi there, >>> >>> I've been struggling with something that must be very basic, but I >>> just don't get it. Hopefully, there's somebody out there who could >>> enlighten me a little... >>> >>> I have this site hierarchy, something like this: >>> >>> /top >>> /top/section1/ >>> /top/section1/chapter1 >>> /top/section1/chapter1/paragraph1 >>> /top/section1/chapter1/paragraph2 >>> /top/section1/chapter2 >>> /top/section1/chapter2/paragraph1 >>> /top/section2/ >>> /top/section2/chapter1 >>> /top/section2/chapter1/paragraph1 >>> >>> etc. >>> >>> These are all folders with an index_html inside them. The template >>> will have, among other things, a site title image, a section title >>> image, and a page title image for each page. >>> >>> The idea here is to be able to create a folder img/ at appropriate >>> levels of this hierarchy and use images section_title.gif, >>> chapter_title.gif, page_title.gif, etc. This might be where I've >>> misunderstood everything, but I was hoping to do something like this: >>> >>> >>> >>> If for instance looking at one of the paragraph pages, the template >>> would then, in my perfect world, start looking for an "img/" folder >>> at the current level, and within it a file named >>> "section_title.gif", and if it does not find it, it will try again >>> one level up in the hierarchy, until it then finds the >>> section_title.gif in the folder /top/section1/img/section_title.gif. >>> Same goes for the other images, but they would "hit" further down in >>> the hierarchy so that I could effectively let a "closer" image >>> override one with the same name, but further up. >>> >>> Have I got it completely wrong? Is my thinking right, but my syntax >>> wrong? Haven't been able to get anywhere on this - all documentation >>> I can find gives hints and pointers, but I'm still stuck... >>> >>> Any help & comments highly appreciated! >>> >>> Best regards >>> Jan >>> >> From neil_matthews at excite.com Mon Jan 31 11:18:06 2005 From: neil_matthews at excite.com (neil) Date: Mon Jan 31 11:18:11 2005 Subject: [Zope] Linking Zope to Apache 1.3 Message-ID: <20050131161806.ADB271E4B0@xprdmailfe24.nwk.excite.com> I have tried simply adding the code to my httpd.conf file but unfortunatly it hasn't worked. I have included my httpd.conf file below. I am sure mod_proxy is installed and working fine. It is called although not listed below. I took it out in this email to make it appear better. My main question is reguarding the 2 lines ProxyPass / http://localhost:8080/VirtualHostBase/http/sample.com:80/website/VirtualHostRoot/ ProxyPassReverse / http://localhost:8080/VirtualHostBase/http/sample.com:80/mysite/VirtualHostRoot/ what value does "mysite" represent? Is it where my folder is located on the file system or simply the name of mysite? http.conf ---------------- ### Main Configuration Section #Removed by Apache 2.0 --- ServerType standalone ServerRoot /etc/httpd/2.0 #ServerName localhost #LockFile /etc/httpd/httpd.lock PidFile /var/run/httpd.pid #Removed by Apache 2.0 --- ScoreBoardFile /etc/httpd/httpd.scoreboard ErrorLog logs/error_log LogLevel warn #Removed by Apache 2.0 --- ResourceConfig /dev/null #Removed by Apache 2.0 --- AccessConfig /dev/null DocumentRoot /var/www/html #Modules names I have taken out all of the modules loaded to make it appear shorter ### Global Configuration Include /etc/httpd/conf.d/*.conf Include conf/commonhttpd.conf ### IP Address/Port and Proxied configuration section #BindAddress * #Removed by Apache 2.0 --- Port 8080 Listen 8080 #Removed by Apache 2.0 --- Port 80 Listen 80 RewriteEngine on RewriteRule ^proxy:.* - [F] RewriteRule ^(.*\/perl\/.*)$ http://%{HTTP_HOST}:8200$1 [P] RewriteRule ^(.*\/cgi-perl\/.*)$ http://%{HTTP_HOST}:8200$1 [P] ### Virtual Hosts ServerName sample.com ServerAlias www.sample.com ServerAdmin webmaster@sample.com ProxyPass / http://localhost:8080/VirtualHostBase/http/sample.com:80/website/VirtualHostRoot/ ProxyPassReverse / http://localhost:8080/VirtualHostBase/http/sample.com:80/mysite/VirtualHostRoot/ Timeout 300 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 15 MinSpareServers 4 MaxSpareServers 10 StartServers 4 MaxClients 150 MaxRequestsPerChild 500 ------------------ --- On Mon 01/31, Andreas Jung < lists@andreas-jung.com > wrote: From: Andreas Jung [mailto: lists@andreas-jung.com] To: neil_matthews@excite.com, zope@zope.org Date: Mon, 31 Jan 2005 09:17:32 +0100 Subject: Re: [Zope] Linking Zope to Apache 1.3

--On Montag, 31. Januar 2005 3:03 Uhr -0500 neil
wrote:

>
> Hi i am setting up apache to work with Zope. I am using the documentation
> at
>
> http://plone.org/documentation/howto/plone-with-apache-1.3/view?searchter
> m=plone%20with%20apache
>
> I have istalled the Virtual host monster ok but my question is reguards
> the piece of code
>
>
> ServerName me.com
> ServerAlias www.me.com
> ServerAdmin webmaster@me.com
> ProxyPass /
> http://localhost:8080/VirtualHostBase/http/me.com:80/mysite/VirtualHostRo
> ot/ ProxyPassReverse /
> http://localhost:8080/VirtualHostBase/http/me.com:80/mysite/VirtualHostRo
> ot/

>
> I was wondering if you simply add this to your httpd.conf file or do you
> replace what is already there with this?
>

That's really your choice how to organize your configuration. If you want
it modular
then create a dedicated config file and include it into the main
httpd.conf or put everything
together in one place.....a decision that you must make...

-aj
_______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web! From dieter at handshake.de Mon Jan 31 13:20:56 2005 From: dieter at handshake.de (Dieter Maurer) Date: Mon Jan 31 14:12:16 2005 Subject: [Zope] ZServerSSL deadlocking In-Reply-To: <200501301535.15980.dcinege-mlists@psychosis.com> References: <200501301535.15980.dcinege-mlists@psychosis.com> Message-ID: <16894.30472.549473.841059@gargle.gargle.HOWL> Dave Cinege wrote at 2005-1-30 15:35 -0500: > ... >It seems that after a few hours or days of uptime Zope will just cease to >serve content. It's sporadic. There is a HowTo how to analyse such situations. Search for "debugging spinning Zope" (or similar). I think the approach will work when you are on *nix (or have a debugger that is able to attach to a running process). -- Dieter From dieter at handshake.de Mon Jan 31 13:23:29 2005 From: dieter at handshake.de (Dieter Maurer) Date: Mon Jan 31 14:12:21 2005 Subject: [Zope] KeyError with everything In-Reply-To: References: Message-ID: <16894.30625.269869.246313@gargle.gargle.HOWL> Jamie van Dyke wrote at 2005-1-31 03:04 +0000: > ... >I'm new to zope, and google has been fruitless on this. One of the first things, you should learn: Whenever you see an "*Error" (such as "KeyError", "NameError", "AttributeError", ...), look at the traceback. You find it in your "error_log" object, situated in your Zope "Root Folder" (in the Management Interface). When you report errors, include at least: "ErrorType", "ErrorValue" and the traceback (all from the "error_log"). -- Dieter From dieter at handshake.de Mon Jan 31 13:16:19 2005 From: dieter at handshake.de (Dieter Maurer) Date: Mon Jan 31 14:12:29 2005 Subject: [Zope] User-private folderish object In-Reply-To: References: <16891.62024.413705.535107@gargle.gargle.HOWL> <16893.9910.426622.498195@gargle.gargle.HOWL> Message-ID: <16894.30195.236234.838878@gargle.gargle.HOWL> It really seems difficult to get it: Please stay on the mailing list! Readded... This is the last question I will answer for you, that is sent to me privately! Richard Jennings wrote at 2005-1-31 06:17 +0100: >One last question: what is the best way of intercepting user logon in >order to establish the private session? The best way is not to try to intercept the "logon" but to create the "user-private" object the first time it is needed. -- Dieter From dieter at handshake.de Mon Jan 31 13:13:50 2005 From: dieter at handshake.de (Dieter Maurer) Date: Mon Jan 31 14:12:34 2005 Subject: [Zope] DateTime.strftime problem In-Reply-To: <200501302042.04974.rbickers@logicetc.com> References: <200501300347.03885.rbickers-list-zope2@logicetc.com> <16893.10388.626979.777372@gargle.gargle.HOWL> <200501302042.04974.rbickers@logicetc.com> Message-ID: <16894.30046.911028.71885@gargle.gargle.HOWL> Ron Bickers wrote at 2005-1-30 20:42 -0500: > ... >What do you get when you try my examples? You only used your local timezone, >which works fine for me too, but it doesn't work when I'm trying to use a >different timezone than my own. >>> now=DateTime('GMT') >>> now DateTime('2005/01/31 18:11:23.211 GMT') >>> now.strftime('%H') '18' Note, that my local timezone is "GMT+1". Thus, it works for me also in a different timezone. >Also, according to notes in the bug I referenced, it looks like the behavior >may have changed starting with 2.7.4. Okay, can only speak for 2.7.2. -- Dieter From dieter at handshake.de Mon Jan 31 13:45:24 2005 From: dieter at handshake.de (Dieter Maurer) Date: Mon Jan 31 14:12:42 2005 Subject: [Zope] LocalFS-1-3-andreas and Zope 2.7.2 In-Reply-To: <41FE06DD.9030501@simplistix.co.uk> References: <41F973CB.1050501@simplistix.co.uk> <16890.35786.550512.96072@gargle.gargle.HOWL> <41FE06DD.9030501@simplistix.co.uk> Message-ID: <16894.31940.341968.773348@gargle.gargle.HOWL> Chris Withers wrote at 2005-1-31 10:22 +0000: > ... >Yes, but remember what LocalFS is doing is trying to spoof Zope into >believing objects come from within the ZODB, while actually storing them >on the file system. I do not think that "LocalFS" is in any way interested to simulate objects in the ZODB. Instead, it emulates a hierarchy apparently rooted in a ZODB based object. But this is purely an acquisition concept and completely independent from the ZODB. >I have a hunch that it probably mixes OFS.Image.File into its "File" >objects, and OFS.Image.File is doing something naughty (it usually does, >it's got some VERY esoteric code in it ;-) which results in data being >comitted to the ZODB. Indeed, it contains a subtransaction commit. However, this should only lead to true ZODB writes when the object either already was persistent or is new and part of a modified persistent object. > ... >> Debugging in an interactive Python session? > >Okay, but what am I looking for? In the current transaction (obtained via "get_transaction()" for "_objects". You are interested in the code that adds objects to "_objects". The first object added to "_objects" is the persistent object that should not have become modified. -- Dieter From rpjennings at gmail.com Mon Jan 31 15:21:43 2005 From: rpjennings at gmail.com (Richard Jennings) Date: Mon Jan 31 15:21:44 2005 Subject: [Zope] User-private folderish object In-Reply-To: <16894.30195.236234.838878@gargle.gargle.HOWL> References: <16891.62024.413705.535107@gargle.gargle.HOWL> <16893.9910.426622.498195@gargle.gargle.HOWL> <16894.30195.236234.838878@gargle.gargle.HOWL> Message-ID: Sorry! I thought I was, now I'm sure. On Mon, 31 Jan 2005 19:16:19 +0100, Dieter Maurer wrote: > It really seems difficult to get it: Please stay on the mailing list! > Readded... From rbickers-list-zope2 at logicetc.com Mon Jan 31 15:37:25 2005 From: rbickers-list-zope2 at logicetc.com (Ron Bickers) Date: Mon Jan 31 15:37:41 2005 Subject: [Zope] DateTime.strftime problem In-Reply-To: <16894.30046.911028.71885@gargle.gargle.HOWL> References: <200501300347.03885.rbickers-list-zope2@logicetc.com> <200501302042.04974.rbickers@logicetc.com> <16894.30046.911028.71885@gargle.gargle.HOWL> Message-ID: <200501311537.25387.rbickers-list-zope2@logicetc.com> On Monday 31 January 2005 01:13 pm, Dieter Maurer wrote: > Thus, it works for me also in a different timezone. > > >Also, according to notes in the bug I referenced, it looks like the > > behavior may have changed starting with 2.7.4. > > Okay, can only speak for 2.7.2. 2.7.3 gives the same thing you're reporting, but 2.7.4 does not. What does DateTime('GMT').strftime('%Z') return for you? Both 2.7.3 and 2.7.4 return my local timezone, even though 2.7.3 returns the correct hour for GMT. -- Ron Bickers Logic Etc, Inc. From jmeile at hotmail.com Mon Jan 31 16:46:01 2005 From: jmeile at hotmail.com (Josef Meile) Date: Mon Jan 31 15:46:09 2005 Subject: [Zope] Re: KeyError with everything In-Reply-To: <41FDFCE9.3050500@modulix.org> References: <41FDFCE9.3050500@modulix.org> Message-ID: <41FEA719.1010704@hotmail.com> > You already answered the question : Zope 2.7.x does not run on Python > 2.4.x. > > Note that nothing prevents you from having two Python versions on the > same system. No, the docs say that it is not supported, but they don't assure that it won't run. Perhaps the problem isn't related to python at all, but it is dificult to say it without a traceback. Regards, Josef From a_bloke at mac.com Mon Jan 31 15:53:03 2005 From: a_bloke at mac.com (Jamie) Date: Mon Jan 31 15:53:11 2005 Subject: [Zope] Re: KeyError with everything In-Reply-To: <41FEA719.1010704@hotmail.com> References: <41FDFCE9.3050500@modulix.org> <41FEA719.1010704@hotmail.com> Message-ID: I posted a traceback...at least, I received it in my mailing list. :-/ Heres the top bit again: Exception Type KeyError Exception Value 'field' Traceback (innermost last): ? Module ZPublisher.Publish, line 101, in publish ? Module ZPublisher.mapply, line 88, in mapply ? Module ZPublisher.Publish, line 39, in call_object ? Module Shared.DC.Scripts.Bindings, line 306, in __call__ ? Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec ? Module Products.CMFCore.FSPageTemplate, line 191, in _exec ? Module Products.CMFCore.FSPageTemplate, line 124, in pt_render ? Module Products.PageTemplates.PageTemplate, line 96, in pt_render On 31 Jan 2005, at 21:46, Josef Meile wrote: >> You already answered the question : Zope 2.7.x does not run on Python >> 2.4.x. >> Note that nothing prevents you from having two Python versions on the >> same system. > No, the docs say that it is not supported, but they don't assure that > it won't run. Perhaps the problem isn't related to python at all, but > it is dificult to say it without a traceback. > > Regards, > Josef > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2298 bytes Desc: not available Url : http://mail.zope.org/pipermail/zope/attachments/20050131/b029bb89/attachment.bin From pw_lists at slinkp.com Mon Jan 31 16:50:22 2005 From: pw_lists at slinkp.com (Paul Winkler) Date: Mon Jan 31 16:50:25 2005 Subject: [Zope] LocalFS-1-3-andreas and Zope 2.7.2 In-Reply-To: <16894.31940.341968.773348@gargle.gargle.HOWL> References: <41F973CB.1050501@simplistix.co.uk> <16890.35786.550512.96072@gargle.gargle.HOWL> <41FE06DD.9030501@simplistix.co.uk> <16894.31940.341968.773348@gargle.gargle.HOWL> Message-ID: <20050131215022.GB2312@slinkp.com> On Mon, Jan 31, 2005 at 07:45:24PM +0100, Dieter Maurer wrote: > I do not think that "LocalFS" is in any way interested to simulate > objects in the ZODB. Instead, it emulates a hierarchy apparently rooted > in a ZODB based object. But this is purely an acquisition concept and > completely independent from the ZODB. if you look at the LocalFS code (I have but not recently), it actually creates a temporary instance of e.g. OFS.Image.File on every request for a "file". IIRC these are supposed to be thrown away, but apparently something is broken... -- Paul Winkler http://www.slinkp.com From hvu_phung at yahoo.fr Mon Jan 31 17:43:10 2005 From: hvu_phung at yahoo.fr (Hoang-Vu PHUNG) Date: Mon Jan 31 17:43:12 2005 Subject: [Zope] Connection between css files and their location Message-ID: <20050131224310.93733.qmail@web86901.mail.ukl.yahoo.com> Hi, I found the file manage_page_style.css.dtml (among other style sheets) under /lib/python/App/dtml which I suspect is the same when I type /manage_page_style.css in the browser. Is there somewhere in the documentation that says the connection / convention between the stylesheet and its location. When I go to the root and try to use the find facility to look for eg. manage_page_style.css, it couldn't find it. Thanks for your answer. Hoang-Vu D?couvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! Cr?ez votre Yahoo! Mail sur http://fr.mail.yahoo.com/ From gzhu2 at unlnotes.unl.edu Mon Jan 31 20:26:23 2005 From: gzhu2 at unlnotes.unl.edu (Gary G Zhu) Date: Mon Jan 31 20:24:10 2005 Subject: [Zope] How to POST java serialized object to a zope(python) script? Message-ID: Hello, I am trying to find a way to pass data from a java applet into zope. Don't know how to get the serialized object into the zope python script. With html forms I'd just use container.REQUEST, but it doesn't work in this case. Any help is appreciated. Thanks, -- Gary Zhu From fairwinds at eastlink.ca Mon Jan 31 20:58:12 2005 From: fairwinds at eastlink.ca (David Pratt) Date: Mon Jan 31 20:58:20 2005 Subject: [Zope] InvokeFactory Question Message-ID: Hi. I have written a small Script Python to create a Portal Folder in a specific Folder (root/information) using a form. This creates the Portal Folder I want but instead of creating it in the information folder, I find it in the root folder. Can someone point out what I am doing wrong. If I use getId() on info_dir it gives me 'information' as the id so it appears I am creating it with the right object. I have manager proxy on the Script Python as well. Regards, David # Get portal url object url_tool = getToolByName(context, 'portal_url') # Get the path from the object portal_path = url_tool.getPortalPath() # Information directory (Folder) object info_dir = context.restrictedTraverse('%s/information' % portal_path) # Cancel button action if form_cancel is not None: RESPONSE.redirect('index_html?start:int=%s&sort=%s&reverse:int=%s' %(start, sort, reverse)) return None # Save button action if form_save is not None: category_id = context.cleanId(category_id) # Create a Portal Folder object info_dir.invokeFactory('Folder', category_id) # Get a handle on the new object created folder_obj = getattr(info_dir, category_id) # Get and fill the fields folder_obj.setTitle(title) folder_obj.setDescription(description) RESPONSE.redirect('index_html?start:int=%s&sort=%s&reverse:int=%s' %(start, sort, reverse)) return None From sitharus at gmail.com Mon Jan 31 21:27:18 2005 From: sitharus at gmail.com (Phillip Hutchings) Date: Mon Jan 31 21:27:20 2005 Subject: Fwd: Re: [Zope] Linking Zope to Apache 1.3 In-Reply-To: <5f62f8a05013118263e3d6be@mail.gmail.com> References: <20050131161806.ADB271E4B0@xprdmailfe24.nwk.excite.com> <5f62f8a05013118263e3d6be@mail.gmail.com> Message-ID: <5f62f8a05013118274a5ae3c@mail.gmail.com> On Mon, 31 Jan 2005 11:18:06 -0500 (EST), neil wrote: > > I have tried simply adding the code to my httpd.conf file but unfortunatly it hasn't worked. I have included my httpd.conf file below. I am sure mod_proxy is installed and working fine. It is called although not listed below. I took it out in this email to make it appear better. > > My main question is reguarding the 2 lines > ProxyPass / http://localhost:8080/VirtualHostBase/http/sample.com:80/website/VirtualHostRoot/ > ProxyPassReverse / http://localhost:8080/VirtualHostBase/http/sample.com:80/mysite/VirtualHostRoot/ > > what value does "mysite" represent? Is it where my folder is located on the file system or simply the name of mysite? The Zope path to the object you want to use as the base. In my case I have things like: RewriteRule ^/(.*) http://localhost:8080/VirtualHostBase/http/wishlists.sitharus.com:80/wishlists/VirtualHostRoot/$1 to serve /wishlists/ on my Zope instance as http://wishlists.sitharus.com/'s main site. -- Phillip Hutchings http://www.sitharus.com/ sitharus@gmail.com / sitharus@sitharus.com From garry at scholarpack.org Mon Jan 24 12:25:22 2005 From: garry at scholarpack.org (Garry Saddington) Date: Sat Feb 5 12:25:48 2005 Subject: [Zope] request variables References: <200502051323.48177.garry@scholarpack.org> <68209FD87E8B693EC99F9BB5@[192.168.0.100]> Message-ID: <013c01c50239$b2fb6b20$fbb4230a@scholarpack> ----- Original Message ----- From: "Andreas Jung" To: ; Sent: Saturday, February 05, 2005 3:07 PM Subject: Re: [Zope] request variables > > > --On Samstag, 5. Februar 2005 13:23 Uhr +0000 garry saddington > wrote: > >> I know this may be a simple question but how can I simply remove a >> variable from the request. > > Is there a good reason to remove something from the request? > > -aj No there isn't, I've just realised that I should perhaps re-name the variables so the one in the request is not used in a ZSQL method but the correct one is. thanks garry