[pylons-discuss] Pyramid 1.10.7 released

2021-02-20 Thread Michael Merickel
Pyramid 1.10.7 has been released. Whoops, had one remaining PR that hadn't been 
merged in 1.10.6.

- Fixed an issue where reified properties would show up as functions in certain 
tools instead of attributes.

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


What's New In Pyramid 1.10:
https://docs.pylonsproject.org/projects/pyramid/en/1.10-branch/whatsnew-1.10.html
 


1.10 release documentation (across all alphas and betas, as well as when it gets
to final release):
https://docs.pylonsproject.org/projects/pyramid/en/1.10-branch/ 


You can install it via PyPI:

 pip install Pyramid==1.10.7

Enjoy, and please report any issues you find to the issue tracker at
https://github.com/Pylons/pyramid/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/276D0A6B-3C17-4728-A61B-C39359B48244%40gmail.com.


Re: [pylons-discuss] Pyramid 2.0b1 released

2021-02-20 Thread Michael Merickel
It's in the cookiecutter's "get_tm_session" on the master branch. Which is not 
the default branch.

The purpose of the pattern is if your model objects needed access to some 
settings or some other request properties. It's up to you to decide if that's 
good or bad. Of course you don't need to use it.

- Michael

> On Feb 20, 2021, at 17:39, Mike Orr  wrote:
> 
> On Sat, Feb 20, 2021 at 12:57 PM Michael Merickel  wrote:
>> Check out the new pattern of storing the request in the SQLAlchemy session 
>> object for easier access in your model layer without threadlocals!
> 
> Where is that? I don't see it in 'pyramid-cookiecutter-starter' or the 2.0 
> docs.
> 
> I do essentially the opposite. I have a request subclass with reified
> methods for external resources like 'request.sa_session()'.
> Cookiecutter is still using this concept although using
> 'config.add_request_method()' instead of a subclass:
> 
> https://github.com/Pylons/pyramid-cookiecutter-starter/blob/latest/%7B%7Bcookiecutter.repo_name%7D%7D/%7B%7Bcookiecutter.repo_name%7D%7D/sqlalchemy_models/__init__.py
> (Lines 71-75.)
> 
> My model classes used to have querying methods but I moved away from
> that because they ended up putting too much into the models and being
> too limiting (my querying needs inevitably expanded beyond the method
> arguments). I now have just the columns and relations in the models,
> and separate lib modules for high-level queries. These take a session
> argument.  I don't usually need a request argument except occasionally
> for URL generation. For that I have a postprocessing function that
> adds the URL attributes to the query results. For instance:
> 
> # View
> results = myapp.lib.mysearch.do_search(sa_session, ...criteria..)
># Return list of ORM objects,
> postprocess(results, request)
># Iterate through objects, adding URL attributes for HTML links,
># formatting dates, calculating display values, etc.
> 
> -- 
> 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/CAH9f%3Duo821nzLFSttTcvn5xBqbAL2hisuQWUE_%2BCS8q15zUgRA%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/AE3A3A43-AECE-49D5-BB83-AAC8A3DC0798%40gmail.com.


Re: [pylons-discuss] Pyramid 2.0b1 released

2021-02-20 Thread Mike Orr
On Sat, Feb 20, 2021 at 12:57 PM Michael Merickel  wrote:
> Check out the new pattern of storing the request in the SQLAlchemy session 
> object for easier access in your model layer without threadlocals!

Where is that? I don't see it in 'pyramid-cookiecutter-starter' or the 2.0 docs.

I do essentially the opposite. I have a request subclass with reified
methods for external resources like 'request.sa_session()'.
Cookiecutter is still using this concept although using
'config.add_request_method()' instead of a subclass:

https://github.com/Pylons/pyramid-cookiecutter-starter/blob/latest/%7B%7Bcookiecutter.repo_name%7D%7D/%7B%7Bcookiecutter.repo_name%7D%7D/sqlalchemy_models/__init__.py
(Lines 71-75.)

