Re: [pylons-discuss] Waitress and multiprocess pooling

2022-05-13 Thread Chris McDonough
> You can check out any time you like But you can never leave. > https://www.youtube.com/watch?v=EqPtz5qN7HM https://www.youtube.com/watch?v=_xRg-r2SohE - C -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and

Re: [pylons-discuss] Waitress and multiprocess pooling

2022-05-12 Thread Chris McDonough
> - Am I correct and Waitress is limited by Python threading? > - What's the recommended modern multiprocess enabled web server to do more > scaleable Pyramid hosting? Apologies for a "pop up" visit here, I have been AWOL forever, but I think I do know an answer to at least the first question.

Re: [pylons-discuss] Hypatia alternative?

2022-04-23 Thread Chris McDonough
hypatia 0.4 should now be on PyPI. Thanks! --- Original Message --- On Tuesday, April 19th, 2022 at 10:53 AM, Thierry Florac wrote: > Done! > > Best regards, > Thierry > -- > https://www.ulthar.net -- http://pyams.readthedocs.io > > Le lun. 18 avr. 2022 à 1

Re: [pylons-discuss] Hypatia alternative?

2022-04-18 Thread Chris McDonough
> All green now on hypatia master (delta travis, which I forget how to use, but > it doesn't matter, local tests and coverage pass), thanks for the patch! I'll > try to remember how to make a release tonight. :) Ah, sorry, one other thing, could you make a PR adding your name to CONTRIBUTORS.rs

Re: [pylons-discuss] Hypatia alternative?

2022-04-18 Thread Chris McDonough
> Gonna be a little while, the bitrot is pretty severe. :) But should be no (or > only minor) issue with the code itself. > > py27: commands succeeded > ERROR: py34: InvocationError for command > /home/chrism/projects/hypatia/.tox/py34/bin/python -m pip install --no-deps > -U .tox/.tmp/packag

Re: [pylons-discuss] Hypatia alternative?

2022-04-18 Thread Chris McDonough
> > > > > > --- Original Message --- > On Monday, April 18th, 2022 at 7:48 AM, Thierry Florac tflo...@gmail.com > wrote: > > > > > I have created a patch and a pull request...If it's OK and if you could > > create a new release that would be very nice !! :) > > Best regards,Thierry > > --

Re: [pylons-discuss] Hypatia alternative?

2022-04-18 Thread Chris McDonough
--- Original Message --- On Monday, April 18th, 2022 at 7:48 AM, Thierry Florac wrote: > I have created a patch and a pull request...If it's OK and if you could > create a new release that would be very nice !! :) > Best regards,Thierry > --https://www.ulthar.net -- http://pyams.re

Re: [pylons-discuss] Hypatia alternative?

2022-04-18 Thread Chris McDonough
> environment variable; the problem seems to be in the Okapi scoring extension. > I'll try to have a look at this but I'm not used to working on Python C > extension... > Best regards, > Thierry > -- > https://www.ulthar.net -- http://pyams.readthedocs.io > &g

Re: [pylons-discuss] Hypatia alternative?

2022-04-17 Thread Chris McDonough
I would likely be able to review any patches made to Hypatia --- Original Message --- On Sunday, April 17th, 2022 at 11:11 AM, Thierry Florac wrote: > Hi Laurent, > > I'm actually using Elasticsearch, with a custom integration package to > include it in my framework! > It works very we

Re: [pylons-discuss] Google Login with the new Google+ deprecation

2019-01-04 Thread Chris McDonough
On 1/4/19 2:56 PM, Marcus Mann wrote: > Hey guys, > > I don't know if any of you have Google Sign-in integrated into your > site, but I do, and I believe it was using the Google+ signin. How have > you migrated your system? > > If you haven't migrated, how did you integrate the non Google+ google

Re: [pylons-discuss] Deform 1.X-branch roadmap?

2015-10-02 Thread Chris McDonough
On 10/02/2015 03:39 AM, Steve Piercy wrote: It looks like 1.X-branch of the deform repo is a continuation after the release of deform 0.9.9. Is it the intent of the project managers to release deform v1.0 to PyPI in the future? If so, is there a roadmap for it? For comparison, here's the defor

Re: [pylons-discuss] Re: manage.py equivalent?

2015-06-01 Thread Chris McDonough
On 06/01/2015 12:45 PM, Jonathan Vanasco wrote: In addition to all of the above... there is also Fabric and it's derivatives that make managing the installation and app very simple. I just want to note that a lot of stuff that is best done in manage.py under Django are commands that "could" be r

Re: [pylons-discuss] Webtest NoSectionError

2015-05-29 Thread Chris McDonough
On 05/29/2015 10:47 AM, Brian Looker wrote: I've encountered a NoSectionError while trying to test my Pyramid project, and I haven't been able to figure out why. I have successfully used ConfigParser with the interpreter to read my .ini file without error. I've pasted in my code and the stack tr

