Re: [pylons-discuss] REF. FORMULARIOS E VALIDAÇÃO (PYRAMID)

2023-11-17 Thread Steve Piercy

Deform has had a flurry of activity over the last couple of weeks to update the 
widgets to use Bootstrap 5.3. I hope to have time this weekend to make an alpha 
release, 3.0.0a.

https://github.com/Pylons/deform/pull/529

--steve


On 11/17/23 7:31 AM, Laurent Daverio wrote:

Hello,

Deform has a big problem, it generates widgets for Bootstrap 3. I had patched 
mine it to make it compatible with Bootstrap 4, but now the standard version is 
Bootstrap 5. And I've switched to React and Material UI anyway. In retrospect, 
I think it's not a good idea to use a library which binds validation and 
widgets.

As regards validation itself, I started with Colander, it was complicated but worked. 
Then I used "schema" for a few months. Now I've seen the light and I use 
Pydantic. I wonder why I used anything else in the past... Coming from FastAPI, I believe 
you must be familiar with Pydantic.

In case you need frontend validation too, you can have a look at Yup, it"s a bit like 
"schema", but for Javascript. Unfortunately, there is no equivalent to Pydantic...

Laurent.

Le ven. 17 nov. 2023 à 16:13, Oberdan Santos  a écrit :

Olá!!  Gostaria de saber se todos têm adotado o DEFORM como biblioteca 
padrão para formulario e validação  ou outras bibliotecas de uso facil com o 
Pyramid ?

Oberdan costa


-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/f86a52d6-171d-4097-b595-4e3718105d74n%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 this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/CAB7cU6xPpeo_mUBjTC9obqZiRXcm40qhco%2Bk%2BnDSvCHmjn8eoQ%40mail.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/1813eb70-6b60-40f2-8ca4-f3e209781387%40gmail.com.


Re: [pylons-discuss] REF. Problem registering data in the bank

2023-11-16 Thread Steve Piercy

This page has some resources.

https://trypyramid.com/documentation.html

--steve


On 11/16/23 1:37 PM, Oberdan Santos wrote:

I have done a lot of reading, some of it with tutorials, but very superficial.
I have some scripts with a database without using http transactions, which work 
normally.
Any suggestions for someone who could be helping me debug the code or even 
yourself and how I can pay for it?

Anyway, thanks for the support.


Em quinta-feira, 16 de novembro de 2023 às 18:24:43 UTC-3, Oberdan Santos 
escreveu:

Sim!! importante dica.

Em quinta-feira, 16 de novembro de 2023 às 18:19:06 UTC-3, Laurent Daverio 
escreveu:

Yes, that's true. If you write a monolithic app with Jinja templates, 
you will use {{ }}. If you use a Javascript frontend, you will find that `${}` 
is very convenient :)

Le jeu. 16 nov. 2023 à 21:52, Florian Schulze 
 a écrit :

With Jinja Templates you have to use {{ save_url }} not 
${save_url}. You can see from the URL the form is trying to POST to that it 
contains the $ sign. You can also see such things from your Browser HTML 
Inspector.

Regards,
Florian Schulze

On 16 Nov 2023, at 14:51, Oberdan Santos wrote:

Hello!! I am facing a problem when trying to post data to the 
database. When asking to send the application data I receive the following: 
Squashed pyramid.httpexceptions.HTTPNotFound at 
http://localhost:6543/mod_plataforma/mod1_plataforma/recepx/$%7Bsave_url%7D

. Below is information about my files.

# piprdc/piprdc/routes.py
def includeme(config):
     config.add_static_view('static', 'static', 
cache_max_age=3600)
     config.add_route('home', '/')
     config.add_route('modulo_x', '/mod_plataforma')
     config.add_route('modulo1', 
'/mod_plataforma/mod1_plataforma')
     config.add_route('modulo2', 
'/mod_plataforma/mod2_plataforma')
     config.add_route('modulo3', 
'/mod_plataforma/mod3_plataforma')
     config.add_route('modulo4', 
'/mod_plataforma/mod4_plataforma')
     config.add_route('modulo5', 
'/mod_plataforma/mod5_plataforma')
     config.add_route('modulo6', 
'/mod_plataforma/mod6_plataforma')
     config.add_route('abcx', 
'/mod_plataforma/mod1_plataforma/recepx')
     config.add_route('add_reg', 
'/mod_plataforma/mod1_plataforma/recepx/add_reg')
     config.add_route('query', 
'/mod_plataforma/mod1_plataforma/recepx/query')

..

#views/default.py
from pyramid.view import view_config
from pyramid.response import Response
from sqlalchemy.exc import SQLAlchemyError, DBAPIError
from pyramid.httpexceptions import HTTPFound
from .. import models
from ..models import Patient
from ..models import get_tm_session
dbsession = get_tm_session

view_config(route_name='add_reg', 
renderer='piprdc:templates/reg_pacx.jinja2')
def add_reg(request):
     save_url = request.route_url('add_reg')
     request.route_url('query')
     print('RUN')
     if request.params:
         id=request.params['id']
         name=request.params['name']
         age=request.params['age']
 birth_date=request.params['birth_date']
         sex=request.params['sex']
         race=request.params['race']
         fone=request.params['fone']
         address=request.params['address']
         cpf=request.params['cpf']
         cns=request.params['cns']
         patients=Patient(id=id, name=name, age=age, 
date_birth=date_birth, sex=sex,
                            race=race, phone=phone, 
address=address, cpf=cpf, cns=cns)
         try:
             dbsession.add_reg(patients)
             return 
HTTPFound(location=request.route_url('query'))
         except DBAPIError:
             return Response("DB ERROR")
     else:
         print('DO NOT RUN')
         return{'save_url': save_url, 'project': 'piprdc'}



#templates/reg_pacx.jinja2
{% extends "basefull.jinja2" %}
{% block container %}


    Patient 
registration
    
    Patient Id:  
    Patient Name:  

Re: [pylons-discuss] PyramidConf, Fall 2023, Spain

2022-10-24 Thread Steve Piercy
I would definitely like to participate. I just got back from PloneConf 2022
(https://2022.ploneconf.org/) in Namur, Belgium, and it felt wonderful to
reconnect with friends and colleagues in the community with which Pyramid
shares common roots through Zope, especially after a long lockdown. The
training, talks, and sprints made it an education. The friendship, food,
and beer made it a celebration. And since PloneConf 2023 will be held in
the Basque Country in the north of Spain, perhaps we could piggy-back on
the location and facilities and grow the community with Pyramid developers?

Additional topics in which I would be interested to hear or present on.

* Using a debugger in an IDE (PyCharm, VSCode) when their code is running
in a container. I have never been able to get this to work in an app that
uses multiple containers (code, db, API called by code, nginx, redis). That
might be too specific a use case, but something I would use.
* Documentation with MyST and other Sphinx extensions, and using modern
themes (pydata, sphinx-book-theme)
* pyramid_openapi3, and designing APIs
* Making `make` make everything
* Testing the frontend of an application (Cypress, Selenium, Playwright)

--steve


On Sun, Oct 23, 2022 at 4:23 AM Nejc Zupan  wrote:

> Now that lockdowns are (hopefully!) a part of history, I started thinking
> of organizing a Pyramid conference.
>
> The general idea is two days of talks and a day for a sprint. Wed to Fri.
> Probably Spain, in October or November 2023.
>
> I want to gauge if there is interest from the community in attending and
> sponsoring such an event?
>
> Can we even get enough talks to fill up two days?
>
> Some of the topics I’d personally *love* to hear talks on:
> * Migration to Pyramid 2.0
> * Databases use cases (why/why not Posgres, Mongo, etc.)
> * Performance & scaling
> * Deployment use cases (containers vs. more traditional, even baremetal
> deployments, etc.)
> * Dev tips, testing best practices
> * Typing of Pyramid projects (mypy and friends)
> * Success stories
> * Frameworks on top of pyramid
>
>
> I’m sure there’s more!
>
>
> Cheers,
> Neyts
>
> --
> 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 visit
> https://groups.google.com/d/msgid/pylons-discuss/E0915DB6-A6C3-49A0-BAAB-B2172C6167E2%40gmail.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 this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/CAOSXUXsjU8b%2BGP301DTQC1nEPud0RsfkYN1TGDLymO7YXSkYZw%40mail.gmail.com.


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

2022-08-11 Thread Steve Piercy
Take SQLAlchemy, subtract psycopg2, the resulting differences are all the
pitfalls you would get. There are too many to list, when the SQLAlchemy
feature list gives you all that you need.

--steve

On Thu, Aug 11, 2022 at 9:21 AM pzzcc  wrote:

> Hello Steve ,
>
> I would like to use psycopg2, I am reading this now :
>
>
> https://docs.pylonsproject.org/projects/pyramid-cookbook/en/latest/database/index.html
>
>
>
> but I would like to see if anyone can share his experience / or point any
> pitfalls.
>
> what part of pyramid API should I look more into.
>
> that would help me understand pyramid and postgresql more.
>
> thanks Steve
>
>
> On Thursday, August 11, 2022 at 7:12:24 PM UTC+3 Steve Piercy wrote:
>
>> For starters, how will you convert the results of a query into a useful
>> Python object?
>>
>> For more things, read SQLAlchemy's description and features.
>>
>> https://www.sqlalchemy.org/
>>
>> --steve
>>
>> On Thu, Aug 11, 2022, 8:53 AM pzzcc  wrote:
>>
>>> Hello ,
>>>
>>> I am building an application ( more of a tool really ) that have a web
>>> interface , and I am trying to avoid using ORM all together. plus I want to
>>> try postgresql features and experiment more with them.
>>>
>>> I don't want things to be overly complicated on the web interface so I
>>> put lots of logic , *something that I know will not change any time
>>> soon* , into PostgreSQL directly using functions etc.
>>>
>>> can you please point me to the right direction of using pyramid without
>>> it ? what might be the pitfalls of not using an ORM with pyramid  ?
>>>
>>>
>>>
>>> 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-discus...@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
>>> <https://groups.google.com/d/msgid/pylons-discuss/309895e7-5ea4-49c6-b7e3-d7dff9c62337n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> 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 visit
> https://groups.google.com/d/msgid/pylons-discuss/35285c99-37a7-4062-8d72-033a168c03d5n%40googlegroups.com
> <https://groups.google.com/d/msgid/pylons-discuss/35285c99-37a7-4062-8d72-033a168c03d5n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/CAOSXUXtBawdbZOLUGk0zgNWbL-7D-nw7s1wZRCjBBzKNGRYwyw%40mail.gmail.com.


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

2022-08-11 Thread Steve Piercy
For starters, how will you convert the results of a query into a useful
Python object?

For more things, read SQLAlchemy's description and features.

https://www.sqlalchemy.org/

--steve

On Thu, Aug 11, 2022, 8:53 AM pzzcc  wrote:

> Hello ,
>
> I am building an application ( more of a tool really ) that have a web
> interface , and I am trying to avoid using ORM all together. plus I want to
> try postgresql features and experiment more with them.
>
> I don't want things to be overly complicated on the web interface so I put
> lots of logic , *something that I know will not change any time soon* ,
> into PostgreSQL directly using functions etc.
>
> can you please point me to the right direction of using pyramid without it
> ? what might be the pitfalls of not using an ORM with pyramid  ?
>
>
>
> 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...@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
> 
> .
>

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/CAOSXUXsr79gNZBz3Phss3p9u3D0ghoUSmM9vFxxCnL%2Bn1EgeDg%40mail.gmail.com.


[pylons-discuss] Waitress v2.1.2 released

2022-05-30 Thread Steve Piercy

Howdy,

Waitress v2.1.2 has been released.

For a list of changes in this release, please visit:

https://docs.pylonsproject.org/projects/waitress/en/latest/#id1

Issues:

https://github.com/Pylons/waitress/issues

--steve

--
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/38a8adf7-230c-2c78-3760-24a1a8486095%40gmail.com.


Re: [pylons-discuss] Hypatia alternative?

2022-04-17 Thread Steve Piercy

I have no idea who uses Hypatia. I suppose you could use Google's Big Query to 
see how many PyPI downloads were made.

You could fork it, update it for Python 3.10 for your personal use, and submit 
pull requests back to it. I don't know if the maintainers are active.

--steve


On 4/17/22 5:35 AM, Thierry Florac wrote:

Hi Steve,
I'm aware of these packages, for using Zope for many years!
But Hypatia was providing some improvements (as far as I can estimate) over 
these packages, and was perfectly accorded to my own needs...
Am I the only one using this package?
Could it be possible to maintain this package and provide patches (just for 
last Python versions actually)?
Best regards,
Thierry
--
https://www.ulthar.net <https://www.ulthar.net> -- http://pyams.readthedocs.io 
<http://pyams.readthedocs.io>


Le dim. 17 avr. 2022 à 14:21, Steve Piercy mailto:steve.piercy@gmail.com>> a écrit :

Reading:

https://hypatia.readthedocs.io/en/latest/genealogy.html 
<https://hypatia.readthedocs.io/en/latest/genealogy.html>

Unfortunately, this ex-package appears to be pushing up the daisies, if it 
wasn't nailed to the perch.

You could also check out these two packages, which appear to be actively 
developed:

https://github.com/zopefoundation/zope.index 
<https://github.com/zopefoundation/zope.index>

https://github.com/zopefoundation/zope.catalog 
<https://github.com/zopefoundation/zope.catalog>

I would suggest asking whether there is any successor in Plone and Zope 
community (now that Plone absorbed Zope).

https://community.plone.org/ <https://community.plone.org/>

--steve


On 4/17/22 4:14 AM, Thierry Florac wrote:
 > Hi,
 >
 > I'm actually using the Hypatia package for content indexing and I'm very 
happy with it, but this package doesn't seem to be updated for a very long time (2 
years since last commit).
 > Actually, my own packages unit tests are failing when using Python 3.10 
with Hypatia, so I was wondering if it is actually used and maintained, or is 
there any alternative ?
 >
 > Best regards,
 > Thierry
 > --
 > https://www.ulthar.net <https://www.ulthar.net> <https://www.ulthar.net 
<https://www.ulthar.net>> -- http://pyams.readthedocs.io <http://pyams.readthedocs.io> 
<http://pyams.readthedocs.io <http://pyams.readthedocs.io>>
 >
 > --
 > 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 
<mailto:pylons-discuss%2bunsubscr...@googlegroups.com> 
<mailto:pylons-discuss+unsubscr...@googlegroups.com 
<mailto:pylons-discuss%2bunsubscr...@googlegroups.com>>.
 > To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/CAPX_VWBOptsdANDDQZiZGEaXqVnWfv2Oa4aFty4YHD2%2BT-60_Q%40mail.gmail.com
 
<https://groups.google.com/d/msgid/pylons-discuss/CAPX_VWBOptsdANDDQZiZGEaXqVnWfv2Oa4aFty4YHD2%2BT-60_Q%40mail.gmail.com>
 
<https://groups.google.com/d/msgid/pylons-discuss/CAPX_VWBOptsdANDDQZiZGEaXqVnWfv2Oa4aFty4YHD2%2BT-60_Q%40mail.gmail.com?utm_medium=email&utm_source=footer
 
<https://groups.google.com/d/msgid/pylons-discuss/CAPX_VWBOptsdANDDQZiZGEaXqVnWfv2Oa4aFty4YHD2%2BT-60_Q%40mail.gmail.com?utm_medium=email&utm_source=footer>>.

-- 
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 
<mailto:pylons-discuss%2bunsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/01e6ac12-58b1-2ca6-338a-2e9276e2db2d%40gmail.com
 
<https://groups.google.com/d/msgid/pylons-discuss/01e6ac12-58b1-2ca6-338a-2e9276e2db2d%40gmail.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 
<mailto:pylons-discuss+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/CAPX_VWCmd_aCWaQrEXi5bSFvhH0D%2Bf%3DhrJ2sqUc%3DUqXGHZm4iw%40mail.gmail.com
 
<https://groups.google.com/d/msgid/pylons-discuss/CAPX_VWCmd_aCWaQrEXi5bSFvhH0D%2Bf%3DhrJ2sqUc%3DUqXGHZm4iw%40mail.gmail.com?utm_medium=email&utm_source=footer>.


--
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/88aa2959-3dd9-1ae6-c21c-471b6a564ddf%40gmail.com.


Re: [pylons-discuss] Hypatia alternative?

2022-04-17 Thread Steve Piercy

Reading:

https://hypatia.readthedocs.io/en/latest/genealogy.html

Unfortunately, this ex-package appears to be pushing up the daisies, if it 
wasn't nailed to the perch.

You could also check out these two packages, which appear to be actively 
developed:

https://github.com/zopefoundation/zope.index

https://github.com/zopefoundation/zope.catalog

I would suggest asking whether there is any successor in Plone and Zope 
community (now that Plone absorbed Zope).

https://community.plone.org/

--steve


On 4/17/22 4:14 AM, Thierry Florac wrote:

Hi,

I'm actually using the Hypatia package for content indexing and I'm very happy 
with it, but this package doesn't seem to be updated for a very long time (2 
years since last commit).
Actually, my own packages unit tests are failing when using Python 3.10 with 
Hypatia, so I was wondering if it is actually used and maintained, or is there 
any alternative ?

Best regards,
Thierry
--
https://www.ulthar.net  -- http://pyams.readthedocs.io 


--
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/CAPX_VWBOptsdANDDQZiZGEaXqVnWfv2Oa4aFty4YHD2%2BT-60_Q%40mail.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/01e6ac12-58b1-2ca6-338a-2e9276e2db2d%40gmail.com.


Re: [pylons-discuss] Hypatia alternative?

2022-04-17 Thread Steve Piercy

On 4/17/22 4:14 AM, Thierry Florac wrote:

Hi,

I'm actually using the Hypatia package for content indexing and I'm very happy 
with it, but this package doesn't seem to be updated for a very long time (2 
years since last commit).
Actually, my own packages unit tests are failing when using Python 3.10 with 
Hypatia, so I was wondering if it is actually used and maintained, or is there 
any alternative ?

Best regards,
Thierry
--
https://www.ulthar.net  -- http://pyams.readthedocs.io 


--
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/CAPX_VWBOptsdANDDQZiZGEaXqVnWfv2Oa4aFty4YHD2%2BT-60_Q%40mail.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/70164931-eebd-d9e1-5f07-2a322cb5eea2%40gmail.com.


[pylons-discuss] pyramid-jinja2 2.9.2 has been released

2022-03-19 Thread Steve Piercy

pyramid-jinja2 2.9.2 has been released.

The full changelog is here:
https://docs.pylonsproject.org/projects/pyramid-jinja2/en/latest/changes.html

What's New In pyramid-jinja2 2.9.2
https://docs.pylonsproject.org/projects/pyramid-jinja2/en/latest/changes.html#id2

Documentation:
https://docs.pylonsproject.org/projects/pyramid-jinja2/en/latest/

You can install it via PyPI:

  pip install pyramid-tm==2.9.2

Enjoy, and please report any issues you find to the issue tracker at
https://github.com/Pylons/pyramid_jinja2/issues

Thanks!

- pyramid-jinja2 core developers

--
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/5f49f059-124b-06ac-a9f3-49447d5a888c%40gmail.com.


[pylons-discuss] Waitress 2.1.1 released with security bug fixes

2022-03-16 Thread Steve Piercy

Waitress 2.1.1 has been released.

This is a security bug fix release. This release fixes three issues that may 
lead to HTTP desync/HTTP request smuggling when fronted by a load balancer or 
proxy that did not parse the HTTP requests the same way as Waitress.

