Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 04 16:55
    blaisep commented #234
  • Sep 04 16:49
    blaisep commented #234
  • Aug 27 17:27
    ooduor opened #235
  • Aug 27 17:26

    ooduor on ooduor-with-meta-description

    Add Missing site_description to… (compare)

  • Aug 26 18:22
    clickio opened #234
  • Aug 02 14:10
    VirtUalProtoss opened #233
  • Jul 02 22:45
    slav0nic commented #210
  • Jul 02 09:34
    slav0nic commented #232
  • Jul 01 11:16
    slav0nic opened #232
  • Jun 30 11:52
    slav0nic commented on fe24a9d
  • Jun 27 11:22
    codecov-io commented #231
  • Jun 27 11:19
    codecov-io commented #231
  • Jun 27 11:13
    codecov-io commented #231
  • Jun 27 11:13
    slav0nic synchronize #231
  • Jun 26 19:21
    codecov-io commented #231
  • Jun 26 19:21
    codecov-io commented #231
  • Jun 26 19:19
    codecov-io commented #231
  • Jun 26 19:11
    slav0nic opened #231
  • Jun 26 18:33
    codecov-io commented #230
  • Jun 26 18:30
    codecov-io commented #230
Sergey Maranchuk
@slav0nic
@ericof, i think you can close #225
Érico Andrei
@ericof
@/all
Websauna 1.0a13 is out!
  • Closes #212: Pin to Redis version 2.10.6.
  • Closes #213: Remove unused FormView.customize_schema().
  • Closes #209: Use pgcrypto instead of uuid-ossp (Postgres).
  • Closes #215: UUIDModelSet now supports a label_column parameter on its constructor.
  • Add Missing icon_class Property
  • Upgrades Celery to version 4.3.
  • Upgrades redis-py to version 3.2.
  • Upgrades pytz to version 2019.1.
  • Support pytest 4.x.
  • Refactor validator for unique values.
Thanks to all involved. Now, let's test MySQL support and prepare for a beta version
Mikko Ohtamaa
@miohtama
Oooh @ericof Thank you
Érico Andrei
@ericof
@miohtama Always a pleasure :-)
Sergey Maranchuk
@slav0nic
@ericof #231 ( trivial ), #230 (required some updates for other plugins)
Mikko Ohtamaa
@miohtama
@slav0nic I think this is related to pyramid_tm 2.0 upgrade
Sergey Maranchuk
@slav0nic
>>> pkg_resources.get_distribution('pyramid_tm').version
'2.2.1'
>>> from pyramid_tm import reify 
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'reify' from 'pyramid_tm'
i don't see any changesets in pyramid_tm repo related to this functionality
Mikko Ohtamaa
@miohtama
hmmhmhmhmmhmhm
Oh yes
I think I proposed a PR for pyramid_tm
but it was never accepted, as they did more complete rewrite with Pyramid 1.8+ and pyramid_tm 2.0
they adopted some pipeline changes in Pyramid itself
Sergey Maranchuk
@slav0nic
@miohtama, https://github.com/websauna/websauna/blob/5524757e545d27f1198b645626b9bea0a29e9c30/websauna/system/model/retry.py also have question related to this code, is it still needed? And what wrong with native tm retry?
or it is for Celery?
Mikko Ohtamaa
@miohtama
This code can be used with any function, including Celery tasks
which I have a tendency to split smaller commits
make sure that all transactions complete within one second so that they do not block the database
with locs
This code should be ported to pyramid_tm core itself
Sergey Maranchuk
@slav0nic
@miohtama, tnx, missed occ.html in official docs, so pyramid_tm retry work only on request level (retry full request transaction)
Sergey Maranchuk
@slav0nic
@miohtama, latest zope transaction pkg have some internal things for solve conflicts http://dpaste.com/2H0DWSY
Mikko Ohtamaa
@miohtama
ooh
Sergey Maranchuk
@slav0nic

