Re: Colander, question about self-referential schema

2011-08-01 Thread Benjamin Sims
Hi Stefano, I'm very much a beginner myself, but perhaps I can try and give you a pointer based on how I understand it and those with more experience can correct me if I get it wrong. I'd say don't think of it as trying to convert your SQLAlchemy data model directly into a Colander schema by

Re: Colander, question about self-referential schema

2011-08-01 Thread Stefano Fontanelli
Thank you Benjamin. Your explanation was clear and focused on what I want to do :) Your example is equal to the code I produced due to the fact a self-referential schema doesn't work. The answer to my question can be summarized as follow: it is not possible :) Regards, Stefano. Il

Re: Colander, question about self-referential schema

2011-08-01 Thread Benjamin Sims
No problem. If I *have* understood correctly, you are right that the 'self-referential schema' is not technically possible (in that you can't just refer back to the class and have the relation automagically set up). However, I'm not really sure that you need to do this - such references are

using sendmail on linux and pylons

2011-08-01 Thread gazza
Hello, I want to use a tool to send email notifications when events happen? Any ideas on what the best tool to use i.e sendmail. I need to send it to gmail and yahoo etc. Much appreciated and I apologise for the broad question in advance? Thanks, Gary Clark -- You received this message

Re: using sendmail on linux and pylons

2011-08-01 Thread gary clark
Essentially when I send email in sendmail its being treated as SPAM? On Mon, Aug 1, 2011 at 8:26 AM, gazza burslem2...@gmail.com wrote: Hello, I want to use a tool to send email notifications when events happen? Any ideas on what the best tool to use i.e sendmail. I need to send it to gmail

Re: using sendmail on linux and pylons

2011-08-01 Thread Mariano Mara
On 01.08.11 06:26, gazza wrote: Hello, I want to use a tool to send email notifications when events happen? Any ideas on what the best tool to use i.e sendmail. I need to send it to gmail and yahoo etc. I'm using TurboMail[1] with my pylons applications and pyramid_mailer[2] with my

Re: using sendmail on linux and pylons

2011-08-01 Thread gary clark
Ok I will have a wee' look at that today. On Mon, Aug 1, 2011 at 8:36 AM, Mariano Mara mariano.m...@gmail.com wrote: On 01.08.11 06:26, gazza wrote: Hello, I want to use a tool to send email notifications when events happen? Any ideas on what the best tool to use i.e sendmail. I need to

Pyramid transactions and other request lifecycle events

2011-08-01 Thread Matt Feifarek
I am using tm2 in my Pyramid application, and both ZODB and pyramid_mailer are hooking into that. However, other events related to the request lifecycle are not aware of transactions and are thusly causing suprising behavior that might be worth discussion. For example, I create a new object from

Re: Pyramid transactions and other request lifecycle events

2011-08-01 Thread Carlos de la Guardia
You can register a callback that is called after the transaction ends, so that the logging can be done there. See this page, near the end of the linked section: http://zodb.readthedocs.org/en/latest/transactions.html#repoze-tm2-transaction-aware-middleware-for-wsgi-applications Carlos de la

Re: Pyramid transactions and other request lifecycle events

2011-08-01 Thread Matt Feifarek
On Mon, Aug 1, 2011 at 11:19 AM, Carlos de la Guardia carlos.delaguar...@gmail.com wrote: You can register a callback that is called after the transaction ends, so that the logging can be done there. See this page, near the end o That's interesting, but kinda defeats the purpose of logging

Re: using sendmail on linux and pylons

2011-08-01 Thread Людмила Третьякова
Hello, I use turbomail library. Link to documentation is http://packages.python.org/TurboMail/ 2011/8/1 gazza burslem2...@gmail.com Hello, I want to use a tool to send email notifications when events happen? Any ideas on what the best tool to use i.e sendmail. I need to send it to gmail and

Re: Interpackage Mako inheritance in Pyramid 1.1 vs 1.0

2011-08-01 Thread Wyatt Baldwin
On Saturday, July 30, 2011 12:54:03 PM UTC-7, Wyatt Baldwin wrote: With Pyramid 1.0, I could inherit from a template in another package using the standard Mako syntax: # Paste config file: mako.directories = package_A:templates pacakge_B:templates # templates/layout.mako in package_A