how can I return javascript code in a view callable?

2012-06-28 Thread no_computer
how can I return some javascript code or a javascript file with view callables in Pyramid/Pylon framework? -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To view this discussion on the web visit https://groups.google.com/d/msg/pylons-discus

Re: pyramid_mailer exception handling

2012-06-28 Thread Robert Forkel
yes, i think send_to_queue would be better, because this allows to retry sending the message. regards robert On Thu, Jun 28, 2012 at 12:27 PM, Antonio Beamud Montero wrote: > El 27/06/12 21:18, Jason escribió: > > > > On Wednesday, June 27, 2012 12:49:19 PM UTC-4, antonio wrote: >> >> >> >> The p

Re: pyramid_mailer exception handling

2012-06-28 Thread Antonio Beamud Montero
El 27/06/12 21:18, Jason escribió: On Wednesday, June 27, 2012 12:49:19 PM UTC-4, antonio wrote: The problem is the user data is commited to the database, but the mail is not sent. I want, if the mail cannot be sent, abort the transaction, rollback the data flushed to

Re: Pyramid authentication versus 404

2012-06-28 Thread Marco Mariani
On 4 June 2012 14:59, Przemyslaw wrote: b) register a custom view handling 404 situation, that would redirect > to the login page if no user is logged in, or show actual 404 message. > I'd also need something similar for "forbidden view". This seems like > mixing layers - I don't want authentica