Re: [Zope] Zope2 and XMLRPC methods
On Tue, Feb 17, 2009, Rowan Woodhouse wrote: Hi, I'm having some trouble getting XML-RPC methods going on Zope2/Five. I've got the following in my configure.zcml: configure xmlns=http://namespaces.zope.org/zope; xmlns:browser=http://namespaces.zope.org/browser; xmlns:five=http://namespaces.zope.org/five; xmlns:xmlrpc=http://namespaces.zope.org/xmlrpc; include package=zope.app.publisher.xmlrpc file=meta.zcml / include package=zope.app.security file=meta.zcml / xmlrpc:view for=MZCore.interface.IMZTag methods=smeg class=MZCore.MZTag.MZTag.MZTagXmlRpcInterface permission=zope.Public / /configure ... But when I try to access the method via XML-RPC as follows (where aaa is and object that implements IMZTag) I am probably using an older version of zope, but the following is working for me using xmlrpclib. from xmlrpclib import ServerProxy baseurl = 'http://username:passw...@host.example.com:8080/' server = ServerProxy(baseurl + 'some/path') results = server.myFunction() # arguments as necessary Perhaps this is too simple, but it Just Works(tm). Bill -- INTERNET: b...@celestial.com Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way Voice: (206) 236-1676 Mercer Island, WA 98040-0820 Fax:(206) 232-9186 Force always attracts men of low morality. -- Albert Einstein ___ 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] kicked off list
On Fri, Nov 21, 2008, C wrote: Every so often, my other email address gets kicked off the zope list for some reason. One day I'm receiving messages and the next day I'm not. After this happened 3 times, I joined with a second address (this one) so I could be sure it was a phenomenon with a single email address. Can anyone give me a clue why this might be happening? I only occasionally send email to the group, and I never cross-post. We host several Mailman lists here, and the most frequent reason I see address subscriptions disabled is ``Excessive or fatal bounces''. One I saw this morning was a valid address, but the recipient's MTA said ``user is over quota''. There may be cases where the Mailman server cannot talk to any MX servers for the recipient which may be the result of routing problems, DNSRBLs, or sick Exchange servers (is there any other kind :-) Bill -- INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way Voice: (206) 236-1676 Mercer Island, WA 98040-0820 Fax:(206) 232-9186 Everything secret degenerates, even the administration of justice. Nothing is safe that does not show it can bear discussion and publicity. -- Lord Acton ___ 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] python script, from string to dictionary.
On Thu, Feb 07, 2008, Stefano Guglia wrote: hello! I converted a dictionary in a string, and now I need to change back the same string as a dictionary in a zope python script. s = repr(d) newdict = eval(s) Bill -- INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way FAX:(206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 That rifle on the wall of the labourer's cottage or working class flat is the symbol of democracy. It is our job to see that it stays there. --GEORGE ORWELL ___ 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] tunneling via ...
On Fri, Sep 28, 2007, David Bear wrote: I am in a situation will I may soon need to outsource the running of my apache server. This may be a good thing. However, I cannot outsource the running of my zope server. So I have the situation where apache will be running on a separate box from my zope server and I am wondering how to make sure I have a secure connection between the apache server that I don't control that will be using modproxy/rewrite rules to get content out of my zope server. Currently, zope only binds to 127.0.0.1 and apacy proxy connects. Using a remote apache server implies that I will need to have zope listen on a public interface. However, I will still need to secure it so I was considering openssl or something like that. Can you use openvpn to create a tunnel between the apache server and your zope server, then run zope on a private interface? Bill -- INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way FAX:(206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 there is nothing more difficult to take in hand, more perilous to conduct, or more uncertain in its success, than to take the lead in the introduction of a new order of things. Because the innovator has for enemies all those who have done well under the old conditions, and lukewarm defenders in those who may do well under the new. -- Machiavelli ___ 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-DB] ZMySQLDA thinks that MySQL has gone away
On Mon, Mar 26, 2007, Pedro Le?n L?pez wrote: Hello, I got this error when querying MySQL 5.0.26. I use Zope 2.9.4 and ZMysqlDA 2.0.9b3 (with MySQLdb 1.2.1_p2). MySQL do not gone away. This error only happens after exactly 8 hours of database inactivity. I found some information about this error. It seems is caused because MySQL close the connection after 8 hours, this time is stored at 'wait_timeout' system variable in the MySQL server. I'm doing an application for school where isn't there activity at night. Given that mysql (or any other database) may well be restarted as part of log rotation and cron maintenance, you may well want to not depend on continuously open connections. Bill -- INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way FAX:(206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 ``During times of universal deceit, telling the truth becomes a revolutionary act.'' --George Orwell ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db
Re: [Zope] Suggestion for an opensource barchart/piechart graphic package in python
On Sat, Feb 17, 2007, Marco Bizzarri wrote: Hi all. I'm looking for an alternative to python gdchart for barchart/piechart in a web application. I'm looking to python gdchart 2, but I'm not sure on the status of maintenance of the project itself. I like gnuplot which makes it pretty easy to create a wide variety of plots. Bill -- INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way FAX:(206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 ``Perhaps, when committing your first federal crime, it would be unwise to slap your name and address on it and mail it to 10,000 people.'' --Dogbert ___ 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] Suggestion for an opensource barchart/piechart graphic package in python
On Sat, Feb 17, 2007, Marco Bizzarri wrote: On 2/17/07, Bill Campbell [EMAIL PROTECTED] wrote: On Sat, Feb 17, 2007, Marco Bizzarri wrote: Hi all. I'm looking for an alternative to python gdchart for barchart/piechart in a web application. I'm looking to python gdchart 2, but I'm not sure on the status of maintenance of the project itself. I like gnuplot which makes it pretty easy to create a wide variety of plots. I know gnuplot; what is the support for python? I use it extensively in conjunction with python, buiding gnuplot files and data that are then used to generate image files. Granted that I only work in a *nix environment which is built on the principle of building on the work of others and is easy to tie disparate programs together to accomplish a job. For example, I have a python script I run at one of our ISP customers that gathers postfix mail queue sizes from a cluster of mail servers creating data files and a gnuplot script to generate a plot of mail queue size over time for each cluster server. Bill -- INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software, LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way FAX:(206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 ``Mechanical Engineers build weapons. Civil Engineers build targets.'' ___ 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] Re: Question about Zope and security
On Fri, Mar 31, 2006, Cyrille Bonnet wrote: Thanks to all for your feedback: I understand better what is going on now. SSL is definitely the way to go, that would solve all my problems. Now, just to push the problem a bit further: ideally, I'd like to put SSL just on the login form. Zope would authenticate the user in that request and return a session ID that would then be passed back and forth in each request (without SSL). That would be a balanced approach to security: I don't have to put SSL across the entire site. The site will be vulnerable to man-in-the-middle attacks, but only for the duration of a session. I've done this using custom skins, copying the login_form and modifying it to use https when submitting. Bill -- INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way FAX:(206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 There are three kinds of men. The ones that learn by reading. The few who learn by observation. The rest of them have to pee on the electric fence for themselves. -- Will Rogers ___ 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 2.8 or 3.1?
On Thu, Oct 27, 2005, Jens Vagelpohl wrote: On 27 Oct 2005, at 08:58, Dario Lopez-Kästen wrote: well, on larger shops like ours, the sysadms always want to know why we introduce Yet Another Non-Standard Component to the system setup that cannot be RPM'ed like the rest. And I am not talking across pythoin versions, but oin the same release series (ie. 2.3, etc) I know it is more convenient to self.compile() the python, but it is always hard to argue with the sysadms on this issue. Our current solution is to provide a precomipiled rpm with the pythons we want to use. Why is that the standard os-distributed pythons do not work with zope? They seem to work with other python sw... For the Zope setups the pattern that I have seen most often in larger shops is buildout scripts that create self-contained full instances with Python, Zope and the instance home. These are easy to set up and update with one simple buildout script or Makefile or whatever strikes your fancy. This is exactly the same level of convenience (and maintainability) as saying rpm -Uvh foo.rpm. Obviously this self-contained ZEO client with its own Python could be done as a RPM or set of RPMs as well. The main idea is that you isolate Zope and Python from the rest of the system. You can then use simple auto-upgrading schemes like yum or even the redhat network to keep everything up to date, while never running the risk of influencing or bringing down Zope by making unforeseen changes to the Python in use, as could happen with the system Python. The same is true for any add-ons you might install into the Python used for Zope. We've been running Zope and Plone built under the OpenPKG.org portable packaging system for a couple of years now. The OpenPKG system avoids problems with vendor python and other packages. Bill -- INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software LLC UUCP: camco!bill PO Box 820; 6641 E. Mercer Way FAX:(206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 URL: http://www.celestial.com/ ``The best we can hope for concerning the people at large is that they be properly armed.'' -- Alexander Hamilton, The Federalist Papers at 184-188 ___ 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] Presentations Available
On Mon, Oct 03, 2005, David H wrote: Chris Withers wrote: Hi All, I finally got around to putting all my presentations online from the conferences over the last few years. The can now all be found at: http://www.simplistix.co.uk/presentations Have fun and let me know what you think! cheers, Chris Chris, I notice your presentation files have a .sxi file extension. Anyway to convert to something like pdfs? That's the native OpenOffice.org presentation format. Bill -- INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software LLC UUCP: camco!bill PO Box 820; 6641 E. Mercer Way FAX:(206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 URL: http://www.celestial.com/ Those who cast the vote decide nothing. Those who count the vote decide everything. (Joseph Stalin) ___ 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] Presentations Available
On Mon, Oct 03, 2005, David H wrote: Thanks Bill, I saw that in a few google hits but ... I figured that if a fair population wants to view the presentations then the files should be in a universal format - like pdf or rtf. Its an interesting question: how many people who just wish to peruse the files will feel compelled to google and download new apps just to be able to read them? Given that I don't run the Microsoft virus, Windows, on anything, have OpenOffice.org on all our Linux and OS X systems, and that OpenOffice.org software is freely available, I don't see that it's a problem. Bill -- INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software LLC UUCP: camco!bill PO Box 820; 6641 E. Mercer Way FAX:(206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 URL: http://www.celestial.com/ ``I don't care how little your country is, you got a right to run it like you want to. When the big nations quit meddling, then the world will have peace.'' Will Rogers ___ 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 )