[Zope-Checkins] SVN: Zope/branches/2.9/lib/python/Testing/tests/test_makerequest.py Belatedly removed test for the reverted 2057 bugfix. Whoops.
Log message for revision 66856: Belatedly removed test for the reverted 2057 bugfix. Whoops. Changed: U Zope/branches/2.9/lib/python/Testing/tests/test_makerequest.py -=- Modified: Zope/branches/2.9/lib/python/Testing/tests/test_makerequest.py === --- Zope/branches/2.9/lib/python/Testing/tests/test_makerequest.py 2006-04-11 14:40:41 UTC (rev 66855) +++ Zope/branches/2.9/lib/python/Testing/tests/test_makerequest.py 2006-04-11 15:19:30 UTC (rev 66856) @@ -32,13 +32,6 @@ item = makerequest(item) self.failUnless(hasattr(item, 'REQUEST')) -def test_dont_break_getPhysicalPath(self): -# see http://www.zope.org/Collectors/Zope/2057 -item = SimpleItem() -self.assertEqual(item.getPhysicalPath(), ('',)) -self.assertEqual(item.getPhysicalPath(), - makerequest(item).getPhysicalPath()) - def test_stdout(self): # You can pass a stdout arg and it's used by the response. import cStringIO ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
Re: [Zope] Zope crashes on request of certain page
Dieter Maurer wrote: This does not look like a crash. The message tells you that a start failed because another running (!) process still has the ZODB storage file locked. Almost surely, Zope is not dead (at least not completely). I have seen similar behaviour in the past: caused by a Python threading bug triggered by a Linux 2.4 signal handling peculiarity: A fatal signal kills the main Zope thread (handling all IO with the clients) but let the remaining threads in an insane state (could only be removed with kill -9). This is exactly what happens! The process still exists but it doesn't respond. Current Python versions should have fixed this problem. Operating system is SuSE Linux 8.0, Zope version is 2.5.0, Python 2.2, Almost surely, one of the configurations with the bug mentioned above... Well, for testing I tried to copy the Zope DB (Data.fs.*) into a fresh OpenSuSE 10.0 installation. Zope version there is 2.7.7. It works but now I get an authorization request dialog on every page. Any idea what could have gone wrong during the upgrade? -- Sincerely yours Sven Jacobs ___ 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 )
Re: [Zope] Zope + Apache + mod_proxy + SiteRoot = some links not proxied?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11 Apr 2006, at 01:19, Alain Fauconnet wrote: It seems that more and more people use mod_rewrite instead. Isn't this a much more pass-through approach than mod_proxy? (especially if I turn some caching on - not something I've seen covered anywhere). By more pass-through I mean that clients end up taking to Zope's own HTTP server directly, with all the performance problems mentioned here and there. Would you please hint me on the rationale behind choosing between mod_proxy and mod_rewrite? I'm quite fuzzy on this now. mod_rewrite *uses* mod_proxy if you create rules that include the P flag in the flags that are at the end of the rule. P stands for Proxy. jens -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (Darwin) iD8DBQFEO2i5RAx5nvEhZLIRApOyAKCGRRqHLIPLXAOnmeKvlqhlB7AQKwCdHsH3 Nesm32pEzpOIjsvdhIWHw7U= =nzuN -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 )
[Zope] Re: Error in my application
Vishal Kashyap wrote: Hi all , Just wanted to know what this error is all about code 2006-04-10T22:06:22 INFO ZODB.Conflict database conflict error (oid 0x0278, class BTrees._OOBTree.OOBTree, serial this txn started with 0x0364ae9fbe711988 2006-04-10 16:31:44.634796, serial currently committed 0x0364aea45c2e1b55 2006-04-10 16:36:21.604712) at /mail/Tickets (4 conflicts, of which 0 were unresolved, since startup at Mon Apr 10 18:47:43 2006) /code It would help others to help you, if you gave info on what your platform / setup is, and when this error occured. My understanding of database conflict errors is they occur when two processes fight with each other talking to the ZODB. One or more older versions of Zope had bugs that caused such errors, but that was a while back. We recently had such database conflict errors when starting Zope. When I posted on the newsgroup, it was suggested I put a sleep 10 between the 2 zope processes starting, so that one was fully up and running before the other one tried to start. I did that and have had no problems since. Maybe that would work for you. In my ignorance I'm not 100% certain that such warnings always actually matter - it may be a problem that Zope complains about but can recover from. More knowledgable people might comment on that. Nevertheless, a good idea to get rid of warnings for its own sake. Hope that helps, Nick ___ 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] same object in different containers
Hi, I am interested in having the same object appear as the child of two different containers. These containers may distant from each other in the object hierarchy. In particular, I autogenerate a list of subtopics (child folders) for several areas of my website, but would like a certain folder to appear in more that one listing because it can be classified in multiple ways. Is there a way to accomplish this? Is there anything in Zope like a symbolic link? Thank you for any advice or hints that you can provide. Best Regards, gyro ___ 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] Secure Mailhost timing out
all of a sudden my Secure mailhost rfuses to connect to my postfix: Unable to send mail: The read operation timed out traceback: Module Products.SecureMailHost.SecureMailHost, line 173, in send Module Products.MailHost.MailHost, line 144, in send Module Products.SecureMailHost.SecureMailHost, line 282, in _send Module Products.SecureMailHost.mail, line 106, in send Module smtplib, line 390, in ehlo Module smtplib, line 344, in getreply Module smtplib, line 159, in readline sslerror: The read operation timed out and in the postfix log: Apr 10 17:49:45 www.example.net info postfix/smtpd[13667]: connect from localhost.localdomain[127.0.0.1] Apr 10 17:49:55 www.example.net info postfix/smtpd[13667]: lost connection after EHLO from localhost.localdomain[127.0.0.1] Apr 10 17:49:55 www.example.net info postfix/smtpd[13667]: disconnect from localhost.localdomain[127.0.0.1] this only happens in my plone 2.1.2 Instance, the 2.0.5 and 2.1.1 Instances have no problem at all (on the same machine, using the same smtpd) so this is not firewall related. The only change in the configuration was that I installed ZMySQL DA any pointers? christian ___ 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 )
Re: [Zope] Is ExtFile right for me?
On Monday 10 April 2006 15:48, Jerry Westrick wrote: I'm currently using localFS and not only have problems with the missing properties, but the missing security access is more trouble some... I'd be interested to hear how the ExtFile went with you... So far so good. With a little help from Stefan Holek (thanks, Stefan!), my ZEO seems to be humming along nicely. I'll keep you updated if anything major happens, but now that it's working I doubt that will occur. -- Kirk Strauser The Day Companies ___ 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] calling a product with xmlrpc
Hi, I have a working Pyhton script to search for users in a plone site with a commandline xmlrpc client. It cannot be changed into an external method because of the fact that it only works when running under a role with sufficient rights. So I turned it into a product. Basically I have (I have deleted some obvious code): class Xmlrpcindex(UniqueObject, SimpleItem): security = ClassSecurityInfo() security.declarePublic('search') def search (self, SearchableText): return 'foobar' The product is recignized as a Zope product and Plone product. It is installed in my Plone instance and I have made an instance in my Plone root (with id my_xmlrpc_instance). So the client looks like this: import xmlrpclib server = xmlrpclib.Server('http://localhost/plonesite/my_xmlrpc_instance') results = server.search('sometext') This however generates a NotFound Exception :-( Am I doing something elementary wrong? Should I call the search method in another way? From the ZMI error log: User Name (User Id) Anonymous User (None) Request URL http://localhost/plonesite/my_xmlrpc_instance/search Exception Type NotFound Exception Value http://localhost/plonesite/my_xmlrpc_instance/search Traceback (innermost last): * Module ZPublisher.Publish, line 92, in publish * Module ZPublisher.BaseRequest, line 344, in traverse * Module ZPublisher.HTTPResponse, line 640, in debugError -- __ Nothing is as subjective as reality Reinoud van Leeuwen[EMAIL PROTECTED] http://www.xs4all.nl/~reinoud __ ___ 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 )
Re: [Zope] calling a product with xmlrpc
On Tue, Apr 11, 2006 at 05:54:35PM +0200, Reinoud van Leeuwen wrote: Hi, I have a working Pyhton script to search for users in a plone site with a commandline xmlrpc client. It cannot be changed into an external method because of the fact that it only works when running under a role with sufficient rights. So I turned it into a product. Basically I have (I have deleted some obvious code): class Xmlrpcindex(UniqueObject, SimpleItem): security = ClassSecurityInfo() security.declarePublic('search') def search (self, SearchableText): return 'foobar' The product is recignized as a Zope product and Plone product. It is installed in my Plone instance and I have made an instance in my Plone root (with id my_xmlrpc_instance). So the client looks like this: import xmlrpclib server = xmlrpclib.Server('http://localhost/plonesite/my_xmlrpc_instance') results = server.search('sometext') This however generates a NotFound Exception :-( I'm not sure why you get NotFound, but one thing I spotted is that anything you want to publish in zope 2 must have a docstring. Stating the obvious: have you at least verified that the server url is correct? You should be able to point your browser directly at http://localhost/plonesite/my_xmlrpc_instance . also, I'm not familiar with xmlrpclib.Server. The library docs only mention xmlrpclib.ServerProxy, afaict. Presumably that's just a typo and you are using the standard xmlrpclib? -- 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 )
[Zope] ExtFile and TextIndexNG issues
All, Last week I posted this: I've got a site with a couple hundred ExtFile objects. I now need to index the content of the various files (word, pdf, excel, ppt). I see that ExtFile doesn't have a PrincipiaSearchSource method so I created one. It returns self.index_html(). When I go back into my catalog and reindex my PrincipiaSearchSource index (a textindexng index), clicking the "Reindex" button opens the ExtFile I'm trying to index. Is there something more to the process of trying to index ExtFiles with TextIndexNG. I've googled around and tried a few things but either they don't work or I get the same results I've just described. Any ideas? I've since deleted the PrincipiaSearchSource method from the ExtFile.py file. If my catalog has no TextIndexNG indexes, I can use the Find Objects tab to find and catalog ExtFile objects. If I add a TextIndexNG index named "PrincipiaSearchSource" and click either the "Find and Catalog" button under the "Find Objects" tab or the "Update Catalog" button under the "Advanced" tab, they both return the rendered ExtFile (a pdf file in this case) to the browser. I'm not clear as to what is causing this. I don't think it's ExtFile since it doesn't even have a PrincipiaSearchSource method at this point. I haven't tried upgrading to ExtFile 1.5 from the svn trunk yet but I really don't think that's the problem. I'm going to try that next (upgrading to ExtFile 1.5). Does anyone have any ideas about what would cause the ExtFile to launch instead of just get catalogged? Thanks, Tom ___ 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 )
Re: [Zope] calling a product with xmlrpc
Paul Winkler wrote: On Tue, Apr 11, 2006 at 05:54:35PM +0200, Reinoud van Leeuwen wrote: [...] This however generates a NotFound Exception :-( I'm not sure why you get NotFound, but one thing I spotted is that anything you want to publish in zope 2 must have a docstring. I've ran into situations where lack-of-docstring results in a NotFound. Not saying that this is the sole culprit of the trouble, but it's certainly worth knowing. -- Floyd May Senior Systems Analyst CTLN - CareerTech Learning Network [EMAIL PROTECTED] ___ 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 )
Re: [Zope] same object in different containers
gf wrote: Hi, I am interested in having the same object appear as the child of two different containers. These containers may distant from each other in the object hierarchy. In particular, I autogenerate a list of subtopics (child folders) for several areas of my website, but would like a certain folder to appear in more that one listing because it can be classified in multiple ways. Is there a way to accomplish this? Is there anything in Zope like a symbolic link? As I recall, there's PortableHole and a few others. Look at zope.org. --jcc -- Building Websites with Plone http://plonebook.packtpub.com/ Enfold Systems, LLC http://www.enfoldsystems.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 )
Re: [Zope] calling a product with xmlrpc
On Tue, Apr 11, 2006 at 01:43:22PM -0500, Floyd May wrote: Paul Winkler wrote: On Tue, Apr 11, 2006 at 05:54:35PM +0200, Reinoud van Leeuwen wrote: [...] This however generates a NotFound Exception :-( I'm not sure why you get NotFound, but one thing I spotted is that anything you want to publish in zope 2 must have a docstring. I've ran into situations where lack-of-docstring results in a NotFound. Not saying that this is the sole culprit of the trouble, but it's certainly worth knowing. Thanks! that did it! Is this a bug or a feature? I would expect something else in the errorlog (or a warning in the eventlog) -- __ Nothing is as subjective as reality Reinoud van Leeuwen[EMAIL PROTECTED] http://www.xs4all.nl/~reinoud __ ___ 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 )
Re: [Zope] Zope crashes on request of certain page
Sven Jacobs wrote at 2006-4-11 09:34 +0200: ... Well, for testing I tried to copy the Zope DB (Data.fs.*) into a fresh OpenSuSE 10.0 installation. Zope version there is 2.7.7. It works but now I get an authorization request dialog on every page. Any idea what could have gone wrong during the upgrade? Install the product VerboseSecurity and look (tell us) what it reports. -- Dieter ___ 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 )
Re: [Zope] Error in my application
Vishal Kashyap wrote at 2006-4-10 23:47 +0530: Just wanted to know what this error is all about code 2006-04-10T22:06:22 INFO ZODB.Conflict database conflict error (oid 0x0278, class BTrees._OOBTree.OOBTree, serial this txn started with 0x0364ae9fbe711988 2006-04-10 16:31:44.634796, serial currently committed 0x0364aea45c2e1b55 2006-04-10 16:36:21.604712) at /mail/Tickets (4 conflicts, of which 0 were unresolved, since startup at Mon Apr 10 18:47:43 2006) /code Harmless unless you see lots of them within short periods or you see unresolved ones. The latter (unresolved) ones are also seen by your visitors. If you see lots of resolved messages within short periods, the likelyhood increases, that you will get unresolved ones. -- Dieter ___ 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 )
Re: [Zope] TAL page whitespace removal
Robert (Jamie) Munro wrote at 2006-4-10 13:14 +0100: For example, I downloaded the www.plone.org home page and it was 47704 bytes. I removed all whitespace from the beginning and end of lines, and then removed blank lines, and it was down to 35087 bytes - that's a more than 25% saving, and the output renders exactly the same in web browsers. A much more efficient way is to activate gzip compression for your pages. It not only handles white space efficiently (and correct for e.g. pages with pre tags or similar CSS directives) it also compresses other text. You not only gain 25 % but about 70 % (in the size of requests). You will not save RAM on the server side (of course), but hopefully (and very likely) the scripts are not the major user of RAM on your site. -- Dieter ___ 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 )
Re: [Zope] Permissions, files and folders
Erik Billing wrote at 2006-4-10 20:38 +0200: ... This works fine, except that it's a bit clumsy and has one big error; I catch just any exception that arises from the files.append(fileIterator.next())-call, and swallow it. In fact, you should *NEVER* do this. I've tried catching only the Unauthorized-exception, but an anonymus user does not have access to the Unauthorized-exception, so I can't specify is in my except-declaration without getting a new authorization error. The README in Products/PythonScripts (unmong others) tells you how to allow the import of usually protected ressources. -- Dieter ___ 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 )
Re: [Zope] Secure Mailhost timing out
[EMAIL PROTECTED] wrote at 2006-4-11 17:51 +0300: all of a sudden my Secure mailhost rfuses to connect to my postfix: Unable to send mail: The read operation timed out traceback: Module Products.SecureMailHost.SecureMailHost, line 173, in send Module Products.MailHost.MailHost, line 144, in send Module Products.SecureMailHost.SecureMailHost, line 282, in _send Module Products.SecureMailHost.mail, line 106, in send Module smtplib, line 390, in ehlo Module smtplib, line 344, in getreply Module smtplib, line 159, in readline sslerror: The read operation timed out and in the postfix log: Apr 10 17:49:45 www.example.net info postfix/smtpd[13667]: connect from localhost.localdomain[127.0.0.1] Apr 10 17:49:55 www.example.net info postfix/smtpd[13667]: lost connection after EHLO from localhost.localdomain[127.0.0.1] This tells you: the smtplib waited for 10 seconds for the server's hello message -- in vain. It then issued a read operation timed out and closed the connection. Somehow, you must find out why the hello message did not arrive in time. -- Dieter ___ 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 )
Re: [Zope] Problems Executing pdftk from within zope.
Chris Withers wrote at 2006-4-10 18:16 +0100: Jerry Westrick wrote: When executed from within zope, (this i've done via external command that executes os.system(...)) A task is started to executed it, but the task hangs. os.system will spew to stdout, which a daemon process like Zope probably won't enjoy much. If Zope really runs as daemon (on *nix), stdout and stderr are redirected to /dev/null. Output will simply be discarded. By the way, stdin will be /dev/null, too. -- Dieter ___ 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 )
Re: [Zope] same object in different containers
gf wrote at 2006-4-11 04:27 -0600: I am interested in having the same object appear as the child of two different containers. These containers may distant from each other in the object hierarchy. In particular, I autogenerate a list of subtopics (child folders) for several areas of my website, but would like a certain folder to appear in more that one listing because it can be classified in multiple ways. In principle, the ZODB allows you to place the same object into arbitrary many containers. Keep in mind however, that apart from the ZODB all other parts of Zope treat the copies as different: the have different URLs, different PhysicalPaths, may report (the same modification) to different catalogs (in this case, only a single catalog is informed, not all as you probably would like). Is there a way to accomplish this? Is there anything in Zope like a symbolic link? Andreas already told you about my Reference products. There is also a Symlink product of Shane. And there is the PortableHole product that maps a complete folder onto a different location. No solution is completely satisfactory... -- Dieter ___ 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 )
Re: [Zope] Memory Leak in Session Data Container
Andy Yates wrote at 2006-4-10 12:43 -0500: ... Fortunately, I have an easy way to reproduce the problem and even better I've found a work around. My hope is that the work around will lead somebody more familiar with the innards of Zope to where the problem is located. Congratulations! I will look into this within the next days (in Zope 2.8.1, however). ... CONCLUSION To me it looks like data placed in the session object are not getting deleted when the session object expires. Anything placed in a session object is essentially leaked. When the onDelete script explicitly removes the contents of the session data object the memory leak stops. Comment? Questions? Fixes? ;-) The ZODB cache may keep your session objects (and thereby its content) alive. As you probably know, each ZODB connection has an associated cache containing the recently accessed objects. Objects in the cache can be ghosts (they contain no data) or real objects. Ghosts disappear from the cache as soon as the last reference in the application is deleted. For real objects, however, the cache holds an extra reference and thereby prevents the object release. For the storage, an object held by the cache looks exactly equal to an object held be the application. It cannot get rid of it. You can try to flush (minimize) the caches associated with the temporary storage and see whether this releases the memory (the release may be postponed, as the TempStorage performs garbage collection only at certain times). If this should be your problem, you can reduce the size of the ZODB caches. -- Dieter ___ 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] where's the XML?
I want to access numerous methods/functions on a zope server via Javascript. Zope has xml built-in right? So must I write my own XML output? For now, I wrap the existing functions like so: ?xml version=1.0 encoding=utf-8 ? ajaxresponse xmlns:tal=http://xml.zope.org/namespaces/tal; response type=object id=clientDetails client tal:repeat=row python:here.client_lookup(clientid=request.clientid) fname tal:content=python:row.fname1fname1/fname lname tal:content=python:row.lname1lname1/lname /client /response /ajaxresponse I know i'm missing the obvious here so please, somebody, hit me over the head with it. Thanks. ___ 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 )
Re: [Zope] calling a product with xmlrpc
Reinoud van Leeuwen wrote: On Tue, Apr 11, 2006 at 01:43:22PM -0500, Floyd May wrote: Paul Winkler wrote: On Tue, Apr 11, 2006 at 05:54:35PM +0200, Reinoud van Leeuwen wrote: [...] This however generates a NotFound Exception :-( I'm not sure why you get NotFound, but one thing I spotted is that anything you want to publish in zope 2 must have a docstring. I've ran into situations where lack-of-docstring results in a NotFound. Not saying that this is the sole culprit of the trouble, but it's certainly worth knowing. Thanks! that did it! Is this a bug or a feature? I would expect something else in the errorlog (or a warning in the eventlog) It's fundamental Zope security. Old as the hills. I'm sure it's in the Zope book. --jcc -- Building Websites with Plone http://plonebook.packtpub.com/ Enfold Systems, LLC http://www.enfoldsystems.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 )
Re: [Zope] calling a product with xmlrpc
On Tue, Apr 11, 2006 at 04:55:18PM -0500, J Cameron Cooper wrote: I'm sure it's in the Zope book. Doubt it, as the Zope book doesn't cover filesystem Product development. But it is in the ZDG :) http://www.zope.org/Documentation/Books/ZDG/current/ObjectPublishing.stx I do think it's odd he got NotFound, I haven't seen that. Maybe I'm just so used to running in debug mode that I've fixed all these before they ever got to a production server ;-) -- 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 )
[Zope] Summary variables is removed in version 2.9?
Dear ZopistI have upgraded my Zope 2.8.x to Zope 2.9.0. I have used the dtml-in sequence which uses the summary variables (e.g. total-count). It works well in 2.8. However, when I ported the same dmtl-in sequence, the summary variables are not shown. There is no error message too.I have checked the documentation (in Zope Help) and others, but there is no hint of the above.Have anyone have similar experiences?Thank you for your time.CY Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.___ 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 )
Re: [Zope] where's the XML?
--On 11. April 2006 14:29:24 -0700 Erik Myllymaki [EMAIL PROTECTED] wrote: I want to access numerous methods/functions on a zope server via Javascript. Zope has xml built-in right? So must I write my own XML output? JS is a *client-side* solution and has *nothing* to do with Zope. Of course you can use AJAX or any JS framework that speaks HTTP, XMLRPC to communicate with a Zope server using the supported protocols. -aj -- ZOPYX Ltd. Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany Web: www.zopyx.com - Email: [EMAIL PROTECTED] - Phone +49 - 7071 - 793376 E-Publishing, Python, Zope Plone development and consulting pgpRNm3a6MLw6.pgp Description: 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 )
Re: [Zope] Zope + Apache + mod_proxy + SiteRoot = some links not proxied?
Alain Fauconnet wrote: reply. I'm looking into this now. I'm still confused by mod_rewrite vs. mod_proxy though. My Zope/Plone site is supposed to eventually get a lot of hits. Although it's hosted on a kind of high-end box, I have real concerns about the level of performance that will be obtained. Hence mod_proxy looked appealing because it's supposed to deliver higher performance than Zope's own HTTP server, right? From what I have read, the Zope server is the most efficient way to serve pages from your Zope database. That's what it was designed to do. -- Good day, eh. Chris ___ 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 )
Re: [Zope] Zope + Apache + mod_proxy + SiteRoot = some links not proxied?
Alain Fauconnet wrote: Luca, On Mon, Apr 10, 2006 at 12:13:58PM +0200, Luca Olivetti wrote: En/na Alain Fauconnet ha escrit: Am I missing something? I have created the SiteRoot object in the root (/) folder. Is this correct? Look here: http://plone.org/documentation/how-to/plone-with-apache-1.3 It's not plone specific and the links at the top are useful for other situations. Thanks for your informative reply. I'm reading this page right now and I just have a question: I don't do virtual hosting at all. This box hosts a single web server. Does that still apply to me? If you are only running a single site, have you considered using the Zope server exclusively? Unless there are sections of your site that you do not want Zope to handle, you wouldn't need Apache. -- Good day, eh. Chris ___ 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 )
Re: [Zope] Summary variables is removed in version 2.9?
I just upgraded a site from 2.8(Linux) to 2.9.2(windows) and I have had no problem like that. e.g. td align=right class=strong-total dtml-var total-Sales /td td align=right class=strong-total dtml-var total-Items /td td align=right class=strong-total dtml-var total-SUB_TOTAL fmt=%.2f /td td align=right class=strong-total dtml-var total-GST fmt=%.2f /td td align=right class=strong-total dtml-var total-PST fmt=%.2f /td td align=right class=strong-total dtml-var total-TOTAL fmt=%.2f /td td align=right class=strong-total dtml-var total-COST_TTL fmt=%.2f /td Infor Gates wrote: Dear Zopist I have upgraded my Zope 2.8.x to Zope 2.9.0. I have used the dtml-in sequence which uses the summary variables (e.g. total-count). It works well in 2.8. However, when I ported the same dmtl-in sequence, the summary variables are not shown. There is no error message too. I have checked the documentation (in Zope Help) and others, but there is no hint of the above. Have anyone have similar experiences? Thank you for your time. CY - Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less. ___ 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 )