Re: Debugging failed tests with pylons globals

2008-07-08 Thread Alberto Valverde
On Mon, Jul 7, 2008 at 10:04 PM, Justin Tulloss [EMAIL PROTECTED] wrote: I have to admit that despite my digging through the source, I do not have a good understanding of the StackedObjectProxy class and am constantly doing battle with it. I don't think there's anybody who doesn't do

mod_wsgi and sqlalchemy problem

2008-07-08 Thread antonio
Hi all: I'm using mod_wsgi 2.0 and sqlalchemy 0.4.6. In my app I'm using a tiny database to register info, like image title, description, etc.. My problem arises when I try to use my app under mod_wsgi. If I run my app with paster, all works fine, but when

Re: mod_wsgi and sqlalchemy problem (solved)

2008-07-08 Thread Antonio Beamud Montero
El mar, 08-07-2008 a las 07:05 -0700, Graham Dumpleton escribió: Start by reading: http://code.google.com/p/modwsgi/wiki/ApplicationIssues Issues could be fact that your paster startup is dependent on user shell environment not available to Apache or that under Apache code is run as

about pylons's data validation

2008-07-08 Thread JOLINY
In pylons0.9.6, I use mako template and formencode ,how to do the data validation. I have wrote the validators ,but when input data is wrong formate ,how can i use the formencode to return the input page and show the error message on the input page and with the entered data to fill the

Re: about pylons's data validation

2008-07-08 Thread Jonathan Vanasco
Read this http://wiki.pylonshq.com/display/pylonsdocs/Form+Handling --~--~-~--~~~---~--~~ 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

Example of FormEncode CreditCardValidator usage?

2008-07-08 Thread Wyatt Baldwin
Does anyone out there have an example of using FormEncode's CreditCardValidator in a FormEncode schema? I'm using the schema with the Pylons validate decorator. My Schema currently looks something like this: class EnterInfoValidator(Schema): first_name = String(not_empty=True) last_name

Re: Example of FormEncode CreditCardValidator usage?

2008-07-08 Thread Rick Flosi
Have you looked at the source code? I think there might be an example or at least more info in the doc string. I think you might need to define cc_type and cc_number in your validator schema as well. It's been awhile since I've used it. On Tue, Jul 8, 2008 at 2:12 PM, Wyatt Baldwin [EMAIL

Re: tests fail because of g

2008-07-08 Thread Mike Orr
On Mon, Jul 7, 2008 at 3:58 PM, Mike Orr [EMAIL PROTECTED] wrote: On Mon, Jul 7, 2008 at 3:29 PM, Wichert Akkerman [EMAIL PROTECTED] wrote: Putting database lookup values into 'g' was an idea I had not thought of. When I've come across that situation, I put a function in the model that

Re: Example of FormEncode CreditCardValidator usage?

2008-07-08 Thread Wyatt Baldwin
On Jul 8, 2:17 pm, Rick Flosi [EMAIL PROTECTED] wrote: Have you looked at the source code? I think there might be an example or at least more info in the doc string. I think you might need to define cc_type and cc_number in your validator schema as well. I came up with the following, which

Re: Example of FormEncode CreditCardValidator usage?

2008-07-08 Thread Rick Flosi
You might be able to do it without the pre_validator like: class EnterInfoValidator(Schema): first_name = String(not_empty=True) last_name = String(not_empty=True) cc_type = String(not_empty=True) cc_number = Int(not_empty=True) cc_validator = CreditCardValidator('cc_type',

Re: Debugging failed tests with pylons globals

2008-07-08 Thread Mike Orr
On Tue, Jul 8, 2008 at 2:18 AM, Alberto Valverde [EMAIL PROTECTED] wrote: StackedObjectProxy might not be the best implementation (although I can't imagine how to improve it since there are so many edge cases involved..., eg: those that have been tripping people over when testing) but it is

Re: WebHelpers 0.6 released

2008-07-08 Thread Jose Galvez
Great Job Mike, webhelpers is a fantastic tool! But since you've removed the javascript stuff (which you really can't be blamed for, I can only imagine how hard it is to keep up with the moving target that is javascript libs) does anyone have a link_to_remote equivalent that works with jquery?

Re: WebHelpers 0.6 released

2008-07-08 Thread Ben Bangert
On Jul 8, 2008, at 6:26 PM, Jose Galvez wrote: Great Job Mike, webhelpers is a fantastic tool! But since you've removed the javascript stuff (which you really can't be blamed for, I can only imagine how hard it is to keep up with the moving target that is javascript libs) does anyone have