We want to thank Jamie Slome (https://github.com/JamieSlome) of 418sec 
(https://github.com/418sec) for bringing this issue to our attention, and Zhang 
Zeyu (https://www.huntr.dev/users/zeyu2001/) for discovering and reporting the 
bug through huntr (https://www.huntr.dev/).

See the advisory:
https://github.com/Pylons/waitress/security/advisories/GHSA-4f7p-27jc-3c36

The full change log is here:
https://docs.pylonsproject.org/projects/waitress/en/latest/#id1

Documentation:
https://docs.pylonsproject.org/projects/waitress/en/latest/

You can install it via PyPI:

  pip install waitress==2.1.1

Enjoy, and please report any issues you find to the issue tracker at
https://github.com/Pylons/waitress/issues

Thanks!

- Waitress core developers

--
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/6f650a18-317c-e1e8-769d-30ca105e4d74%40gmail.com.


Re: [pylons-discuss] Re: pyramid_tm 2.5 has been released

2022-03-16 Thread Steve Piercy

Apologies. The correct link is here:

https://docs.pylonsproject.org/projects/pyramid_tm/en/latest/changes.html

--steve


On 3/16/22 10:10 AM, 'Jonathan Vanasco' via pylons-discuss wrote:

I assume this message is automated by a release script, and that is out of date.

The changes and latest aren't rendered onto those docs, and the anchors don't 
exist.

The changes do appear here:

https://github.com/Pylons/pyramid_tm/blob/master/CHANGES.rst


On Sunday, March 13, 2022 at 4:01:18 AM UTC-4 Steve Piercy wrote:

pyramid_tm 2.5 has been released.

The full changelog is here:
https://docs.pylonsproject.org/projects/pyramid_tm/en/latest/#changes 
<https://docs.pylonsproject.org/projects/pyramid_tm/en/latest/#changes>

What's New In pyramid_tm 2.5:
https://docs.pylonsproject.org/projects/pyramid_tm/en/latest/#id3 
<https://docs.pylonsproject.org/projects/pyramid_tm/en/latest/#id3>

Documentation:
https://docs.pylonsproject.org/projects/pyramid_tm/en/latest/ 
<https://docs.pylonsproject.org/projects/pyramid_tm/en/latest/>

You can install it via PyPI:

pip install pyramid-tm==2.5

Enjoy, and please report any issues you find to the issue tracker at
https://github.com/Pylons/pyramid_tm/issues 
<https://github.com/Pylons/pyramid_tm/issues>

Thanks!

- pyramid_tm core developers

--
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 
<mailto:pylons-discuss+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/4f8a1bf1-62cc-4105-8b5f-68ae4147be14n%40googlegroups.com
 
<https://groups.google.com/d/msgid/pylons-discuss/4f8a1bf1-62cc-4105-8b5f-68ae4147be14n%40googlegroups.com?utm_medium=email&utm_source=footer>.


--
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/95ce10b5-0fa1-d3a0-ca5e-f344b6aa5536%40gmail.com.


[pylons-discuss] pyramid-jinja2 2.9.1 has been released

2022-03-13 Thread Steve Piercy

pyramid-jinja2 2.9.1 has been released.

The full changelog is here:
https://docs.pylonsproject.org/projects/pyramid-jinja2/en/latest/changes.html

What's New In pyramid-jinja2 2.9.1:
https://docs.pylonsproject.org/projects/pyramid-jinja2/en/latest/changes.html#id2

Documentation:
https://docs.pylonsproject.org/projects/pyramid-jinja2/en/latest/

You can install it via PyPI:

  pip install pyramid-tm==2.9.1

Enjoy, and please report any issues you find to the issue tracker at
https://github.com/Pylons/pyramid_jinja2/issues

Thanks!

- pyramid-jinja2 core developers

--
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/d700ff87-d0d0-fdec-0e5c-84222ebb46ee%40gmail.com.


[pylons-discuss] pyramid_tm 2.5 has been released

2022-03-13 Thread Steve Piercy

pyramid_tm 2.5 has been released.

The full changelog is here:
https://docs.pylonsproject.org/projects/pyramid_tm/en/latest/#changes

What's New In pyramid_tm 2.5:
https://docs.pylonsproject.org/projects/pyramid_tm/en/latest/#id3

Documentation:
https://docs.pylonsproject.org/projects/pyramid_tm/en/latest/

You can install it via PyPI:

  pip install pyramid-tm==2.5

Enjoy, and please report any issues you find to the issue tracker at
https://github.com/Pylons/pyramid_tm/issues

Thanks!

- pyramid_tm core developers

--
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/271d66a3-a050-203d-e129-6d11f4be4b7f%40gmail.com.


[pylons-discuss] pyramid_exclog 1.1 has been released

2022-03-12 Thread Steve Piercy

pyramid_exclog 1.1 has been released.

The full changelog is here:
https://github.com/Pylons/pyramid_exclog/blob/master/CHANGES.rst

What's New In pyramid_exclog 1.1:
https://github.com/Pylons/pyramid_exclog/blob/master/CHANGES.rst#11-2022-03-12

Documentation:
https://docs.pylonsproject.org/projects/pyramid-exclog/en/latest/

You can install it via PyPI:

  pip install pyramid-exclog==1.1

Enjoy, and please report any issues you find to the issue tracker at
https://github.com/Pylons/pyramid_exclog/issues

Thanks!

- pyramid_exclog core developers

--
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/4c942f71-82a4-9ffe-f103-e4d22e07838a%40gmail.com.


Re: [pylons-discuss] pylonsproject.org and trypyramid.com updates

2022-02-18 Thread Steve Piercy

Hi Laurent,

First, thank you for your work and volunteering to move this forward.

Would you please consider submitting a PR against pylons/trypyramid.com? Then 
other people could more easily review and contribute.

I also want to try something: preview builds using Netlify under the Pylons 
organization. On each commit in a PR against a specified branch, a preview of 
the site can be built, deployed, and previewed by the public without cloning 
and building locally. I've been doing this while working on Plone 6 
Documentation, and it saves a lot of time during reviews.

https://620ff8a3c2a27f00081bebf3--6-dev-docs-plone-org.netlify.app/glossary.html#term-fence

--steve


On 2/18/22 4:41 PM, Laurent Daverio wrote:

Just added a "bootrstrap5" branch containing changes required to make
the front page work with Bootstrap 5.1.3

Le sam. 19 févr. 2022 à 01:51, Laurent Daverio  a écrit :


Hello Steve,

You can have a look at the current state of the works here:
https://github.com/ldaverio/trypyramid.com/.

Basically, I have upgraded all that I could upgrade:
- Bootstrap 3 -> 4 (I'll try 5 later, I came across a compatibility
problem, don't remember with what Node module)
- Webpack 4 -> 5
- Node-sass -> Sass
...

(Note: highlight.js needs to remain at version 10, apparently,
otherwise code expansion no longer works)

I have adapted the main page to work with Bootstrap 4 (updated the
navbar, updated the CSS), it's not 100% finished, or identical to the
Bootstrap 3 version, but it can already be shown "as is". I haven't
checked the other pages yet, or components like bootstrap-multiselect,
so they might not work with Bootstrap 4.

The commits are made so that the different steps of the upgrade are
easier to follow, I did some commit squashing on the way to keep the
log clean.

I think that's all for now, let me know what you think, and what I
should improve.

Cheers,
Laurent.

Le lun. 14 févr. 2022 à 11:06, Laurent Daverio  a écrit :


node-sass seems to be deprecated, and should be replaced with Dart
Sass (https://www.npmjs.com/package/node-sass).
If you do just that (yarn remove node-sass; yard add -D sass),
dependency problems just go away.

I'm on a boat on Bosphorus, need to land soon, so the rest will have
to wait a little...


I gave it a shot, but entered a rabbit-hole of dependency and migration hell.

https://github.com/Pylons/trypyramid.com/pull/320
https://github.com/Pylons/pylonsproject.org/pull/103




--
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/d9317248-5e91-0bf8-6ebd-f6c241fec2a6%40gmail.com.


Re: [pylons-discuss] pylonsproject.org and trypyramid.com updates

2022-02-13 Thread Steve Piercy

5 would be good, too. I tried 5 first, but hit a wall, so I assumed 4 would 
have better support.

The easiest route forward might be to start with a clean project, and build up 
packages as needed.

We use Hugo to generate the static sites.

--steve


On 2/13/22 9:09 PM, Laurent Daverio wrote:

Hello Steve,

I will give it a look. Why not jump directly to Bootstrap 5? Current
version is 5.1.3

Laurent.

Le lun. 14 févr. 2022 à 02:29, Steve Piercy
 a écrit :


Does anyone care to update our marketing websites pylonsproject.org and 
trypyramid.com to the latest packages, including Bootstrap 4?

I gave it a shot, but entered a rabbit-hole of dependency and migration hell.

https://github.com/Pylons/trypyramid.com/pull/320
https://github.com/Pylons/pylonsproject.org/pull/103

--steve

--
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/b9079c50-0527-d815-3019-069b21dd12d5%40gmail.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 this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/c84ccc6e-e188-de80-ff59-ffa8bb0baf88%40gmail.com.


[pylons-discuss] pylonsproject.org and trypyramid.com updates

2022-02-13 Thread Steve Piercy

Does anyone care to update our marketing websites pylonsproject.org and 
trypyramid.com to the latest packages, including Bootstrap 4?

I gave it a shot, but entered a rabbit-hole of dependency and migration hell.

https://github.com/Pylons/trypyramid.com/pull/320
https://github.com/Pylons/pylonsproject.org/pull/103

--steve

--
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/b9079c50-0527-d815-3019-069b21dd12d5%40gmail.com.


[pylons-discuss] Waitress v2.1.0b0 released

2022-02-09 Thread Steve Piercy

Howdy,

Waitress v2.1.0b0 has been released.

For a list of changes in this release, please visit:

https://docs.pylonsproject.org/projects/waitress/en/latest/#b0

Issues:

https://github.com/Pylons/waitress/issues

--steve

--
-
Steve Piercy, Eugene, OR
w...@stevepiercy.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 this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/0d49467d-eaee-4fe0-48bd-d22e2bfbdbb4%40gmail.com.


Re: [pylons-discuss] Plaster status

2022-01-08 Thread Steve Piercy

They work. What needs to change?

I know, that's a rare thing to say about software. :)

--steve


On 1/7/22 7:26 AM, Stéphane Brunner wrote:

Hello,

Pyramid depends on plaster: 
https://github.com/Pylons/pyramid/blob/master/setup.py#L29-L30
But the alt commits of plaster and plaster_pastdeploy
https://github.com/Pylons/plaster
https://github.com/Pylons/plaster_pastedeploy
has no commits since begin of 2019
Then what's the status of plaster?

Sincerely
Stéphane Brunner

--
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/17417a79-1c53-4dc2-acb6-a049507888c9n%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 this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/a5dbec04-7060-5f63-7536-6ddcf1be882a%40gmail.com.


Re: [pylons-discuss] Best practices for running Pyramid (docker) and nginx (host) deployment

2021-12-19 Thread Steve Piercy

Does Sentry monitor what you want?

https://docs.sentry.io/platforms/python/guides/pyramid/

--steve


On 12/19/21 4:22 PM, Jens Troeger wrote:

Oh, and more question… Monitoring.

For example, to monitor Dramatiq ’s asynchronous workers it provides a middleware 
 for Prometheus 
 to gather metrics. What’s does the community recommend for Pyramid to monitor 
its metrics? Didn’t see anything on Projects  page or the 
Awesome Pyramid  page.

Or is it better to hook up Prometheus to the nginx reverse proxy (link 
),
 which, however, in my case runs outside of the app container on the host 🤔

Much thanks,
Jens

--
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/a3a27a0e-703f-4384-aec7-a89fc95137a1n%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 this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/261df554-4851-d33c-18ef-61dae0481246%40gmail.com.


Re: [pylons-discuss] AttributeError: module 'h.cli.commands' has no attribute 'authclient'

2021-12-15 Thread Steve Piercy

Python 3.6 is EOL in 8 days.

https://devguide.python.org/#status-of-python-branches

--steve


On 12/15/21 10:44 AM, Theron Luhn wrote:

It looks like the root of the error is attempting to import dataclasses in your 
"security/identity.py” file.

Dataclasses were added in 3.7, so you’ll need to upgrade Python (would recommend, 3.6 
is EOL in a year) or install the backport. https://pypi.org/project/dataclasses/ 


— Theron




On Dec 15, 2021, at 9:14 AM, David Dye mailto:ddye4...@gmail.com>> wrote:

Hi - I am using python 3.6.9 and pyramid 2.0.  I searched the docs and these 
converstations but did not find "authclient".  Any ideas what I may be doing 
wrong?  Thank you very much!

Traceback (most recent call last):
  File "/home/ec2-user/.local/lib/python3.6/site-packages/pyramid/path.py", 
line 387, in _zope_dottedname_style
    found = getattr(found, n)
AttributeError: module 'h.cli.commands' has no attribute 'authclient'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/local/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/ec2-user/h/h/__main__.py", line 4, in 
    main()
  File "/home/ec2-user/h/h/cli/__init__.py", line 71, in main
    cli.add_command(resolver.resolve(cmd))
  File "/home/ec2-user/.local/lib/python3.6/site-packages/pyramid/path.py", 
line 307, in resolve
    return self._resolve(dotted, package)
  File "/home/ec2-user/.local/lib/python3.6/site-packages/pyramid/path.py", 
line 334, in _resolve
    return self._zope_dottedname_style(dotted, package)
  File "/home/ec2-user/.local/lib/python3.6/site-packages/pyramid/path.py", 
line 389, in _zope_dottedname_style
    __import__(used)
  File "/home/ec2-user/h/h/cli/commands/authclient.py", line 4, in 
    from h.security import token_urlsafe
  File "/home/ec2-user/h/h/security/__init__.py", line 10, in 
    from h.security.identity import Identity  # noqa:F401
  File "/home/ec2-user/h/h/security/identity.py", line 3, in 
    from dataclasses import dataclass
ModuleNotFoundError: No module named 'dataclasses'

--
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/1862156c-bc90-45be-988b-811913b8dba7n%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 this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/F667FF52-5FC1-46DB-8ACB-084AB28C4AE3%40luhn.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 this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/0601bc58-0e3f-e61a-5f9c-06004421029f%40gmail.com.


Re: [pylons-discuss] pyramid_simpleform gives error @ import

2021-09-24 Thread Steve Piercy
You're welcome to submit a PR with correct information. I don't use this
library. I merely made an unproven assumption about Pyramid version support.

--steve


On Fri, Sep 24, 2021, 2:14 AM Nick Victor  wrote:

> Thanks,  Steve.
> A remark like yours that pyramid_simpleforms´does not support Pyramid 2.0
> on this page
> https://docs.pylonsproject.org/projects/pyramid-simpleform/en/latest/
> would be helpful.
>
> Steve Piercy schrieb am Freitag, 24. September 2021 um 09:19:08 UTC+2:
>
>> pyramid_simpleform probably does not support Pyramid 2.0. It has not been
>> updated for many years. Welcome to free open source software maintained by
>> volunteers!
>>
>> We would accept pull requests that includes updated tests and currently
>> supported versions of Python, dropping the old stuff. I would suggest
>> starting here.
>>
>> https://github.com/Pylons/pyramid_simpleform/blob/master/tox.ini
>>
>> Or use a form library that supports Pyramid 2.0, modern versions of
>> Python, and has been updated within the last year.
>>
>> https://docs.pylonsproject.org/projects/deform/en/latest/
>>
>> --steve
>>
>>
>> On 9/23/21 11:30 PM, Nick Victor wrote:
>> >
>> > Hi,
>> > newbie to Pyramid I have tried to use the pyramid_simpleform but
>> already fail when I only try to run the example on
>> >
>> > https://docs.pylonsproject.org/projects/pyramid-simpleform/en/latest/
>> >
>> > My little non-cookiecutter trial project gives that @ invocation:
>> >
>> > Traceback (most recent call last):
>> >   File "...\trypyramid_3.py", line 15, in 
>> > config.scan('trypyramid_3b_views')
>> > 
>> >   File "...\trypyramid_3b_views.py", line 6, in 
>> > from pyramid_simpleform import Form
>> >   File "...\env\lib\site-packages\pyramid_simpleform\__init__.py", line
>> 175
>> > except Invalid, e:
>> >   ^
>> > SyntaxError: invalid syntax
>> >
>> > I have uninstalled and reinstalled pyramid_simpleform assuming that a
>> dependecy might be the problem.
>> > I even do not understand why python complains about the import already
>> rather than the instantiation of the Form class.
>> > I thought importing just making a module content available in the
>> current namespace??
>> >
>> > So how can I fix this problem?
>> > Any hint appreciated. Thanks.
>> > Nick
>> >
>> > --
>> > 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-discus...@googlegroups.com > pylons-discus...@googlegroups.com>.
>> > To view this discussion on the web visit
>> https://groups.google.com/d/msgid/pylons-discuss/00466e99-d518-4db6-94b1-2eeb3d40d0ean%40googlegroups.com
>> <
>> https://groups.google.com/d/msgid/pylons-discuss/00466e99-d518-4db6-94b1-2eeb3d40d0ean%40googlegroups.com?utm_medium=email&utm_source=footer>.
>>
>>
>> --
> 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 visit
> https://groups.google.com/d/msgid/pylons-discuss/c087ff5e-4a1e-4a99-97cf-5744412ca1bfn%40googlegroups.com
> <https://groups.google.com/d/msgid/pylons-discuss/c087ff5e-4a1e-4a99-97cf-5744412ca1bfn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/CAOSXUXvsLNbv9WFaimDqmmoqpYLACJfbbxqwbtbPzX6K%2BtFw3Q%40mail.gmail.com.


Re: [pylons-discuss] pyramid_simpleform gives error @ import

2021-09-24 Thread Steve Piercy

pyramid_simpleform probably does not support Pyramid 2.0. It has not been 
updated for many years. Welcome to free open source software maintained by 
volunteers!

We would accept pull requests that includes updated tests and currently 
supported versions of Python, dropping the old stuff. I would suggest starting 
here.

https://github.com/Pylons/pyramid_simpleform/blob/master/tox.ini

Or use a form library that supports Pyramid 2.0, modern versions of Python, and 
has been updated within the last year.

https://docs.pylonsproject.org/projects/deform/en/latest/

--steve


On 9/23/21 11:30 PM, Nick Victor wrote:


Hi,
newbie to Pyramid I have tried to use the pyramid_simpleform but already fail 
when I only try to run the example on

https://docs.pylonsproject.org/projects/pyramid-simpleform/en/latest/

My little non-cookiecutter trial project gives that @ invocation:

Traceback (most recent call last):
   File "...\trypyramid_3.py", line 15, in 
     config.scan('trypyramid_3b_views')

   File "...\trypyramid_3b_views.py", line 6, in 
     from pyramid_simpleform import Form
   File "...\env\lib\site-packages\pyramid_simpleform\__init__.py", line 175
     except Invalid, e:
   ^
SyntaxError: invalid syntax

I have uninstalled and reinstalled pyramid_simpleform assuming that a dependecy 
might be the problem.
I even do not understand why python complains about the import already rather 
than the instantiation of the Form class.
I thought importing just making a module content available in the current 
namespace??

So how can I fix this problem?
Any hint appreciated. Thanks.
Nick

--
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/00466e99-d518-4db6-94b1-2eeb3d40d0ean%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 this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/3c8995f6-7621-3423-7097-6eabd4ba6f43%40gmail.com.


Re: [pylons-discuss] Could not find a matching loader for the scheme "file+ini ", protocol "wsgi"?

2021-09-12 Thread Steve Piercy
FWIW, I filed a feature request, and it was triaged by JetBrains within 24 
hours.

https://youtrack.jetbrains.com/issue/PY-50696

--steve


On 9/12/21 2:55 PM, Simon wrote:
> You are right and the operation to configure working directory depends on the 
> process to create the project in PyCharm.
> 
> I agree. Exactly the default sever for web app in Pyramid framework is 
> Waitress. Probably the PyCharm just wants to use it in some implicit way to 
> separate from Flask and Django. However, Pyramid framework is too abroad and 
> general for it. Probably this is the tradeoff between popularity and 
> technique accuracy.
> 
> 
> -Simon
> 
> 
> 
> 
> 
> 
> 
> On Sunday, September 12, 2021 at 6:41:29 AM UTC+12 Steve Piercy wrote:
> 
> I think that when you create a Pyramid project in PyCharm, it will 
> populate the correct values in a new run configuration for you. But if you go 
> through any other process, you will need to set it up.
> 
> BTW, existing run/debug configurations call it a "Pyramid server", which 
> is nonsense. Pyramid is a web framework, whereas Waitress and others are 
> servers.
> 
> --steve
> 
> 
> On 9/10/21 10:59 PM, Simon wrote:
> > Hi Steve,
> >
> > Thank you for your inspiring question. 
> >
> > The problem exactly is the working directory in the run configuration. 
> When I point the working directory to the folder containing myapp.ini, it is 
> successfully launched. Therefore, in the run configuration of PyCharm, you do 
> not only point the configuration file (here myapp.ini) but also the working 
> directory.
> >
> > Thank you very much for your time. Appreciated. 
> >
> > On Friday, September 10, 2021 at 7:41:06 PM UTC+12 Steve Piercy wrote:
> >
> > What is the value for your Working Directory in the run configuration?
> >
> > --steve
> >
> >
> > On 9/9/21 10:55 PM, Simon wrote:
> > > After I launch my web app in terminal through pserve myapp.ini in 
> terminal successfully, I open the source code in PyCharm (Professional 
> version) and then edit configuration: first add new configuration which 
> creates a Pyramid server and point the server's config file to be the 
> myapp.ini (which I used in pserve myapp.ini) and also points to the Python 
> interpreter to be the Python in the virtual environment which I use for 
> successfully launching my web app through terminal. 
> > >
> > > I have checked the plaster and plaster-pastedeploy installed both in 
> the pip and PyCharm installed packages. I have two guesses about this issue: 
> > >
> > > 1. apart from providing the configuration file (that is myapp.ini) in 
> the Run/Debug Configurations, do we have to provide it in some way when 
> running the web app in PyCharm?
> > >
> > > 2. do we need to explicitly write something about the configuration 
> file in pycharm_load_entry_point.py (the first call in the Traceback)?
> > >
> > > Thank you for the help.
> > >
> > > On Thursday, September 9, 2021 at 7:37:28 PM UTC+12 Steve Piercy 
> wrote:
> > >
> > > Please include a screenshot of your project's run configuration.
> > >
> > > How did you create your Pyramid project?
> > >
> > > PyCharm Professional supports creating a Pyramid project through its 
> UI.
> > >
> > > https://www.jetbrains.com/help/pycharm/creating-pyramid-project.html 
> <https://www.jetbrains.com/help/pycharm/creating-pyramid-project.html> 
> <https://www.jetbrains.com/help/pycharm/creating-pyramid-project.html 
> <https://www.jetbrains.com/help/pycharm/creating-pyramid-project.html>> 
> <https://www.jetbrains.com/help/pycharm/creating-pyramid-project.html 
> <https://www.jetbrains.com/help/pycharm/creating-pyramid-project.html> 
> <https://www.jetbrains.com/help/pycharm/creating-pyramid-project.html 
> <https://www.jetbrains.com/help/pycharm/creating-pyramid-project.html>>>
> > >
> > > Otherwise we recommend using pyramid-cookiecutter-starter.
> > >
> > > https://github.com/Pylons/pyramid-cookiecutter-starter 
> <https://github.com/Pylons/pyramid-cookiecutter-starter> 
> <https://github.com/Pylons/pyramid-cookiecutter-starter 
> <https://github.com/Pylons/pyramid-cookiecutter-starter>> 
> <https://github.com/Pylons/pyramid-cookiecutter-starter 
> <https://github.com/Pylons/pyramid-cookiecutter-starter> 
> <https://gith

Re: [pylons-discuss] Could not find a matching loader for the scheme "file+ini ", protocol "wsgi"?

2021-09-11 Thread Steve Piercy
I think that when you create a Pyramid project in PyCharm, it will populate the 
correct values in a new run configuration for you. But if you go through any 
other process, you will need to set it up.

BTW, existing run/debug configurations call it a "Pyramid server", which is 
nonsense. Pyramid is a web framework, whereas Waitress and others are servers.

--steve


On 9/10/21 10:59 PM, Simon wrote:
> Hi Steve,
> 
> Thank you for your inspiring question. 
> 
> The problem exactly is the working directory in the run configuration. When I 
> point the working directory to the folder containing myapp.ini, it is 
> successfully launched. Therefore, in the run configuration of PyCharm, you do 
> not only point the configuration file (here myapp.ini) but also the working 
> directory.
> 
> Thank you very much for your time. Appreciated. 
> 
> On Friday, September 10, 2021 at 7:41:06 PM UTC+12 Steve Piercy wrote:
> 
> What is the value for your Working Directory in the run configuration?
> 
> --steve
> 
> 
> On 9/9/21 10:55 PM, Simon wrote:
> > After I launch my web app in terminal through pserve myapp.ini in 
> terminal successfully, I open the source code in PyCharm (Professional 
> version) and then edit configuration: first add new configuration which 
> creates a Pyramid server and point the server's config file to be the 
> myapp.ini (which I used in pserve myapp.ini) and also points to the Python 
> interpreter to be the Python in the virtual environment which I use for 
> successfully launching my web app through terminal. 
> >
> > I have checked the plaster and plaster-pastedeploy installed both in 
> the pip and PyCharm installed packages. I have two guesses about this issue: 
> >
> > 1. apart from providing the configuration file (that is myapp.ini) in 
> the Run/Debug Configurations, do we have to provide it in some way when 
> running the web app in PyCharm?
> >
> > 2. do we need to explicitly write something about the configuration 
> file in pycharm_load_entry_point.py (the first call in the Traceback)?
> >
> > Thank you for the help.
> >
> > On Thursday, September 9, 2021 at 7:37:28 PM UTC+12 Steve Piercy wrote:
> >
> > Please include a screenshot of your project's run configuration.
> >
> > How did you create your Pyramid project?
> >
> > PyCharm Professional supports creating a Pyramid project through its UI.
> >
> > https://www.jetbrains.com/help/pycharm/creating-pyramid-project.html 
> <https://www.jetbrains.com/help/pycharm/creating-pyramid-project.html> 
> <https://www.jetbrains.com/help/pycharm/creating-pyramid-project.html 
> <https://www.jetbrains.com/help/pycharm/creating-pyramid-project.html>>
> >
> > Otherwise we recommend using pyramid-cookiecutter-starter.
> >
> > https://github.com/Pylons/pyramid-cookiecutter-starter 
> <https://github.com/Pylons/pyramid-cookiecutter-starter> 
> <https://github.com/Pylons/pyramid-cookiecutter-starter 
> <https://github.com/Pylons/pyramid-cookiecutter-starter>>
> >
> > PyCharm Professional uses pyramid-cookiecutter-starter under the hood.
> >
> > --steve
> >
> >
> > On 9/8/21 7:10 PM, Simon wrote:
> > > Hi there,
> > >
> > > I got an error about 'could not find a matching loader for the 
> scheme' when I want to run my Pyramid web app in PyCharm based on Pyramid 
> server. However, if I directly run pserve myapp.ini in terminal, it can 
> launch my web app locally. I have edit the configuration in PyCharm: the 
> config file is pointed to myapp.ini and the Python interpreter is pointed to 
> python in the virtual environment.
> > >
> > > Traceback (most recent call last):
> > >   File 
> "/Applications/PyCharm.app/Contents/plugins/python/helpers/pycharm/pycharm_load_entry_point.py",
>  line 12, in 
> > >     sys.exit(f())
> > >   File 
> "/Users/simon/Documents/venv/lib/python3.6/site-packages/pyramid/scripts/pserve.py",
>  line 34, in main
> > >     return command.run()
> > >   File 
> "/Users/simon/Documents/venv/lib/python3.6/site-packages/pyramid/scripts/pserve.py",
>  line 193, in run
> > >     loader = self._get_config_loader(config_uri)
> > >   File 
> "/Users/simon/Documents/venv/lib/python3.6/site-packages/pyramid/scripts/common.py",
>  line 23, in get_config_loader
> > >     return plaster.get_loader(config_uri, pro

Re: [pylons-discuss] Could not find a matching loader for the scheme "file+ini ", protocol "wsgi"?

2021-09-10 Thread Steve Piercy
What is the value for your Working Directory in the run configuration?

--steve


On 9/9/21 10:55 PM, Simon wrote:
> After I launch my web app in terminal through pserve myapp.ini in terminal 
> successfully, I open the source code in PyCharm (Professional version) and 
> then edit configuration: first add new configuration which creates a Pyramid 
> server and point the server's config file to be the myapp.ini (which I used 
> in pserve myapp.ini) and also points to the Python interpreter to be the 
> Python in the virtual environment which I use for successfully launching my 
> web app through terminal. 
> 
> I have checked the plaster and plaster-pastedeploy installed both in the pip 
> and PyCharm installed packages. I have two guesses about this issue: 
> 
> 1. apart from providing the configuration file (that is myapp.ini) in the 
> Run/Debug Configurations, do we have to provide it in some way when running 
> the web app in PyCharm?
> 
> 2. do we need to explicitly write something about the configuration file in 
> pycharm_load_entry_point.py (the first call in the Traceback)?
> 
> Thank you for the help.
> 
> On Thursday, September 9, 2021 at 7:37:28 PM UTC+12 Steve Piercy wrote:
> 
> Please include a screenshot of your project's run configuration.
> 
> How did you create your Pyramid project?
> 
> PyCharm Professional supports creating a Pyramid project through its UI.
> 
> https://www.jetbrains.com/help/pycharm/creating-pyramid-project.html 
> <https://www.jetbrains.com/help/pycharm/creating-pyramid-project.html>
> 
> Otherwise we recommend using pyramid-cookiecutter-starter.
> 
> https://github.com/Pylons/pyramid-cookiecutter-starter 
> <https://github.com/Pylons/pyramid-cookiecutter-starter>
> 
> PyCharm Professional uses pyramid-cookiecutter-starter under the hood.
> 
> --steve
> 
> 
> On 9/8/21 7:10 PM, Simon wrote:
> > Hi there,
> >
> > I got an error about 'could not find a matching loader for the scheme' 
> when I want to run my Pyramid web app in PyCharm based on Pyramid server. 
> However, if I directly run pserve myapp.ini in terminal, it can launch my web 
> app locally. I have edit the configuration in PyCharm: the config file is 
> pointed to myapp.ini and the Python interpreter is pointed to python in the 
> virtual environment.
> >
> > Traceback (most recent call last):
> >   File 
> "/Applications/PyCharm.app/Contents/plugins/python/helpers/pycharm/pycharm_load_entry_point.py",
>  line 12, in 
> >     sys.exit(f())
> >   File 
> "/Users/simon/Documents/venv/lib/python3.6/site-packages/pyramid/scripts/pserve.py",
>  line 34, in main
> >     return command.run()
> >   File 
> "/Users/simon/Documents/venv/lib/python3.6/site-packages/pyramid/scripts/pserve.py",
>  line 193, in run
> >     loader = self._get_config_loader(config_uri)
> >   File 
> "/Users/simon/Documents/venv/lib/python3.6/site-packages/pyramid/scripts/common.py",
>  line 23, in get_config_loader
> >     return plaster.get_loader(config_uri, protocols=['wsgi'])
> >   File 
> "/Users/simon/Documents/venv/lib/python3.6/site-packages/plaster/loaders.py", 
> line 109, in get_loader
> >     raise LoaderNotFound(requested_scheme, protocols=protocols)
> > plaster.exceptions.LoaderNotFound: Could not find a matching loader for 
> the scheme "file+ini ", protocol "wsgi".
> >
> > Process finished with exit code 1
> >
> >
> > Though I go to the official website about plaster and WSGI, I still 
> cannot figure it out. \
> >
> > Do anyone have any suggestion or have any similar problem when 
> configuring Pyramid web app in PyCharm?
> >
> > 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-discus...@googlegroups.com 
> <mailto:pylons-discus...@googlegroups.com>.
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/pylons-discuss/d2974f67-3b15-4dbc-9ed5-f9bac8be7046n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/pylons-discuss/d2974f67-3b15-4dbc-9ed5-f9bac8be7046n%40googlegroups.com>
>  
> <https://groups.google.com/d/msgid/pylons-discuss/d2974f67-3b15-4dbc-9ed5-f9bac8be7046n%40googlegroups.com?utm_medium=email&utm_source=footer
>  
> <https

Re: [pylons-discuss] Could not find a matching loader for the scheme "file+ini ", protocol "wsgi"?

2021-09-09 Thread Steve Piercy
Please include a screenshot of your project's run configuration.

How did you create your Pyramid project?

PyCharm Professional supports creating a Pyramid project through its UI.

https://www.jetbrains.com/help/pycharm/creating-pyramid-project.html

Otherwise we recommend using pyramid-cookiecutter-starter.

https://github.com/Pylons/pyramid-cookiecutter-starter

PyCharm Professional uses pyramid-cookiecutter-starter under the hood.

--steve


On 9/8/21 7:10 PM, Simon wrote:
> Hi there,
> 
> I got an error about 'could not find a matching loader for the scheme' when I 
> want to run my Pyramid web app in PyCharm based on Pyramid server. However, 
> if I directly run pserve myapp.ini in terminal, it can launch my web app 
> locally. I have edit the configuration in PyCharm: the config file is pointed 
> to myapp.ini and the Python interpreter is pointed to python in the virtual 
> environment.
> 
> Traceback (most recent call last):
>   File 
> "/Applications/PyCharm.app/Contents/plugins/python/helpers/pycharm/pycharm_load_entry_point.py",
>  line 12, in 
>     sys.exit(f())
>   File 
> "/Users/simon/Documents/venv/lib/python3.6/site-packages/pyramid/scripts/pserve.py",
>  line 34, in main
>     return command.run()
>   File 
> "/Users/simon/Documents/venv/lib/python3.6/site-packages/pyramid/scripts/pserve.py",
>  line 193, in run
>     loader = self._get_config_loader(config_uri)
>   File 
> "/Users/simon/Documents/venv/lib/python3.6/site-packages/pyramid/scripts/common.py",
>  line 23, in get_config_loader
>     return plaster.get_loader(config_uri, protocols=['wsgi'])
>   File 
> "/Users/simon/Documents/venv/lib/python3.6/site-packages/plaster/loaders.py", 
> line 109, in get_loader
>     raise LoaderNotFound(requested_scheme, protocols=protocols)
> plaster.exceptions.LoaderNotFound: Could not find a matching loader for the 
> scheme "file+ini ", protocol "wsgi".
> 
> Process finished with exit code 1
> 
> 
> Though I go to the official website about plaster and WSGI, I still cannot 
> figure it out. \
> 
> Do anyone have any suggestion or have any similar problem when configuring 
> Pyramid web app in PyCharm?
> 
> 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...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/pylons-discuss/d2974f67-3b15-4dbc-9ed5-f9bac8be7046n%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 this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/41f0fe7f-e94c-94e5-9e7c-eab637442c60%40gmail.com.


[pylons-discuss] Re: Pyramid v2.0 Quick Tutorial has stopped working

2021-09-04 Thread Steve Piercy
After your PC crashed, in your shell session did you also add the 
environment variable for the path to your virtual environment or activate 
the correct virtual environment?

See 
https://docs.pylonsproject.org/projects/pyramid/en/latest/quick_tutorial/requirements.html#set-an-environment-variable

There might be some other one-time steps at the start of the tutorial that 
need to be performed.

Please paste the traceback, too.

--steve

On Saturday, September 4, 2021 at 1:18:34 PM UTC-7 Brady Kelly wrote:

> I followed the official Quick Tutorial 
> 
>  
> for Pyramid, up until Step 9: Organizing Views With View Classes. I 
> meticulously followed a similar pattern of instructions for most steps:
>
> - Copy the previous step's code to the new step - a new project with a 
> Python package called "tutorial".
> - Install requirements for the new project using "pip install -e ."
> - Change the code from the previous step
> - Change the tests from the previous step
> - Run the new project with "pserve development.ini --reload"
>
> I finished the View Classes step and the tests passed, and the app ran 
> properly, as expected. I then took a break, during which my PC crashed and 
> restarted. 
>
> I then took up the tutorial on Step 10: Handling Web Requests and 
> Responses, and followed all the above steps, just as I have successfully 
> followed them for each previous step. I changed the code and tests, and the 
> new tests pass, but when I try and run my app with "pserve development.ini 
> --reload", a message gets printed:
>
> *Starting monitor for PID 16628.*
>
> Followed by a long traceback that ends with:
>
> *ModuleNotFoundError: No module named 'tutorial'*
> *Press ENTER or change a file to reload*
>
> Now when I try and run the code for any of the tutorial's previous steps, 
> that all worked before, I get the same error. This doesn't look like a 
> simple missing package, because the package is present in the tutorial 
> step's code, and all 5 unit and functional tests pass. What could be wrong 
> that the code that 'pserve' runs can't find a 'tutorial' package?
>
> Thank you
>

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/ac030148-1a13-4dc8-8242-f9c13e73f5d0n%40googlegroups.com.


Re: [pylons-discuss] Serving large authenticated files

2021-07-14 Thread Steve Piercy
On 7/14/21 9:34 PM, Mikko Ohtamaa 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 this out if this makes sense pricing wise. I am 
> not using EC2 or any Amazon infrastructure, as I have specific processing 
> needs for which their cloud servers are too expensive.

A far less expensive storage option than Amazon's S3 is Backblaze's B2 service.

https://www.backblaze.com/b2/cloud-storage.html

--steve

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/08d438a8-bd7e-14ab-69ca-cd8061069fbc%40gmail.com.


Re: [pylons-discuss] Commercial Use

2021-07-03 Thread Steve Piercy
See Pyramid's license.

https://github.com/Pylons/pyramid/blob/master/LICENSE.txt

Consult your attorney for legal advice.

--steve


On 7/3/21 11:20 AM, Eduard Mironenko wrote:
> Hi, 
> 
> 
> Is your framework suitable for commercial use so for use in commercial 
> projects? I may have already posted this question in your forum but in case I 
> have not I am creating another message here then. 
> 
> 
> I am just performing some market research and if you have any information 
> then please do not hesitate to contact me on my email address that is 
> edouard.mirone...@gmail.com or call me on my phone number that is 07735656777 
> and I will try to reply as soon as possible. 
> 
> 
> Regards 
> 
> 
> Edd
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -- 
> 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 visit 
> https://groups.google.com/d/msgid/pylons-discuss/37ce1044-7b5d-4036-8a09-0798a09b3e46n%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 this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/9b339473-696f-7969-c3f4-23254becd157%40gmail.com.


Re: [pylons-discuss] set i18n default language

2021-06-19 Thread Steve Piercy
I don't know.  I don't use poedit.

Here's how we have documented how to extract the messages.

https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/i18n.html#extracting-messages-from-code-and-templates

--steve


On 6/19/21 1:19 AM, Gerhard Schmidt wrote:
> Hi Steve,
> 
> I have i18n set up an working but all templates and texts in the code are 
> interpreted as English by default.
> 
> My problem is that I want to write texts and Templates in German and do the 
> English translations later.
> 
> Is there a way to say. "Hey extractor, any text you find is German not 
> English."
> 
> This may be only a tool problem because poedit always complain about editing 
> the default language when I try to do the English translations.
> 
> Does the gettext system have a default language or is the just poedit being 
> ignorant.
> 
> Regards
>    Estartu
> 
> 
> Am 09.06.21 um 09:24 schrieb Steve Piercy:
>> A Pyramid project has no default language, internationalization (i18n), or 
>> localization (l10n).  You may add them and their translations to a project.
>>
>> https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/i18n.html
>>
>> Once you establish i18n and i10n in your project, you may set any supported 
>> language as the default.
>>
>> --steve
>>
>>
>> On 6/8/21 11:07 PM, Gerhard Schmidt wrote:
>>> Hi,
>>>
>>> I'm developing some web applications form my company using pyramid. Most of 
>>> the time I develop them in German first and do translations later.
>>>
>>> This causes me some unnecessary work when starting with translations, 
>>> because default language is English. So I have to change the German texts 
>>> to English and move the German to the translation files.
>>>
>>> It would be much easier to simply define the default language as German and 
>>> add English translations. As you can guess. German is my main language so I 
>>> can outsource the translations to English someone and concentrate on the 
>>> German texts.
>>>
>>> Is there a way to define that a pyramid project is in German when using 
>>> i18n.
>>>
>>> Regard
>>>    Estartu
>>>
>>>
>>

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/54db16e6-d175-6dc6-0269-5705b4ad20be%40gmail.com.


Re: [pylons-discuss] Replacing Freenode?

2021-06-14 Thread Steve Piercy
On 6/14/21 12:56 PM, Andrew Martin wrote:
> What are the necessary bits at this point, Steve?

https://groups.google.com/g/pylons-discuss/c/Lm5f6jx0SHM/m/B4OeetvsAAAJ

But to elaborate:

1.  Get consensus from maintainers.

These individuals could be classified by their recent activity.  The following 
are their usernames on GitHub or PyPI.  This may be a challenge as we are 
scattered across IRC, Keybase (https://keybase.io/team/pylons), and this 
discussion group.  Regardless the discussion must be open and public as much as 
practical.

Make good faith effort to achieve consensus (currently active maintainer):
stevepiercy
xistence
mmerickel
zupo
ergo
gawel

Invite to participate in the decision, but don't expect response (formerly 
active maintainer):
chrism
tseaver
ericoandrei
miohtama
crooksey
signum
agronholm
ianb
cdent
haypo
bbangert
blaflamme
chrism
nouri
iElectric
rockyburt
goodwillcoding
tr_h
danjac
lambacck
fschulze
cguardia
wichert
chrisrossi
J1m

2.  Set up the service.

Lots of details omitted until service is decided by consensus.

3.  Update active repos.

A quick search reveals 100 instances, most of which are not active or 
maintained.  I'd say if the repo has not been updated in the last 5 years, it 
can be put in the pile of "round-to-its".  Perhaps only 3 years?  That would be 
another question for the active maintainers to decide.

https://github.com/search?q=org%3APylons+freenode&type=code

4.  Draft announcements.

- Emails to pylons-discuss (https://groups.google.com/g/pylons-discuss) and 
pylons-devel (https://groups.google.com/g/pylons-devel).
- Tweet from @PylonsProject
- Prepare message for #pyramid and #pylons on Freenode, but do not post.

5.  Update greeting on existing #pyramid and #pylons channels on Freenode to 
move to new service.

This should be last because Freenode is banning everyone and everything that 
expresses a mouse fart of dissent.

6.  Other?

I may have missed something, but this is a good start.

--steve

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/c2bbd29c-31ea-c1cd-94c2-5703a615eca9%40gmail.com.


Re: [pylons-discuss] Replacing Freenode?

2021-06-14 Thread Steve Piercy
On 6/14/21 10:36 AM, Sean Hammond wrote:
> I can no longer access the #pyramid channel because the IRC client that I use 
> (IRCCloud) has been banned from Freenode:
> 
> https://twitter.com/IRCCloud/status/1404153550159159298 
> 
> 
> #python moved to Libera: 
> https://nedbatchelder.com/blog/202106/goodbye_freenode.html 
> 

As a temporary workaround, there is a web client.

https://webchat.freenode.net/#pyramid

Meanwhile, my offer to support someone who will be the champion to do the 
necessary bits still stands.  Think of the glory!

--steve

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/c9cfd469-134d-bcaf-4b68-261b77a08b84%40gmail.com.


[pylons-discuss] pyramid-openapi3 v0.12 and v0.13 released

2021-06-13 Thread Steve Piercy
pyramid-openapi3 v0.12 and v0.13 have been released.

Changes
https://github.com/Pylons/pyramid_openapi3/blob/master/CHANGELOG.md#013-2021-06-13

Issues
https://github.com/Pylons/pyramid_openapi3/issues

PyPI
https://pypi.org/project/pyramid-openapi3/

Demo
https://github.com/Pylons/pyramid_openapi3#demo--examples

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/529e58cf-6424-2134-f3a1-12c22208196b%40gmail.com.


Re: [pylons-discuss] set i18n default language

2021-06-09 Thread Steve Piercy
A Pyramid project has no default language, internationalization (i18n), or 
localization (l10n).  You may add them and their translations to a project.

https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/i18n.html

Once you establish i18n and i10n in your project, you may set any supported 
language as the default.

--steve


On 6/8/21 11:07 PM, Gerhard Schmidt wrote:
> Hi,
> 
> I'm developing some web applications form my company using pyramid. Most of 
> the time I develop them in German first and do translations later.
> 
> This causes me some unnecessary work when starting with translations, because 
> default language is English. So I have to change the German texts to English 
> and move the German to the translation files.
> 
> It would be much easier to simply define the default language as German and 
> add English translations. As you can guess. German is my main language so I 
> can outsource the translations to English someone and concentrate on the 
> German texts.
> 
> Is there a way to define that a pyramid project is in German when using i18n.
> 
> Regard
>   Estartu
> 
> 

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/7fece972-e45a-756a-259c-2e1ba7fa45d6%40gmail.com.


Re: [pylons-discuss] Pylons framework Python 3 status

2021-06-04 Thread Steve Piercy
On 6/4/21 12:30 PM, Mike Orr wrote:
> Is the Pylons framework still Python 2 only and no plans to make it
> Python 3 compatible?

Correct.  See the note.

https://github.com/pylons/pylons#pylons

More detail here.

https://pylonsproject.org/about-pylons-framework.html

--steve

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/1c342cf8-d0df-59c1-c151-d9e105a9d553%40gmail.com.


Re: [pylons-discuss] Problem between Pyramid's CSRF protection and Deform

2021-05-20 Thread Steve Piercy
Ah, yes, I see now.  I was mistaken, too, which added to the confusion.

This tutorial and deformdemo use different methods and have different stacks.  
I don't know whether either is wrong, but perhaps just different?  Perhaps bits 
of each implementation were mixed together during your exploration?

https://youtu.be/5sxRGSFEP30

This prompted me to do a little digging, and I found that although Deform has a 
schema.CSRFSchema class, it is documented only in the docstrings.  I fixed that 
on both `main` and `2.0-branch`.

https://docs.pylonsproject.org/projects/deform/en/main/api.html#deform.CSRFSchema
https://docs.pylonsproject.org/projects/deform/en/latest/api.html#deform.CSRFSchema

There might be some inconsistencies between and within Deform, deformdemo, and 
Pyramid in the examples.  Deform has not had as consistent maintenance as 
Pyramid.  If you spot any issues, please let us know, and we'll try to resolve 
them.  I'd be open to adding more examples to deformdemo.

--steve


On 5/20/21 1:09 PM, Laurent Daverio wrote:
> Hello Jonathan,
> 
> thank you for your message, and sorry for my late answer, I'm seeing
> it only now. I've understood the difference by now, having spent a
> number of hours on the problem (I'm not a Python or Pyramid newbie,
> but I admit I am (or was?) a CSRF newbie).
> 
>> The `session.get_csrf_token` method is really a helper function for Pyramid 
>> and add-ons to have a standard interface for stashing a CSRF token in the 
>> session.
>> it might be worth changing those interface names to have leading 
>> underscores, so the public doesn't rely on them.  Or maybe add a warning 
>> docstring that
>> `pyramid.csrf.get_csrf_token` should be used by developers.
> 
> Actually, when I set out upgrading my code to make it compatible with
> Pyramid 2.x, I started with one of the official tutorials (SQLAlchemy
> + URL dispatch wiki tutorial), which says
> (https://docs.pylonsproject.org/projects/pyramid/en/2.0-branch/tutorials/wiki2/definingviews.html#csrf-protection):
> 
> - Use CookieCSRFStoragePolicy
> - Add a hidden field with "get_csrf_token()" in your templates
> 
> So, I was led to believe it was the right way. Erroneously, apparently...
> 
> Thanks for the clarification,
> 
> Laurent.
> 
> Le jeu. 13 mai 2021 à 00:34, 'Jonathan Vanasco' via pylons-discuss
>  a écrit :
>>
>> They're not the same at all.
>>
>> The difference is on purpose.
>>
>> Janzert is correct, though his description may not necessarily be clear.
>>
>> The following might make more sense:
>>
>> The two functions do the following:
>>
>>   pyramid.csrf.get_csrf_token(request)
>> discern active ICSRFStoragePolicy
>> invoke {ICSRFStoragePolicy.get_csrf_token()}
>>
>>   request.session.get_csrf_token()
>> invoke {self.get_csrf_token()}
>>
>> Because of that difference, the following happens.
>>
>>   1. when using `LegacySessionCSRFStoragePolicy`, 
>> `SessionCSRFStoragePolicy`, or `None` (which is one of those IIRC):
>>   a) pyramid.csrf.get_csrf_token always uses the Session
>>   b) request.session.get_csrf_token is just a shortcut to the above
>>
>>   2. when using `CookieCSRFStoragePolicy`:
>>   a) pyramid.csrf.get_csrf_token always uses the dedicated Session 
>> cookie, as you instructed it to.
>>   b) request.session.get_csrf_token is referencing a csrf_token within 
>> the session itself. Pyramid is not configured to ever look in the session 
>> for a csrf, because you told it to use a dedicated session cookie.
>>
>> The `session.get_csrf_token` method is really a helper function for Pyramid 
>> and add-ons to have a standard interface for stashing a CSRF token in the 
>> session.  it might be worth changing those interface names to have leading 
>> underscores, so the public doesn't rely on them.  Or maybe add a warning 
>> docstring that `pyramid.csrf.get_csrf_token` should be used by developers.
>>
>> In any event, you are getting different results because you are telling 
>> pyramid to use a cookie for the csrf token, then using one method that 
>> queries that cookie (correct value!) and a second method that queries the 
>> active session for a token -- which is not tied to the pyramid csrf system 
>> in any way.
>> On Sunday, May 2, 2021 at 6:14:47 PM UTC-4 Steve Piercy wrote:
>>>
>>> They are effectively the same.
>>>
>>> https://docs.pylonsproject.org/projects/pyramid/en/latest/_modules/pyramid/csrf.html#LegacySessionCSRFStoragePolicy.get_csrf_token
>>>
>>> In your code, you h

Re: [pylons-discuss] Replacing Freenode?

2021-05-19 Thread Steve Piercy
We have not discussed it.  It's a matter of inertia and the effort required to 
move official Pylons Project support channels to something else.  No one wants 
to do that work as a volunteer.

It is fine if someone takes the initiative to establish an unofficial 
community-driven Pylons Project channel on whatever they like, Discord, Slack, 
Gitter, carrier pigeon...

--steve


On 5/19/21 9:07 AM, Joshua Drake wrote:
> Without getting into the politics of it...
> 
> OFTC could be a good choice. It is what Software in the Public Interest uses 
> which is behind such stalwarts as Debian, Libreoffice (in the U.S.) and 
> PostgreSQL.Org
> 
> On Wed, May 19, 2021 at 7:24 AM 'Jonathan Vanasco' via pylons-discuss 
> mailto:pylons-discuss@googlegroups.com>> 
> wrote:
> 
> Are there any plans to replace Freenode, in light of the recent 
> developments?
> 
> See:
>     
> https://boingboing.net/2021/05/19/freenode-irc-staff-quit-after-new-owner-seizes-control.html
>  
> 
>     https://libera.chat/ 
> 
> -- 
> 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 visit 
> https://groups.google.com/d/msgid/pylons-discuss/0d58265b-cc5d-467e-ae95-a2d5f5c4d1d3n%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 this discussion on the web visit 
> https://groups.google.com/d/msgid/pylons-discuss/CAJvJg-SrpSoqYW6qMDAxqcvFW9F5rJzCHQO1ocwBOszUQeXFDQ%40mail.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/966b6da8-317e-a8d5-c6b8-51b704d4bd7e%40gmail.com.


Re: [pylons-discuss] how does pyramid know what "create" , "view", "edit" etc is ?

2021-05-10 Thread Steve Piercy
I think that what you seek more understanding on is this thing called 
"predicates".  A predicate is a test which returns True or False, and which 
narrows the set of circumstances in which views or routes may be called.

For example, to limit matching of a view callable to a `route_name` of `home` 
and to the `POST` HTTP `request_method`, you would set the predicates in a view 
decorator as follows.

@view_config(
route_name='home',
request_method='POST'
)
def home(request):
return Response('Welcome!')

More information on view predicates.
https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/viewconfig.html#view-configuration-parameters

--steve


On 5/10/21 12:32 PM, pzzcc wrote:
> thank you for the input everyone.
> 
> please correct me if I am wrong , does pyramid know what a ( *view* ) action  
> is ? 
> 
> does it know that an Edit action ( is a form that is being POSTed or Restful 
> call to update ?
> 
> same goes for create , does it have a way to figure out that create is ( PUT 
> )?
> 
> 
> *in other words , if I go to a view and change the view config to have a 
> permssion of ( update ) instead of ( edit ) ,*
> *
> *
> *and then go to principals  and update them accordingly , Pyramid it self 
> wont care,  would it ?  *
> *
> *
> *can a view have more than one permission like ( update , create , view ) ? *
> *
> *
> /I am trying to figure out how it works so I can write a better code because 
> I have gone through the wiki tutorial , it is *great* but it leaves you with 
> a lot of question to be able to understand how things are put together ./
> *
> *
> 
> On Monday, May 10, 2021 at 12:30:03 PM UTC+3 Eldav wrote:
> 
> Hello,
> 
> you could have a look at the "Authorization" page of the SQLAlchemy +
> URL dispatch wiki tutorial:
> 
> 
> https://pyramid.readthedocs.io/en/latest/tutorials/wiki2/authorization.html 
> 
> 
> Basically : you define your permission as string via an ACL mechanism.
> Your permissions may be global (e.g. all members of the "managers"
> group get the "manage" permission), or defined via a route factory.
> Route factories allow for policies such as: every authenticated user
> can "view" a page, its author can "edit" it. They also allow you to
> simplify the code of your views.
> 
> Hope this helps,
> 
> Laurent.
> 
> Le dim. 9 mai 2021 à 20:17, Thierry Florac  a écrit :
> >
> > Hi,
> > Are you asking about the way to protect a view with a permission, or 
> about the way to grant this permission to a request?
> > Best regards,
> > Thierry
> > --
> > https://www.ulthar.net  -- 
> http://pyams.readthedocs.io 
> >
> >
> > Le dim. 9 mai 2021 à 19:00, pzzcc  a écrit :
> >>
> >> Hi,
> >>
> >> I am trying to wrap my head around some pyramid concepts and I am 
> trying to figure out how does a view config know what a permission like ( 
> view , edit , create ) is ?
> >>
> >> does it rely on the pyramid_tm r or the routes or what ?
> >>
> >> I know how to use them but I need to wrap my head againts some 
> concepts.
> >>
> >> 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-discus...@googlegroups.com.
> >> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/pylons-discuss/2b676239-b805-40d6-9ae2-1e4c60a9a7dcn%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-discus...@googlegroups.com.
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/pylons-discuss/CAPX_VWCYnWP_Rrbgk1ZBP1JBUN8KNztgj5%3DJ_Q_8%2B_uvAXAv_A%40mail.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+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/pylons-discuss/97b621fe-4b8b-4a44-884a-079813495ff4n%40googlegroups.com
>  
> .


[pylons-discuss] Sphinx 4.0 released

2021-05-09 Thread Steve Piercy
Sphinx 4.0 was released today.

https://pypi.org/project/Sphinx/

There may be some breaking changes in this release.  If your Pylons Project 
documentation does not look right, then please let me know, and I will look 
into it.

--steve

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/32dd4f42-6257-608a-d1e1-ac3ad601aa43%40gmail.com.


Re: [pylons-discuss] Problem between Pyramid's CSRF protection and Deform

2021-05-02 Thread Steve Piercy
They are effectively the same.

https://docs.pylonsproject.org/projects/pyramid/en/latest/_modules/pyramid/csrf.html#LegacySessionCSRFStoragePolicy.get_csrf_token

In your code, you have configured two session factories.  I assume you get the 
CSRF unique to each factory.  ¯\_(ツ)_/¯

--steve


On 5/2/21 10:25 AM, Laurent Daverio wrote:
> So, if I follow this line of reasoning, the way to get the same value
> as in the template is to use :
> 
> from pyramid.csrf import get_csrf_token
> print get_csrf_token(request)
> 
> and *not* :
> 
> print request.session.get_csrf_token()
> 
> Le dim. 2 mai 2021 à 19:11, Laurent Daverio  a écrit :
>>
>> OK, I've been able to nail it down on a simple example : depending on
>> the CSRF storage policy I use, "request.session.get_csrf_token()"
>> (called from python or a template) and "get_csrf_token()" (called from
>> a template) return the same value *or not*.
>>
>> - no storage policy => ok
>> - LegacySessionCSRFStoragePolicy => ok
>> - CookieCSRFStoragePolicy => ko
>>
>> I'm attaching my example, I called it "onefile.py", although I needed
>> two files actually (one python file + one mako template). Sorry ;)
>>
>> Le mer. 28 avr. 2021 à 22:32, Laurent Daverio  a écrit :
>>>
>>> Thank you Steve. I'll have to think about it, not that the code is
>>> secret, just a matter of knowing what to post to be relevant.
>>>
>>> Le mer. 28 avr. 2021 à 22:10, Steve Piercy
>>>  a écrit :
>>>>
>>>> It's difficult to say without your example.  I've been using CSRF as shown 
>>>> in the Deform demo without any issues.
>>>>
>>>> --steve
>>>>
>>>>
>>>> On 4/28/21 10:32 AM, Laurent Daverio wrote:
>>>>> Hello List,
>>>>>
>>>>> I'd like to report a problem I've just encountered, occurring betwen
>>>>> Pyramid's CSRF protection and Deform.
>>>>>
>>>>> Basically, I have a Pyramid 2.0 web app configured along the lines of
>>>>> the "URL dispatch wiki tutorial"
>>>>> (https://docs.pylonsproject.org/projects/pyramid/en/2.0-branch/tutorials/wiki2/authentication.html),
>>>>> with some Deform forms in it.
>>>>>
>>>>> The Deform Demo
>>>>> (https://deformdemo.pylonsproject.org/pyramid_csrf_demo/) shows how to
>>>>> use a deferred value to create hidden field "csrf_token" in the
>>>>> generated forms.
>>>>>
>>>>> But there's a problem: the token generated that way doesn't have the
>>>>> same value as when I directly call get_csrf_token() in a template.
>>>>>
>>>>> As I don't have the time/energy to fully investigate the problem right
>>>>> now, I think I will just use a workaround: as I'm using Diazo as a
>>>>> theming engine (awesome tech, btw), I think I will add a rule to
>>>>> inject the token into every form. Should work.
>>>>>
>>>>> Still, I wanted to take the time to report the problem, in case it
>>>>> could be useful.
>>>>>
>>>>> Laurent.
>>>>>
>>>>
>>>> --
>>>> 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 visit 
>>>> https://groups.google.com/d/msgid/pylons-discuss/44979a98-12ae-239e-8478-c2323aecfaf1%40gmail.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 this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/31b5bea7-02ec-772e-06b0-56e5a5150333%40gmail.com.


Re: [pylons-discuss] Problem between Pyramid's CSRF protection and Deform

2021-04-28 Thread Steve Piercy
It's difficult to say without your example.  I've been using CSRF as shown in 
the Deform demo without any issues.

--steve


On 4/28/21 10:32 AM, Laurent Daverio wrote:
> Hello List,
> 
> I'd like to report a problem I've just encountered, occurring betwen
> Pyramid's CSRF protection and Deform.
> 
> Basically, I have a Pyramid 2.0 web app configured along the lines of
> the "URL dispatch wiki tutorial"
> (https://docs.pylonsproject.org/projects/pyramid/en/2.0-branch/tutorials/wiki2/authentication.html),
> with some Deform forms in it.
> 
> The Deform Demo
> (https://deformdemo.pylonsproject.org/pyramid_csrf_demo/) shows how to
> use a deferred value to create hidden field "csrf_token" in the
> generated forms.
> 
> But there's a problem: the token generated that way doesn't have the
> same value as when I directly call get_csrf_token() in a template.
> 
> As I don't have the time/energy to fully investigate the problem right
> now, I think I will just use a workaround: as I'm using Diazo as a
> theming engine (awesome tech, btw), I think I will add a rule to
> inject the token into every form. Should work.
> 
> Still, I wanted to take the time to report the problem, in case it
> could be useful.
> 
> Laurent.
> 

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/44979a98-12ae-239e-8478-c2323aecfaf1%40gmail.com.


Re: [pylons-discuss] Dependency injection in pyramid views

2021-03-23 Thread Steve Piercy
Indeed, and please feel free to open a pull request to add your add-on to
https://trypyramid.com/extending-pyramid.html

--steve


On Tue, Mar 23, 2021, 5:48 PM Bert JW Regeer  wrote:

> Not off-topic at all! Welcome and thanks for contributing to the ecosystem!
>
> > On Mar 23, 2021, at 17:41, Nick Beeuwsaert 
> wrote:
> >
> >
> > Hi all,
> >
> > I just published my first package to PyPI-- its a viewmapper to inject
> dependencies into views.
> > I have it published as a prerelease since I'd like feedback on the API
> before fully releasing it
> >
> >
> > Heres the links:
> > PyPI: https://pypi.org/project/pyramid-autowire/
> > Github: https://github.com/NickBeeuwsaert/pyramid_autowire
> >
> > Sorry if this is off-topic/spam, just want to share my creation
> >
> > --
> > 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 visit
> https://groups.google.com/d/msgid/pylons-discuss/cdbcdc55-483e-4795-8b37-9a91c015646fn%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 this discussion on the web visit
> https://groups.google.com/d/msgid/pylons-discuss/9F7F6857-95F2-47B5-83E9-259E25F07434%400x58.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 this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/CAOSXUXvR1UcvDUTaUz9jJ3d7%2BnJnTUHS1c6OXvdf2nDnQMAPiQ%40mail.gmail.com.


Re: [pylons-discuss] Pyramid 2.0: Only venusian callbacks with category 'pyramid' are called by default

2021-03-15 Thread Steve Piercy
Hi Estartu,

Regarding the docs, I created an issue regarding the omission of Backward 
Incompatibilities and Documentation Enhancements from the What's New for 
Pyramid 2.0.  We had those sections for 1.10, so I think it was an oversight.  
Thank you for pointing that out.

https://github.com/Pylons/pyramid/issues/3664

--steve


On 3/15/21 12:27 AM, Gerhard Schmidt wrote:
> Hi Michael,
> 
> for one pyramid_layout uses 'pyramid_layout' as category. So none of the 
> panels and layouts get registered because of change.
> 
> I don't know if there are other products right now because, I'm hunting these 
> issues in many of my Products.
> 
> I use different categories in my products as well. So I have to change every 
> product.
> 
> I see your point about the config object. So the category is used to specify 
> the callback interface or data requirements.
> 
> I didn't find this change in the What's new Page. It is mentioned in the 
> Backward Incompatibilities, but it should be mentioned in the What's new page 
> as well because it might break third party products used.
> 
> It took me some time to figure out why my Products didn't find the 
> main_template in 2.0 while it's working perfectly in 1.10.
> 
> Regards
>    Estartu
> 
> Am 12.03.21 um 17:19 schrieb Michael Merickel:
>> Estartu,
>>
>> Thanks for bringing up the issue.
>>
>> The initial reason I looked into changing it is because I had other venusian 
>> packages that I did not want scanned and when I dove into the details I 
>> could not find a good reason why things were the way they were (you can see 
>> I looked through the history in the original ticket), and I could find some 
>> good reasons that it should be "pyramid" which I don't think I explained 
>> well at all.
>>
>> My main reason for changing it is that each scan() does have a contract with 
>> the decorator that needs to be satisfied. All pyramid-compatible decorators 
>> expect the scanner to have a "config" attribute that is a Pyramid 
>> Configurator object. That is the contract you get when you use 
>> "config.scan()". So if a decorator wants the config object, shouldn't it 
>> register as the "pyramid" category or another custom category passed to scan 
>> to guarantee it gets what it needs? This seems to be the only safe way to do 
>> it with the scan api that is an umbrella search through the code.
>>
>> I tend to prefer explicit over implicit in these types of things which is 
>> why I advocated for the change and at the time no one advocated for keeping 
>> it. Which packages are using different categories?
>>
>> - Michael
>>
>>> On Mar 12, 2021, at 05:05, Gerhard Schmidt  wrote:
>>>
>>> Hallo Steve,
>>>
>>> I have found the change but there is not reason why this change is needed. 
>>> It simple states the change. What is the reason behind the change.
>>>
>>> Are there security issues? Which added benefits does it provide? Why is 
>>> categories=None a bad idea?
>>>
>>> These question aren't answered in the pull request nor in the commit 
>>> message.
>>>
>>> In the related issue (which was closed in 2012) the final comment was
>>> 'I'm going to leave "all categories", as we've come to rely on it being the 
>>> default. If you want to limit it within your application, please pass a set 
>>> of limiting categories.'
>>> The whole issuse is about using venusian outside of pyramid. So why change 
>>> the default in pyramid.
>>>
>>> The change was 7 years after the issue was closed.
>>>
>>> Regards
>>>    Estartu
>>>
>>> Am 12.03.21 um 11:26 schrieb Steve Piercy:
>>>>>  From the release notes:
>>>> https://docs.pylonsproject.org/projects/pyramid/en/latest/changes.html#backward-incompatibilities
>>>> pyramid.config.Configurator.scan will no longer, by default, execute 
>>>> Venusian decorator callbacks registered for categories other than 
>>>> 'pyramid'. To find any decorator regardless of category, specify 
>>>> config.scan(..., categories=None). See 
>>>> https://github.com/Pylons/pyramid/pull/3510
>>>> That PR in turn fixed:
>>>> https://github.com/Pylons/pyramid/issues/3502
>>>> Which in turn referenced:
>>>> https://github.com/Pylons/pyramid/issues/495
>>>> I don't know if that answers your question, but please feel free 

Re: [pylons-discuss] generating docs for views

2021-03-12 Thread Steve Piercy
My first thought was to use docstrings and Sphinx, but I don't think that's 
what you want.

It sounds like you want to document an API, something like pyramid_openapi3.

https://github.com/Pylons/pyramid_openapi3/

RealWorld.io app API Demo (it might take a while to start up the app, as it is 
on-demand only).

https://pyramid-realworld.herokuapp.com/api

--steve


On 3/12/21 1:36 PM, 'Jonathan Vanasco' via pylons-discuss wrote:
> I had a small Pyramid project which has grown into a much larger one.
> 
> Many Views service multiple Routes (multiple calls to `@view_config()`), 
> typically offering a default HTML version on a "bare" url, and a JSON version 
> with a ".json" suffix to the url.
> 
> Documenting these routes has become increasingly burdensome, and I really 
> need to simplify it.  For clarity, the docs are served by the application 
> itself and in a structured format.
> 
> Right now I have two types of documentation, and I'd like to consolidate it 
> into a single one.
> 
> * The original documentation was built off a Python file, `/lib/docs.py`, 
> which just notes the routes which have JSON endpoints, gives an "about" 
> docstring, and offers a dict about how the route functions (GET vs POST, is 
> it self-documenting, etc).
> 
> * As the project progressed, the routes started self-documenting.  Forms were 
> moved to POST only, with GET offering structured details (instructions, 
> required vs optional form elements, etc). Most of this is defined by just 
> returning a dict on GET operations.
> 
> I've been trying to figure out the best ways to consolidate this. Perhaps 
> using a custom decorator to declare and track this information into a 
> namespace?
> 
> Has anyone else worked on a scenario like this?  How did you handle it?
> 
> -- 
> 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 visit 
> https://groups.google.com/d/msgid/pylons-discuss/2cc3c09f-037a-4cf0-9a18-b464540a2305n%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 this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/cef7546c-e50c-c84c-6a93-40c6b85230b4%40gmail.com.


Re: [pylons-discuss] Pyramid 2.0 released

2021-03-12 Thread Steve Piercy
>From the release notes:

https://docs.pylonsproject.org/projects/pyramid/en/latest/changes.html#backward-incompatibilities

pyramid.config.Configurator.scan will no longer, by default, execute Venusian 
decorator callbacks registered for categories other than 'pyramid'. To find any 
decorator regardless of category, specify config.scan(..., categories=None). 
See https://github.com/Pylons/pyramid/pull/3510

That PR in turn fixed:

https://github.com/Pylons/pyramid/issues/3502

Which in turn referenced:

https://github.com/Pylons/pyramid/issues/495

I don't know if that answers your question, but please feel free to elaborate 
if it does not.  Thank you!

--steve


On 3/12/21 1:36 AM, Gerhard Schmidt wrote:
> Hi,
> 
> thanks for the work.
> 
> is there a reason why Configurator.scan() now has a default value of 
> ('pyramid',) for categories. In pyramid 1 the default was None.
> 
> The change causes that only callbacks in category 'pyramid' are called by 
> default. If the scanner called with categories=None, venusian asks the object 
> which categories are used and invoke all callbacks of the scanned package. 
> venusian.attach() stores all uses categories in an attribute of the object. 
> So the object knowns all used categories.
> 
> Some packages use different categories, so there callbacks are not called by 
> default. You have either call config.scan with all the categories used by 
> your product and all the packages you include or set categories=None when 
> calling the config.scan().
> 
> So is there a reason for this change, because it causes some issues when 
> migrating to pyramid 2.0.
> 
> Regards
>    Estartu
> 
> Am 01.03.21 um 04:40 schrieb Michael Merickel:
>> Yay, Pyramid 2.0 is out. Get it while it's hot!
>>
>> If you're able to run 1.10.8 without deprecation warnings then you're in a 
>> great spot to upgrade. Several warnings were added to 1.10.x releases to 
>> help you prepare.
>>
>> There's shockingly few backward-incompatible changes in this release, so 
>> don't let it scare you. There IS a laundry list of new features. Here are a 
>> few highlights:
>>
>> - First release to drop Python 2, as well as 3.4 and 3.5.
>>
>> - New security system for authentication/authorization. The legacy API is 
>> deprecated but available and backward compatible. ACLs and principals are 
>> not going away, but the policies are merged and restructured slightly which 
>> should be more consumable and flexible for users.
>>
>> - Several defaults have changed, such as serializing sessions using JSON 
>> instead of Pickle.
>>
>> - Cookiecutter and tutorials updated with new pytest fixtures.
>>
>> - The "pyramid.compat" module is gone.
>>
>> Read the "What's New in Pyramid 2.0" document for a comprehensive list of 
>> changes and upgrading notes:
>>
>> https://docs.pylonsproject.org/projects/pyramid/en/2.0-branch/whatsnew-2.0.html
>>  
>> <https://docs.pylonsproject.org/projects/pyramid/en/2.0-branch/whatsnew-2.0.html>
>>
>> 2.0 release documentation:
>>
>> https://docs.pylonsproject.org/projects/pyramid/en/2.0-branch/ 
>> <https://docs.pylonsproject.org/projects/pyramid/en/2.0-branch/>
>>
>> You can install it via PyPI:
>>
>>    pip install Pyramid==2.0
>>
>> As always report any issues to the issue tracker (or here on the mailing 
>> list).
>>
>> https://github.com/Pylons/pyramid/issues 
>> <https://github.com/Pylons/pyramid/issues>
>>
>> Special thanks to a few people specifically for their excellent work on this 
>> release:
>>
>> - Theron Luhn
>> - Bert JW Regeer
>> - Steve Piercy
>>
>> Thanks for everyone's efforts as well as support in getting this work done!
>>
>> - Pyramid core developers
>>
>> -- 
>> 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 
>> <mailto:pylons-discuss+unsubscr...@googlegroups.com>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/pylons-discuss/14F179EB-F647-42B7-845A-6091E1AFF697%40gmail.com
>>  
>> <https://groups.google.com/d/msgid/pylons-discuss/14F179EB-F647-42B7-845A-6091E1AFF697%40gmail.com?utm_medium=email&utm_source=footer>.
> 

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/d2303cbd-e04a-2700-4be6-842128984e0d%40gmail.com.


Re: [pylons-discuss] New Pyramid Project - have no package install

2021-03-05 Thread Steve Piercy
Interesting.  Given that the other files get written to D:\, I think it is 
unusual that the rest of the project files do not also get written.  I would 
suggest that you create a ticket in the PyCharm issue tracker, and reference 
your video:

https://youtrack.jetbrains.com/issues/PY

--steve


On 3/5/21 3:17 PM, Alex Kinchak wrote:
> Hi Andi, 
> thank you for the message.
> I have solved the problem changing path_to_project from D-disk to C-disk. Is 
> it mandatory to deploy projects on disk C (PyCharm installing location by 
> default) and no other?  
> 
> суббота, 6 марта 2021 г. в 02:09:58 UTC+3, andi@googlemail.com:
> 
> Hi Alex, 
> 
> I reproduced the things you mentioned and for me this seems to work fine. 
> Screenshots attached. 
> 
> Best, Andi
> 
> 
> 
> 
> 
> 
>> On 5. Mar 2021, at 23:23, Alex Kinchak  wrote:
>>
>> Thank you for the message. 
>> Yes,  from within Pycharm. I made video with once again trying to start 
>> but with the same result - VIDEO 
>> 
>> суббота, 6 марта 2021 г. в 00:16:37 UTC+3, jdavi...@gmail.com 
>> :
>>
>> Did you create the project from within Pycharm? I just tried it on 
>> my end to be sure, same version as you, using these settings:
>>
>> pycharm64_LGkPq21u0r.png
>>
>> and the resulting file structure looks like this, as intended:
>>
>> pycharm64_3r6a7opvk8.png
>> Maybe restart pycharm and try again?
>>
>> On Fri, Mar 5, 2021 at 3:10 PM Alex Kinchak  
>> wrote:
>>
>> Hello, 
>> I`m facing such a problem: when creating new Pyramid project (as 
>> 'myproject', PyCharm 2020.3) I have no one more (nested) 'myproject' package 
>> (with routes, views etc.). Maybe someone have any idea about it?
>> Thank you
>>
>> *SHOULD BE:*
>> SHOULD_BE.jpg
>>
>> *I HAVE:*
>> *I_HAVE.jpg
>> *
>>
>> -- 
>> 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-discus...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/pylons-discuss/f244d271-130d-43c3-ae15-d4c5862378efn%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-discus...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/pylons-discuss/5dcd9f64-4191-4ee9-a2c2-9063599ceaefn%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 this discussion on the web visit 
> https://groups.google.com/d/msgid/pylons-discuss/5790301d-dcf2-4eef-94a0-9971a1643881n%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 this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/f5c35c43-cc89-7aea-0736-f81c81399b8e%40gmail.com.


Re: [pylons-discuss] New Pyramid Project - have no package install

2021-03-05 Thread Steve Piercy
See also my lightning talk video from PloneConf 2020.

https://youtu.be/2kB9Wtg0j4s

Note that this is for PyCharm Professional.

Also important at 1:20 in the video there is an important comment about how 
PyCharm runs the first three steps in the README for you automatically, so you 
should not do them again.

--steve


On 3/5/21 1:15 PM, Jeremy D wrote:
> Did you create the project from within Pycharm? I just tried it on my end to 
> be sure, same version as you, using these settings:
> 
> pycharm64_LGkPq21u0r.png
> 
> and the resulting file structure looks like this, as intended:
> 
> pycharm64_3r6a7opvk8.png
> Maybe restart pycharm and try again?
> 
> On Fri, Mar 5, 2021 at 3:10 PM Alex Kinchak  > wrote:
> 
> Hello, 
> I`m facing such a problem: when creating new Pyramid project (as 
> 'myproject', PyCharm 2020.3) I have no one more (nested) 'myproject' package 
> (with routes, views etc.). Maybe someone have any idea about it?
> Thank you
> 
> *SHOULD BE:*
> SHOULD_BE.jpg
> 
> *I HAVE:*
> *I_HAVE.jpg
> *
> 
> -- 
> 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 visit 
> https://groups.google.com/d/msgid/pylons-discuss/f244d271-130d-43c3-ae15-d4c5862378efn%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 this discussion on the web visit 
> https://groups.google.com/d/msgid/pylons-discuss/CAKYctxK9rvVn6ExMGpPZ%3DTrv%3Dgzf_KaeBGCB8FxUJcM_NV%2B4TQ%40mail.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/9a802085-2f5c-1ec7-4b8d-54088e00c831%40gmail.com.


[pylons-discuss] WebOb 1.8.7 released

2021-02-18 Thread Steve Piercy
WebOb 1.8.7 released

Changes
https://docs.pylonsproject.org/projects/webob/en/stable/changes.html

Docs
https://docs.pylonsproject.org/projects/webob/en/stable/

PyPI
https://pypi.org/project/WebOb/1.8.7/

Issues
https://github.com/Pylons/webob/issues

-- 
-
Steve Piercy, Eugene, OR
w...@stevepiercy.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 this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/f765619d-0cb8-9135-a0ef-ea49e93da317%40gmail.com.


Re: [pylons-discuss] Cornice / Colander design for file upload

2021-02-09 Thread Steve Piercy
On 2/9/21 12:56 AM, Thierry Florac wrote:

> I found that Colander is probably lacking a few documentation about creating 
> and registering custom types and converters
I'd like to improve the docs.  Would you please open an issue with what you 
think is missing from this section?

https://docs.pylonsproject.org/projects/colander/en/latest/extending.html

I'd be happy to collaborate to make them more helpful.

--steve

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/aa88b42d-33a0-b3ad-cd6e-739ad81d3296%40gmail.com.


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

2021-02-01 Thread Steve Piercy
Thanks, I eventually did figure it out.  I had to set up a unique port for each 
app.  We use nginx, Docker containers, and Ansible to automate builds.

Docker:

published_ports:
  - "8522:8000"

published_ports:
  - "8523:8000"

nginx:

upstream backend_deformdemo {
server 127.0.0.1:8522 weight=1 max_fails=5 fail_timeout=30s;
}

upstream backend_deformdemo3 {
server 127.0.0.1:8523 weight=1 max_fails=5 fail_timeout=30s;
}

and success!

https://deformdemo.pylonsproject.org/
https://deformdemo3.pylonsproject.org/

--steve


On 1/31/21 11:59 PM, Thijs wrote:
> I have done this a few times, have you figured this out already or do you 
> need a hand?
> In my experience the best way to handle this is with docker-compose. You can 
> configure multiple containers each with a different (internal) hostname. And 
> then add a reverse proxy (I use nginx, but I have heard some great things 
> about Traefik) to map the internal hostnames to external paths/ports.
> Thijs
> 
> On Thu, Jan 28, 2021 at 2:25 PM Steve Piercy  <mailto:steve.piercy@gmail.com>> wrote:
> 
> Howdy,
> 
> I want to run two versions of Deform Demo on a single VM in Docker 
> containers.  I've been able to successfully build the Docker containers for 
> each version, but I do not know how to configure each Pyramid app (two 
> versions of Deform Demo in this case) to run with nginx as the upstream proxy 
> server.  Has anyone done something similar, and if so, what must I configure 
> to serve both apps?
> 
> I know it has something to do with port configuration (Deform v2 serves 
> just fine, but v3 continuously restarts and nginx cannot find it), but I lack 
> the knowledge and DuckDuckFu to figure out the details on my own.
> 
> --steve
> 
> -- 
> 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 
> <mailto:pylons-discuss%2bunsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/pylons-discuss/f51239cb-40c3-4f3d-d52a-7f82b7bce681%40gmail.com
>  
> <https://groups.google.com/d/msgid/pylons-discuss/f51239cb-40c3-4f3d-d52a-7f82b7bce681%40gmail.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 
> <mailto:pylons-discuss+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/pylons-discuss/CAHnCEofdYYBTpfqa_qJ3ibpJq0z94O1MZkRYSZFaCM1%3D_n4RRA%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/pylons-discuss/CAHnCEofdYYBTpfqa_qJ3ibpJq0z94O1MZkRYSZFaCM1%3D_n4RRA%40mail.gmail.com?utm_medium=email&utm_source=footer>.

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/659a1efa-3be6-b78f-f0bd-0c2103f25cca%40gmail.com.


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

2021-02-01 Thread Steve Piercy
On 1/31/21 11:59 PM, Thijs wrote:
> I have done this a few times, have you figured this out already or do you 
> need a hand?
> In my experience the best way to handle this is with docker-compose. You can 
> configure multiple containers each with a different (internal) hostname. And 
> then add a reverse proxy (I use nginx, but I have heard some great things 
> about Traefik) to map the internal hostnames to external paths/ports.
> Thijs
> 
> On Thu, Jan 28, 2021 at 2:25 PM Steve Piercy  <mailto:steve.piercy@gmail.com>> wrote:
> 
> Howdy,
> 
> I want to run two versions of Deform Demo on a single VM in Docker 
> containers.  I've been able to successfully build the Docker containers for 
> each version, but I do not know how to configure each Pyramid app (two 
> versions of Deform Demo in this case) to run with nginx as the upstream proxy 
> server.  Has anyone done something similar, and if so, what must I configure 
> to serve both apps?
> 
> I know it has something to do with port configuration (Deform v2 serves 
> just fine, but v3 continuously restarts and nginx cannot find it), but I lack 
> the knowledge and DuckDuckFu to figure out the details on my own.
> 
> --steve
> 
> -- 
> 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 
> <mailto:pylons-discuss%2bunsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/pylons-discuss/f51239cb-40c3-4f3d-d52a-7f82b7bce681%40gmail.com
>  
> <https://groups.google.com/d/msgid/pylons-discuss/f51239cb-40c3-4f3d-d52a-7f82b7bce681%40gmail.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 
> <mailto:pylons-discuss+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/pylons-discuss/CAHnCEofdYYBTpfqa_qJ3ibpJq0z94O1MZkRYSZFaCM1%3D_n4RRA%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/pylons-discuss/CAHnCEofdYYBTpfqa_qJ3ibpJq0z94O1MZkRYSZFaCM1%3D_n4RRA%40mail.gmail.com?utm_medium=email&utm_source=footer>.

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/33b6cf50-9b89-597f-d1ff-bc2caa04793b%40gmail.com.


[pylons-discuss] Deform Demo v3 deployed

2021-01-28 Thread Steve Piercy
Howdy,

Deform 3 has been under active development for the last few months, and now we 
have a live demo for both Deform 2.0.x and Deform 3.

Deform Demo v2.  Active development is on the `2.0-branch` branch of Deform and 
DeformDemo.
https://deformdemo.pylonsproject.org/
https://deformdemo2.pylonsproject.org/

Deform Demo v3.  Active development is on the `main` branch of Deform and 
DeformDemo.
https://deformdemo3.pylonsproject.org/

In addition, you might notice that there is now an "Unofficial Deform Demo" 
tab.  The unofficial Deform Demo provides a space for contributors to add 
custom widgets that are not supported with the usual rigorous tests and 
documentation that is required by the Pylons Project.

Special thank you to @bertjwregeer for helping me get unstuck several times to 
finally get this deployed.

Enjoy!

--steve

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/334c843c-72c9-6db0-99f1-c418f1f378f7%40gmail.com.


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

2021-01-28 Thread Steve Piercy
Howdy,

I want to run two versions of Deform Demo on a single VM in Docker containers.  
I've been able to successfully build the Docker containers for each version, 
but I do not know how to configure each Pyramid app (two versions of Deform 
Demo in this case) to run with nginx as the upstream proxy server.  Has anyone 
done something similar, and if so, what must I configure to serve both apps?

I know it has something to do with port configuration (Deform v2 serves just 
fine, but v3 continuously restarts and nginx cannot find it), but I lack the 
knowledge and DuckDuckFu to figure out the details on my own.

--steve

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/f51239cb-40c3-4f3d-d52a-7f82b7bce681%40gmail.com.


Re: [pylons-discuss] Pyramid packaging

2021-01-26 Thread Steve Piercy
pip 21.0 was released on 2021-01-23.  It dropped support for Python 3.5.

https://pip.pypa.io/en/latest/news/#id2

Perhaps try pinning pip to <21.0?

You could also stop supporting Python 3.5, which was EOLed as of 2020-09-13.

--steve


On 1/26/21 1:27 AM, Thierry Florac wrote:
> Hi,
> 
> Sorry if this is not a real Pyramid topic, but I'm looking for a few 
> advices...
> 
> I'm using zc.buildout for a very long time, with zc.recipe.egg, to build all 
> my Python packages and also to handle all my deployment environments, and 
> I've always been very happy with it!  :)
> But since a few days, I can't install zc.recipe.egg with any Python 3.6 or 
> higher version, only with Python 3.5! Here is a traceback from a Gitlab-CI 
> job with Python 3.7:
> 
> 52 
> $
>  ./bin/buildout
> 65 Setting 
> socket time out to 3 seconds.
> 66 Develop: 
> '/builds/pyams/pyams-security/.'
> 67 warning: no 
> files found matching '*.txt'
> 68 warning: no 
> previously-included files matching '*.pyc' found anywhere in distribution
> 69 warning: no 
> previously-included files matching '*.*~' found anywhere in distribution
> 70 Couldn't 
> develop '/builds/pyams/pyams-security/../ext/lingua' (not found)
> 71 Couldn't 
> develop '/builds/pyams/pyams-security/../pyams_catalog' (not found)
> 72 Couldn't 
> develop '/builds/pyams/pyams-security/../pyams_file' (not found)
> 73 Couldn't 
> develop '/builds/pyams/pyams-security/../pyams_i18n' (not found)
> 74 Couldn't 
> develop '/builds/pyams/pyams-security/../pyams_mail' (not found)
> 75 Couldn't 
> develop '/builds/pyams/pyams-security/../pyams_site' (not found)
> 76 Couldn't 
> develop '/builds/pyams/pyams-security/../pyams_utils' (not found)
> 77 Getting 
> distribution for 'zc.recipe.egg==2.0.7'.
> 78 Traceback 
> (most recent call last):
> 79 File 
> "", line 1, in 
> 80 ImportError: 
> cannot import name 'main' from 'setuptools.command.easy_install' 
> (/usr/local/lib/python3.7/site-packages/setuptools/command/easy_install.py)
> 81 An error 
> occurred when trying to install 
> /tmp/tmpfpwsm7_5get_dist/zc.recipe.egg-2.0.7.tar.gz. Look above this message 
> for any errors that were output by easy_install.
> 82 While:
> 83 Installing.
> 84 Getting 
> section package.
> 85 Initializing 
> section package.
> 86 Installing 
> recipe zc.recipe.egg.
> 87 Getting 
> distribution for 'zc.recipe.egg==2.0.7'.
> 88 An internal 
> error occurred due to a bug in either zc.buildout or in a
> 89 recipe being 
> used:
> 90 Traceback 
> (most recent call last):
> 91 File 
> "/builds/pyams/pyams-security/eggs/zc.buildout-2.13.3-py3.7.egg/zc/buildout/buildout.py",
>  line 2174, in main
> 92 
> getattr(buildout,
>  command)(args)
> 93 File 
> "/builds/pyams/pyams-security/eggs/zc.buildout-2.13.3-py3.7.egg/zc/buildout/buildout.py",
>  line 701, in install
> 94 
> [self[part]['recipe']
>  for part in install_parts]
> 95 File 
> "/builds/pyams/pyams-security/eggs/zc.buildout-2.13.3-py3.7.egg/zc/buildout/buildout.py",
>  line 70

Re: [pylons-discuss] Creating sub-processes from Pyramid application

2021-01-06 Thread Steve Piercy
On 1/6/21 9:51 AM, Theron Luhn wrote:
> Seems like a good time to plug my new project:  
> https://pypi.org/project/pyramid-tasks/ 
> 
> 
> Pyramid and Celery are so dramatically different it’s a pain to integrate 
> them, and any code shared between them can’t access anything 
> Pyramid-specific.  Got tired of trying to make a square peg fit in a round 
> hole, so I brought my entire Pyramid application over to my Celery worker.  
> Having a request object available in a Celery task is incredibly convenient, 
> and my code is much tidier not having to tiptoe around the differences in 
> environments.

I think this would be a good add-on to add to Extending Pyramid.

https://trypyramid.com/extending-pyramid.html

If you submit a PR, we'll merge it and deploy.

Also if you Tweet to @PylonsProject, I'll retweet it.

--steve

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/9f348d0b-12b3-f029-7782-56be25ea0a92%40gmail.com.


Re: [pylons-discuss] Testing with chameleon templates fails

2020-12-19 Thread Steve Piercy
I don't know why you have this issue.  However, the scaffolds generated from 
pcreate have been deprecated since Pyramid 1.8 and will be removed in Pyramid 
2.0.  Instead use its replacement pyramid-cookiecutter-starter.

https://docs.pylonsproject.org/projects/pyramid/en/master/changes.html#id18
https://github.com/Pylons/pyramid-cookiecutter-starter

--steve


On 12/19/20 4:10 PM, silvi...@gmail.com wrote:
> Hello,
> 
> I have the following structure (made with pcreate -t zodb)
> 
> ├── CHANGES.txt
> ├── Data.fs
> ├── Data.fs.index
> ├── Data.fs.lock
> ├── Data.fs.tmp
> ├── MANIFEST.in
> ├── README.txt
> ├── Test.fs
> ├── Test.fs.index
> ├── Test.fs.lock
> ├── Test.fs.tmp
> ├── development.ini
> ├── production.ini
> ├── pytest.ini
> ├── setup.py
> ├── test02
> │   ├── __init__.py
> │   ├── models.py
> │   ├── static
> │   │   ├── pyramid-16x16.png
> │   │   ├── pyramid.png
> │   │   └── theme.css
> │   ├── templates
> │   │   └── mytemplate.pt
> │   ├── tests.py
> │   └── views.py
> └── test02.egg-info
>     ├── PKG-INFO
>     ├── SOURCES.txt
>     ├── dependency_links.txt
>     ├── entry_points.txt
>     ├── not-zip-safe
>     ├── requires.txt
>     └── top_level.txt
> 
> # test02/__init__.py
> 
> from pyramid.config import Configurator
> from pyramid_zodbconn import get_connection
> from .models import appmaker
> 
> 
> def root_factory(request):
>     conn = get_connection(request)
>     return appmaker(conn.root())
> 
> 
> def main(global_config, **settings):
>     """ This function returns a Pyramid WSGI application.
>     """
>     config = Configurator(root_factory=root_factory, settings=settings)
>     settings = config.get_settings()
>     settings['tm.manager_hook'] = 'pyramid_tm.explicit_manager'
>     config.include('pyramid_chameleon')  # included also in .ini
>     config.add_static_view('static', 'static', cache_max_age=3600)
>     config.scan()
>     return config.make_wsgi_app()
> 
> 
> My test is quite simple
> 
> # test02/tests.py
> import unittest
> 
> from pyramid import testing
> from webtest import TestApp
> from pyramid.paster import get_app
> 
> 
> class FuncTests(unittest.TestCase):
>     def setUp(self):
>         app = get_app('development.ini')
>         self.testApp = TestApp(app)
> 
>     def tearDown(self):
>         testing.tearDown()
> 
>     def test_root(self):
>         r = self.testApp.get('/')
> 
> # development.ini
> [app:main]
> use = egg:test02
> 
> pyramid.reload_templates = true
> pyramid.debug_authorization = false
> pyramid.debug_notfound = false
> pyramid.debug_routematch = false
> pyramid.default_locale_name = en
> pyramid.includes =
>     pyramid_debugtoolbar
>     pyramid_zodbconn
>     pyramid_tm
>     pyramid_chameleon
> 
> The view works fine but fails in testing.
> 
> # test02/views.py
> from pyramid.view import view_config
> from .models import MyModel
> 
> 
> @view_config(context=MyModel, renderer='templates/mytemplate.pt')
> def my_view(request):
>     return {'project': 'test02'}
> 
> 
> However if I run pytest test02/tests.py I get this error
> 
> self = , path = 
> '/home/silviud/PROGS/test02/test02/templates/mytemplate.pt'
> 
>     def _has(self, path):
>>       raise NotImplementedError(
>             "Can't perform this operation for unregistered loader type"
>         )
> E       NotImplementedError: Can't perform this operation for unregistered 
> loader type
> 
> ../../Envs/test01/lib/python3.8/site-packages/pkg_resources/__init__.py:1472: 
> NotImplementedError
> 
> 
> Not sure what is wrong ... these are the versions I use
> 
> pip show pkg_resources
> Name: pkg-resources
> Version: 0.0.0
> Summary: UNKNOWN
> Home-page: UNKNOWN
> Author: UNKNOWN
> Author-email: UNKNOWN
> License: UNKNOWN
> Location: /home/silviud/Envs/test01/lib/python3.8/site-packages
> Requires:
> Required-by:
> --
> pip show pyramid
> Name: pyramid
> Version: 1.10.5
> Summary: The Pyramid Web Framework, a Pylons project
> Home-page: https://trypyramid.com
> Author: Chris McDonough, Agendaless Consulting
> Author-email: pylons-discuss@googlegroups.com
> License: BSD-derived (Repoze)
> Location: /home/silviud/Envs/test01/lib/python3.8/site-packages
> Requires: plaster-pastedeploy, venusian, zope.interface, plaster, hupper, 
> webob, translationstring, zope.deprecation, setuptools
> Required-by: test01, pyramid-zodbconn, pyramid-tm, pyramid-mako, 
> pyramid-jinja2, pyramid-debugtoolbar, pyramid-chameleon, test02
> --
> pip show pyramid_chameleon
> Name: pyramid-chameleon
> Version: 0.3
> Summary: pyramid_chameleon
> Home-page: https://github.com/Pylons/pyramid_chameleon
> Author: r...@koansys.com, Pylons & Pyramid community
> Author-email: pylons-discuss@googlegroups.com
> License: BSD-derived (http://www.repoze.org/LICENSE.txt)
> Location: /home/silviud/Envs/test01/lib/python3.8/site-packages
> Requires: Chameleon, pyramid
> Required-by: test02
> 
> 
> thank you,
> 
> -silviu
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "pylons-d

Re: [pylons-discuss] Poetry and Pyramid

2020-12-13 Thread Steve Piercy
This would be a good Pyramid Community Cookbook recipe.

https://docs.pylonsproject.org/projects/pyramid_cookbook/en/latest/

--steve


On 12/13/20 3:13 PM, Michael Merickel wrote:
> I cooked up a pyproject.toml that almost works like the setuptools version 
> for the Pyramid scaffold. There is one minor difference in which files are 
> included in the sdist versus wheel, but it's an open bug in poetry to fix.
> 
> You simply use this file in your project, then do things like `poetry 
> install` and `poetry run pserve development.ini`.
> 
> https://gist.github.com/mmerickel/33bc8edc633da132a8f92dbcb03ec1da 
> 
> 
> - Michael
> 
>> On Dec 11, 2020, at 19:13, MJF > > wrote:
>>
>> I have been away from using Pyramid (well, from starting a new project in 
>> Pyramid) for a handful of years. Since then, I've grown to like using 
>> Poetry[1] in my Python development work.
>>
>> I see that there was some discussion[2] a couple years ago about this; I 
>> don't see a resolution, though it seems that mmerickel also likes poetry :-) 
>> [3]
>>
>> I'd like to continue to use Poetry in my work, and I'd like to use Pyramid 
>> too; it seems that they use wholly different ways of dealing with 
>> scripts/entrypoints, etc.
>>
>> There are no hits for "poetry" on this mailing list; my online searches for 
>> pyramid and poetry are coming up dry too. Does anyone have any resources for 
>> how to make these tools work together?
>>
>> 1: https://python-poetry.org/ 
>> 2: https://github.com/Pylons/pyramid/issues/3270 
>> 
>> 3: https://github.com/Pylons/pyramid/issues/3270#issuecomment-385475580 
>> 
>>
>>
>> -- 
>> 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 visit 
>> https://groups.google.com/d/msgid/pylons-discuss/fd66e280-036e-434e-a777-78d9b8b37782n%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 this discussion on the web visit 
> https://groups.google.com/d/msgid/pylons-discuss/ED50998D-5172-4F12-9674-B7E8028D76BE%40gmail.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 this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/25a75a7e-0fe4-469b-a95c-4ff987b33ed5%40gmail.com.


[pylons-discuss] Deform and DeformDemo 2.0.15 released

2020-12-10 Thread Steve Piercy
Deform and DeformDemo 2.0.15 have been released.

Here are the major changes.

- Add support of Python 3.8 and 3.9.

- Added a new widget SelectizeWidget based on the jQuery plugin selectize.js.

- Improved handling of the readonly HTML attribute in certain widgets.

- Optionally bypass the resource registry and specify a resource as a dict.

- Clarify that a sequence type (list, tuple, or x/range) is required for values 
passed into a SelectWidget or RadioChoiceWidget.

- Switch from using nosetests to pytest as the test runner.

- Switch from Travis-CI and Appveyor to GitHub Actions.

- Add Docker containerization of Deform and deformdemo as an option for running 
tests, and improve related documentation.

See the full change history.

https://docs.pylonsproject.org/projects/deform/en/2.0-branch/changes.html#id1

Widget demos
https://deformdemo.pylonsproject.org/

Documentation
https://docs.pylonsproject.org/projects/deform/en/latest/

GitHub
https://github.com/pylons/deform

PyPI
https://pypi.org/project/deform/2.0.15

Enjoy, and please report any issues you find to the issue tracker at
https://github.com/Pylons/deform/issues

Thanks!

- Deform developers

p.s. -- As the maintainer of Deform, I want to extend my gratitude to the 
GitHub users sydoluciani, tdamsma, and tisdall for their contributions, as well 
as ergo, bertjwregeer, and mmerickel for their contributions to automating the 
deployment of deformdemo.

--steve

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/95e014e5-29dd-5728-ba57-fccb873b9a53%40gmail.com.


[pylons-discuss] PloneConf 2020 Sprints, Sat, Dec 12 and Sun, Dec 13

2020-12-09 Thread Steve Piercy
Howdy all you beautiful Pylons Project people,

Sprints are an opportunity to contribute to open source software, 
documentation, and organizations.  It's a rare opportunity to share work 
amongst colleagues, and to teach and learn from one another in real time.

PloneConf 2020 sprints will take place as follows.

2020-12-12 00:00:00 UTC - 2020-12-13 23:59:59 UTC

A stand-up will take place each day to report on your sprint topic status.

2020-12-12 17:00:00 UTC
2020-12-13 17:00:00 UTC

The sprints will use Discord for chat, voice, video, and screen sharing.

https://discord.gg/jRTMGGNTmu

The list of sprint topics is available both in Discord and on a Google Doc.  
Please add and edit your sprint topic, and add your name to any number of 
topics.

https://docs.google.com/document/d/1DeDRbtsriyt_FJO4wRvMZ0yydI1q4TvCMhuvrBcJmkc/edit#

Sprint topic leaders should create a channel for your sprint topic and provide 
a link to the discord server.

Please share this announcement.

Thank you!
-- 
-
Steve Piercy, Eugene, OR
w...@stevepiercy.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 this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/35a21ed2-ec0d-8aea-80c8-495a3819f0fb%40gmail.com.


Re: [pylons-discuss] Testing advise

2020-12-06 Thread Steve Piercy
Hi Lele,

Your project would be a nice addition to Powered by Pyramid:

https://trypyramid.com/community-powered-by-pyramid.html

Please consider submitting a pull request to add it.  Thank you!

--steve


On 12/6/20 2:41 AM, Lele Gaifax wrote:
> Hi all,
> 
> I'm used to have something like the following in my tests setup:
> 
>   
> https://gitlab.com/metapensiero/SoL/-/blob/master/tests/server/conftest.py#L45
> 
> that allows me to use the route name in my tests instead of the view URL,
> like:
> 
>   
> https://gitlab.com/metapensiero/SoL/-/blob/master/tests/server/test_data.py#L15
> 
> I wonder if I'm missing some existing similar facility, of if instead that
> approach could be suggested in the documentation, say here
> 
>   
> https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/testing.html#creating-functional-tests
> 
> What do you think?
> 
> Thanks&bye, lele.
> 

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/acafe7f5-53a4-8d28-f551-645eaad80c22%40gmail.com.


[pylons-discuss] Pyramid and Pylons Project at PloneConf 2020

2020-12-04 Thread Steve Piercy
Howdy,

Join us for a training, two talks, a few lightning talks, and sprints on 
Pyramid and other Pylons Projects at PloneConf 2020.

Tickets are $100 and include all trainings, talks, and sprints.

Pyramid Training - Dec 5, 3p-7p CET
https://2020.ploneconf.org/trainings/pyramid/view

Pyramid and the Pylons Project in the wild - Dec 9, 5:30-6:00p CET
https://2020.ploneconf.org/talks/pyramid

Pyramid and Role-Based Access Control - Dec 9, 6:10-6:40p CET
https://2020.ploneconf.org/talks/pyramid-and-role-based-access-control/view

Full schedule:
https://2020.ploneconf.org/schedule

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/f2d91786-c897-c791-2d83-2ff8c05b65c5%40gmail.com.


[pylons-discuss] Re: Waitress 2.0.0 beta is out

2020-12-03 Thread Steve Piercy
Following up, Waitress 2.0.0b1 has been released.

   - Fix a crash on startup when listening to multiple interfaces. See 
   https://github.com/Pylons/waitress/pull/332

--steve

On Thursday, November 26, 2020 at 10:58:08 PM UTC-8 Bert JW Regeer wrote:

> Hey all,
>
> I’ve just released the Waitress 2.0.0 beta, this version has the following 
> notable changes:
>
> - Drops Python 2.7 and Python 3.5 support
> - No longer attempts to use reverse DNS lookups to guess the server_name
> - Updates waitress to allow it to continue reading from the client socket 
> so that the WSGI app can poll and validate the client is still really there 
> and hasn’t disappeared in the mean time. This behavior is great for when 
> you are doing long running queries or expensive calculations and you want 
> to validate that the client hasn’t disappeared yet. This feature requires 
> an argument to be passed to waitress and by default there is no difference 
> with prior versions of waitress.
>
> With thanks to Viktor Dick for his work on the latter part. This also 
> updates the way that waitress schedules work for HTTP pipelined requests 
> (although those are rare these days due to clients removing support for it).
>
> I need people to test this version before I release it so we can try to 
> catch any potential regressions.
>
> It’s available from PyPi: https://pypi.org/project/waitress/2.0.0b0/
>
> As always, please file issues https://github.com/Pylons/waitress/issues
>
> Thank you,
> Bert JW Regeer
>
>
>

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/07741987-b287-4087-85f9-83ee9b34c73dn%40googlegroups.com.


Re: [pylons-discuss] Pyramid integration with OpenAPI

2020-12-02 Thread Steve Piercy
List of Pyramid Add-ons (not comprehensive, as there are many more on PyPI and 
GitHub)
https://trypyramid.com/extending-pyramid.html

pyramid_openapi3 is actively developed.  There are examples in the repo and a 
live demo of both the app and API (the demo takes a while to startup if it has 
not been recently hit).
https://github.com/Pylons/pyramid_openapi3
https://pyramid-openapi3.pylonsproject.org/
https://pyramid-openapi3.pylonsproject.org/api

--steve

On 12/2/20 4:58 PM, silvi...@gmail.com wrote:
> Hi,
> 
> I'm wondering what packages can be used to build a REST API with Pyramid.
> The only requirements I have
> 
> - be able to input/output json(built in pyramid)
> - documentation for Openapi (should be generated)
> - validation based on the Openapi schema for request and response
> 
> thanks!
> 
> -silviu
> 
> -- 
> 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 visit 
> https://groups.google.com/d/msgid/pylons-discuss/2571d091-8fc6-4011-80d7-45e8b9a92b4dn%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 this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/f57c171c-6410-e68f-b387-8c8c4fe310cb%40gmail.com.


[pylons-discuss] pylons-sphinx-themes 1.0.12 released

2020-11-29 Thread Steve Piercy
pylons-sphinx-themes 1.0.12 has been released.

The full changelog is here:
https://github.com/Pylons/pylons-sphinx-themes/blob/master/CHANGES.txt

You can install it via PyPI:

  pip install pylons-sphinx-themes==1.0.12

Enjoy, and please report any issues you find to the issue tracker at
https://github.com/pylons/pylons-sphinx-themes/issues

Thanks!

- Pylons Project core developers

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/fa6b0b2c-7786-a229-486e-293aed5a812b%40gmail.com.


[pylons-discuss] Colander 1.8.3 released

2020-11-28 Thread Steve Piercy
Colander 1.8.3 has been released.

The full changelog is here:
https://docs.pylonsproject.org/projects/colander/en/latest/changes.html

Documentation
https://docs.pylonsproject.org/projects/colander/en/latest/

You can install it via PyPI:

  pip install colander==1.8.3

Enjoy, and please report any issues you find to the issue tracker at
https://github.com/Pylons/colander/issues

Thanks!

- Pylons Project core developers

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/37ceabee-a95b-0725-4073-5111e06a036e%40gmail.com.


[pylons-discuss] pyramid_debugtoolbar 4.9 released

2020-11-24 Thread Steve Piercy
Howdy,

pyramid_debugtoolbar 4.9 has been released.

The full changelog is here:
https://docs.pylonsproject.org/projects/pyramid_debugtoolbar/en/latest/changes.html

Docs
https://docs.pylonsproject.org/projects/pyramid_debugtoolbar/en/latest/#session

You can install it via PyPI:

  pip install pyramid_debugtoolbar==4.9

Enjoy, and please report any issues you find to the issue tracker at
https://github.com/pylons/pyramid_debugtoolbar/issues

Thanks!

- Pyramid core developers

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/2290d5e0-48e7-39ed-220d-2f9e7743423a%40gmail.com.


[pylons-discuss] Pyramid and Pylons Project at PloneConf

2020-11-24 Thread Steve Piercy
Howdy,

We are pleased to announce that the Pylons Project and contributors will be 
participating in PloneConf 2020, on December 5-13, 2020. Join us during the 
conference for trainings, presentations, lightning talks, and code sprints.

Get your tickets now.

https://tickets.ploneconf.org/

The sprint is free to attend for everyone. You can join us remotely on the 
#pyramid IRC channel.

https://webchat.freenode.net/#pyramid

- Training: Pyramid Quick Tutorial
- Talk: Pyramid and the Pylons Project in the wild
- Talk: Pyramid and Role-Based Access Control
- Lightning Talk: Creating a Pyramid Project in PyCharm Professional
- Lightning Talk: Deform and Deform Demo
- Code Sprint: Pylons Project projects

https://trypyramid.com/community-events.html

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/8ab23155-9b5d-c439-c3f8-0b50ec383ec4%40gmail.com.


[pylons-discuss] pyramid_openapi3 0.10.2 released

2020-10-27 Thread Steve Piercy
pyramid_openapi3 0.10.2 has been released.

The full changelog is here:
https://github.com/Pylons/pyramid_openapi3/blob/master/CHANGELOG.md

Documentation:
https://github.com/Pylons/pyramid_openapi3#validate-pyramid-views-against-an-openapi-30-document

You can install it via PyPI:

  pip install pyramid_openapi3==0.10.2

Enjoy, and please report any issues you find to the issue tracker at
https://github.com/Pylons/pyramid_openapi3/issues

Thanks!

- Pylons Project core developers

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/c54d7454-cde3-94b6-ee62-c543f1841907%40gmail.com.


Re: [pylons-discuss] Re: Pyramid or Pylons Project Tutorial Session at PloneConf

2020-10-24 Thread Steve Piercy
Talk submissions are still happening.  The list of all sessions will be posted 
in a week or so.  I might sign up for a lightning talk for deformdemo, unless 
you want to do that.  I already committed to a Pyramid tutorial (4 hours) and a 
30-minute Pyramid talk, subject TBD.

https://docs.google.com/forms/d/e/1FAIpQLSdUYas_sVxMxWBxBfIU67tEN0KlQIzvGnq69bvwgKivLj518Q/viewform

Early bird pricing of tickets is USD$75 through 2020-10-25.  Includes 
tutorials, talks, and sprints.  What a deal!

https://tickets.ploneconf.org/

There are some super interesting things happening within Plone with its REST 
API and React frontend called Volto.  That alone would be worth the price of 
admission.

All the PloneConf 2019 talks are posted on the Plone YouTube channel.  
Tutorials are not recorded.

https://www.youtube.com/playlist?list=PLGN9BI-OAQkQD9HliElIk9pe-8O_Y6S04

Here's Nejc's talk that includes pyramid_openapi3.

https://youtu.be/P0zNxrDO0sE

--steve


On 10/24/20 3:53 PM, sydo.l...@gmail.com wrote:
> I can't contribute in presentation this year, but might buy a ticket if I 
> have the full list of training materials and sprint subjects.
> 
> Deform makes a good presentation candidate considering it does not depend on 
> any particular web framework, specially if deformdemo presented to attract 
> more contributors to submit custom widgets and forms.
> 
> Is last year pyramid_openapi3 presentation available online ?
> If it is not available online, may be a quick presentation on 
> pyramid_openapi3 again.
> 
> On Tuesday, 20 October 2020 at 07:41:13 UTC-5 Steve Piercy wrote:
> 
> Howdy,
> 
> The organizers of PloneConf (https://2020.ploneconf.org/) have asked me 
> to present a Pyramid tutorial, but I'm hesitant to do a full session all by 
> my lonesome. Last year Nejc and I presented pyramid_openapi3. This year we 
> could do how to get started with Pyramid. PloneConf will be online this year, 
> so no katanas or castles.
> 
> There is a choice of two tutorial slots, each 4 hours long, 2pm - 6pm 
> UTC, on either Saturday 2020-12-05 or Sunday 2020-12-06.
> 
> If you are interested in presenting anything about Pyramid at PloneConf, 
> please let me know. I'm even considering Deform and Colander, but I don't 
> know if anyone besides me and a handful of users still uses them.
> 
> --steve
> 
> -- 
> 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 
> <mailto:pylons-discuss+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/pylons-discuss/318c3a05-fc2a-4f14-9ca2-3aa0ed019937n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/pylons-discuss/318c3a05-fc2a-4f14-9ca2-3aa0ed019937n%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/0992b591-a2ae-c1f4-c34d-f5578fcf85e7%40gmail.com.


[pylons-discuss] pyramid_debugtoolbar 4.7 and 4.8 released

2020-10-23 Thread Steve Piercy
Hello,

pyramid_debugtoolbar 4.7 and 4.8 have been released.

The full changelog is here:
https://docs.pylonsproject.org/projects/pyramid_debugtoolbar/en/latest/changes.html

Documentation:
https://docs.pylonsproject.org/projects/pyramid_debugtoolbar/en/latest/

You can install it via PyPI:

  pip install pyramid_debugtoolbar==4.8

Enjoy, and please report any issues you find to the issue tracker at
https://github.com/Pylons/pyramid_debugtoolbar/issues

Thanks!

- Pylons Project core developers

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/63e02e6e-5cb4-6125-e78f-5ea988cc7176%40gmail.com.


[pylons-discuss] Pyramid or Pylons Project Tutorial Session at PloneConf

2020-10-20 Thread Steve Piercy
Howdy,

The organizers of PloneConf (https://2020.ploneconf.org/) have asked me to 
present a Pyramid tutorial, but I'm hesitant to do a full session all by my 
lonesome.  Last year Nejc and I presented pyramid_openapi3.  This year we could 
do how to get started with Pyramid.  PloneConf will be online this year, so no 
katanas or castles.

There is a choice of two tutorial slots, each 4 hours long, 2pm - 6pm UTC, on 
either Saturday 2020-12-05 or Sunday 2020-12-06.

If you are interested in presenting anything about Pyramid at PloneConf, please 
let me know.  I'm even considering Deform and Colander, but I don't know if 
anyone besides me and a handful of users still uses them.

--steve

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/f69fa623-ef34-ef82-cb80-3de6173858f6%40gmail.com.


Re: [pylons-discuss] Help set up VSCode debugging + Pyramid App + docker

2020-10-05 Thread Steve Piercy
I have not had success using the PyCharm debugger with Docker.  Supposedly it 
is possible, but I have not found the magic combination of switches to flip and 
knobs to turn.

--steve


On 10/5/20 3:31 PM, Bach wrote:
> Thanks Steve I've had a good start following that youtube video and looking 
> through deformdemo (thanks for the pointer)
> But I can't get the *ptvsd* debugger to stop at breakpoints.. It's like it 
> attaches, but is not serving the app.. pserve is. So can't stop on 
> breakpoints.
> 
> Perhaps I need to move to debugpy <https://github.com/microsoft/debugpy> 
> instead..
> 
> *Dockerfile*
> 
> 
> docker-compose.yml
> 
> 
> launch.js
> 
> 
> 
> 
> 
> On Monday, 5 October 2020 at 14:35:43 UTC+11 Steve Piercy wrote:
> 
> Check out deformdemo. It might help you get part of the way there.
> 
> https://github.com/Pylons/deformdemo
> 
> --steve
> 
> 
> On 10/4/20 8:20 PM, Bach wrote:
> > Hi everyone,
> >
> > been trying to setup Visual Studio Code to debug my Pyramid App running 
> inside a docker container.
> >
> > Does anyone have any sample files to share where you got that setup to 
> work:
> > - Dockerfile
> > - docker-compose.yml
> > - launch.json 
> >
> > I initially setup an environment as described in this video, but the 
> example uses Flask and not pserve:
> > https://www.youtube.com/watch?v=b78Tg-YmJZI
> >
> > Any help or direction will be really appreciated!
> >
> > 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...@googlegroups.com 
> <mailto:pylons-discuss+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/pylons-discuss/8980fc68-155f-4348-8109-9bd5a9e8b055n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/pylons-discuss/8980fc68-155f-4348-8109-9bd5a9e8b055n%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/00b743eb-6cac-8e4b-6e4d-6e7d114bf75d%40gmail.com.


Re: [pylons-discuss] Help set up VSCode debugging + Pyramid App + docker

2020-10-04 Thread Steve Piercy
Check out deformdemo.  It might help you get part of the way there.

https://github.com/Pylons/deformdemo

--steve


On 10/4/20 8:20 PM, Bach wrote:
> Hi everyone,
> 
> been trying to setup Visual Studio Code to debug my Pyramid App running 
> inside a docker container.
> 
> Does anyone have any sample files to share where you got that setup to work:
> - Dockerfile
> - docker-compose.yml
> - launch.json 
> 
> I initially setup an environment as described in this video, but the example 
> uses Flask and not pserve:
> https://www.youtube.com/watch?v=b78Tg-YmJZI
> 
> Any help or direction will be really appreciated!
> 
> 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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/d8eef97b-5857-283d-a883-3e51f4c2a574%40gmail.com.


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

2020-10-02 Thread Steve Piercy
Deform uses Colander and Peppercorn.  Use Colander for schemas and validation.  
There are no tutorials to migrate, but the demo should provide sufficient 
Colander schema examples for each Deform widget that you want.  If you don't 
see something, ask!

--steve


On 10/2/20 1:00 PM, 'Jonathan Vanasco' via pylons-discuss wrote:
> Thanks, Stev!
> 
> Deform is high on the list; I should have been more specific - I'm looking 
> for any guidelines/tutorials/tools to migrate the code from Formencode to 
> other libraries.  I have a lot of forms schemas/definitions to migrate.  I 
> wrote my own validation layer, so I'm not too worried about migrating the 
> code that interacts with forms.
> 
> FormEncode should my *last* Python2 library to support!  There is a 
> longstanding bug on it file uploads breaking on Python3 . I've been using 
> someone's stale PR as a patch for 2 years now, but that is just making 
> everything too fragile so I try to keep all those apps running under Python2..
> 
> 
> On Friday, October 2, 2020 at 3:40:22 PM UTC-4 Steve Piercy wrote:
> 
> On 10/2/20 10:06 AM, 'Jonathan Vanasco' via pylons-discuss wrote:
> > Does anyone have tips/advice for migrating away from Formencode?
> 
> For server side rendering of forms, Deform is under active development 
> and works under both Python 2 and 3.
> 
> Demo:
> https://deformdemo.pylonsproject.org/
> 
> GitHub:
> https://github.com/pylons/deform
> 
> Deform 3.0.0 will use Bootstrap 4 for its templates and drop Python 2 
> support, although it might still work under Python 2.
> https://github.com/Pylons/deform/milestone/3
> 
> --steve
> 
> -- 
> 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 
> <mailto:pylons-discuss+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/pylons-discuss/d0a0d404-f081-41f8-865f-b073ed17bc78n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/pylons-discuss/d0a0d404-f081-41f8-865f-b073ed17bc78n%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/6f0f2332-daa6-70a1-f148-2b32abdbb459%40gmail.com.


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

2020-10-02 Thread Steve Piercy
On 10/2/20 10:06 AM, 'Jonathan Vanasco' via pylons-discuss wrote:
> Does anyone have tips/advice for migrating away from Formencode?

For server side rendering of forms, Deform is under active development and 
works under both Python 2 and 3.

Demo:
https://deformdemo.pylonsproject.org/

GitHub:
https://github.com/pylons/deform

Deform 3.0.0 will use Bootstrap 4 for its templates and drop Python 2 support, 
although it might still work under Python 2.
https://github.com/Pylons/deform/milestone/3

--steve

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/5e5cc926-2729-67ee-cf2e-2834e0a4dfdf%40gmail.com.


[pylons-discuss] Deform 2.0.14 has been released

2020-08-26 Thread Steve Piercy
Deform 2.0.14 has been released.

Note that Deform and deformdemo each have a new branch `2.0-branch`. This will 
facilitate ongoing development on the new Deform 3.0.0.
https://github.com/Pylons/deform/milestone/3

Changes
https://docs.pylonsproject.org/projects/deform/en/2.0-branch/changes.html#id1

Widget demos
https://deformdemo.pylonsproject.org/

Documentation
https://docs.pylonsproject.org/projects/deform/en/latest/

GitHub
https://github.com/pylons/deform

PyPI
https://pypi.org/project/deform/2.0.14

Enjoy, and please report any issues you find to the issue tracker at
https://github.com/Pylons/deform/issues

Thanks!

- Deform developers

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/47dc53dd-1ae2-621f-1e08-c8b80e37bf35%40gmail.com.


[pylons-discuss] Deform 2.0.13 has been released

2020-08-25 Thread Steve Piercy
Deform 2.0.13 has been released.

Note that Deform and deformdemo each have a new branch `2.0-branch`. This will 
facilitate ongoing development on the new Deform 3.0.0.
https://github.com/Pylons/deform/milestone/3

Changes
https://docs.pylonsproject.org/projects/deform/en/2.0-branch/changes.html#id1

Widget demos
https://deformdemo.pylonsproject.org/

Documentation
https://docs.pylonsproject.org/projects/deform/en/latest/

GitHub
https://github.com/pylons/deform

PyPI
https://pypi.org/project/deform/2.0.13

Enjoy, and please report any issues you find to the issue tracker at
https://github.com/Pylons/deform/issues

Thanks!

- Deform developers

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/943d23ed-17fe-5828-bfbf-dde79415f459%40gmail.com.


[pylons-discuss] Deform 2.0.12 has been released

2020-08-23 Thread Steve Piercy
Deform 2.0.12 has been released.

Note that Deform and deformdemo each have a new branch `2.0-branch`. This will 
facilitate ongoing development on the new Deform 3.0.0.
https://github.com/Pylons/deform/milestone/3

Changes
https://docs.pylonsproject.org/projects/deform/en/2.0-branch/changes.html#id1

Widget demos
https://deformdemo.pylonsproject.org/

Documentation
https://docs.pylonsproject.org/projects/deform/en/latest/

GitHub
https://github.com/pylons/deform

PyPI
https://pypi.org/project/deform/2.0.12

Enjoy, and please report any issues you find to the issue tracker at
https://github.com/Pylons/deform/issues

Thanks!

- Deform developers

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/8d925707-ae41-c6d1-6bdf-c665333d7895%40gmail.com.


[pylons-discuss] Deform 2.0.11 has been released

2020-08-21 Thread Steve Piercy
Deform 2.0.11 has been released.

Note that Deform and deformdemo each have a new branch `2.0-branch`. This will 
facilitate ongoing development on the new Deform 3.0.0.
https://github.com/Pylons/deform/milestone/3

Changes
https://docs.pylonsproject.org/projects/deform/en/latest/changes.html#2.0.11

Widget demos
https://deformdemo.pylonsproject.org/

Documentation
https://docs.pylonsproject.org/projects/deform/en/latest/

GitHub
https://github.com/pylons/deform

PyPI
https://pypi.org/project/deform/2.0.11

Enjoy, and please report any issues you find to the issue tracker at
https://github.com/Pylons/deform/issues

Thanks!

- Deform developers

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/cd5fe3fb-989c-5a8b-1c4a-7c8e0d15b760%40gmail.com.


[pylons-discuss] colander 1.8.2 released

2020-08-06 Thread Steve Piercy
colander 1.8.2 released.

The `locale` directory was excluded from wheels in 1.8.0 and 1.8.1, and from 
the tar.gz in 1.8.1.

PyPI
https://pypi.org/project/colander/1.8.2/

Changes
https://docs.pylonsproject.org/projects/colander/en/latest/changes.html#id1

Documentation
https://docs.pylonsproject.org/projects/colander/en/latest/

You can install it via PyPI

  pip install colander==1.8.2

Enjoy, and please report any issues you find to the issue tracker at
https://github.com/Pylons/colander/issues

Thanks!

- colander core developers

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/ec23fefe-f830-5573-4f75-ce3a99115e61%40gmail.com.


[pylons-discuss] colander 1.8.0 and 1.8.1 released

2020-08-06 Thread Steve Piercy
colander 1.8.0 and 1.8.1 released.

PyPI
https://pypi.org/project/colander/1.8.1/

Changes
https://docs.pylonsproject.org/projects/colander/en/latest/changes.html#id1

Documentation
https://docs.pylonsproject.org/projects/colander/en/latest/

You can install it via PyPI

  pip install colander==1.8.1

Enjoy, and please report any issues you find to the issue tracker at
https://github.com/Pylons/colander/issues

Thanks!

- colander core developers

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/f54abdff-ea58-4d1b-f3df-011d2da161b2%40gmail.com.


Re: [pylons-discuss] externally hosted static files

2020-07-21 Thread Steve Piercy
add_static_view accepts a fully-qualified URL as the first argument.

https://docs.pylonsproject.org/projects/pyramid/en/latest/api/config.html#pyramid.config.Configurator.add_static_view

However for files that are not in your repo/package, I would suggest you not 
use add_static_view.  Instead create an external route to generate URLs that 
you add into your templates.

https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/urldispatch.html#external-routes

This is a kind of hand-wavy suggestion.  I'm sure someone else who uses a CDN 
in their app has more details or a better technique.

--steve


On 7/20/20 5:33 PM, Matt Bodman wrote:
> Hi, I need help troubleshooting something.  I currently host my static files 
> within my Pyramid repo, but I want to add more files and host them on S3.  I 
> have tried just about every permutation of the static view config I can think 
> of, but just can't get it to work.
> 
> If the sub url is `/static` and the files are hosted at `http://bla.s3`, what 
> do I pass the `add_static_view` method?
> 
> Any clues would be appreciated!
> 
> -- 
> 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 visit 
> https://groups.google.com/d/msgid/pylons-discuss/a8c48aa8-871e-4aa8-bd39-86762ec2a748n%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 this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/b3ff6472-4057-1337-5273-d4f01d53d503%40gmail.com.


[pylons-discuss] translationstring 1.4 released

2020-07-09 Thread Steve Piercy
translationstring 1.4 has been released.

The full changelog is here:
https://github.com/Pylons/translationstring/blob/master/changes.rst

Documentation:
https://docs.pylonsproject.org/projects/translationstring/en/latest/index.html

PyPI
https://pypi.org/project/translationstring/1.4/

Enjoy, and please report any issues you find to the issue tracker at
https://github.com/Pylons/translationstring/issues

Thanks!

- Pylons Project core developers

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/063803e9-9aa7-ea75-c6ab-ba362e1e048b%40gmail.com.


[pylons-discuss] Deform 2.0.9 and 2.0.10 have been released

2020-07-03 Thread Steve Piercy

Deform 2.0.9 and 2.0.10 have been released.

Here are the changes:

2.0.10 (2020-07-03)
Correct release date.

2.0.9 (2020-07-03)
Add boolean HTML attributes per Chameleon 3.8.0.

All checkboxes, radios, and selects that use boolean HTML 
attributes (selected, checked, etc.) previously used 
`literal_false` and would drop any `False` value from rendering 
as an HTML attribute. In Chameleon 3.8.0, `literal_false` is 
removed and must instead use `boolean_attributes` to set defaults.


See https://github.com/Pylons/deform/issues/417


Full change history
https://docs.pylonsproject.org/projects/deform/en/latest/changes.html

Widget demos (running 2.0.8 at the moment)
http://demo.substanced.net/deformdemo

Documentation
https://docs.pylonsproject.org/projects/deform/en/latest/

GitHub
https://github.com/pylons/deform

PyPI
https://pypi.org/project/deform/2.0.10


Enjoy, and please report any issues you find to the issue 
tracker at

https://github.com/Pylons/deform/issues

Thanks!

- Deform developers


Steve Piercy, Eugene, OR

--
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/r480Ps-10126i-97C94B2D41054162AE01628C755E25EC%40Steves-iMac.local.


[pylons-discuss] Chameleon 3.8.0 introduces breaking change to Deform

2020-06-27 Thread Steve Piercy

Howdy,

Chameleon 3.8.0 introduced a breaking change to Deform, causing 
all checkboxes and radios to render False values as `checked` in 
HTML. I need help to adapt Deform or maybe pyramid_chameleon.


https://github.com/malthe/chameleon/issues/318

If you have any clue, and would like to help me understand how 
it works and how to go about fixing Deform for a release, I 
would greatly appreciate it.


The patch would be released in Deform 2.0.9 and an upcoming 
Deform 3.0.0.


--steve


Steve Piercy, Eugene, OR

--
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/r480Ps-10126i-7279B5CFB56A4D7ABEFCCFDBF2E3094B%40Steves-iMac.local.


[pylons-discuss] waitress 1.4.4 released

2020-06-02 Thread Steve Piercy

waitress 1.4.4 has been released.

Changes
https://docs.pylonsproject.org/projects/waitress/en/latest/#id1

PyPI
https://pypi.org/project/waitress/1.4.4/

Issues
https://github.com/Pylons/waitress/issues

--steve


Steve Piercy, Eugene, OR

--
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/r480Ps-10126i-A5FC59956DAD49C79A6003251E10F8BD%40Steves-iMac.local.


Re: [pylons-discuss] WebSocket Integration

2020-05-13 Thread Steve Piercy
Would you please tweet something and mention @pylonsproject, so 
I can retweet it to garner more feedback?


--steve


On 5/13/20 at 6:31 PM, mmeri...@gmail.com (Michael Merickel) pronounced:


This looks awesome!

Things that aren’t clear to me are how the config and 
potentially other services / settings are shared as well as 
authentication and data store connections. And what the 
pitfalls may be there.
It looks like it’s using asgiref so I assume you are supposed 
to use its mechanisms for jumping between sync and async apis?


Also what can you say about Pyramid’s apis being used at all 
in the async context?

- Michael


On May 13, 2020, at 17:51, Landreville  wrote:


Hi All,

I've started experimenting with integrating WebSockets into Pyramid 
applications and came

up with this framework/library for implementing them: 
https://gitlab.com/landreville/rbow


I haven't used it in a production application yet. Right now I'm looking for 
some

feedback if this seems useful and if there are any ideas for improving this.


In general it runs an ASGI application that wraps the Pyramid app and uses 
Venusian to
register websocket "views". These are classes that manage the 
websocket functionality. They also provide options for working 
with websockets asynchronously, synchronously, or with a 
Pyramid request (kinda).


Lastly it also provides "channels" that can send messages to all websockets 
subscribed to
a channel and can call a function to send data periodically 
(such as grabbing stats and sending them to the clients every 5 seconds).



Thanks for any feedback,

Landreville
--
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 visit

https://groups.google.com/d/msgid/pylons-discuss/4db62ffd-09cb-4ccc-a277-73c5104a47e9%
40googlegroups.com.




Steve Piercy, Eugene, OR

--
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/r480Ps-10126i-001531D09C014CF9A13C5C2DDB0FD027%40Steves-iMac.local.


[pylons-discuss] pyramid-openapi3 v0.8.1 released

2020-05-03 Thread Steve Piercy
pyramid-openapi3 v0.8.1 released

PyPI
https://pypi.org/project/pyramid-openapi3/0.8.1/

Examples
https://github.com/Pylons/pyramid_openapi3/tree/master/examples

Issues
https://github.com/Pylons/pyramid_openapi3/issues

--steve


Steve Piercy, Eugene, OR

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/r480Ps-10126i-E3CB1FA79B0743E7BBA9BB25D3A0D9F0%40Steves-iMac.local.


Re: [pylons-discuss] Re: docs down?

2020-04-23 Thread Steve Piercy
https://twitter.com/PylonsProject/status/1253465539512393729

--steve


On 4/23/20 at 1:53 PM, sydo.luci...@gmail.com (Sydo Luciani) pronounced:

> Cloudflare had network and DNS problem.
> 
> https://www.cloudflarestatus.com/
> 
> Philadelphia services seems to be rerouted, but the reroute seems not 
> working.
> Philadelphia, United States - (PHL)Re-routed
> 
> 
> 
> 
> 
> 
> Someone needs to contact Cloudflare otherwise they think it is fixed.
> 
> 
> On Thursday, 23 April 2020 15:30:00 UTC-5, Jonathan Vanasco wrote:
> >
> > I'm getting 403 errors from cloudflare on all the 
> > https://docs.pylonsproject.org urls.  i tried accessing from several 
> > networks in the usa to ensure it wasn't a local routing or blacklist issue
> >
> 


Steve Piercy, Eugene, OR

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/r480Ps-10126i-17E9FF5A9D664B2F89A7F8B70107EABF%40Steves-iMac.local.


Re: [pylons-discuss] Generating URL using request.resource_url

2020-04-22 Thread Steve Piercy
Further reading, from the sidebar in the Traversal chapter, "The 
Example View Callables Accept Only a Request; How Do I Access 
the Context Resource?":

https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/traversal.html

In view callables that accept only a request, the context 
resource found by
traversal is available as the context attribute of the 
request object,

e.g., ``request.context``.

That chapter is gold for all things traversal, including 
twenty-seven eight-by-ten color glossy pictures with the circles 
and arrows and the paragraph on the back of each one.


--steve


On 4/22/20 at 9:27 PM, xiste...@0x58.com (Bert JW Regeer) pronounced:

Pass the current context. It should have lineage and thus know 
how to get to where you are right now.


request.resource_url(request.context, '@@create')

Bert JW Regeer


On Apr 22, 2020, at 14:05, Sydo Luciani  wrote:

Back to my original post, fixed the problem with stripping leading slash in 
request.path

in jinja template:

{% set stripped_path = request.path | replace("/", "", 1) %}

And then passed stripped_path to request.resource_url:
href="{{ request.resource_url(request.root, stripped_path, '@@create') }} ">

Please let me know if there is more elegant(Pyramid) way solution.


On Wednesday, 22 April 2020 11:01:22 UTC-5, Sydo Luciani wrote:
Application is using hybrid of traversal and URL dispatch.
Here is the code:
https://github.com/SystematicD/pyramid_wikiz/blob/master/__init__.py#L33

<https://github.com/SystematicD/pyramid_wikiz/blob/master/__init__.py#L33>


currently application working fine, but using session to save 
and passing around the coming_from_url or next_url is 
problematic in browsing application in multi tabs.

here is the code that needs to be changed.
https://github.com/SystematicD/pyramid_wikiz/blob/master/templates/top_nav_bar.jinja2#L34

<https://github.com/SystematicD/pyramid_wikiz/blob/master/templates/top_nav_bar.jinja2#L34>


With appending the @@create to the end of full url, then 
traversed url always stay the same after clicking on create 
button and no need to save the url in session.


Checking document for generating hybrid:


https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/hybrid.html#generating-
hybrid-urls 
<https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/hybrid.html#generating-
hybrid-urls>


it is not clear how to generate the current application full url.


Thanks


On Wednesday, 22 April 2020 06:39:46 UTC-5, Steve Piercy wrote:
Are you using traversal or URL dispatch?
It seems that you don't want to pass in a `resource` as the 
first argument to `resource_url`, so perhaps you want to use

https://docs.pylonsproject.org/projects/pyramid/en/latest/api/request.html#pyramid.request.
Request.route_url 
<https://docs.pylonsproject.org/projects/pyramid/en/latest/api/request.html#pyramid.request
.Request.route_url>

?
--steve

On 4/22/20 at 2:18 AM, sydo@gmail.com <> (Sydo Luciani) pronounced:
root + path be the resource but passing request.url as 
resource throws error: href="{{ 
request.resource_url(request.url , '@@create') }}">
path = [loc.__name__ or '' for loc in lineage(resource)] 
AttributeError: 'str' object has no attribute '__name__'


On Wednesday, 22 April 2020 04:11:00 UTC-5, Sydo Luciani wrote:
 tried href="{{ request.resource_url(request.url , 
'@@create') }}"> but didn't work and got below error: path = 
[loc.__name__ or '' for loc in lineage(resource)] 
AttributeError: 'str' object has no attribute '__name__'  
Then tried href="{{ request.resource_url(request.root, 
request.path , '@@create') }}"> that I got double slash 
problem.  Need to generate full URL and then append 
@@create.   root, request.path , '@@create') }}"> On 
Wednesday, 22 April 2020 02:42:44 UTC-5, Sydo Luciani wrote:
  This code:   href="{{ request.resource_url(request.root, 
request.path , '@@create')  }}">   Generates below URL:   https://domain_name.com:6543/%2FDir_1%2FDir_2/@@create
<https://domain_name.com:6543/%2FDir_1%2FDir_2/@@create>  
<https://systematicd.com:6543/%2Fwiki%2FDir_2/@@create <https://systematicd.com:6543/%2Fwiki%2FDir_2/@@create>>
   After domain_name:port, there is a '/' and a '%2F' 