old tyle was something like:

for attempt in transaction.manager.attempts():
    with attempt as t:
       ...

also zope.sqlalchemy have defined should_retry https://github.com/zopefoundation/zope.sqlalchemy/blob/master/src/zope/sqlalchemy/datamanager.py#L154-L164
but now example how use it :P as i understand, it will fire only if you use Attempts or tm.run

Mikko Ohtamaa
@miohtama
@slav0nic So much magic in _manager.run
Extracting note from the function instead of giving it explicitly by a parameter
Must be Jim Fulton's doings!
Maksym Shalenyi
@enkidulan
Websauna has been mentioned in this week "The PyCoder’s Weekly" newsletter :)
clickio
@clickio
does anybody have a docker image for this? i get stuck at install
Mikko Ohtamaa
@miohtama
@clickio Also not sure if @ericof created an official Docker image in some point
Érico Andrei
@ericof
No official image (yet)
Steve Piercy
@stevepiercy

WebSauna is featured in the Jul 8, 2019, PythonBytes podcast.

https://pythonbytes.fm/episodes/show/138/will-pyoxidizer-weld-shut-one-of-python-s-major-gaps

clickio
@clickio
ok, can anyone please create an official working docker image for websauna? i promise to post about it everywhere
@all
Blaise Pabon
@blaisep
@stevepiercy I came her because of the PythonBytes podcast. What a cool framework!!
@clickio I'm new to this community, but I'm comfortable with Docker.
@clickio That Docker project is... well, I think I can do better.
Mikko Ohtamaa
@miohtama
Hey @blaisep - welcome!
@clickio @blaisep Can you post me examples of good Python web server docker images you like?
Blaise Pabon
@blaisep

Hi @miohtama , I contacted @clickio with a similar question and I made this observation(s)

The benefit of Docker is a "disposable" development environment; where disposable means that you can quickly (re)start from known working state?

Then, reflecting on my own, very preliminary, experience setting up web sauna:

I think the challenge is that web sauna incorporates multiple components, depending on what you want to do with it (hence the use of cookie cutter in the getting started which is unusual.

Uncommon, but not necessarily a problem.
I wonder if the solution might be to embellish the ansible repo with some plays for getting started and maybe some plays for building images. The advantage of ansible is that you can concatenate many steps or recompose them into a different combinations
I would defer to the wisdom of the group on this.

Blaise Pabon
@blaisep
@miohtama , ansible-bender builds images from ansible plays: https://blog.tomecek.net/post/building-containers-with-buildah-and-ansible/
The result could be to have a number of images with permutations of features, created automagically as part of the release process.
Blaise Pabon
@blaisep
I use pycharm pro and they have a new feature which could serve as an inspiration: https://www.jetbrains.com/help/pycharm/using-docker-compose-as-a-remote-interpreter.html
the dockerized code is: https://github.com/ErnstHaagsman/djangodocker/tree/dockerized
Mikko Ohtamaa
@miohtama
@blaisep very goo dinput, thank you
@blaisep I am a heavy user of Ansible mysef
though it is an extra complexity for new developers - we probably need different Docker image for production and for development
Blaise Pabon
@blaisep

OK, I can tell that I reallly want to use web sauna for my current two projects... Doing a multi-stage Dockerfile will reduce the size of the final image. I don't yet know enough to suggest the structure of the Docker image(s). However, it does seem like we would want three distinct use cases, and I'll use pseudo-code for convenience:

make demo to produce a default cookiecutter project and running dev server so that a user can access a working project without making any decisions.
make dev to produce a installed project with optional modules and a data volume to overlay the source directory.

make stage to produce a production-ready project, importing secrets and user accounts during the intermediate build stages.

.... does anyone in this group run Websauna on k8s or perhaps OpenShift?

clickio
@clickio
I will tru pinging all 71 members as I think this docker image will be an important step in the popularity of websauna: so, @/all please help us make an official docker image for websauna