[pylons-discuss] Pyramid 1.6a1 (and 1.4.8, and 1.5.6) now out

2015-04-14 Thread Chris McDonough
Pyramid 1.6a1 has been released. A detailed "What's New in Pyramid 1.6" document is available at The documentation for the release is available at . Y

Re: [pylons-discuss] authenticated_userid / unauthenticated_userid

2015-04-09 Thread Chris McDonough
On 04/09/2015 08:33 AM, Christophe de VIENNE wrote: Hello Chris, Le jeudi 9 avril 2015 12:30:34 UTC+2, Chris McDonough a écrit : On 04/09/2015 04:09 AM, Christophe de Vienne wrote: > Hi everyone, > > We are implementing a IAuthenticationPolicy that requires, to ge

Re: [pylons-discuss] authenticated_userid / unauthenticated_userid

2015-04-09 Thread Chris McDonough
On 04/09/2015 04:09 AM, Christophe de Vienne wrote: Hi everyone, We are implementing a IAuthenticationPolicy that requires, to get the actual userid, an access to the database [1]. Should unauthenticated_userid always return None to avoid a database access, or access the database to always retu

Re: [pylons-discuss] html renderer [was Re: pattern for caching views ?]

2015-03-15 Thread Chris McDonough
On 03/15/2015 07:10 AM, wilk wrote: Of course you can also make a custom renderer: from pyramid.compat import string_types def html_renderer_factory(info): def _render(value, system): if not isinstance(value, string_types): value = str(value) return valu

Re: [pylons-discuss] pattern for caching views ?

2015-03-13 Thread Chris McDonough
On 03/13/2015 04:05 PM, Jonathan Vanasco wrote: On Friday, March 13, 2015 at 3:53:38 PM UTC-4, Chris McDonough wrote: You mean renderers specified via view_config(renderer=...). Like I said, I don't think this is the right place to implement caching. Sorry, I think we'r

Re: [pylons-discuss] pattern for caching views ?

2015-03-13 Thread Chris McDonough
On 03/13/2015 03:53 PM, Chris McDonough wrote: On 03/13/2015 03:32 PM, Jonathan Vanasco wrote: the `view_config` issue I encountered is that there is essentially no native way to return HTML. view_config supports most other types (templating engines, json, plaintext) but not HTML. that's

Re: [pylons-discuss] pattern for caching views ?

2015-03-13 Thread Chris McDonough
On 03/13/2015 03:32 PM, Jonathan Vanasco wrote: the `view_config` issue I encountered is that there is essentially no native way to return HTML. view_config supports most other types (templating engines, json, plaintext) but not HTML. that's very awkward to me. You mean renderers specified vi

Re: [pylons-discuss] pattern for caching views ?

2015-03-13 Thread Chris McDonough
On 03/13/2015 02:50 PM, Jonathan Vanasco wrote: Thanks Chris. I agree with everything you said. The reason why I found this weird, is that this "response" caching pattern is common and supported in most Python frameworks. It's not I've never seen such a thing in any Python web framework, but

Re: [pylons-discuss] pattern for caching views ?

2015-03-13 Thread Chris McDonough
On 03/13/2015 02:10 PM, Jonathan Vanasco wrote: Ah, so you're not using it to cache the views. No one seems to. Odd. I think this is because what you call "caching a view" means "caching a response from a view", and this is typically done by caching the rendering of those responses using V

Re: [pylons-discuss] Re: Routes with same name and different url

2015-03-04 Thread Chris McDonough
On 03/04/2015 11:03 AM, Jonathan Vanasco wrote: On Wednesday, March 4, 2015 at 10:30:44 AM UTC-5, Oliver Berger wrote: If you want the same view executed for several urls just decorate it twice with a different route... +1 That's what most people would do. it would look something l

Re: [pylons-discuss] Pyramid Apache mod_wsgi timeout

2015-02-16 Thread Chris McDonough
On 02/16/2015 12:47 PM, Ross Guarino wrote: Hello all, I'm stuck, I have a pyramid web application that works while using pserve, but when I run it using apache and mod_wsgi it doesn't work. I get a "Script timed out before returning headers: pyramid.wsgi" error in the apache error.log after a

Re: [pylons-discuss] Re: deciding on zodb

2014-12-16 Thread Chris McDonough
On 12/16/2014 04:02 PM, wilk wrote: On 11-12-2014, Chris Rossi wrote: --f46d0434c0baf928a70509f0bfe4 Content-Type: text/plain; charset=UTF-8 Ok, less snarky version--one doesn't know the future, but the community around Pyramid is cohesive enough that it should endure for some time to come. En

Re: [pylons-discuss] What should go in main vs includeme functions in __init__.py?