which represents  another '/'.   double slashes after 
domain name, causing problem in finding the right  view  
and the result is "page not found".   Is there a workaround 
this problem ?   Thanks




 Steve Piercy, Eugene, OR

--
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, 

Re: [pylons-discuss] Re: Generating URL using request.resource_url

2020-04-22 Thread Steve Piercy

Are you using traversal or URL dispatch?

It seems that you don't want to pass in a `resource` as the 
first argument to `resource_url`, so perhaps you want to use 
https://docs.pylonsproject.org/projects/pyramid/en/latest/api/request.html#pyramid.request.Request.route_url 
?


--steve


On 4/22/20 at 2:18 AM, sydo.luci...@gmail.com (Sydo Luciani) pronounced:

root + path be the resource but passing request.url as resource 
throws error:

href="{{ request.resource_url(request.url , '@@create') }}">

path = [loc.__name__ or '' for loc in lineage(resource)]
AttributeError: 'str' object has no attribute '__name__'


On Wednesday, 22 April 2020 04:11:00 UTC-5, Sydo Luciani wrote:


tried href="{{ request.resource_url(request.url , '@@create') }}">
but didn't work and got below error:
path = [loc.__name__ or '' for loc in lineage(resource)]
AttributeError: 'str' object has no attribute '__name__'

