Re: [Zope] Zope 2.9 and SSL
zope napisa?(a): Hi, zhttps provides an HTTPS Zserver to Zope-2.9.0. This zope product uses M2Crypto. I think this may give you a hint towards SSL and Zope-2.9.0 http://www.zope.org/Members/lerouxa/zopehttps Try it first with test certificates provided with M2Crypto/demo/zope/{ca.pem,server.pem,dh1024.pem,randpool.dat} Best regards Al Hello, thank you. I've tried to install this software, but it doesn't work. First of all the downloaded package seems to be inclomplete. bunzip complains about garbage at the end of the file. Second, after copying files and patching __init__.py in the ZServer directory, zope doesn't start anymore. It complains about missing HTTPS_Server package. If I borrow this one from m2crypto 0.15, then it complains about missing asyncore, then missing FCNTL. I'm stuck. What else can I do? Best regards, Janusz signature.asc Description: OpenPGP digital 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] Zope 2.9 and SSL
Hello, Is anyone tried to access Zope 2.9 via SSL? I've tried m2crypto, but this doesn't work with the newest zope. And I've tried to use stunnel, but I'm stuck with some problems - I cannot find the way to force zope to use https://xxx urls with choosen stunnel port number. The easiest way is to use Apache, but I have reasons to not go that way. Any clues? Best regards, Janusz signature.asc Description: OpenPGP digital 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] Yet another newbie question (file upload and python scripts)
Hi, after googling and RTFM I have no other option but ask you for help. I have the following DTML document: dtml-var standard_html_header form action=3DcheckTheFile method=3Dpost enctype=3Dmultipart/form-d= ata Select the file: input type=3Dfile name=3Dthe_file input type=3Dsubmit name=3Dgo value=3DNext /form dtml-var standard_html_footer And here is the checkTheFile python script: ## Script (Python) checkTheFile ##bind container=3Dcontainer ##bind context=3Dcontext ##bind namespace=3D ##bind script=3Dscript ##bind subpath=3Dtraverse_subpath ##parameters=3D ##title=3D ## # Import a standard function, and get the HTML request and response objec= ts. from Products.PythonScripts.standard import html_quote request =3D container.REQUEST RESPONSE =3D request.RESPONS filename=3Dhtml_quote(request.form['the_file'].filename) context.fs.rpt.manage_addFile(filename, request.form['the_file'], content_type=3Dtext/xml) # the next line does'n work: file_content=3Drequest.form['the_file'].read() # EOF I need to temporary save uploaded file then I have to validate it. But I've received the following error message: Site error: Error Type: AttributeError Error Value: read I've tested it on zope 2.7.7 and 2.9.0 on suse 10.0. (python 2.4.1). So, It is obvious to me that I've made a mistake, but I have no idea where it is? I hope that someone could show me the right way Best regards to all, Janusz signature.asc Description: OpenPGP digital 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 )