Re: [pylons-discuss] request.resource_url or request.resource_path

2024-05-29 Thread Mike Orr
The '*_path' methods also make the generated HTML easier to read, because they're shorter and focus on the changing part. On Wed, May 29, 2024 at 8:03 AM Mike Orr wrote: > > I prefer the '*_path' methods to get relative URLs that automatically > adjust to more environments, and to

Re: [pylons-discuss] request.resource_url or request.resource_path

2024-05-29 Thread Mike Orr
it > https://groups.google.com/d/msgid/pylons-discuss/CA%2ByMeXVZ%3DxN6yYCC-oRU3W%3D7J52xzAuQfVwJSyyKep4gpg%3Do5Q%40mail.gmail.com. -- Mike Orr -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop r

Re: [pylons-discuss] Question about creating routes

2024-03-13 Thread Mike Orr
gt; You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pylons-discuss+unsubscr...@googlegroups.com. > To view this discussion on the web vis

[pylons-discuss] WebHelpers2 2.1 released

2024-02-08 Thread Mike Orr
(version 3) will drop Python 2 and older versions of Python 3. It will focus on updating the packaging and documentation. No new features or API changes are expected. It may delete some helpers that now have counterparts in recent versions of Python. -- Mike Orr -- You received this message because

Re: [pylons-discuss] feedback on Supabase auth sample app for Pyramid

2023-11-30 Thread Mike Orr
eived this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pylons-discuss+unsubscr...@googlegroups.com. > To view this discussion on the web visit > htt

Re: [pylons-discuss] Display query and result on the same page

2023-11-23 Thread Mike Orr
On Thu, Nov 23, 2023 at 11:50 AM Oberdan Santos wrote: > > You should note in the subject statement that in addition to the query, I > have the problem of the result being published on another page. > query page code > # templates/pac_recepx.jinja2 > > > > Consultar

Re: [pylons-discuss] Display query and result on the same page

2023-11-23 Thread Mike Orr
On Thu, Nov 23, 2023 at 7:03 AM Oberdan Santos wrote: > O codigo no formato acima não executou, apresentou erro, mas foi de grande > valia, muito obrigado). Fiz uma pequena alteração e deu certo. > Funcionou assim: > cpf = request.params["cpf"] >rows =

Re: [pylons-discuss] Display query and result on the same page

2023-11-22 Thread Mike Orr
t; -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pylons-discuss+unsubscr...@googlegroups.com. > To view this discussion on the we

Re: [pylons-discuss] Problems when using Gunicorn and Postgresql together

2023-11-20 Thread Mike Orr
On Mon, Nov 20, 2023 at 4:14 PM Jonathan Vanasco wrote: > > SQLAlchemy supports this via `Engine.dispose()`, which is the documented way > of handling a post-fork connection: > >https://docs.sqlalchemy.org/en/13/core/connections.html#engine-disposal Yes, that sounds familiar. -- You

Re: [pylons-discuss] determinate if app object is the server or created from a console script

2023-10-13 Thread Mike Orr
t;mailto:pylons-discuss%2bunsubscr...@googlegroups.com>. > > To view this discussion on the web visit > > > > https://groups.google.com/d/msgid/pylons-discuss/971cf4de-7235-47af-a92e-5da154230b18%40augusta.de > > > > <https://groups.google.com/d/ms

Re: [pylons-discuss] determinate if app object is the server or created from a console script

2023-10-13 Thread Mike Orr
gt; To unsubscribe from this group and stop receiving emails from it, send an > email to pylons-discuss+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pylons-discuss/008829c9-1180-4365-9f69-d22d59a09ccd%40augusta.de. -- Mi

Re: [pylons-discuss] How to get route_url() and static_url() to work from a Celery process?

2023-08-31 Thread Mike Orr
the best/right thing to do? > > Thanks! > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pylons-discuss+unsubscr...@googlegrou

Re: [pylons-discuss] pyramid_session_redis - v1.7.0rc1

2023-06-15 Thread Mike Orr
com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pylons-discuss/632b73fe-818f-42b3-b035-b61fb518df85n%40googlegroups.com. -- Mike Orr -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group.

[pylons-discuss] WebHelper2 needs release helper

2023-05-17 Thread Mike Orr
and haven't changed much, and I doubt the spec has changed much, so I'm inclined to maybe delete the test if it's not straightforward to fix. Maybe somebody can figure it out better than I can. -- Mike Orr -- You received this message because you are subscribed to the Google Groups "pylons-di