Then tried href="{{ request.resource_url(request.root, 
request.path , '@@create') }}">

that I got double slash problem.

Need to generate full URL and then append @@create.






root, request.path , '@@create') }}">
On Wednesday, 22 April 2020 02:42:44 UTC-5, Sydo Luciani wrote:


This code:
 href="{{ request.resource_url(request.root, request.path , 
'@@create')  }}">


Generates below URL:
 https://domain_name.com:6543/%2FDir_1%2FDir_2/@@create  
<https://systematicd.com:6543/%2Fwiki%2FDir_2/@@create>

 After domain_name:port, there is a '/' and a '%2F' which 
represents  another '/'.
 double slashes after domain name, causing problem in 
finding the right  view  and the result is "page not found".


Is there a workaround this problem ?

Thanks








Steve Piercy, Eugene, OR

--
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/r480Ps-10126i-E03EE9EAE37943298B919F93C22CEF93%40Steves-iMac.local.


Re: [pylons-discuss] Generating URL using request.resource_url

2020-04-22 Thread Steve Piercy

See:
https://docs.pylonsproject.org/projects/pyramid/en/latest/api/request.html#pyramid.request.Request.resource_url

It's not clear what you want to be the resource (the first 
argument): root or root + path?  Subsequent args are joined by `/`.


