HTML select multiple handling

2007-09-11 Thread voltron
Hi! can someone point me to the docs or show me with a code snippet on how I would handle select tags with the attribute multiple? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To

Re: Running Pylons via FastCGI (Again)

2007-09-11 Thread Jens Hoffrichter
Hello, On 9/11/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Issuing an os.chdir(/path/to/pylons) fixed the problem although I am > not sure if this is the best solution or not. If there any suggestions > on how to make this work better, I would really appreciate it. I think you need to a

Re: Running Pylons via FastCGI (Again)

2007-09-11 Thread [EMAIL PROTECTED]
On Sep 11, 4:57 am, "Jens Hoffrichter" <[EMAIL PROTECTED]> wrote: > I think you need to add the pylons path to the library paths in python. > > I normally do something like this: > > import sys > > sys.path = I had done that: pkg_resources.working_set.add_entry('/path/to/pylons') sys.path.append

Re: why does pylons depends on nose<=0.9.9

2007-09-11 Thread JP
On Sep 11, 12:53 am, Philip Jenvey <[EMAIL PROTECTED]> wrote: > On Sep 10, 2007, at 2:13 PM, JP wrote: > We actually removed the <= 0.10.0 requirement for Pylons 0.9.6's > release, so Pylons users are probably getting the latest beta > installed. Unfortunately setuptools doesn't have a way of res

Problems with generators

2007-09-11 Thread Chris AtLee
I've run into a few problems using generators in my controller methods to return data. I've created a test controller below that demonstrates two things I've found so far. The first is that using abort() from a generator method doesn't seem to be caught properly by pylons (or maybe paste) so ins

Re: Problems with generators

2007-09-11 Thread Ben Bangert
On Sep 11, 2007, at 9:13 AM, Chris AtLee wrote: The first is that using abort() from a generator method doesn't seem to be caught properly by pylons (or maybe paste) so instead of the client getting a 404 error, he sees a "Server Error" page (HTTP status 200). Correct, you can't abort in a gen

Re: Running Pylons via FastCGI (Again)

2007-09-11 Thread Jens Hoffrichter
Oops, when I just saw this posting, I saw that somehow half the message was truncated. Don't know how that happened It should read: import sys sys.path = [ sys.path[0], '/path/to/pylons'] + sys.path[1:] That does the trick for me in normal python applications, it should work in pylons as w

Re: HTML select multiple handling

2007-09-11 Thread Jose Galvez
What do you mean, how write the code into a webpage, how to show the selected items or how to deal with what gets sent in the post? Jose On 9/11/07, voltron <[EMAIL PROTECTED]> wrote: > > > Hi! > > can someone point me to the docs or show me with a code snippet on how > I would handle select tags

ToscaWidgets and populating a FormFieldRepeater

2007-09-11 Thread Isaac Csandl
Hi, Based on the code in twForms ... samples.py, I'm trying to do the same basic idea with a Person object which has multiple Address objects. The address fields all appear but are not populated, even though the name of the repeater matches the addresses attribute on Person (which is a list of A

Re: _current_obj

2007-09-11 Thread Max Ischenko
Hello, On 9/11/07, Ben Bangert <[EMAIL PROTECTED]> wrote: > > > Yep, again, once the generator is passed up the stack, Pylons wraps > up its globals (if it didn't, they'd leak). You can grab local copies > of some of the globals in your generator like: > > def somegen(): > req = request._curr

Re: _current_obj

2007-09-11 Thread Max Ischenko
On 9/12/07, Max Ischenko <[EMAIL PROTECTED]> wrote: > > Hello, > > On 9/11/07, Ben Bangert <[EMAIL PROTECTED]> wrote: > > > > > > Yep, again, once the generator is passed up the stack, Pylons wraps > > up its globals (if it didn't, they'd leak). You can grab local copies > > of some of the globals

Re: HTML select multiple handling

2007-09-11 Thread voltron
I meant how to deal with what gets sent with the post actually, I have not found any examples on the net. Thanks On Sep 12, 12:02 am, "Jose Galvez" <[EMAIL PROTECTED]> wrote: > What do you mean, how write the code into a webpage, how to show the > selected items or how to deal with what gets sen