My model classes used to have querying methods but I moved away from
that because they ended up putting too much into the models and being
too limiting (my querying needs inevitably expanded beyond the method
arguments). I now have just the columns and relations in the models,
and separate lib modules for high-level queries. These take a session
argument.  I don't usually need a request argument except occasionally
for URL generation. For that I have a postprocessing function that
adds the URL attributes to the query results. For instance:

# View
results = myapp.lib.mysearch.do_search(sa_session, ...criteria..)
# Return list of ORM objects,
postprocess(results, request)
# Iterate through objects, adding URL attributes for HTML links,
# formatting dates, calculating display values, etc.

-- 
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/CAH9f%3Duo821nzLFSttTcvn5xBqbAL2hisuQWUE_%2BCS8q15zUgRA%40mail.gmail.com.


[pylons-discuss] Pyramid 2.0b1 released

2021-02-20 Thread Michael Merickel
Pyramid 2.0b1 has been released.

- Fixes a circular reference / memory leak between request and context in some 
apps.

- A bunch of documentation and cookiecutter improvements. Check out the new 
pattern of storing the request in the SQLAlchemy session object for easier 
access in your model layer without threadlocals!

This is the last release prior to 2.0 which will probably come next weekend.

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

What's New In Pyramid 2.0:
https://docs.pylonsproject.org/projects/pyramid/en/2.0-branch/whatsnew-2.0.html

2.0 release documentation (across all alphas and betas, as well as when it gets 
to final release):
https://docs.pylonsproject.org/projects/pyramid/en/2.0-branch/

You can install it via PyPI:

  pip install Pyramid==2.0b1

Enjoy, and please report any issues you find to the issue tracker at
https://github.com/Pylons/pyramid/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/43A02D06-00CC-4A86-982B-521726283814%40gmail.com.


Re: [pylons-discuss] Can you recommend some nice libraries that I can use in my flask web applications?

2021-02-20 Thread 'Jürgen Gmach' via pylons-discuss
I think you are on the wrong mailing list. This is about
Pyramid/Pylons/Waitress.

But while you are here

Flask is a micro framework, and it is completely modular. So, e.g.
when you need login functionality, you could use a plugin for that.

So, asking for useful libraries is the wrong way. First, you should
think about what you plan to build.

In general, I think the Flask plugin ecosystem is not in a super
healthy state - many plugins are under- or unmaintained with a couple
of exceptions.

Am Sa., 20. Feb. 2021 um 20:40 Uhr schrieb PYDEVOPS :
>
> I am developing a web application on Flask. I am looking for useful Flask 
> libraries that I can use in this web application. It can be any library. For 
> example, Flask-MonitoringDashboard.
>
>
> --
> 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/5540d9c8-c0a8-4082-b826-e6064b1fd4f4n%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/CAJmiT6WgfY12N3synop5b_bX-jgapN_rF%3D7XydrmKKLLx38ikg%40mail.gmail.com.


[pylons-discuss] Can you recommend some nice libraries that I can use in my flask web applications?

2021-02-20 Thread PYDEVOPS


I am developing a web application on Flask. I am looking for useful Flask 
libraries that I can use in this web application. It can be any library. 
For example, Flask-MonitoringDashboard.

-- 
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/5540d9c8-c0a8-4082-b826-e6064b1fd4f4n%40googlegroups.com.


[pylons-discuss] Pyramid 1.10.6 released

2021-02-20 Thread Michael Merickel
Pyramid 1.10.6 has been released.

- Deprecated pyramid.compat so that apps can prepare more easily for their 
upgrade to 2.0.

- Fixed a potential memory leak in which a circular reference between context 
and request may rely on the garbage collector to clean up.

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

What's New In Pyramid 1.10:
https://docs.pylonsproject.org/projects/pyramid/en/1.10-branch/whatsnew-1.10.html

1.10 release documentation (across all alphas and betas, as well as when it gets
to final release):
https://docs.pylonsproject.org/projects/pyramid/en/1.10-branch/

You can install it via PyPI:

  pip install Pyramid==1.10.6

Enjoy, and please report any issues you find to the issue tracker at
https://github.com/Pylons/pyramid/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/D79416FA-1BEF-4B85-A0B0-770DCBD47D4A%40gmail.com.