The link to the docs above should give you plenty of options to 
find what you want.


--steve


On 4/22/20 at 12:42 AM, sydo.luci...@gmail.com (Sydo Luciani) pronounced:


This code:
href="{{ request.resource_url(request.root, request.path , '@@create') }}">

Generates below URL:
https://domain_name.com:6543/%2FDir_1%2FDir_2/@@create 
<https://systematicd.com:6543/%2Fwiki%2FDir_2/@@create>

After domain_name:port, there is a '/' and a '%2F' which 
represents another '/'.
double slashes after domain name, causing problem in finding 
the right view and the result is "page not found".


Is there a workaround this problem ?

Thanks





Steve Piercy, Eugene, OR

--
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/r480Ps-10126i-FDA304F413104503AE8F3FD7E50A1A58%40Steves-iMac.local.


[pylons-discuss] Re: Request for Pyramid Trainer or Speaker at Python Web Conference 2020

2020-04-21 Thread Steve Piercy
Apologies, I forgot to include the website's URL:

https://2020.pythonwebconf.com/

--steve


On 4/21/20 at 1:23 AM, steve.piercy@gmail.com (Steve Piercy) pronounced:

> Join IndyPy for the 2nd Annual Python Web Conference—a fully virtual, 3-day, 
> 3-track conference 
> you can join from the comfort of your home office!
> 
> The request for speakers and trainers has been extended.  The organizers have 
> reserved a one-half 
> day spot for a Pyramid training, and a spot for a talk on Pyramid.
> 
> To submit a training or talk proposal, please send the following information 
> by email:
> 
> - Title
> - Abstract
> - Bio
> - Links (github/LinkedIn/twitter)
> 
> to:
> 
> MaryBeth Okerson
> maryb...@sixfeetup.com
> 
> Topics at the Python Web Conference will include the following.
> 
> * AI/Machine Learning/NLP
> * Plone
> * Deployment/Automation/Containers/Serverless
> * Lean Software Development/ CI/CD
> * Django
> * Flask
> * Pyramid
> * Tornado
> * REST APIs
> * Web Security
> * Microservices
> * Websockets/AsyncIO
> 
> Their goal is to create an inclusive, respectful conference environment that 
> invites 
> participation from people of all races, ethnicities, genders, ages, 
> abilities, religions, and 
> sexual orientations.