2014-12-16 Thread Chris McDonough
On 12/16/2014 04:39 PM, pyramidX wrote: What is the difference between component vs application in the way you define it just wondering? This might provide a concrete example:

Re: [pylons-discuss] Upgraded Pyramid and other modules, now tracebacks are broken

2014-12-16 Thread Chris McDonough
e I was last working on this project and just never saw what happens when it was triggered. Sure. - C On Tuesday, 16 December 2014 18:19:01 UTC, Chris McDonough wrote: On 12/16/2014 12:59 PM, Ben Sizer wrote: > I forgot to mention I was using Windows, so, good guess. ;) >

Re: [pylons-discuss] Upgraded Pyramid and other modules, now tracebacks are broken

2014-12-16 Thread Chris McDonough
On 12/16/2014 12:59 PM, Ben Sizer wrote: I forgot to mention I was using Windows, so, good guess. ;) Anyway, this post inspired me to dig deeper and sprinkle some logging in there liberally. And I've found the change: at one point, I catch pymongo.errors.ConnectionFailure and raise pyramid.httpe

Re: [pylons-discuss] Pyramid and namespaces

2014-10-15 Thread Chris McDonough
On 10/15/2014 08:35 AM, Thierry Florac wrote: Hi, Always on the road to adapting a Zope 3 application to Pyramid... Another of my problems is that Zope3 is handling "namespace" traversers; for example, you can use URLs like "/++skin++MySkin/...", "/++etc++site/...", or anything else by defining

Re: [pylons-discuss] Pyramid + ZODB persistent registry

2014-10-14 Thread Chris McDonough
On 10/14/2014 06:28 PM, Thierry Florac wrote: Hi, For your information, this is the code I've produced to use local components registry: @subscriber(ContextFound) def onContextFound(event): context = event.request.context if ISite.providedBy(context): pyramid.threadlocal.mana

Re: [pylons-discuss] Pyramid + ZODB persistent registry

2014-10-13 Thread Chris McDonough
On 10/13/2014 06:22 PM, Thierry Florac wrote: Hi, I'm actually starting to study Pyramid. My main goal is to be able to upgrade several quite huge applications which are actually based on Zope 3 and heavily use the ZCA, without too much rewriting. One of our main use case is to define "site man

Re: [pylons-discuss] Re: Render only ZPT macro as view

2014-09-28 Thread Chris McDonough
On 09/28/2014 08:31 AM, Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/28/2014 04:33 AM, Gerhard Schmidt wrote: is there a way to the a view to only render a macro in view. The simplest would be to write a one-ilne template: and then use it as the renderer for a

Re: [pylons-discuss] Pyramid translation do Brazilian Portuguese

2014-08-18 Thread Chris McDonough
On 08/18/2014 02:03 PM, Ivan Neto wrote: Hi (sorry for the crossposting), I am part of the Pyramid Brazilian community, and we are planning to translate Pylons project docs, starting with Pyramid, to Brazilian Portuguese. I would like to know how can we start it. Should we create a new reposito

Re: [pylons-discuss] is there any video tutorials available

2014-08-17 Thread Chris McDonough
On 08/17/2014 05:14 PM, Steve Piercy wrote: http://www.stevepiercy.com/articles/using-pycharm-with-pyramid-videos/ https://www.youtube.com/watch?v=R_t1Sq8-SHU --steve On 8/17/14 at 3:23 AM, sarvapalakago...@gmail.com (sarvapalaka gowda) pronounced: i am new to pyramid web frameworks i am fi

Re: [pylons-discuss] ZCA version used in Pyramid -> matching documentation?

2014-07-10 Thread Chris McDonough
On 07/10/2014 08:46 AM, Achim Domma wrote: Hi, I'm making more and more use of ZCA in my web app. Looking at http://docs.zope.org/zope.component/ I see documentation for ZCA and "Zope 3 Component Architekture". They are similar from a conceptual point of view, but seem to differ in some API deta

Re: [pylons-discuss] Modify the way view callables are called.

2014-06-25 Thread Chris McDonough
What you're looking for is a 'view mapper'. You should be able to find information about view mappers in the Pyramid docs. On June 25, 2014 5:03:46 AM EDT, Achim Domma wrote: >Hi, > >I would like to modify the way, how my views are called. The idea would >be, >to "inject" some code, which maps

Re: [pylons-discuss] Pyramid - Hello Pyramid Developers

2014-06-10 Thread Chris McDonough
On 06/10/2014 12:41 PM, Adam Sims wrote: Long time reader, first time poster. A quick shout out to the Pyramid developers and community on the list. While Pyramid hasn't been my primary focus, its a growing interest and I've finally got around to whipping up a small website using it that I've t

Re: [pylons-discuss] Using ZODB from Response.app_iter

