On Wed, Feb 26, 2014 at 6:29 AM, Mário Idival <[email protected]> wrote: > Hello, > i'd like help the pyramid with code, but i can't understand how it pyramid > works, so... where I could start studying the code?
I would start with the "Startup" and "Request Processing" chapters in the narrative documentation. That will show you how Pyramid is structured and how the code fits together, and you can follow along in the source to see the call chain and how data is passed around. Some topics are "Advanced" like the registry and interface adaption, but you can start by treating them as black boxes and look at the concrete objects they ultimately resolve to, such as the '.settings' attribute and the classes that are actually instantiated. After that I would look at Kotti's source. Kotti is a complex Pyramid application showing how to use many features including traversal, Chameleon templates, etc. It especially shows many advanced SQLAlchemy features such as polymorphism, self-referential (recursive) tables, JSON in string fields, etc. Plus integration with Fanstatic, bootstrap, etc. I started an analysis of it but didn't get far and it's now out of date. But you can start by observing the functionality and trace through the source how it's implemented. That will give you a good understanding of the Pyramid source, and perhaps show things you might want to work on further. Keep in mind that Kotti is using a bit of old versions: only the dev version supports Pyramid 1.5, and it has not yet been ported to Python 3 and Bootstrap 3, and it's still using Beaker. -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pylons-discuss. For more options, visit https://groups.google.com/groups/opt_out.
