[Zope-dev] portrange for passive ftp mode with zope.app.twisted
Hi, because we have a Zope 3 deployment with FTP support and a firewall setup on the server side, I was wondering if there is any chance to configure the FTP server with a port range to be used for the passive ftp mode. Now, I've checked the code in zope.app.twisted and it seems that the FTP module in the used twisted version does not support a portrange for passive mode. Apparently newer twisted versions do. The last release of the package was in 2009 and I wonder if it is still maintained, or if the focus is now on other packages (for whatever reason). Cheers, -- Roman Joost www: http://www.romanofski.de email: ro...@bromeco.com signature.asc Description: Digital signature ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] RestrictedPython - inserting variables before doing exec(code)
Apologies for the noise. Brain in gear --r. Begin forwarded message: > From: Russ Ferriday > Date: November 3, 2010 12:47:33 PM PDT > To: zope-dev > Subject: RestrictedPython - inserting variables before doing exec(code) > > Good day! > > Refs: > http://pypi.python.org/pypi/RestrictedPython > > I want to pass existing bound variables into the environment of some > restricted code before running it. > > This is similar to when globals are passed to compile_restricted_function. > > The idea... > > x = 42 > y = 'foo' > src="""print x*2; print y; return printed""" > code=compile_restricted(src, '', 'exec') > code.global['x'] = x # <- just dreaming, here. > code.global['y'] = y # <- just dreaming, here. > ans = exec(code) in restricted_globals > print ans# prints "84\n'foo'\n" > > It's clear that passing in arbitrary objects is not feasible. But what if I'm > prepared to constrain input to built-in numeric and string types, possibly in > or with nested dicts? > > In many cases the input will be large integer or float arrays, and I want to > avoid any nasty > kludge such as printing those inputs into the top lines of the src ;). The > src in the demo is a constant, > but in the application, it's provided by users via a list of pre-defined and > user-created 'macros'. > > If I'm missing something obvious, flames welcome! > > --r. > > Russ Ferriday -- > CEO Topia Systems Ltd. > ru...@topia.com -- +1 (805) 910 7877 -- www.topia.com > > > > > > > > Russ Ferriday -- Systems Architect & Entrepreneur CEO Topia Systems Ltd. ru...@topia.com -- +1 (805) 910 7877 -- www.topia.com ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope Tests: 65 OK, 8 Failed
On Wed, Nov 03, 2010 at 06:22:05PM +0100, Adam GROSZER wrote: > Wednesday, November 3, 2010, 6:13:48 PM, you wrote: > >> Subject: FAILED : winbot / ztk_dev py_254_win32 > >> From: buildbot at winbot.zope.org > >> Date: Tue Nov 2 16:11:20 EDT 2010 > >> URL: http://mail.zope.org/pipermail/zope-tests/2010-November/022993.html > > TS> Some kind of build failure:: > > TS> - - %< > TS> 'bin\test-ztk.exe' is not recognized as an internal or external command, > TS> operable program or batch file. > TS> - - %< > > Buildout failed: > http://winbot.zope.org/builders/ztk_dev%20py_254_win32/builds/152/steps/buildout/logs/stdio > It just still does not exit with the right exitcode. https://bugs.launchpad.net/zc.buildout/+bug/113085 Marius Gedminas -- http://pov.lt/ -- Zope 3/BlueBream consulting and development signature.asc Description: Digital signature ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] RestrictedPython - inserting variables before doing exec(code)
Good day! Refs: http://pypi.python.org/pypi/RestrictedPython I want to pass existing bound variables into the environment of some restricted code before running it. This is similar to when globals are passed to compile_restricted_function. The idea... x = 42 y = 'foo' src="""print x*2; print y; return printed""" code=compile_restricted(src, '', 'exec') code.global['x'] = x # <- just dreaming, here. code.global['y'] = y # <- just dreaming, here. ans = exec(code) in restricted_globals print ans# prints "84\n'foo'\n" It's clear that passing in arbitrary objects is not feasible. But what if I'm prepared to constrain input to built-in numeric and string types, possibly in or with nested dicts? In many cases the input will be large integer or float arrays, and I want to avoid any nasty kludge such as printing those inputs into the top lines of the src ;). The src in the demo is a constant, but in the application, it's provided by users via a list of pre-defined and user-created 'macros'. If I'm missing something obvious, flames welcome! --r. Russ Ferriday -- CEO Topia Systems Ltd. ru...@topia.com -- +1 (805) 910 7877 -- www.topia.com ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope Tests: 65 OK, 8 Failed
Hello Tres, Wednesday, November 3, 2010, 6:13:48 PM, you wrote: >> Subject: FAILED : winbot / ztk_dev py_254_win32 >> From: buildbot at winbot.zope.org >> Date: Tue Nov 2 16:11:20 EDT 2010 >> URL: http://mail.zope.org/pipermail/zope-tests/2010-November/022993.html TS> Some kind of build failure:: TS> - - %< TS> 'bin\test-ztk.exe' is not recognized as an internal or external command, TS> operable program or batch file. TS> - - %< Buildout failed: http://winbot.zope.org/builders/ztk_dev%20py_254_win32/builds/152/steps/buildout/logs/stdio It just still does not exit with the right exitcode. -- Best regards, Adam GROSZERmailto:agros...@gmail.com -- Quote of the day: If I must go into eternity, I'd prefer to go by the scenic route. ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope Tests: 65 OK, 8 Failed
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/03/2010 08:58 AM, Zope Tests Summarizer wrote: > Summary of messages to the zope-tests list. > Period Tue Nov 2 13:00:00 2010 UTC to Wed Nov 3 13:00:00 2010 UTC. > There were 73 messages: 6 from Zope Tests, 4 from buildbot at pov.lt, 19 from > buildbot at winbot.zope.org, 11 from ccomb at free.fr, 33 from jdriessen at > thehealthagency.com. > > > Test failures > - > > Subject: FAILED : Zope Buildbot / zope2.13-py2.7 slave-ubuntu64 > From: jdriessen at thehealthagency.com > Date: Tue Nov 2 13:32:44 EDT 2010 > URL: http://mail.zope.org/pipermail/zope-tests/2010-November/022962.html > > Subject: FAILED : Zope Buildbot / zope2.14-py2.7 slave-ubuntu64 > From: jdriessen at thehealthagency.com > Date: Tue Nov 2 13:36:13 EDT 2010 > URL: http://mail.zope.org/pipermail/zope-tests/2010-November/022964.html > > Subject: FAILED : Zope Buildbot / zope2.13-py2.7 slave-ubuntu32 > From: jdriessen at thehealthagency.com > Date: Tue Nov 2 13:43:56 EDT 2010 > URL: http://mail.zope.org/pipermail/zope-tests/2010-November/022968.html > > Subject: FAILED : Zope Buildbot / zope2.14-py2.7 slave-ubuntu32 > From: jdriessen at thehealthagency.com > Date: Tue Nov 2 13:47:48 EDT 2010 > URL: http://mail.zope.org/pipermail/zope-tests/2010-November/022971.html > > Subject: FAILED : Zope Buildbot / zopetoolkit-py2.7 slave-ubuntu64 > From: jdriessen at thehealthagency.com > Date: Tue Nov 2 14:05:23 EDT 2010 > URL: http://mail.zope.org/pipermail/zope-tests/2010-November/022977.html > > Subject: FAILED : Zope Buildbot / zopetoolkit-py2.7 slave-ubuntu32 > From: jdriessen at thehealthagency.com > Date: Tue Nov 2 14:20:49 EDT 2010 > URL: http://mail.zope.org/pipermail/zope-tests/2010-November/022981.html I have quit investigation Python 2.7 failures until sojebody has an idea how to fix the proxy / weakref stuff. > Subject: FAILED : winbot / ztk_dev py_254_win32 > From: buildbot at winbot.zope.org > Date: Tue Nov 2 16:11:20 EDT 2010 > URL: http://mail.zope.org/pipermail/zope-tests/2010-November/022993.html Some kind of build failure:: - - %< 'bin\test-ztk.exe' is not recognized as an internal or external command, operable program or batch file. - - %< > Subject: FAILED : ZTK 1.0 / Python2.6.5 Linux 64bit > From: ccomb at free.fr > Date: Tue Nov 2 21:00:20 EDT 2010 > URL: http://mail.zope.org/pipermail/zope-tests/2010-November/023010.html This one is odd: - - %< Failure in test testHELP (zope.server.ftp.tests.test_ftpserver.Tests) Traceback (most recent call last): File "/usr/lib/python2.6/unittest.py", line 279, in run testMethod() File "/home/ccomb/buildout-eggs/zope.server-3.6.2-py2.6.egg/zope/server/ftp/tests/test_ftpserver.py", line 278, in testHELP self.assertEqual(self.execute('HELP', 1), result) File "/usr/lib/python2.6/unittest.py", line 350, in failUnlessEqual (msg or '%r != %r' % (first, second)) AssertionError: '214-The following commands are recognized\r\n' != '214-The following commands are recognized\r\nHelp goes here somewhen.\r\n214 Help done.\r\n' Ran 83 tests with 1 failures and 0 errors in 8.862 seconds. - - %< I can't see any recent changes which would cause that test to fail. Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkzRmEwACgkQ+gerLs4ltQ78sACfSBW9wr3sgNWwkjjU7FVRiIqB qBoAoNrjpiOAoJwyN9MjS5oOQfE/atMb =Mnyv -END PGP SIGNATURE- ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Zope Tests: 65 OK, 8 Failed
Summary of messages to the zope-tests list. Period Tue Nov 2 13:00:00 2010 UTC to Wed Nov 3 13:00:00 2010 UTC. There were 73 messages: 6 from Zope Tests, 4 from buildbot at pov.lt, 19 from buildbot at winbot.zope.org, 11 from ccomb at free.fr, 33 from jdriessen at thehealthagency.com. Test failures - Subject: FAILED : Zope Buildbot / zope2.13-py2.7 slave-ubuntu64 From: jdriessen at thehealthagency.com Date: Tue Nov 2 13:32:44 EDT 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-November/022962.html Subject: FAILED : Zope Buildbot / zope2.14-py2.7 slave-ubuntu64 From: jdriessen at thehealthagency.com Date: Tue Nov 2 13:36:13 EDT 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-November/022964.html Subject: FAILED : Zope Buildbot / zope2.13-py2.7 slave-ubuntu32 From: jdriessen at thehealthagency.com Date: Tue Nov 2 13:43:56 EDT 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-November/022968.html Subject: FAILED : Zope Buildbot / zope2.14-py2.7 slave-ubuntu32 From: jdriessen at thehealthagency.com Date: Tue Nov 2 13:47:48 EDT 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-November/022971.html Subject: FAILED : Zope Buildbot / zopetoolkit-py2.7 slave-ubuntu64 From: jdriessen at thehealthagency.com Date: Tue Nov 2 14:05:23 EDT 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-November/022977.html Subject: FAILED : Zope Buildbot / zopetoolkit-py2.7 slave-ubuntu32 From: jdriessen at thehealthagency.com Date: Tue Nov 2 14:20:49 EDT 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-November/022981.html Subject: FAILED : winbot / ztk_dev py_254_win32 From: buildbot at winbot.zope.org Date: Tue Nov 2 16:11:20 EDT 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-November/022993.html Subject: FAILED : ZTK 1.0 / Python2.6.5 Linux 64bit From: ccomb at free.fr Date: Tue Nov 2 21:00:20 EDT 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-November/023010.html Tests passed OK --- Subject: OK : Zope Buildbot / zope2.12-py2.6 slave-ubuntu64 From: jdriessen at thehealthagency.com Date: Tue Nov 2 13:29:03 EDT 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-November/022960.html Subject: OK : Zope Buildbot / zope2.13-py2.6 slave-ubuntu64 From: jdriessen at thehealthagency.com Date: Tue Nov 2 13:30:57 EDT 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-November/022961.html Subject: OK : Zope Buildbot / zope2.14-py2.6 slave-ubuntu64 From: jdriessen at thehealthagency.com Date: Tue Nov 2 13:34:30 EDT 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-November/022963.html Subject: OK : Zope Buildbot / zope2.12-py2.6 slave-ubuntu32 From: jdriessen at thehealthagency.com Date: Tue Nov 2 13:39:52 EDT 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-November/022965.html Subject: OK : Zope Buildbot / zopetoolkit-1.0-py2.4 slave-ubuntu64 From: jdriessen at thehealthagency.com Date: Tue Nov 2 13:41:39 EDT 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-November/022966.html Subject: OK : Zope Buildbot / zope2.13-py2.6 slave-ubuntu32 From: jdriessen at thehealthagency.com Date: Tue Nov 2 13:41:53 EDT 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-November/022967.html Subject: OK : Zope Buildbot / zope2.14-py2.6 slave-ubuntu32 From: jdriessen at thehealthagency.com Date: Tue Nov 2 13:45:57 EDT 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-November/022969.html Subject: OK : Zope Buildbot / zopetoolkit-1.0-py2.5 slave-ubuntu64 From: jdriessen at thehealthagency.com Date: Tue Nov 2 13:47:23 EDT 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-November/022970.html Subject: OK : Zope Buildbot / zopetoolkit-1.0-py2.6 slave-ubuntu64 From: jdriessen at thehealthagency.com Date: Tue Nov 2 13:53:27 EDT 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-November/022972.html Subject: OK : Zope Buildbot / zopetoolkit-1.0-py2.4 slave-ubuntu32 From: jdriessen at thehealthagency.com Date: Tue Nov 2 13:54:32 EDT 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-November/022973.html Subject: OK : Zope Buildbot / zopetoolkit-py2.5 slave-ubuntu64 From: jdriessen at thehealthagency.com Date: Tue Nov 2 13:57:35 EDT 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-November/022974.html Subject: OK : Zope Buildbot / zopetoolkit-1.0-py2.5 slave-ubuntu32 From: jdriessen at thehealthagency.com Date: Tue Nov 2 14:01:13 EDT 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-November/022975.html Subject: OK : Zope Buildbot / zopetoolkit-py2.6 slave-ubuntu64 From: jdriessen at thehealthagency.com Date: Tue Nov 2 14:01:34 EDT 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-November/022976.html Subject: OK : Zope Buildbot / zopetoolkit-1.0-py2.6 slave-ubuntu32 From: jdriessen at thehealthagency.com Date: Tue Nov 2 14:07:42 EDT 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-November/022978.html Subject: OK : Zope Buildbot / z