2014-06-10 Thread Chris McDonough
On 06/10/2014 08:09 AM, Joe Steeve wrote: Hello all, I am implementing a CSV exporter to export the objects in a container. I decided to write it as an 'app_iter' so that I dont have to store an intermediate file. In the process, I figured that the ZODB connection gets closed before the app_iter

Re: [pylons-discuss] URLDecodeErrors

2014-05-20 Thread Chris McDonough
Oops sorry saw you already know that. No. We want the error to be raised because it should be possible for people to handle it with an exception view. On May 20, 2014 5:43:23 AM EDT, Arndt Droullier wrote: >Hi, > >from time to time I run into URLDecodeError exceptions caused by >(useless) urls

Re: [pylons-discuss] URLDecodeErrors

2014-05-20 Thread Chris McDonough
You can register an exception view for URLDecodeError and react to it as necessary for your situation. On May 20, 2014 5:43:23 AM EDT, Arndt Droullier wrote: >Hi, > >from time to time I run into URLDecodeError exceptions caused by >(useless) urls with unknown encoding. > >The exceptions can easi

Re: [pylons-discuss] Traversal root path

2014-05-20 Thread Chris McDonough
I don't think anyone is going to be able to figure out what you're asking here. As performance art it's brilliant though! ☺ On May 20, 2014 3:00:44 AM EDT, uralbash wrote: >Hello, > >I'm trying to go to home page (http://localhost:6543/) through >traversal. >What should be the key of context t

Re: [pylons-discuss] How to store session data server side?

2014-05-08 Thread Chris McDonough
On 05/08/2014 04:42 PM, Jonathan Vanasco wrote: On Thursday, May 8, 2014 1:40:58 PM UTC-4, Chris McDonough wrote: I'd be surprised. That'd presume the two implementations stored data in the exact same way, which might well be the case, but can't be assumed.

Re: [pylons-discuss] How to store session data server side?

2014-05-08 Thread Chris McDonough
On 05/08/2014 01:21 PM, Mike Orr wrote: On Thu, May 8, 2014 at 4:16 AM, Chris McDonough wrote: All of the above use cases presume that you have visibility into the session implementation's backend to load data. If you do, that's fine, but there are no APIs in Pyramid that pr

Re: [pylons-discuss] How to store session data server side?

2014-05-08 Thread Chris McDonough
On 05/08/2014 01:05 PM, Jonathan Vanasco wrote: Having the ability to uniformly access a session's id across ISession implementations buys you very little in these cases, because you're already relying on implementation details that necessarily go behind the back of ISession. You

Re: [pylons-discuss] How to store session data server side?

2014-05-08 Thread Chris McDonough
On 05/07/2014 02:26 PM, Jonathan Vanasco wrote: which is why I keep badgering him to weigh in on this issue only. sorry, i feel a bit clearer on what you want to hear now. for this particular need, the others tabled, it's largely testing and troubleshooting -- and it is a bit more advance

Re: [pylons-discuss] How to store session data server side?

2014-05-05 Thread Chris McDonough
On 05/05/2014 10:36 PM, Randall Leeds wrote: On May 5, 2014 6:00 PM, "Chris McDonough" mailto:chr...@plope.com>> wrote: > > > This conversation seems to be going in circles a bit. > > Rather than debating the idea in the abstract, I'm trying to figu

Re: [pylons-discuss] How to store session data server side?

2014-05-05 Thread Chris McDonough
On 05/05/2014 12:10 PM, Jonathan Vanasco wrote: On Saturday, May 3, 2014 7:02:46 AM UTC-4, Chris McDonough wrote: Sure. It's always a tradeoff, though. If we over-specify the session interface, it makes session implementers' lives harder, and may reduce flexibility for

Re: [pylons-discuss] How to store session data server side?

2014-05-03 Thread Chris McDonough
On 05/03/2014 12:03 PM, Mike Orr wrote: On Mon, Apr 28, 2014 at 10:03 PM, Chris McDonough wrote: On 04/28/2014 11:28 PM, Mike Orr wrote: On Mon, Apr 28, 2014 at 3:07 PM, Chris McDonough wrote: On 04/28/2014 04:05 PM, Jonathan Vanasco wrote: IMO, the point of an interface is to provide

Re: [pylons-discuss] How to store session data server side?

2014-05-03 Thread Chris McDonough
On 05/02/2014 03:42 PM, Jonathan Vanasco wrote: My rationale for all this argument isn't for my benefit. whenever i use pyramid I can (and do) write in my needed functionality. i can patch/fork/subclass in most needed functionality. i just worry because this is still a common situation and com

Re: [pylons-discuss] How to store session data server side?

2014-04-30 Thread Chris McDonough
On 04/30/2014 04:36 PM, Michael Merickel wrote: On Wed, Apr 30, 2014 at 3:28 PM, Chris McDonough mailto:chr...@plope.com>> wrote: The presumption that there is a session.id <http://session.id> variable won't solve this particular problem, as Bert and Mike have alre

Re: [pylons-discuss] How to store session data server side?

2014-04-30 Thread Chris McDonough
On 04/30/2014 03:29 PM, Jonathan Vanasco wrote: The focus of this discussion shouldn't be the merits, drawbacks, or implementation details of server-side sessions vs client-side sessions -- which everyone is quick to chime in on. We can talk about that all day. We have, many times.. My concern

Re: [pylons-discuss] Delegating to an external Pyramid/Pylons application

2014-04-28 Thread Chris McDonough
On 04/28/2014 07:35 PM, Mike Orr wrote: In the next few months I will need the ability to forward requests from a Pyramid application to another Pyramid or Pylons application running in a separate processes. The reason for the separate processes is they're still in Pylons or have complex dependen

Re: [pylons-discuss] Authentication libraries

2014-04-28 Thread Chris McDonough
On 04/28/2014 07:26 PM, Mike Orr wrote: I need a Pyramid authentication policy that does the following: - Use LDAP or a local database depending on the username suffix. - Retrieve the user's LDAP properties for authorization (especially 'ou' and 'ou1'). - A custom login form for interactive user

Re: [pylons-discuss] How to store session data server side?

2014-04-28 Thread Chris McDonough
On 04/28/2014 11:28 PM, Mike Orr wrote: On Mon, Apr 28, 2014 at 3:07 PM, Chris McDonough wrote: On 04/28/2014 04:05 PM, Jonathan Vanasco wrote: IMO, the point of an interface is to provide an abstract API which folks can meet to provide alternate implementations. If server-side session

Re: [pylons-discuss] How to store session data server side?

2014-04-28 Thread Chris McDonough
On 04/28/2014 04:05 PM, Jonathan Vanasco wrote: On Monday, April 28, 2014 1:11:17 PM UTC-4, Chris McDonough wrote: As the class docstring indicates, the only contstraints on keys and values are that they must be pickleable. If some sessioning implementation does not provide this

Re: [pylons-discuss] How to store session data server side?

2014-04-28 Thread Chris McDonough
On 04/28/2014 11:04 AM, Jonathan Vanasco wrote: 1. Like I mentioned above, but not very clearly, the big reason why I dislike the pyramid_session_[foo] approach, is that the only standardization is how it adapts to the ISession interface. There's no standardization on the (de)serialization interf

Re: [pylons-discuss] How to store session data server side?

2014-04-26 Thread Chris McDonough
On 04/26/2014 03:58 PM, Mike Orr wrote: On Tue, Apr 22, 2014 at 1:16 PM, Anders Wegge wrote: As I read the documentation for SignedCookieSessionFactory, the data stored in the session is not encrypted. So storing a CSRF token in the session Cookie is not a good option. Pyramid_beaker seem to

Re: [pylons-discuss] Re: How to store session data server side?

2014-04-23 Thread Chris McDonough
On 04/23/2014 04:17 PM, Jonathan Vanasco wrote: On Wednesday, April 23, 2014 2:23:03 PM UTC-4, Chris Rossi wrote: "sudo apt-get install redis-server" is pretty easy. Then you have a service on localhost listening to the default port, there's pretty much zero configuration required

Re: [pylons-discuss] ZODB problem to change an attribute from 2 diferent threads

2014-04-23 Thread Chris McDonough
On 04/23/2014 06:11 PM, Ariel Argañaraz wrote: Hi, I have a problem with threads. You'll want to ask this question at . The Pylons Project does not maintain ZODB. The documentation says: A processwith multiple threads will often have multiple

Re: [pylons-discuss] Re: How to store session data server side?

2014-04-23 Thread Chris McDonough
On 04/23/2014 12:06 PM, Jonathan Vanasco wrote: You can still use pyramid_beaker. It works fine under pyramid 1.5 . There are a few heated discussions in the archives over it. It's a sore point for many. I could be wrong on this, but last I checked it's not so much "deprecated" as it is "off

Re: [pylons-discuss] Authkit troubles

2014-04-16 Thread Chris McDonough
On 04/13/2014 11:14 AM, Bert JW Regeer wrote: AuthTkt is still supported, there is a authentication module for it in Pyramid that uses authtkt for auth. AuthKit is a package unrelated to authtkt. Etienne wants to use AuthKit but I don't think anyone on this maillist supports it. Bert On

[pylons-discuss] Pyramid 1.5 final released

2014-04-08 Thread Chris McDonough
Pyramid 1.5 final has been released. Here's what happened since the last release in the 1.5 series (1.5b1): Bug Fixes - - Avoid crash in ``pserve --reload`` under Py3k, when iterating over possibly mutated ``sys.modules``. - ``UnencryptedCookieSessionFactoryConfig`` failed

[pylons-discuss] Pyramid 1.5b1 released

2014-02-08 Thread Chris McDonough
Pyramid 1.5b1 has been released. Here's what happened since the last release in the 1.5 series (1.5a4): Features - We no longer eagerly clear ``request.exception`` and ``request.exc_info`` in the exception view tween. This makes it possible to inspect exception informati

[pylons-discuss] Pyramid 1.5a4 released

2014-01-28 Thread Chris McDonough
Pyramid 1.5a4 has been released. Here's what happened since the last release in the 1.5 series (1.5a3): Features - Updated scaffolds with new theme, fixed documentation and sample project. Bug Fixes - - Depend on a newer version of WebOb so that we pull in som

Re: [pylons-discuss] Error attempting ZODB + Traversal Wiki Tutorial

2014-01-23 Thread Chris McDonough
On 01/23/2014 08:37 PM, Thomas Grzybowski wrote: Hi, I am attempting to run through the ZODB + Traversal Wiki Tutorial, but when I come to Defining Views - Viewing the Application in a Browser, when I run "../bin/pserve development.ini --reload", I run into the following error: "cannot import na

Re: [pylons-discuss] most simple pyramid with gunicorn

2014-01-22 Thread Chris McDonough
On 01/22/2014 07:59 PM, Thomas Grzybowski wrote: Hi! I am trying to serve a trivial pyramid app using gunicorn in the most basic way. The application.py is as follows: from pyramid.config import Configurator from pyramid.response import Response # This acts as the view function def hello_worl

[pylons-discuss] New Orleans sprint in February

2014-01-02 Thread Chris McDonough
Hi folks, There will be a Pylons sprint in New Orleans this February. The sprint topic is nominally "Pylons Project software" which includes Pyramid, Colander, Deform, Substance D, etc. But in reality, it'll be pretty freeform, so if you have something you'd like to work on and you think it

Re: [pylons-discuss] Pyramid 1.5a3 released

2013-12-13 Thread Chris McDonough
On 12/13/2013 12:06 PM, Jonathan Vanasco wrote: The recent changes -- even in the docs alone , are re-positioning Pyramid from having "Awesome Session support: cookie or virtually any backend !" to "cookie or you can install redis!"One of those is very underwhelming. ( cue the sad trombone

[pylons-discuss] Pyramid 1.5a3 released

2013-12-10 Thread Chris McDonough
Pyramid 1.5a3 has been released. Here's what happened since the last release in the 1.5 series (1.5a2): Features - An authorization API has been added as a method of the request: ``request.has_permission``. ``request.has_permission`` is a method-based alternative to the

Re: [pylons-discuss] pyramid_mailer ComponentLookupError:

2013-11-14 Thread Chris McDonough
On 11/14/2013 05:31 PM, Matt Smith wrote: my code: from pyramid_mailer import get_mailer from pyramid_mailer.message import Message mailer = get_mailer(request) message = Message(subject="hello world", sender="ad...@mysite.com", recipients=["m...@clickertrainin

Re: [pylons-discuss] accessing / caching the `settings` outside of a request

2013-10-11 Thread Chris McDonough
On 10/11/2013 11:54 PM, Jonathan Vanasco wrote: ? When you say "threadsafe", lib.constants.app_settings is certainly not threadsafe, but if it is treated as readonly then you can share it between threads. Sorry, I should have been more clear. Our *usage* seems to be threadsafe -- a

Re: [pylons-discuss] Strange behaviour: transactions not committed automatically

2013-10-06 Thread Chris McDonough
Seems like default behavior is sane to me fwiw. Laurence Rowe wrote: >By default the zope.sqlalchemy extension only commits if it thinks changes >have been made (by listening for orm events.) If you go outside of that you >need to use mark_changed on the session, or switch the behaviour off >

[pylons-discuss] Deform 2.0a1 released

2013-10-05 Thread Chris McDonough
Thanks mostly to the efforts of Domen Kožar as a result of the Google Summer of Code 2013 project, we have made a release of the Deform form library version 2.0a1. Deform 2.X is the successor to the venerable Deform 0.X line (with 0.9.9 being the latest). It is however, mostly backwards incom

[pylons-discuss] Pyramid 1.5a2 released.

2013-09-22 Thread Chris McDonough
Pyramid 1.5a2 has been released. Below is a list of changes. Note that this version has one backwards incompatibility that will impact almost anyone who uses Pyramid: Pyramid no longer depends on Chameleon and Mako by default. See below in the "Backwards Incompatibilities" section for more deta

Re: [pylons-discuss] Return a 403 from a Resource

2013-09-18 Thread Chris McDonough
On 09/17/2013 11:57 PM, AM wrote: Hi. I have a UserFactory that I use for traversal of urls like /u/{id}. What I would like to do is return a 403 for a user that does not exist instead of raising a KeyError which returns a 404. Is there any way to do that? You can do ``raise HTTPForbidden()``

Re: https://www.PylonsProject.org SSL Certificate Match Error

2013-09-14 Thread Chris McDonough
On 09/14/2013 03:32 AM, Wes Turner wrote: https://www.PylonsProject.org seems to be returning a certificate for "www.blueleftistconstructor.com", which does not match the www.pylonsproject.org domain name. $ openssl s_client -connect www.pylonsproject.org:443 ... subject=/C=US/CN=www.bluele

sprints in Budapest and Ireland coming up.

2013-09-07 Thread Chris McDonough
FTR, I'll be organizing Pyramid-related topics at sprints in both Budapest and Dublin in mid-October: Budapest: Dublin: h

Re: How to add the version number for the static file?

2013-09-04 Thread Chris McDonough
On 09/04/2013 05:02 AM, luthur wrote: something like Tornado's static_url, the assets' url would be xxx.xxx?v=123 https://github.com/maisano/pyramid_cachebust - C -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this g

Re: FYI: Planning to merge some "Getting Started" docs changes today

2013-09-01 Thread Chris McDonough
def __init__(self, request): self.request = request @view_config(route_name='route2') def myview(self): ... access to request via self.request ... Suggestions to help make http://docs.pylonsproject.org/projects/pyramid/en/1.5-branch/narr/viewconfig.html#view-confi

Re: FYI: Planning to merge some "Getting Started" docs changes today

2013-09-01 Thread Chris McDonough
On 09/01/2013 02:24 PM, Mike Orr wrote: Especially since, doesn't Rails have MVC frameworks now? I know they've been backporting some things from the Python frameworks. AFAIK, Rails always "had MVC" and was the tip of the "MVC" spear. It made the term "MVC" popular in relation to web framew

Re: FYI: Planning to merge some "Getting Started" docs changes today

2013-09-01 Thread Chris McDonough
On 09/01/2013 12:24 AM, Jonathan Vanasco wrote: I think of the QuickTour as an exec summary. I've gone through similar overviews in other frameworks/projects/etc been instantly in love, or will summarily dismiss it. Why? Because some overviews make it seem like you only have one option/method

Pyramid 1.5a1 released

2013-08-30 Thread Chris McDonough
Pyramid 1.5a1 has been released. It is the first alpha release in the 1.5 series. A "What's New In Pyramid 1.5" document exists at http://docs.pylonsproject.org/projects/pyramid/en/1.5-branch/whatsnew-1.5.html explaining its differences from previous releases. You will be able to see the 1.5 rel

Pyramid 1.4.5 released

2013-08-30 Thread Chris McDonough
Pyramid 1.4.5 has been released. It is a maintenance release in the 1.4 series. Here's what happened since the last release (1.4.4): 1.4.5 (2013-08-30) == Bug Fixes - - The ``alchemy`` scaffold would break when the database was MySQL during tables creation

Pyramid 1.4.4 released

2013-08-27 Thread Chris McDonough
Pyramid 1.4.4 has been released. It is a maintenance release in the 1.4 series. Here's what happened since the last release (1.4.3): 1.4.4 (2013-08-27) == Bug Fixes - - Fix an obscure problem when combining a virtual root with a route with a ``*traverse`

Re: BREACH

2013-08-06 Thread Chris McDonough
On Tue, 2013-08-06 at 08:57 -0500, Parnell Springmeyer wrote: > Does Pyramid have a stance on this issue? > > > http://breachattack.com/ > https://www.djangoproject.com/weblog/2013/aug/06/breach-and-django/ Nothing specific. Basically, what the Django thing says. Disable compression middlewar

Re: is there a way to move config.add_route out of __init__.py?

2013-08-02 Thread Chris McDonough
On Fri, 2013-08-02 at 21:41 -0700, Chung WONG wrote: > I am wondering if it is possible to group view_config and add_route as > close as possible? > Anyone have an idea? > thanks Sorry, I'm afraid they just don't go in the same place in Pyramid. http://docs.pylonsproject.org/projects/pyramid/en/1

Re: Can a context factory generate custom context objects

2013-07-31 Thread Chris McDonough
On Wed, 2013-07-31 at 21:44 -0700, Ams Fwd wrote: > I am using object level security to enforce authz policies. So for > example: > for route /u/{uid} I have a UserFactory, which loads the user data > from the database and returns that in __getitem__ which is the > request.content in the view. What

Re: deform or simple_form for bootsrap forms?

2013-07-26 Thread Chris McDonough
On Fri, 2013-07-26 at 05:04 -0700, Rebelo wrote: > Hello. > > I am writing an web app in pyramid. I have used both pylons and > pyramid before. > I am currently in the process of decinding which form generation > library to use. > I canot decide between deform and simpleform. > > It has been dec

Re: Correct way of detecting application package in third party package

2013-07-23 Thread Chris McDonough
It's undefined. I'd suggest setting something in registry.settings and using it if it exists. On Tue, 2013-07-23 at 01:30 -0700, Robert Forkel wrote: > Hi all, > I just came across the same problem as OP: How do I determine the > "application" package from an includeme function. I found the two >

Re: hello.

2013-07-22 Thread Chris McDonough
Sorry bout that, I must have let him through.. I dont see him as a member now. We'll see if he posts anything else. - C On Mon, 2013-07-22 at 19:24 -0700, Steve Piercy wrote: > Would a group/list admin please remove or moderate this fellow? > It appears their Gmail account has been compromised

Re: has anyone only used transactions for pyramid_mailer and not SqlAlchemy ?

2013-07-18 Thread Chris McDonough
On Thu, 2013-07-18 at 19:21 -0400, Chris McDonough wrote: > On Thu, 2013-07-18 at 15:46 -0700, Jonathan Vanasco wrote: > > > > > There was/is no mention of transaction's support of savepoints in > > pyramid_tm , pyramid_mailer or repoze.sendmail ; only discovered i

Re: has anyone only used transactions for pyramid_mailer and not SqlAlchemy ?

2013-07-18 Thread Chris McDonough
On Thu, 2013-07-18 at 15:46 -0700, Jonathan Vanasco wrote: > > There was/is no mention of transaction's support of savepoints in > pyramid_tm , pyramid_mailer or repoze.sendmail ; only discovered it > while bugfixing some in-house code and searching for similar issues > online. > > > > > i

Pyramid 1.5a1 relatively imminent

2013-07-18 Thread Chris McDonough
Within the next month or so, it's likely we'll release the first alpha of Pyramid 1.5. There are many bug fixes and feature requests in the issue tracker. I'd like it if we could get as many of them into 1.5a1 as possible. For that to happen, I'd like to ask those who have submitted issues to mak

Pyramid 1.4.3 released

2013-07-18 Thread Chris McDonough
Pyramid 1.4.3 has been released. It is a maintenance release in the 1.4 series. Here's what happened since the last release (1.4.2): 1.4.3 (2013-07-18) == Bug Fixes - - ``pyramid.testing.DummyResource`` didn't define ``__bool__``, so code under Python 3 wo

Re: Traversal example

2013-07-17 Thread Chris McDonough
On Wed, 2013-07-17 at 20:10 -0700, Theron Luhn wrote: > I understand traversal quite well. I've been using it on a huge > project I've been working on for the last year and a half, including > doing some neat tricks using __getitem__. > > > However, all the traversal tutorials out there are only

Re: Pragmatic introduction to zope.sqlalchemy, transaction and pyramid_tm?

2013-07-16 Thread Chris McDonough
For the record, the reason that "pyramid_tm" is not really mentioned in the main Pyramid docs is that it is not a part of Pyramid. I recognize that it not being a part of Pyramid is confusing to new users. But it is also a strength of the framework that everything is modular. There should probab

Re: Using Pyramid in PyCharm Guide

2013-07-13 Thread Chris McDonough
On Sat, 2013-07-13 at 02:13 -0600, Steve Piercy wrote: > Howdy, > Where would it best belong? > https://github.com/Pylons/pyramid_tutorials > https://github.com/Pylons/pyramid_cookbook > https://github.com/Pylons/pyramid/tree/master/docs/tutorials > https://github.com/Pylons/pyramid/tree/master/do

Re: Understanding Pyramid Thread Generation

2013-07-08 Thread Chris McDonough
On Mon, 2013-07-08 at 12:00 -0700, icook wrote: > On Sunday, July 7, 2013 11:39:33 PM UTC-7, Chris McDonough wrote: > On Sun, 2013-07-07 at 23:33 -0700, icook wrote: > > Hello all, > > > > > > I've been working on a s

Re: Understanding Pyramid Thread Generation

2013-07-07 Thread Chris McDonough
On Sun, 2013-07-07 at 23:33 -0700, icook wrote: > Hello all, > > > I've been working on a site I'm building with Pyramid for a while now, > and I'm hitting a bit of an understanding stumbling block. I've read > the docs that mention thread locals and how they interact with > requests, but what I'

Re: Error following the SQLAlchemy + URL Dispatch Wiki Tutorial

2013-06-09 Thread Chris McDonough
On Sun, 2013-06-09 at 15:51 -0700, Carlos Andrés Lopez Gil wrote: > Hi, > > > I'm starting with Pyramid, I have been following the section named > "Getting Started" I did "single fail task" tutorial, > and now I am following the wiki tutorial, I did each step writen in > Installation section w

  1   2   3   4   5   6   7   8   >