Steve Piercy, Eugene, OR

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/r480Ps-10126i-5C574B217EB641E3A9B751AC84101252%40Steves-iMac.local.


[pylons-discuss] Request for Pyramid Trainer or Speaker at Python Web Conference 2020

2020-04-21 Thread Steve Piercy
Join IndyPy for the 2nd Annual Python Web Conference—a fully 
virtual, 3-day, 3-track conference you can join from the comfort 
of your home office!


The request for speakers and trainers has been extended.  The 
organizers have reserved a one-half day spot for a Pyramid 
training, and a spot for a talk on Pyramid.


To submit a training or talk proposal, please send the following 
information by email:


- Title
- Abstract
- Bio
- Links (github/LinkedIn/twitter)

to:

MaryBeth Okerson
maryb...@sixfeetup.com

Topics at the Python Web Conference will include the following.

* AI/Machine Learning/NLP
* Plone
* Deployment/Automation/Containers/Serverless
* Lean Software Development/ CI/CD
* Django
* Flask
* Pyramid
* Tornado
* REST APIs
* Web Security
* Microservices
* Websockets/AsyncIO

Their goal is to create an inclusive, respectful conference 
environment that invites participation from people of all races, 
ethnicities, genders, ages, abilities, religions, and sexual orientations.


--steve


