Re: Model validation

2011-12-14 Thread rihad
Hi, Chris. Since Deform doesn't mention CSRF, I assume it must be done by another session-based plugin at the discretion of the developer? Like, opt-in security? :) Also, the docs say that some form controls rely on JS being available. That's understandable, like in the case of date-time controls.

Re: Events system

2011-12-14 Thread jerry
I would appreciate some confirmation/explanation on the Pyramid event system -- is event/subscribe restricted to Pyramid running on one physical server? Thanks. Jerry On Dec 14, 7:13 am, John Anderson son...@gmail.com wrote: On Tue, Dec 13, 2011 at 5:10 PM, Vlad K. v...@haronmedia.com wrote:

Re: Events system

2011-12-14 Thread Michael Merickel
Pyramid's event system is simply the ZCA registry. You can add subscribers to data types/interfaces, and you can notify those subscribers via the registry. class MyEvent(object): pass @subscribe(MyEvent) def do_something(event): # do stuff with the event e = MyEvent()

Re: Events system

2011-12-14 Thread Chris McDonough
On Wed, 2011-12-14 at 01:11 -0800, jerry wrote: I would appreciate some confirmation/explanation on the Pyramid event system -- is event/subscribe restricted to Pyramid running on one physical server? Yes. - C Thanks. Jerry On Dec 14, 7:13 am, John Anderson son...@gmail.com wrote:

Re: Model validation

2011-12-14 Thread rihad
Thanks for the tip and sorry, I didn't mean to offend anybody. -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to

Re: Events system

2011-12-14 Thread jerry
Thanks Michael and Chris. From the framework design point of view, such event system is invaluable. But for application development, I fail to see its added value compared to simple function call. And it makes parsing variables harder. E.g., I'd naively design Michael's example as -- class

Re: Events system

2011-12-14 Thread Michael Merickel
The point of any event system is that the subscribers are decoupled from the publishers. In your example it seems you're mangling the concept of an event to mean publish and it's heavily coupled to the do_something listener. Anyway the point is that Pyramid has a pub/sub system within it that

Re: Events system

2011-12-14 Thread Robert Forkel
If you know the list of subscribers for each event when coding the event, your approach works. But if you want to allow plugins or other packages to hook into the events, it breaks down. I'm using events to allow for configurable notification emails. Some configurations of the application will

Re: FAPWS / Gevent and Nginx

2011-12-14 Thread Simon Yarde
Thanks again Phillip. The uWSGI docs are certainly not of the calibre of Pyramid's docs :) -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group,

Pyramid: How to overwrite existing config directives?

2011-12-14 Thread Robert Forkel
Hi all, i was trying to abuse the 'add_directive' method of a Configurator to disable built-in directives, but failed, because add_directive will only add new ones. Now this may be totally unreasonable in the first place, but what I wanted to accomplish is the following: I'd like to have static

Re: Events system

2011-12-14 Thread Thomas G. Willis
The event system in pyramid is simple and kicks ass. I use it to do the following 1: notify interested users about interesting things via email or sms based on their profile preferences. 2: notify the js clients running in the browser via pubnub( http://www.pubnub.com/) of interesting

Re: Pyramid: How to overwrite existing config directives?

2011-12-14 Thread Chris McDonough
On Wed, 2011-12-14 at 04:15 -0800, Robert Forkel wrote: Hi all, i was trying to abuse the 'add_directive' method of a Configurator to disable built-in directives, but failed, because add_directive will only add new ones. Now this may be totally unreasonable in the first place, but what I

Re: Pyramid: How to overwrite existing config directives?

2011-12-14 Thread Robert Forkel
No, I think Pyramid is handling everything correctly. Here's what I do: I have one application which may be installed multiple times with different configurations. These configurations are implemented as packages which are included using config.include(). The application provides defaults for

Pyramid 1.3a2 released

2011-12-14 Thread Chris McDonough
Pyramid 1.3a2 has been released. It is another alpha in the 1.3 series. Here's what happened: 1.3a2 (2011-12-14) == Features - New API: ``pyramid.view.view_defaults``. If you use a class as a view, you can use the new ``view_defaults`` class

Re: Model validation

2011-12-14 Thread rihad
Doesn't Deform fill in the form with the values submitted when a validation error occurs? -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send

Re: Model validation

2011-12-14 Thread Chris McDonough
On Wed, 2011-12-14 at 07:19 -0800, rihad wrote: Doesn't Deform fill in the form with the values submitted when a validation error occurs? Can you describe what's unclear about http://docs.pylonsproject.org/projects/deform/en/latest/basics.html#validating-a-form-submission - C -- You

Re: Model validation

2011-12-14 Thread rihad
On Dec 14, 11:34 pm, Chris McDonough chr...@plope.com wrote: On Wed, 2011-12-14 at 07:19 -0800, rihad wrote: Doesn't Deform fill in the form with the values submitted when a validation error occurs? Can you describe what's unclear

Re: pycharm 2, supports jinja2 and mako now...

2011-12-14 Thread Blaise Laflamme
yeah looks promising... I'm an owner since pre 1.0 release, just never got the time to be used to a full IDE :( -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To view this discussion on the web visit

[it_support-11] Digest for pylons-discuss@googlegroups.com - 18 Messages in 10 Topics (Opened)

2011-12-14 Thread I . T . Support
Hello, This is a courtesy e-mail to let you know that we have received your helpdesk query with a subject of Digest for pylons-discuss@googlegroups.com - 18 Messages in 10 Topics. You do not have to do anything further at this stage. Your ticket has been assigned a number of [it_support-11]

[it_support-15] Digest for pylons-discuss@googlegroups.com - 5 Messages in 2 Topics (Opened)

2011-12-14 Thread I . T . Support
Hello, This is a courtesy e-mail to let you know that we have received your helpdesk query with a subject of Digest for pylons-discuss@googlegroups.com - 5 Messages in 2 Topics. You do not have to do anything further at this stage. Your ticket has been assigned a number of [it_support-15]

[it_support-16] Digest for pylons-discuss@googlegroups.com - 5 Messages in 2 Topics (Opened)

2011-12-14 Thread I . T . Support
Hello, This is a courtesy e-mail to let you know that we have received your helpdesk query with a subject of Digest for pylons-discuss@googlegroups.com - 5 Messages in 2 Topics. You do not have to do anything further at this stage. Your ticket has been assigned a number of [it_support-16]

[it_support-19] Digest for pylons-discuss@googlegroups.com - 3 Messages in 2 Topics (Opened)

2011-12-14 Thread I . T . Support
Hello, This is a courtesy e-mail to let you know that we have received your helpdesk query with a subject of Digest for pylons-discuss@googlegroups.com - 3 Messages in 2 Topics. You do not have to do anything further at this stage. Your ticket has been assigned a number of [it_support-19]

Re: [it_support-7] Digest for pylons-discuss@googlegroups.com - 4 Messages in 3 Topics (Opened)

2011-12-14 Thread Chris McDonough
Sorry bout that, I've put this poster into a moderated-post mode. On Wed, 2011-12-14 at 22:16 +, I.T.Support wrote: Helpdesk Hello, This is a courtesy e-mail to let you know that we have received your helpdesk query with a subject of Digest for pylons-discuss@googlegroups.com - 4

Re: Dynamically updating radio buttons and checklists

2011-12-14 Thread not a web developer
Thanks for the help on this guys. It took me a while to get back here and read the responses, but I really appreciate it. Cheers! Coop On Dec 9, 11:17 am, Mark Erbaugh m...@microenh.com wrote: On Dec 8, 2011, at 4:03 PM, not a web developer wrote: I am not a web developer. I am trying to