Re: Validating a select box

2010-03-02 Thread Jonathan Vanasco
sorry, i'm sick and really loopy... let me rephrase ( and this may have changed since last i tested a while bac ) everything that comes through request.params / submitted to your pylons app is a string there are some neat validators that will handle conversions for you, so everything is seamless

Re: Routes 1.12 issue

2010-03-02 Thread Eric Lemoine
On Monday, March 1, 2010, Ben Bangert wrote: > On Mar 1, 2010, at 9:42 AM, Eric Lemoine wrote: > >> I have a problem since Routes 1.12 was uploaded to pypi: >> >> I do url_for(action="myaction") in one of my controllers. With Routes >> 1.11 it returns the URL to the controller's "myaction" action.

Re: Validating a select box

2010-03-02 Thread Mike Orr
On Tue, Mar 2, 2010 at 7:02 PM, Mike Orr wrote: > I don't understand Johnathan's point.  Most fields are strings, yes. > But I assumed Mark wanted integers.  That's what SelectInt is for. > Otherwise you can just use OneOf. > > On Tue, Mar 2, 2010 at 5:28 PM, Mark wrote: >> Thank you for the deta

Re: Validating a select box

2010-03-02 Thread Mike Orr
I don't understand Johnathan's point. Most fields are strings, yes. But I assumed Mark wanted integers. That's what SelectInt is for. Otherwise you can just use OneOf. On Tue, Mar 2, 2010 at 5:28 PM, Mark wrote: > Thank you for the detailed explanation. > > One thing:  What does __unpackargs__

Re: Validating a select box

2010-03-02 Thread Mark
Thank you for the detailed explanation. One thing: What does __unpackargs__ do? I don't see this being used everytime, is it something optional? What do you usually supply it with? On Mar 3, 3:08 am, Mike Orr wrote: > On Tue, Mar 2, 2010 at 3:20 AM, Mark wrote: > > Hi guys, > > > Which valida

Re: pylons/mako settings

2010-03-02 Thread grafman
Thanks Mike! I really appreciate the assist. On Mar 1, 9:06 pm, Mike Orr wrote: > On Mon, Mar 1, 2010 at 7:02 PM, grafman wrote: > >  I want to set up mako so that it doesn't generate html entities in > > firefox so I need to change the default output of helper functions > > from utf-8 to ascii.

Re: Validating a select box

2010-03-02 Thread Jonathan Vanasco
Mike danced around a good point above which he didn't explictly mention - for most formencode validators the results will be Strings -- both in the validator and form_result. So they may mess up your comparisons or validations. -- You received this message because you are subscribed to the Googl

Re: Validating a select box

2010-03-02 Thread Mike Orr
On Tue, Mar 2, 2010 at 3:20 AM, Mark wrote: > Hi guys, > > Which validator should I use for a select box, where the 'value' of > the option selected is a number? > > For instance: > > > A > B > C > > > I am pulling the values to populate the select box from the database. > Should I use OneOf or

Re: Trying to work out how best to use pylons with netbeans.

2010-03-02 Thread Mark
If IDE is not an issue, I would highly recommend KomodoEdit. The community offers Mako highlighting, and the IDE itself offers exceptional Python integration. It works great. On Mar 2, 6:44 pm, SystemicPlural wrote: > A good start would be working out how I start paster from within > netbeans?

Re: Validating optional fields in a form

2010-03-02 Thread Mark
I found a very good article on Formencode that I think would greatly benefit the Pylons community. Chanced upon this while surfing through Delicious: http://grahamstratton.org/straightornamental/entries/formencode On Mar 1, 10:18 am, Ian Wilson wrote: > If you set allow_extra_fields=True and

Re: Orbited / server push tutorials

2010-03-02 Thread Brian O'Connor
So I don't have any tutorials for you, but I can tell you what I did. I set up a stomp server (morbidq for testing) on port 61619 (or whatever), set up orbited, set up pylons. In app_globals, I set up a connection to the stomp server. On the javascript side, I use the orbited libraries to open a