Steve Piercy, Eugene, OR

--
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/r480Ps-10126i-55DD0002E9CB46A28B9E32EBD7DA8DB7%40Steves-iMac.local.


Re: [pylons-discuss] Deform demo site : The "click to show in context" link returns 404 Not Found

2020-04-11 Thread Steve Piercy
Or you can tweak the URL:
http://demo.substanced.net/deformdemo/allcode?start=342&end=356#line-342

Or you can run it locally in Docker:
https://github.com/Pylons/deformdemo#docker-version

deformdemo is intended to run at the webroot, not from a subdirectory.

--steve


On 4/11/20 at 8:50 PM, xiste...@0x58.com (Bert JW Regeer) pronounced:

> I don't know who runs that site/demo. The demo code can be found here: 
> https://github.com/Pylons/deformdemo
> 
> > On Apr 11, 2020, at 20:37, Sydo Luciani  wrote:
> > 
> > 
> > The "click to show in context" link in Deform demo site is broken:
> > 
> > http://demo.substanced.net/deformdemo/richtext/
> > 
> > Code (click to show in context) 
> > <http://demo.substanced.net/allcode?start=342&end=356#line-342>
> > 
> > 
> > 
> > -- 
> > 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 
> <mailto:pylons-discuss+unsubscr...@googlegroups.com>.
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/pylons-discuss/c8eb1d22-f740-4945-964f-601c8b09438c%
> 40googlegroups.com 
> <https://groups.google.com/d/msgid/pylons-discuss/c8eb1d22-f740-4945-964f-601c8b09438c%
> 40googlegroups.com?utm_medium=email&utm_source=footer>.
> 


