[Catalyst] Building a PAR file

2009-02-26 Thread Octavian Râşniţă
Hello, I've tried to create a PAR archive from a Catalyst app and I've done: 1. Put catalyst_par(); in Makefile.PL. 2. Run perl Makefile.PL 3. Run nmake catalyst_par But it gave the following error: Writing PAR "acces.par" NMAKE : fatal error U1077: 'E:\perl510\bin\perl.exe' : return code '0

[Catalyst] Add a /doc/ path at the end of all paths?

2009-02-26 Thread Ovid
Hi all, We're trying to make our REST API a bit more friendly, We have a base class for our REST API which inherits from Catalyst::Controller::REST. Our various REST classes which inherit from this and each class can identify the query parameters it accepts. So we thought it would be nice t

Re: [Catalyst] Add a /doc/ path at the end of all paths?

2009-02-26 Thread Ovid
- Original Message > From: Ovid > It doesn't work. $self is *always* a PIPs::C::API::V1::Franchise instance, > no > matter which URL is called. This appears to be because of this: > > [26 Feb 2009 15:07:40,509] [Catalyst.Dispatcher] [DEBUG] Loaded Private > actions: > > .-

Re: [Catalyst] Add a /doc/ path at the end of all paths?

2009-02-26 Thread J. Shirley
On Thu, Feb 26, 2009 at 7:14 AM, Ovid wrote: > Hi all, > > We're trying to make our REST API a bit more friendly, We have a base > class for our REST API which inherits from Catalyst::Controller::REST. Our > various REST classes which inherit from this and each class can identify the > query pa

Re: [Catalyst] Add a /doc/ path at the end of all paths?

2009-02-26 Thread Ovid
___ From: J. Shirley > If you structure your base class properly, and then in each class you > configure where to chain from: > > __PACKAGE__->config( > actions => { 'setup' => { Chained => '/some/other/chain', PathPart => > 'api' } } > ); > > You can override

Re: [Catalyst] Add a /doc/ path at the end of all paths?

