Pyramid and Python 3.3.0 beta 2
I realize that this version was just released over the weekend, but thought I'd put things I've noticed, questions, and issues out here. Noticed --- - New virtual environment venv is handy - There is a new packaging module that deprecates distutils - Namespace Packages Questions - Are there any known issues with pyramid and the new virtual environment - Will the new packaging be used for creating pyramid projects in the future? - Will namespace packages eliminate the need for config.scan? Issues - - I'm getting an error on Mac OSX Lion when I pserve a standard scaffold ( AttributeError: 'SourceFileLoader' object has no attribute 'etc') in venusian/__init__.py line 181 -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To view this discussion on the web visit https://groups.google.com/d/msg/pylons-discuss/-/mO-Q1NvQG-sJ. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
Re: Using Pyramid with Nginx and uWSGI
Ahh, that first tutorial is great, I wish I had it at the beginning, I would have been up to speed much quicker :) On Saturday, July 28, 2012 9:47:22 PM UTC-7, Craig Younkins wrote: You'll want to follow this tutorial to create your first Pyramid project - http://docs.pylonsproject.org/projects/pyramid/en/1.3-branch/narr/project.html#project-narr When you want to deploy it using uwsgi, follow up to step 7 in this tutorial - http://docs.pylonsproject.org/projects/pyramid/en/1.3-branch/tutorials/modwsgi/index.html#modwsgi-tutorial In your uwsgi ini, 'file' will refer to 'pyramid.wsgi' in the tutorial above, since it will have the wsgi application (callable = 'application') Hope that helps! Craig Younkins On Sat, Jul 28, 2012 at 11:08 PM, Jonah Dahlquist jonah...@gmail.comjavascript: wrote: Hello, world! I'm coming into the Python world from a PHP background. I'm trying to get a working Pyramid application working on my own machine, and I've almost made it. I have nginx and uWSGI running, and can call a Python script from the browser successfully. However, lots of research, reading documentation, and even reading through the starter project code has failed to make it clear to me how to connect Pyramid to wsgi. The script looks like this: def application(env, start_response): start_response('200 OK', [('Content-Type', 'text/html')]) return Hello universe! The INI configuration file for uWSGI is as follows: [uwsgi] socket = /tmp/uwsgi.sock master = true processes = 4 file = ./app.py callable = application daemonize = ./uwsgi.log pidfile = /tmp/app_process.pid virtualenv = /home/jonah/.virtualenvs/test So a request to http://localhost/ in the browser gives me Hello Universe!. How can I modify my script/uWSGI configuration to run Pyramid instead? Thanks for your help. -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To view this discussion on the web visit https://groups.google.com/d/msg/pylons-discuss/-/xW1HspiacSYJ. To post to this group, send email to pylons-...@googlegroups.comjavascript: . To unsubscribe from this group, send email to pylons-discus...@googlegroups.com javascript:. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en. -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To view this discussion on the web visit https://groups.google.com/d/msg/pylons-discuss/-/l7v9Al43A04J. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
Re: Using Pyramid with Nginx and uWSGI
Sweet, Simon, that's exactly what I need. Thanks so much, I'm quite enjoying Python so far, and I have a working starter project now. On Monday, July 30, 2012 2:07:44 AM UTC-7, Simon wrote: When you have a working pyramid starter project, this might be helpful... http://projects.unbit.it/uwsgi/wiki/INIFiles And this.. http://pythonpaste.org/deploy/ You can init like this; $ uwsgi development.ini provided you have this line in your .ini [uwsgi] paste = config:absolute_project_path/development.ini Alternatively, you can combine the ``ini`` and ``paste`` config action, and remove the need to reference your .ini file twice. $ uwsgi --ini-paste development.ini The features above support having combined .ini files, or a single .ini files that configures multiple apps. ps. You don't need that ``callable`` line because uwsgi reads your paste .ini file and derives from ``use = egg:MyProject``, which is short-hand for ``egg:MyProject#main`` - ``main`` being the callable in your project's ``__init__.py``. I write mine in full as I prefer to have as little implied config as possible. On 29 Jul 2012, at 05:47, Craig Younkins wrote: You'll want to follow this tutorial to create your first Pyramid project - http://docs.pylonsproject.org/projects/pyramid/en/1.3-branch/narr/project.html#project-narr When you want to deploy it using uwsgi, follow up to step 7 in this tutorial - http://docs.pylonsproject.org/projects/pyramid/en/1.3-branch/tutorials/modwsgi/index.html#modwsgi-tutorial In your uwsgi ini, 'file' will refer to 'pyramid.wsgi' in the tutorial above, since it will have the wsgi application (callable = 'application') Hope that helps! Craig Younkins On Sat, Jul 28, 2012 at 11:08 PM, Jonah Dahlquist jonah...@gmail.comjavascript: wrote: Hello, world! I'm coming into the Python world from a PHP background. I'm trying to get a working Pyramid application working on my own machine, and I've almost made it. I have nginx and uWSGI running, and can call a Python script from the browser successfully. However, lots of research, reading documentation, and even reading through the starter project code has failed to make it clear to me how to connect Pyramid to wsgi. The script looks like this: def application(env, start_response): start_response('200 OK', [('Content-Type', 'text/html')]) return Hello universe! The INI configuration file for uWSGI is as follows: [uwsgi] socket = /tmp/uwsgi.sock master = true processes = 4 file = ./app.py callable = application daemonize = ./uwsgi.log pidfile = /tmp/app_process.pid virtualenv = /home/jonah/.virtualenvs/test So a request to http://localhost/ in the browser gives me Hello Universe!. How can I modify my script/uWSGI configuration to run Pyramid instead? Thanks for your help. -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To view this discussion on the web visit https://groups.google.com/d/msg/pylons-discuss/-/xW1HspiacSYJ. To post to this group, send email to pylons-...@googlegroups.comjavascript:. To unsubscribe from this group, send email to pylons-discus...@googlegroups.com javascript:. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en. -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-...@googlegroups.comjavascript:. To unsubscribe from this group, send email to pylons-discus...@googlegroups.com javascript:. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en. -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To view this discussion on the web visit https://groups.google.com/d/msg/pylons-discuss/-/mzV73rvdRpYJ. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
ANN: Beaker 1.6.4 released with important security update
Beaker is a high-level Python library providing caching and sessions for use in web applications. The session implementation comes with crypto-based cookie encryption that support PyCrypto, pycryptopp, and now NSS crypto. Prior to this release, an attacker could possibly determine some content of cookie-based sessions encrypted with PyCrypto due to how the data was encrypted. This flaw did not affect pycryptopp sessions, nor does it allow an attacker to change data as a separate HMAC is used to sign the encrypted payload. Red Hat found and supplied a patch to fix this flaw, thanks! CVE-2012-3458 Fix in beaker: https://github.com/bbangert/beaker/commit/91becae76101cf87ce8cbfabe3af2622fc328fe5 Applying this update will change the hashing of sessions encrypted with PyCrypto, invalidating existing ones. Changelog for this release: * Fix bug with key_length not being coerced to a int for comparison. Patch by Greg Lavallee. * Fix bug with cookie invalidation not clearing the cookie data. Patch by Vasiliy Lozovoy. * Added ability to pass in cookie_path for the Session. Patch by Marcin Kuzminski. * Add NSS crypto support to Beaker. Patch by Miloslav Trmac of Redhat. * Fix security bug with pycrypto not securing data such that an attacker could possibly determine parts of the encrypted payload. Patch by Miloslav Trmac of Redhat. See `CVE-2012-3458 http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-3458`_. * Add ability to specify schema for database-backed sessions. Patch by Vladimir Tananko. * Fix issue with long key names in memcached backend. Patch by Guillaume Taglang. Cheers, Ben -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
Re: Pyramid and Python 3.3.0 beta 2
On Aug 13, 2012, at 11:44 AM, Luke D wrote: I realize that this version was just released over the weekend, but thought I'd put things I've noticed, questions, and issues out here. Noticed --- - New virtual environment venv is handy - There is a new packaging module that deprecates distutils packaging was actually removed in an earlier release, because it's unfinished. - Namespace Packages Questions - Are there any known issues with pyramid and the new virtual environment There shouldn't be - Will namespace packages eliminate the need for config.scan? I don't see how this would eliminate that need. Plus we already have namespace packages, this is really just a better, official impl of them. Issues - - I'm getting an error on Mac OSX Lion when I pserve a standard scaffold ( AttributeError: 'SourceFileLoader' object has no attribute 'etc') in venusian/__init__.py line 181 Could you post a new bug with a full traceback? Major parts of Python's import system were rewritten for 3.3 (including SourceFileLoader). -- Philip Jenvey -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
ANN: Pylons 1.0.1 released
I'm happy to announce the release of Pylons (Dead Framework Walking) 1.0.1. The most important changes for those that still have a Pylons app around, is support for the latest versions of WebTest and WebOb. Anyone trying to migrate and run a Pyramid and Pylons app in the same process lately have definitely noticed this issue, and 1.0.1 resolves it. Of course, there's a few other things in here (nothing new from 1.0.1RC1 though) worth mentioning from the changelog: * Updated dependencies to latest versions of Paste, PasteDeploy, and compatibility for the latest WebOb 1.2 betas. * authenticate_form allows for GET. Patch by Domen Kožar. * jsonify now properly sets charset to utf-8. * Add ability for jsonify to handle objects with a __json__ attribute using custom JSONEncoder class similar to TG2. Patch by Bob Farrell. * Added ability for __before__ to reference a callable function. Patch contributed by mverdone. * Pulled in JSON-RPC support from agentultra's pylons fork. * Apply patch for proper pylons.__version__ under Windows. Contributed by Christoph Zwerschke. * Utilize MarkupSafe for faster HTML escaping. * Fix signed cookies by using standard base64 alphabet, and prevent timing attacks on signature comparison. * Added setup of app_globals and config to Pylons config.init_app to ensure as long as the Pylons application is loaded, the app_globals and config will be appropriately initialized. * Documentation updates. For those running Pylons 1.0, there should be no backwards compatibility issues (short of any changes to WebOb that might affect you). Cheers, Ben -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
Re: Using Pyramid with Nginx and uWSGI
check out my last post in this thread: http://groups.google.com/group/pylons-discuss/browse_thread/thread/2de9e2661230c999/b93b702bb42b4fc2 might help you get going a bit faster -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
Re: Pyramid and Python 3.3.0 beta 2
On Monday, August 13, 2012 7:28:21 PM UTC-4, Philip Jenvey wrote: On Aug 13, 2012, at 11:44 AM, Luke D wrote: I realize that this version was just released over the weekend, but thought I'd put things I've noticed, questions, and issues out here. Noticed --- - New virtual environment venv is handy - There is a new packaging module that deprecates distutils packaging was actually removed in an earlier release, because it's unfinished. - Namespace Packages Questions - Are there any known issues with pyramid and the new virtual environment There shouldn't be - Will namespace packages eliminate the need for config.scan? I don't see how this would eliminate that need. Plus we already have namespace packages, this is really just a better, official impl of them. Issues - - I'm getting an error on Mac OSX Lion when I pserve a standard scaffold ( AttributeError: 'SourceFileLoader' object has no attribute 'etc') in venusian/__init__.py line 181 Could you post a new bug with a full traceback? Major parts of Python's import system were rewritten for 3.3 (including SourceFileLoader). -- Philip Jenvey Posted an issue with full traceback to Pyramid: https://github.com/Pylons/pyramid/issues/657 -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To view this discussion on the web visit https://groups.google.com/d/msg/pylons-discuss/-/9CKnWXmZAEoJ. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
Re: Pyramid and Python 3.3.0 beta 2
On Mon, Aug 13, 2012 at 4:28 PM, Philip Jenvey pjen...@underboss.org wrote: - New virtual environment venv is handy What does this mean? - There is a new packaging module that deprecates distutils packaging was actually removed in an earlier release, because it's unfinished. Does that mean we'll have to wait until 3.4 for it? That's really unfortunate because I've been waiting months for 3.3, and an end to having to explain to people how to make their Python installation setuptools-aware. -- Mike Orr sluggos...@gmail.com -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
Re: Pyramid and Python 3.3.0 beta 2
On Mon, Aug 13, 2012 at 08:18:28PM -0700, Mike Orr wrote: On Mon, Aug 13, 2012 at 4:28 PM, Philip Jenvey pjen...@underboss.org wrote: - New virtual environment venv is handy What does this mean? http://docs.python.org/dev/library/venv.html - There is a new packaging module that deprecates distutils packaging was actually removed in an earlier release, because it's unfinished. Does that mean we'll have to wait until 3.4 for it? That's really unfortunate because I've been waiting months for 3.3, and an end to having to explain to people how to make their Python installation setuptools-aware. I've been waiting for Python 2.5 because there were some talks early in its development about setuptools maybe making it into the standard library... Marius Gedminas -- We don't care. We don't have to. We're the Phone Company. signature.asc Description: Digital signature