Steve Piercy, Eugene, OR

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/r480Ps-10126i-8861CD1CFB0942FA9AA03C958DBBD4D1%40Steves-iMac.local.


[pylons-discuss] PyCharm 2020.1 and Pyramid Cookiecutter

2020-04-08 Thread Steve Piercy
PyCharm 2020.1 now includes Pyramid project generation through 
our official Cookiecutter.


https://www.jetbrains.com/pycharm/whatsnew/

--steve


Steve Piercy, Eugene, OR

--
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/r480Ps-10126i-6C67E106D17A4B2181DCC802194414EB%40Steves-iMac.local.


[pylons-discuss] PyCharm 2020.1 Beta now supports pyramid-cookiecutter-starter

2020-03-19 Thread Steve Piercy
Howdy,

PyCharm 2020.1 Beta now supports pyramid-cookiecutter-starter to generate a new 
Pyramid project.

https://blog.jetbrains.com/pycharm/2020/03/pycharm-2020-1-beta/

https://github.com/Pylons/pyramid-cookiecutter-starter/

--steve


Steve Piercy, Eugene, OR

-- 
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/r480Ps-10126i-078878E8FFFA4816965BC89A1D615AA6%40Steves-iMac.local.


[pylons-discuss] Pyramid Debugtoolbar 4.5.2 released

2020-01-07 Thread Steve Piercy

Pyramid Debugtoolbar 4.5.2 has been released.

Here are the changes:

- Stop accessing request.unauthenticated_userid in preparation 
for Pyramid 2.0 where it is deprecated.


- Catch a ValueError when JSON-serializing SQLA objects for 
display. See https://github.com/Pylons/pyramid_debugtoolbar/pull/357


Full change history:
https://docs.pylonsproject.org/projects/pyramid-debugtoolbar/en/latest/changes.html

You can install it via PyPI:

  pip install pyramid_debugtoolbar==4.5.2

Enjoy, and please report any issues you find to the issue 
tracker at

https://github.com/Pylons/pyramid_debugtoolbar/issues

Thanks!

- Pylons Project core developers


Steve Piercy, Eugene, OR

--
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 visit 
https://groups.google.com/d/msgid/pylons-discuss/r480Ps-10126i-6E0411D648F04CCEAD4B8A19A7DAA895%40Steves-iMac.local.


  1   2   3   4   >