Re: [pylons-discuss] feedback? cookiecutter for maintaining larger projects

2022-11-11 Thread Mike Orr
static site instead). > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pylons-discuss+unsubscr...@googlegroups.com. &

Re: [pylons-discuss] Re: using pyramid without an ORM ?

2022-08-20 Thread Mike Orr
On Thu, Aug 18, 2022 at 12:10 PM Ian Wilson wrote: > I just about crack a gear every time I see raw SQL used in JS or some other > language ecosystem. We have a space ship right here, right now. Why are > people strapping cardboard to their arms? I've done it before myself many > years ago

Re: [pylons-discuss] Re: using pyramid without an ORM ?

2022-08-18 Thread Mike Orr
On Thu, Aug 18, 2022 at 5:03 AM Mikko Ohtamaa wrote: > Nowadays I program SQLAlchemy by using StackOverflow. This is after 10 years > of using SQLAlchemy. Makes the process more tolerable. However, the extra > power you get from it in a big project is worth it. The project needs to be a > big

Re: [pylons-discuss] Re: using pyramid without an ORM ?

2022-08-16 Thread Mike Orr
at 9:19 AM 'Jonathan Vanasco' via pylons-discuss wrote: > > On Tuesday, August 16, 2022 at 11:45:24 AM UTC-4 Mike Orr wrote: > > It is rolling back in some of my testing when there's no > > insert/delete/update, but I want to make sure it always does, just in > > case something

Re: [pylons-discuss] Re: using pyramid without an ORM ?

2022-08-16 Thread Mike Orr
if there were no changes, or if it will always do so. On Tue, Aug 16, 2022 at 8:42 AM Mike Orr wrote: > > On Mon, Aug 15, 2022 at 3:46 PM Jonathan Vanasco wrote: > > > > > > I second what Michael said. The sqlalchemy starter template is the right > > way to go. > &g

Re: [pylons-discuss] Re: using pyramid without an ORM ?

2022-08-16 Thread Mike Orr
On Mon, Aug 15, 2022 at 3:46 PM Jonathan Vanasco wrote: > > > I second what Michael said. The sqlalchemy starter template is the right way > to go. > > The major thing this template does, is provide you with the glue between a > SQLAlchemy "Session" and the pyramid request. See : >

Re: [pylons-discuss] using pyramid without an ORM ?

2022-08-11 Thread Mike Orr
On Thu, Aug 11, 2022 at 8:59 PM Mike Orr wrote: > Somebody in our local Python group was doing that, although not with > Pyramid. He ran a PostgreSQL consultancy, and one of his staff gave a > talk about the benefits of using Postges' role system for user > accounts and permissions

Re: [pylons-discuss] Re: using pyramid without an ORM ?

2022-08-11 Thread Mike Orr
On Thu, Aug 11, 2022 at 9:54 AM pzzcc wrote: > I want to avoid using SQLALCHEMY all together really to have a better > understanding of how things work inside pyramid for integrating the tool with > other tools already in place. so I think that is the correct route. once I > get this to work ,

Re: [pylons-discuss] using pyramid without an ORM ?

2022-08-11 Thread Mike Orr
discuss+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pylons-discuss/309895e7-5ea4-49c6-b7e3-d7dff9c62337n%40googlegroups.com. -- Mike Orr -- You received this message because you are subscribed to the Google Groups "pylons-discus

Re: [pylons-discuss] Strange problem with request method

2021-10-11 Thread Mike Orr
scr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pylons-discuss/90ae76af-8406-3ec5-b490-2f4af254431d%40augusta.de. -- Mike Orr -- You received this message because you are subscribed to the Google Groups "pylons-discuss"

Re: [pylons-discuss] Serving large authenticated files

2021-07-15 Thread Mike Orr
On Wed, Jul 14, 2021 at 9:34 PM Mikko Ohtamaa wrote: > On Wed, 14 Jul 2021 at 17:57, Theron Luhn wrote: >> Generally in this situation I offload the file to S3 or similar, and have >> Pyramid generate a signed URL to redirect to. Operationally much simpler. > > > A good point. I will check

Re: [pylons-discuss] modifying database in webtest based testing

2021-06-24 Thread Mike Orr
One thing to watch with Postgresql databases in testing is, autoincrement primary keys do *not* roll back. So on the first test run the new records may start with 1, but on later runs they may start with 10,000 or some other absurdly high number, even though the insertions are always rolled back

