[Catalyst] Re: A very strange question,please help me

2007-04-09 Thread Cookie
ADDITIONAL: When I visit the website using firefox,it dosen't happen. I use the httpwatch to look at the communication process. When I visit the windows website(normal),The only post ACTION is Submit form. When I visit the Linux website(unnormal),The first post ACTION is Submit form,and second is

Re: [Catalyst] update record with unique ID

2007-04-09 Thread Danny Warren
Michael Higgins wrote: Right. I want to update the record as defined by that primary key. I guess I found the answer: ->update_or_create({ Seems to do the trick, checking for unique and updating with other values posted. Too easy, as usual. ;-) Cheers, Ignore my response as well then...

RE: [Catalyst] update record with unique ID

2007-04-09 Thread Michael Higgins
> -Original Message- > From: Christopher H. Laco [mailto:[EMAIL PROTECTED] > > Michael Higgins wrote: > > Hello, Cat-list-ers, > > > > Here's a pared-down version of my question, hoping it's an easy one: > > > > ERROR: > > "DBIx::Class::ResultSet::update(): Error executing 'UPDATE ... >

Re: [Catalyst] update record with unique ID

2007-04-09 Thread Danny Warren
Christopher H. Laco wrote: Michael Higgins wrote: Hello, Cat-list-ers, Here's a pared-down version of my question, hoping it's an easy one: ERROR: "DBIx::Class::ResultSet::update(): Error executing 'UPDATE ... Duplicate entry '140949' for key 1 at QUESTION: How do we specify UPDATE ... blah

Re: [Catalyst] update record with unique ID

2007-04-09 Thread Christopher H. Laco
Michael Higgins wrote: > Hello, Cat-list-ers, > > Here's a pared-down version of my question, hoping it's an easy one: > > ERROR: > "DBIx::Class::ResultSet::update(): Error executing 'UPDATE ... > Duplicate entry '140949' for key 1 at > > QUESTION: > How do we specify UPDATE ... blah WHERE (ID=

[Catalyst] update record with unique ID

2007-04-09 Thread Michael Higgins
Hello, Cat-list-ers, Here's a pared-down version of my question, hoping it's an easy one: ERROR: "DBIx::Class::ResultSet::update(): Error executing 'UPDATE ... Duplicate entry '140949' for key 1 at QUESTION: How do we specify UPDATE ... blah WHERE (ID='UNIQUE') CODE: my $result = [$c->mode

Re: [Catalyst] A very strange question,please help me

2007-04-09 Thread Andy Grundman
On Apr 9, 2007, at 7:27 AM, Cookie wrote: the same code(example in CPAN) when I run the program(login part,post username and password to server) in the windows,it can normally show to me,but when I run the program in a Linux server,the form will post to the server twice.It's very odd.I don

[Catalyst] A very strange question,please help me

2007-04-09 Thread Cookie
the same code(example in CPAN) when I run the program(login part,post username and password to server) in the windows,it can normally show to me,but when I run the program in a Linux server,the form will post to the server twice.It's very odd.I don't know where the reason is?Please help me. [deb

Re: [Catalyst] How to make chained actions nice?

2007-04-09 Thread Robert 'phaylon' Sedlacek
Danny Warren wrote: > # Responds to /object/list > sub list : Local { ... } > > # Captures object id, as in /object/[OBJ_ID] > sub object : PathPart('object') Chained CaptureArgs(1) { ... } > > # Responds to /object/[OBJ_ID]/edit > sub edit : Chained('object') Args(0) { ... } > > # Chain point

Re: [Catalyst] Generate dynamic list

2007-04-09 Thread Gavin Henry
> >> I just insclude the prototype.js script directly in my html template >> whenever I need to use prototype. More info: >> >> http://www.prototypejs.org/ >> http://wiki.script.aculo.us/scriptaculous/show/Prototype >> >> Danny Warren >> >> > > Yeah, Javascript is the way to go. Here's what I do

Re: [Catalyst] Generate dynamic list

2007-04-09 Thread Gavin Henry
> I just insclude the prototype.js script directly in my html template > whenever I need to use prototype. More info: > > http://www.prototypejs.org/ > http://wiki.script.aculo.us/scriptaculous/show/Prototype > > Danny Warren > > Yeah, Javascript is the way to go. Here's what I do with Dojo: my