[pylons-discuss] Re: noob questions

2015-07-20 Thread Davide Maccagno
im trying to work on two front basically, understand how to pratically make a web application and understand what stand behind (env, etc...) but indeed pycharm helpme to focus on how to even if at the moment i cant understand everything. Il giorno mercoledì 15 luglio 2015 19:58:38 UTC+2,

Re: [pylons-discuss] Anyone have examples of custom authentication policies?

2015-07-20 Thread Thierry Florac
Hi Iain, I wrote a custom authentication policy which you can find here : http://hg.ztfy.org/pyams/pyams_security/file/58599ce9e36e/src/pyams_security/utility.py This policy is based on a registered Security manager utility, which is mainly inspired by Zope3 authentication utility and can manage

Re: [pylons-discuss] Re: noob questions

2015-07-20 Thread Iain Duncan
My two cents, I used to be anti-IDE. But Pycharm and Webstorm Kick ASS. Their vim emulation is decent enough too. =) That said, yeah, you should practice doing things through a normal terminal too, because that's what you'll need to do as soon as you want to put it on a server. Stuff I'd say at a

Re: [pylons-discuss] Re: middleware vs components for auth

2015-07-20 Thread Jonathan Vanasco
On Saturday, July 18, 2015 at 11:35:44 AM UTC-4, Iain Duncan wrote: Off topic: have you tried the new glass for your glasses that changes the colour balance to reduce eye strain? I used to get very frequent migraines from coding, and an updated prescription with the the new fancy glass

[pylons-discuss] Re: Pyramid + SQLAchemy + Alembic

2015-07-20 Thread Rebelo
You need to import your models in env.py for autogenerate to work. If you have module (folder) models which conatins: models |- __init__.py |- user.py |- security.py in env.py you must do: from models import user, security On Monday, July 20, 2015 at 10:48:06 PM UTC+2, Mário Idival wrote:

Re: [pylons-discuss] Re: Pyramid + SQLAchemy + Alembic

2015-07-20 Thread Mário Idival
Wow, Thank you Rabelo! Mário Idival Python Developer *Twitter|Github|Skype *: *marioidival* *Facebook*: *mario.idival* *User Linux** : **#554446* 2015-07-20 18:12 GMT-03:00 Rebelo puntabl...@gmail.com: You need to import your models in env.py for autogenerate to work. If you have module

[pylons-discuss] Re: Pyramid + SQLAchemy + Alembic

2015-07-20 Thread Mário Idival
autogenerate not work as expected. I started a project using the scaffold `alchemy` where` Base` class that is used as `declarative_base` is within the` models.py` file. My problem is this: `--autogenerate` to work properly, I have to keep my models in the` models.py` file, if I separate them,

[pylons-discuss] Re: Hook for serialization to JSON with marshmallow schemas

2015-07-20 Thread Martin Stein
By the way, I've finally gotten around to writing a step-by-step tutorial/blog post about JSON-serialization for Pyramid + SQLAlchemy. The post is here: http://codelike.com/blog/2015/07/19/how-to-serialize-sqlalchemy-objects-to-json-in-pyramid/ and the Pyramid-project that accompanies the blog

[pylons-discuss] What do folks use for build tools? (buildout alternatives?)

2015-07-20 Thread Iain Duncan
Hi, we're embarking on a project that will stitch together many apps, and I figured I should do my due diligence on hunting for the state-of-the-nation in python build tools. I've personally used buildout in the past and liked it, but I know for other team members something that was more

Re: [pylons-discuss] What do folks use for build tools? (buildout alternatives?)

2015-07-20 Thread Michael Sarahan
Conda (more of a tool for working with conda-based Python distributions, rather than a standalone tool, http://www.continuum.io/blog/conda ) and Hashdist ( https://hashdist.github.io/ ) are pretty interesting - more on the Python in science side, perhaps. Might be worth trying to see how you like

Re: [pylons-discuss] What do folks use for build tools? (buildout alternatives?)

2015-07-20 Thread Randall Leeds
I use pip and aggressive version pinning to at least within a major version number for any fast moving dependencies. I am mostly making web applications that then get deployed inside a docker container where I get a stable system image and can run wild without virtualenv in my apps own little

Re: [pylons-discuss] What do folks use for build tools? (buildout alternatives?)

2015-07-20 Thread Marius Gedminas
On Mon, Jul 20, 2015 at 04:05:09PM -0700, Iain Duncan wrote: Hi, we're embarking on a project that will stitch together many apps, and I figured I should do my due diligence on hunting for the state-of-the-nation in python build tools. I've personally used buildout in the past and liked it,

Re: [pylons-discuss] What do folks use for build tools? (buildout alternatives?)

2015-07-20 Thread Mike Orr
On Mon, Jul 20, 2015 at 4:05 PM, Iain Duncan iainduncanli...@gmail.com wrote: Hi, we're embarking on a project that will stitch together many apps, and I figured I should do my due diligence on hunting for the state-of-the-nation in python build tools. I've personally used buildout in the past