Re: [pylons-discuss] modifying database in webtest based testing

2021-06-24 Thread Mike Orr
On Thu, Jun 24, 2021 at 10:34 AM Zsolt Ero wrote: > > Hi, > > I have my webtest based testing set up like the following. > > @pytest.fixture(scope="session") > def app(): > testing_config = { > 'sqlalchemy.url': 'postgresql+psycopg2://x@/x', > 'redis.sessions.secret': 'x', #

[pylons-discuss] Pylons framework Python 3 status

2021-06-04 Thread Mike Orr
to be addressed? I assume there'd be a lot of unicode issues. -- Mike Orr -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discuss+unsubscr...@google

Re: [pylons-discuss] Pyramid 2.0b1 released

2021-02-21 Thread Mike Orr
of the pattern is if your model objects needed access to some > settings or some other request properties. It's up to you to decide if that's > good or bad. Of course you don't need to use it. > > - Michael > > > On Feb 20, 2021, at 17:39, Mike Orr wrote: > > &

Re: [pylons-discuss] Pyramid 2.0b1 released

2021-02-20 Thread Mike Orr
On Sat, Feb 20, 2021 at 12:57 PM Michael Merickel wrote: > Check out the new pattern of storing the request in the SQLAlchemy session > object for easier access in your model layer without threadlocals! Where is that? I don't see it in 'pyramid-cookiecutter-starter' or the 2.0 docs. I do

Re: [pylons-discuss] How to run two (or more) Pyramid apps in Docker on single VM?

2021-01-28 Thread Mike Orr
w this discussion on the web visit > https://groups.google.com/d/msgid/pylons-discuss/f51239cb-40c3-4f3d-d52a-7f82b7bce681%40gmail.com. -- Mike Orr -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this gro

Re: [pylons-discuss] Re: Pyramid maintenance mode

2021-01-09 Thread Mike Orr
Don't forget the 'asbool()'. Without it the 'in_maintenance' text setting value may be interpreted wrong. E.g., '0' or ' ' or 'false' would evaluate to True. On Sat, Jan 9, 2021 at 11:30 AM Mike Orr wrote: > > The includeme function takes care of all the tween registration for > you, so

Re: [pylons-discuss] Re: Pyramid maintenance mode

2021-01-09 Thread Mike Orr
tenance_tween >>> >>> > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pylons-discuss+unsubscr...@googlegroups.com.

Re: [pylons-discuss] Re: Pyramid maintenance mode

2021-01-07 Thread Mike Orr
I forgot the last line. The end of 'my_tween_factory' needs to 'return my_tween'. On Thu, Jan 7, 2021 at 7:05 PM Mike Orr wrote: > I have a request-logging tween in only a page of code. It's > straightforward to write from the documentation. > > https://pyramid.readthedocs.io/en

Re: [pylons-discuss] Re: Pyramid maintenance mode

2021-01-07 Thread Mike Orr
from this group and all its topics, send an email to >> pylons-discuss+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/pylons-discuss/CAPX_VWBO5j0im6r0RRKEf%3D%3DzXyx5y_Qp%3DUJ5bntEGQtdiDejKQ%40mail.gmail.com >>

Re: [pylons-discuss] Issues migrating dynamic CSV to Python3

2020-10-19 Thread Mike Orr
On Sun, Oct 18, 2020 at 1:22 PM Bert JW Regeer wrote: > > Your body_file is not bytes, but str. You need to make sure that what you > pass to body_file returns bytes. I thought that but 'writer = csv.writer(response.body_file)' works for me, and my row items are 'str'. In Python 2 I had to

[pylons-discuss] Re: Serving an S3 file

2020-10-17 Thread Mike Orr
On Sat, Oct 17, 2020 at 12:06 AM Mike Orr wrote: > > I'm migrating user-uploaded files from a local filesystem to MinIO (an > S3-compatible file server). I can't use FileResponse because I get > back a filehandle or a bytes, and I'd have to write it to a temporary > file to use F

[pylons-discuss] Serving an S3 file

2020-10-17 Thread Mike Orr
'body_file=result["body"]', which is the filehandle and has a 'read' method. What is 'wsgi.file_wrapper' anyway? -- Mike Orr -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving

Re: [pylons-discuss] migrating away from formencode?

2020-10-05 Thread Mike Orr
<https://groups.google.com/d/msgid/pylons-discuss/d0a0d404-f081-41f8-865f-b073ed17bc78n%40googlegroups.com?utm_medium=email_source=footer>. >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "pylons-discus

Re: [pylons-discuss] migrating away from formencode?

2020-10-03 Thread Mike Orr
On Sat, Oct 3, 2020 at 10:10 AM Mike Orr wrote: > I tried using Deform/Peppercorn but I got frustrated at how it separates > validation and type conversion I meant Colander/Peppercorn. Deform was higher-level than I needed. Rewriting my Formencode schemas was a paradigm shift and I

Re: [pylons-discuss] migrating away from formencode?

2020-10-03 Thread Mike Orr
> I have a lot of apps using Formencode and will likely need to move off it. > It's no longer maintained, and needs to a patch/fork to run under Python3. > That's been fine for internal apps, but it's a pain for open sourced efforts. I'm using Formencode in Python 3. When I was finally able to

Re: [pylons-discuss] changing session cookie max_age?

2020-09-24 Thread Mike Orr
d an > email to pylons-discuss+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pylons-discuss/CAKw-smCUE%3DwgPfvFLpR9%2B21r_2gey27hHYopxOK43LYzHor76w%40mail.gmail.com. -- Mike Orr -- You received this message because

Re: [pylons-discuss] Migration from Flask - options?

2020-08-30 Thread Mike Orr
On Fri, Aug 28, 2020 at 7:27 PM p...@thirdfloor.com.au wrote: > > Hi. > > We have a non-trivial Flask app that I'm in the process of moving chunks of > to Pyramid and would like to get some input on options for how we run two > systems until the whole lots is migrated. > > The data layer is

Re: [pylons-discuss] Best practice for deployment

2020-05-17 Thread Mike Orr
; email to pylons-discuss+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pylons-discuss/20200517153659.6c6d25ec%40linuxawk.wegge.dk. -- Mike Orr -- You received this message because you are subscribed to the Google Groups &q

Re: [pylons-discuss] Waitress and logrotation / USR2 signal

2020-03-27 Thread Mike Orr
66%40googlegroups.com. > > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pylons-discuss+unsubscr...@googlegroups.com. > To view t

[pylons-discuss] pyramid_beaker, pyramid_redis_sessions, pyramid_session_redis

2020-02-09 Thread Mike Orr
someday. Do you have any advice on these tradeoffs? -- Mike Orr -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discuss+unsubscr...@google

Re: [pylons-discuss] pyramid_tm - is there an acceptable way to unjoin the transaction and use explicit commits?

2020-02-09 Thread Mike Orr
t; Michael > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pylons-discuss+unsubscr...@googlegroups.com. > To

[pylons-discuss] 'samesite' cookie attribute and Chrome changes

2020-01-22 Thread Mike Orr
patible? We don't have the resources to migrate it to Pyramid; the next migration will probably be Javascript. (We already have a Javascript mobile app; we just need to port it to the web and work around it needing a SQLite database.) -- Mike Orr -- You received this message because you

Re: [pylons-discuss] Confused accessing db sessions

2020-01-06 Thread Mike Orr
I've gone completely away from scoped sessions. In the main function I create two engines for two databases as registry attributes ('request.registry.sa_engine_main'). My request subclass has two reified properties ('request.registry.sa_session_main') that initialize a session and hook it into

Re: [pylons-discuss] most performant way to run WSGI app as single process

2019-09-17 Thread Mike Orr
On Tue, Sep 17, 2019 at 1:42 AM Julien Cigar wrote: > > On Sun, Sep 15, 2019 at 11:22:40AM -0700, Mike Orr wrote: > > On Thu, Sep 12, 2019 at 2:13 PM Mikko Ohtamaa > > wrote: > > > > > > > > >For static assets and such - they should not be served f

Re: [pylons-discuss] most performant way to run WSGI app as single process

2019-09-15 Thread Mike Orr
On Sun, Sep 15, 2019 at 11:34 AM Mike Orr wrote: > Regarding performance, I usually use Waitress but I hvae one > application that's higher-volume than the others and it bogged down in > stress tests but when we switched it to uWSGI the problems went away. > The downside is uWSGI

Re: [pylons-discuss] most performant way to run WSGI app as single process

2019-09-15 Thread Mike Orr
On Sat, Sep 14, 2019 at 12:24 AM Bert JW Regeer wrote: > There's upsides and downsides to all of them. Pre-fork is great if you want > to save some memory and have the ability to kill processes in the future, > prefork + threaded allows you to handle many requests with a single forked > child,

Re: [pylons-discuss] most performant way to run WSGI app as single process

2019-09-15 Thread Mike Orr
On Thu, Sep 12, 2019 at 2:13 PM Mikko Ohtamaa wrote: > > >For static assets and such - they should not be served from WSGI in the first >place and you can nicely offload this to CloudFlare or similar automatically . What if they're access-restricted to certain groups of users? I have my public

Re: [pylons-discuss] Velruse… or what else?

2019-07-26 Thread Mike Orr
iving emails from it, send an > email to pylons-discuss+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pylons-discuss/fc586c8e-7068-4443-8a7b-3cc9808e4cd7%40googlegroups.com. -- Mike Orr -- You received this message because you a

Re: [pylons-discuss] Authenticating with Oauth2/OpenID Connect

2019-06-21 Thread Mike Orr
m input from scratch. So I want to avoid that. On Sat, Jun 8, 2019 at 9:40 AM Mike Orr wrote: > > To follow up, I got OAuth/Keycloak authentication working with the > following code pattern. The userinfo contains only name/email-related > attributes, not the role attributes

Re: [pylons-discuss] Authenticating with Oauth2/OpenID Connect

2019-06-08 Thread Mike Orr
To follow up, I got OAuth/Keycloak authentication working with the following code pattern. The userinfo contains only name/email-related attributes, not the role attributes and origin directory info I need to calculate Pyramid pincipals. (Origin directory = where the user is defined; e.g., an

Re: [pylons-discuss] Authenticating with Oauth2/OpenID Connect

2019-05-31 Thread Mike Orr
On Fri, May 31, 2019 at 9:12 AM Theron Luhn wrote: > > > But what should I say? If it's not a real human then I can just return > an Internal Server Error, but if it's a person suffering a > malfunctioning server or network then i want to give a polite message. > and what would be the right thing

Re: [pylons-discuss] Authenticating with Oauth2/OpenID Connect

2019-05-30 Thread Mike Orr
ay, May 30, 2019 at 8:57:28 PM UTC-4, Mike Orr wrote: >> >> - What should I do if there's a state mismatch? I don't want to give >> >> the user an Internal Server Error, or tell them they're bad when >> there's nothing they can do about it. > > > If there

Re: [pylons-discuss] Authenticating with Oauth2/OpenID Connect

2019-05-30 Thread Mike Orr
OK, I got it working enough to authenticate the user and get a userinfo dict, but it doesn't have the all-important roles information. I may need to add some scopes; I'm asking the server admin about that. The original problem was I received an incomplete authorization URL, '/auth' instead of

Re: [pylons-discuss] RFC: Pyramid showcase of RealWorld.io

2019-05-25 Thread Mike Orr
ptout. > > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pylons-discuss+unsubscr...@googlegroups.com. > To post to this

Re: [pylons-discuss] Authenticating with Oauth2/OpenID Connect

2019-05-21 Thread Mike Orr
On Tue, May 21, 2019 at 4:14 PM Jonathan Vanasco wrote: > > Thanks for the kind words. This was actually pretty fast to do. I think it > took 2-3 days to build oAuth into our apps and almost everything was > repackaged into this within that same week. This has been sitting in a > private

Re: [pylons-discuss] Authenticating with Oauth2/OpenID Connect

2019-05-21 Thread Mike Orr
end an > email to pylons-discuss+unsubscr...@googlegroups.com. > To post to this group, send email to pylons-discuss@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pylons-discuss/75af89f8-fb92-40e7-a014-aca324943e17%40googlegroups.com. > For mo

[pylons-discuss] Authenticating with Oauth2/OpenID Connect

2019-05-17 Thread Mike Orr
le of configuring it for a non-Big-Name provider or specifically Keycloak? -- Mike Orr -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pyl

Re: [pylons-discuss] Questions about DB engine setup

2019-04-27 Thread Mike Orr
On Sat, Apr 27, 2019 at 1:34 PM Michael Merickel wrote: > > The session and sessionmaker are only necessary if you want to hook into > pyramid_tm, because zope.sqlalchemy requires a session object and won't work > with a simple connection. That being said, I would want to such that >

Re: [pylons-discuss] is there a standardized way of detecting the environment (e.g. bootstrap)

2019-03-21 Thread Mike Orr
On Wed, Mar 20, 2019 at 2:12 PM Jonathan Vanasco wrote: > > > > On Wednesday, March 20, 2019 at 2:22:12 PM UTC-4, Michael Merickel wrote: >> >> The hackiest option possible is to just set a global variable somewhere when >> you use bootstrap. Otherwise you could use a custom setting. > > > Oh, I

Re: [pylons-discuss] Depricate CallbackAuthenticationPolicy?

2019-02-21 Thread Mike Orr
On Tue, Sep 25, 2018 at 8:18 AM Michael Merickel wrote: > > On Tue, Sep 25, 2018 at 10:09 AM Mike Orr wrote: >> >> On Mon, Sep 24, 2018 at 3:21 PM Michael Merickel wrote: >> > We'd deprecate it in 1.10 and remove it in 2.0 as we're planning to do >> > with

Re: [pylons-discuss] Check if a user can access a particular view

2019-02-21 Thread Mike Orr
ut. > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pylons-discuss+unsubscr...@googlegroups.com. > To post to this group,

Re: [pylons-discuss] Creating a request copy?

2019-01-15 Thread Mike Orr
ns-discuss/CAPX_VWAWwAbA6MAWHP_2C-3PxfKiXktt1mecJHp5aokeZVOwdA%40mail.gmail.com. > For more options, visit https://groups.google.com/d/optout. -- Mike Orr -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this g

[pylons-discuss] Convert Response to HTTP, and a JSON error response

2019-01-10 Thread Mike Orr
key containing the errors for the invalid fields. I read that HTTP 422 Unprocessable Entity is the correct response to a request that contains syntactically valid JSON but the data values are invalid. -- Mike Orr -- You received this message because you are subscribed to the Google Groups &qu

Re: [pylons-discuss] Storing additional Information with the view config

2019-01-02 Thread Mike Orr
oup and stop receiving emails from it, send an > email to pylons-discuss+unsubscr...@googlegroups.com. > To post to this group, send email to pylons-discuss@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pylons-discuss/CAJYR-0P%2BnSjccnX

Re: [pylons-discuss] Storing additional Information with the view config

2019-01-02 Thread Mike Orr
On Wed, Dec 26, 2018 at 11:18 PM Gerhard Schmidt wrote: > > Hi Mike, > > Am Mittwoch, 26. Dezember 2018 19:04:37 UTC+1 schrieb Mike Orr: >> >> On Wed, Dec 26, 2018 at 12:28 AM Gerhard Schmidt wrote: >> > is it possible to store additional information in the

Re: [pylons-discuss] Storing additional Information with the view config

2018-12-26 Thread Mike Orr
On Wed, Dec 26, 2018 at 12:28 AM Gerhard Schmidt wrote: > is it possible to store additional information in the view config. > > Background is that i would like to add more information the the view > processed later by the layout tho generate the navigation of a page > automatically. > > I would

Re: [pylons-discuss] Security Headers + Extras Project

2018-12-11 Thread Mike Orr
On Mon, Dec 10, 2018 at 12:56 PM Michael Merickel wrote: > > On Mon, Dec 10, 2018 at 12:21 PM Bert JW Regeer wrote: >> >> Pyramid also by default supports all of the "secure" parts of the cookie. >> There are no extra flags that can't already be set using Pyramid. >> >> Using the Secure package

Re: [pylons-discuss] Security Headers + Extras Project

2018-12-07 Thread Mike Orr
On Fri, Dec 7, 2018 at 2:25 AM Caleb wrote: >  All, I would appreciate any feedback on a lightweight security headers > and cookie attribute project for Python web frameworks (including Pyramid) > called Secure . Secure lets developers easily set security headers and > secure cookies with

Re: [pylons-discuss] Re: processing after responding to client

2018-11-11 Thread Mike Orr
subscribed to the Google Groups > "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pylons-discuss+unsubscr...@googlegroups.com. > To post to this group, send email to pylons-discuss@googlegroups.com. > To view t

Re: [pylons-discuss] Store class at process start, and use it to initiate inside function?

2018-10-08 Thread Mike Orr
On Mon, Oct 8, 2018 at 9:20 AM Lukasz Szybalski wrote: > Is there a way to force this object to be "read only" or now allow > modification, to prevent somebody else in some other sections of the code > accidently modifies request.registry.mycontract? def __setattr__(self, attr, value): if

Re: [pylons-discuss] Depricate CallbackAuthenticationPolicy?

2018-09-25 Thread Mike Orr
. Is there a timeline for Pyramid 2? 2018 or 2019? On Tue, Sep 25, 2018 at 8:18 AM Michael Merickel wrote: > > On Tue, Sep 25, 2018 at 10:09 AM Mike Orr wrote: >> >> On Mon, Sep 24, 2018 at 3:21 PM Michael Merickel wrote: >> > We'd deprecate it in 1.10 and remove

Re: [pylons-discuss] Depricate CallbackAuthenticationPolicy?

2018-09-25 Thread Mike Orr
On Mon, Sep 24, 2018 at 3:21 PM Michael Merickel wrote: > We'd deprecate it in 1.10 and remove it in 2.0 as we're planning to do with > pickle-based sessions [2]. Why are pickle-based sessions being removed? I switched my serializers to JSON but later switched them back because it was useful to

Re: [pylons-discuss] Depricate CallbackAuthenticationPolicy?

2018-09-22 Thread Mike Orr
eb visit > https://groups.google.com/d/msgid/pylons-discuss/4a1798f8-488f-4c20-b62a-544b8d1dd23f%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- Mike Orr -- You received this message because you are subscribed to the Google Groups "pylons-discus

Re: [pylons-discuss] Ethical Ads on Pylons Project documentation

2018-09-19 Thread Mike Orr
On Wed, Sep 19, 2018 at 4:54 AM Steve Piercy wrote: > I'd like to get your feedback—either here in the group, by > personal email, or IRC—on whether the Pylons Project and all > of its projects with documentation built and hosted by Read The > Docs for free should display Ethical Ads. Sure. I

Re: [pylons-discuss] Deform/Colander: Marking fields as read-only

2018-09-11 Thread Mike Orr
> email to pylons-discuss+unsubscr...@googlegroups.com. > To post to this group, send email to pylons-discuss@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pylons-discuss/7a80f3d2-e4bc-46a5-bffe-16268fef947f%40googlegroups.com.

Re: [pylons-discuss] Relationship between requests and Zope transactions

2018-09-07 Thread Mike Orr
egroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pylons-discuss/148c7bec-2d75-4525-9aa4-3902a4a2f2cb%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- Mike Orr -- You received this message because

Re: [pylons-discuss] Relationship between requests and Zope transactions

2018-09-03 Thread Mike Orr
On Sun, Sep 2, 2018 at 7:31 AM wrote: > If requests during their life cycle would derive from threading.local and > initialize such a storage area upon construction (e.g. after tween ingress) > and tear it down (e.g. after tween egress) then deeply nested function could > still access a

Re: [pylons-discuss] What types of resources are appropriate to store in a NoSQL database?

2018-07-26 Thread Mike Orr
m. > To post to this group, send email to pylons-discuss@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pylons-discuss/r480Ps-10126i-B34B8613FB90482C9F312FBC6DFE9FE9%40cns316-6061fsn.univ.fairfield.local. > > For more options, visit https://groups.google

Re: [pylons-discuss] WebTest 2.0.30 has been released.

2018-06-23 Thread Mike Orr
On Sat, Jun 23, 2018 at 5:57 AM, Gael Pasgrimaud wrote: > WebTest 2.0.30 has been released. > > Here are the changes: > > - Add ``Email`` class for input fields with type "email". > > - Documentation bearer token and JWT authorization What is a bearer token and JWT authorization? Does that mean

Re: [pylons-discuss] Re: Supervisord and Ascii encoding problem ?

2018-05-19 Thread Mike Orr
p receiving emails from it, send >> > an email to pylons-discus...@googlegroups.com. >> > To post to this group, send email to pylons-...@googlegroups.com. >> > Visit this group at http://groups.google.com/group/pylons-discuss?hl=en. >> > For more options, visit https:/

Re: [pylons-discuss] DB QueuePool limit overflow and Pyramid sub-requests

2018-04-28 Thread Mike Orr
c98c6e583%40googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. > > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, se

Re: [pylons-discuss] Re: Linode sponsors Pylons Project web hosting for 3 years

2018-04-04 Thread Mike Orr
b visit > https://groups.google.com/d/msgid/pylons-discuss/c9d8ab37-b764-4d2b-8a4a-0470cdf7f4bd%40googlegroups.com. > > For more options, visit https://groups.google.com/d/optout. -- Mike Orr <sluggos...@gmail.com> -- You received this message because you are subscribed to the

Re: [pylons-discuss] Recommended way to modify view return value

2017-10-31 Thread Mike Orr
s > "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pylons-discuss+unsubscr...@googlegroups.com. > To post to this group, send email to pylons-discuss@googlegroups.com. > To view this discussion on the web vi

Re: [pylons-discuss] CSRF checking in Webtest

2017-10-11 Thread Mike Orr
Correction. 15. So I changed my code thus: ``extra_environ = {"HTTP_HOST": "localhost:443", "wsgi.url_scheme": "https"} apptest.webtest.TestApp(app, extra_environ=extra_environ)'' On Wed, Oct 11, 2017 at 3:51 PM, Mike Orr <sluggos...@gmail.co

Re: [pylons-discuss] CSRF checking in Webtest

2017-10-11 Thread Mike Orr
quot;: "https"} apptest.webtest.TestApp(app, extra_environ=extra_environ)'' Presto, it works! I'm not sure if 'webtest' should be smarter, or if so exactly how. But at least this solves this underlying problem. Is there anything else I should do to more completely mimic an HTTPS request? >

Re: [pylons-discuss] Pyramid_tm reason for ROLLBACK

2017-10-06 Thread Mike Orr
glegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >> >> >> >> >> -- >> Mikko Ohtamaa >> http://opensourcehacker.com >> http://twitter.com/moo9000 >> > -- > You received this message because you are subs

Re: [pylons-discuss] CSRF checking in Webtest

2017-09-25 Thread Mike Orr
On Mon, Sep 25, 2017 at 10:40 PM, Mike Orr <sluggos...@gmail.com> wrote: > On Mon, Sep 25, 2017 at 9:00 PM, Mike Orr <sluggos...@gmail.com> wrote: >> On Mon, Sep 25, 2017 at 5:47 PM, Michael Merickel <mmeri...@gmail.com> wrote: >>>> So what's the best way fo

Re: [pylons-discuss] CSRF checking in Webtest

2017-09-25 Thread Mike Orr
On Mon, Sep 25, 2017 at 9:00 PM, Mike Orr <sluggos...@gmail.com> wrote: > On Mon, Sep 25, 2017 at 5:47 PM, Michael Merickel <mmeri...@gmail.com> wrote: >>> So what's the best way forward? >> >> I think you covered your options pretty well. >> >> 1

Re: [pylons-discuss] CSRF checking in Webtest

2017-09-25 Thread Mike Orr
uestion of what is WebTest's Origin header, what should it be, why are they different, and does something need to be changed in the library? -- Mike Orr <sluggos...@gmail.com> -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsub

[pylons-discuss] CSRF checking in Webtest

2017-09-25 Thread Mike Orr
than ideal because I'd rather have CSRF checking work rather than be bypassed in tests. So what's the best way forward? -- Mike Orr <sluggos...@gmail.com> -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this g

Re: [pylons-discuss] Recommendation for a Python-based wiki

2017-09-02 Thread Mike Orr
...@googlegroups.com. > To post to this group, send email to pylons-discuss@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pylons-discuss/r473Ps-10126i-561A0A6A1F7845678C43C4D5A6F32211%40Steves-iMac.local. > > For more options, visit

Re: [pylons-discuss] Book on Pyramid

2017-08-25 Thread Mike Orr
On Fri, Jul 14, 2017 at 2:10 AM, Christoph Zwerschke wrote: > In the latter case you would use Pyramid only as a GraphQL or REST server, I just attended a Javascript conference and there was a talk on GraphQL and I was quite impressed. I haven't used it yet but it allows users to

Re: [pylons-discuss] Re: Pyramid 1.9b1 released

2017-06-21 Thread Mike Orr
On Wed, Jun 21, 2017 at 9:28 AM, Jonathan Vanasco wrote: > I typically spec out applications like this: > > * Everything in `/account` is via HTTPS with a secondary HTTPS-only session > (that has a different timeout the default session), and login-status > requires a recent

Re: [pylons-discuss] Re: Pyramid 1.9b1 released

2017-06-20 Thread Mike Orr
that needs CSRF tokens is the login form. -- Mike Orr <sluggos...@gmail.com> -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discuss

  1   2   3   4   5   6   7   8   9   10   >