2009-02-26 Thread J. Shirley
On Thu, Feb 26, 2009 at 8:23 AM, Ovid wrote: > ___ > From: J. Shirley > > > If you structure your base class properly, and then in each class you > configure where to chain from: > > > > __PACKAGE__->config( > > actions => { 'setup' => { Chained => '/some/other/ch

[Catalyst] Catalyst on Windows: fork issues

2009-02-26 Thread Stefan Washietl
I'm using Catalyst for building an application that can be run as web-application and as desktop application under linux/OSX and Windows. I'm using Strawberry Perl for Windows and in principle everthing works fine. I can run a basic application without problems. However, I need a way to have

Re: [Catalyst] Catalyst on Windows: fork issues

2009-02-26 Thread Andy Grundman
On Feb 26, 2009, at 11:42 AM, Stefan Washietl wrote: I'm using Catalyst for building an application that can be run as web-application and as desktop application under linux/OSX and Windows. I'm using Strawberry Perl for Windows and in principle everthing works fine. I can run a basic a

[Catalyst] (OT) Navigation parameters in session

2009-02-26 Thread Zbigniew Lukasiak
Here at work we have this rule that the page urls should not contain any parameters (think page number, sorting order etc) - but that everything should be hidden in the session. I think I can have some fighting chance to counter that trend if I feed the bosses with some authoritative enough docume

Re: [Catalyst] (OT) Navigation parameters in session

2009-02-26 Thread J. Shirley
On Thu, Feb 26, 2009 at 8:54 AM, Zbigniew Lukasiak wrote: > Here at work we have this rule that the page urls should not contain > any parameters (think page number, sorting order etc) - but that > everything should be hidden in the session. I think I can have some > fighting chance to counter t

Re: [Catalyst] (OT) Navigation parameters in session

2009-02-26 Thread Sebastian Willert
On Thu, 2009-02-26 at 09:06 -0800, J. Shirley wrote: > On Thu, Feb 26, 2009 at 8:54 AM, Zbigniew Lukasiak > wrote: > Here at work we have this rule that the page urls should not > contain > any parameters (think page number, sorting order etc) - but > that >

Re: [Catalyst] IO::Pipe and the Catalyst Server

2009-02-26 Thread Bill Moseley
Hi Florian, You asked for a test. Did this get applied? On Thu, Feb 05, 2009 at 09:25:34AM -0800, Bill Moseley wrote: > On Thu, Feb 05, 2009 at 04:28:57PM +0100, Florian Ragwitz wrote: > > On Thu, Feb 05, 2009 at 07:10:07AM -0800, Bill Moseley wrote: > > > Same problem. > > > > Would you mind p

Re: [Catalyst] Catalyst on Windows: fork issues

2009-02-26 Thread Rodrigo
Stefan, I've had similar problems in windows with prefork, which can be started up after some tweaking, but will hang after a few requests. Perl's fork() is a no-no in windows. FCGI can be painful to setup, so I ended up giving up on it. I went on to use mod_perl with Apache, which has problems of

Re: [Catalyst] Catalyst on Windows: fork issues

2009-02-26 Thread Kieren Diment
Good call. Lighttpd will be much simpler than apache, as it's a single standalone executable, just run it with lighttpd -f my_config_file Here's a vbs that will get your .bat file that does all of the jiggery- pokery running without a cmd.exe window at startup. I put everything in %APPL

Re: [Catalyst] Catalyst on Windows: fork issues

2009-02-26 Thread Kieren Diment
Haha, here's the vbs: Set fso = CreateObject("Scripting.FileSystemObject") Set WshShell = CreateObject("WScript.Shell") WshShell.Run chr(34) & fso.GetParentFolderName(wscript.ScriptFullName) & "\perl shell.bat"& Chr(34), 0 Set WshShell = Nothing And I put a shortcut to this in ~/startup, Sho

Re: [Catalyst] (OT) Navigation parameters in session

2009-02-26 Thread f00li5h
On Fri, 27 Feb 2009 03:54:04 +1100, Zbigniew Lukasiak wrote: > Here at work we have this rule that the page urls should not contain > any parameters (think page number, sorting order etc) - but that > everything should be hidden in the session. I think I can have some > fighting chance to counte

Re: [Catalyst] Building a PAR file

2009-02-26 Thread Toby Corkindale
Octavian Râşniţă wrote: Hello, I've tried to create a PAR archive from a Catalyst app and I've done: 1. Put catalyst_par(); in Makefile.PL. 2. Run perl Makefile.PL 3. Run nmake catalyst_par But it gave the following error: Writing PAR "acces.par" NMAKE : fatal error U1077: 'E:\perl510\bin\p

Re: [Catalyst] Catalyst on Windows: fork issues

2009-02-26 Thread Chris
> And I put a shortcut to this in ~/startup, Shortcut.exe (free download) > seems to work.  Here's my install.bat script ;) : > > And here's how to create a shortcut in vbs, so you don't need shortcut.exe: (This creates a link to an access MDE-based app, but the principal applies..) Set oWS = WSc

[Catalyst] Re: (OT) Navigation parameters in session

2009-02-26 Thread Aristotle Pagaltzis
Users will not be e able to use the back button, and they will not be able to work in multiple tabs. You will not be able to load-balance as effectively as you could without sessions. A lot of your content will be hidden from search engines. I could think of more, but that should be enough for a st

Re: [Catalyst] Building a PAR file

2009-02-26 Thread Octavian Râşniţă
From: "Toby Corkindale" Hi Octavian, I use PAR to package some apps under Win32, which work fine, so I thought I'd give it a short with Catalyst as I know the PAR system is known-good on that win32 VM. I used cpanplus to install Catalyst::Devel, then ran 'catalyst MyApp', then added catalys

Re: [Catalyst] Re: (OT) Navigation parameters in session

2009-02-26 Thread Zbigniew Lukasiak
On Fri, Feb 27, 2009 at 4:11 AM, Aristotle Pagaltzis wrote: > Users will not be e able to use the back button, and they will > not be able to work in multiple tabs. You will not be able to > load-balance as effectively as you could without sessions. A lot > of your content will be hidden from sear

Re: [Catalyst] Re: (OT) Navigation parameters in session

2009-02-26 Thread Hans Dieter Pearcey
On Fri, Feb 27, 2009 at 08:12:55AM +0100, Zbigniew Lukasiak wrote: > Thanks for you all for the arguments. The crazy thing is that they > believe that with some > Javascript magic we'll be able to manage the multiple tabs and back > button problem. And now you have three problems. hdp.