Re: [Catalyst] catalyst book
On 5 Feb 2008, at 13:40, Matt Rosin wrote: Also a good way to get code demos perhaps. *ahem* 08:16 @kd purl, catalyst examples? 08:16 purl somebody said catalyst examples was http:// dev.catalystframework.org/svnweb/Catalyst/browse/trunk/examples or svn co http://dev.catalyst.perl.org/repos/Catalyst/trunk/examples/ More examples welcome. ping me on irc if you want something committed to the repository. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] home dir set to /home/MyApp/lib/MyApp
On Mon, Feb 04, 2008 at 10:20:29AM +0100, Jochen Luig wrote: Hi, I encountered some strange behaviour in my Catalyst App regarding determination of the home directory. The App is the result of an attempt to manually merge two apps which I know is error-prone in the first place but I can't help it at the moment. And because the error I encountered seems to happen early in the initialization cycle I think it may be resolvable. The two Apps as well as the resulting App run with mod_perl but the behavior is the same when starting the App with the test server via script/myapp_server.pl. So I created a directory /home/MyTest on the server and put the Modules in there in accordance to the Catalyst directory structure. Now Catalyst sets the home directory to /home/MyTest/lib/MyApp instead of the expected /home/MyTest. As a quick fix I tried to use the -Home flag as follows: Don't delete the Makefile.PL Catalyst works with installed apps as well as running the app from an unpacked dist. Since Makefile.PL isn't installed, it uses that to work out whether you've installed it or not. Since without the Makefile.PL you also can't run 'make test' or 'make installdeps' it's pretty insane to delete it anyway - so don't :) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://chainsawblues.vox.com/http://www.shadowcat.co.uk/servers/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] catalyst book
*ahem* Oops! Sorry. Will come back maybe when head rises above sea level. Matt ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Advice on form submission
Start. A. New. Thread. Please. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] Advice on form submission
Hi, I'm using Catalyst with FormBuilder and TT I need an advice on how to handle multiple SUBMIT buttons on one form. I have a method: sub index : Local Form { .. This creates my main form with multiple SUBMITS like UPDATE DELETE ADD SUBSCRIBER } What would be the most elegant solution to deal with this according to Catalyst. I would prefer to have separate actions like: sub delete : Local Form { . sub update : Local Form { . Regards Peter Sorensen/university of Southern Denmark / e-mail: [EMAIL PROTECTED] ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
RE: [Catalyst] Catalyst, TT and using new filter
Thanks that worked. Below just FYI. In the meantime I found, that the problem was related to my minor knowledge to TT. The reason I wanted to trim the output was, that the code: tdtextarea [% FOREACH line IN subscribers %] [% line | undent %] [% END %] /textarea/td produces NL in the textarea field. I changed this to: tdtextarea [%- FOREACH line IN subscribers -%] [%- line | trim -%] [% END -%] /textarea/td and got rid of the NL. I was'nt aware of this. regards Peter --- easy filters: package myApp::View::TT; use strict; use base 'Catalyst::View::TT'; __PACKAGE__-config( { CATALYST_VAR = 'catalyst', ... FILTERS = { yesno = sub { $_[0] ? 'yes' : 'no'; }, onoff = sub { $_[0] ? 'on' : 'off'; }, }, }, ); 1; Peter Sørensen schrieb: Hi, I am Using catalyst, TT and formbuilder. I am struggling with output in a textarea field and would like to install a new filter to TT to be used like: tdtextarea [% FOREACH line IN subscribers %] [% line | undent %] [% END %] /textarea/td I have tried the standard trim filter but this does not give the expected result. I found a post facing the problem, where Andy Wardley suggested a undent filter and supplied code for this. My problem is where to put this code so that TT will recognize this filter according to Catalyst. Do I need to install this as a new Plugin in TT? Regards Peter Sorensen/University of Southern Denmark/E-mail: [EMAIL PROTECTED] Med venlig hilsen Peter Sørensen Vid.medarb., IT-service Tlf.6550 2858 Fax 6550 2860 Email [EMAIL PROTECTED] Web http://intern.sdu.dk/it-service/ansatte/ps-238/ Adr.Campusvej 55, 5230 Odense M SYDDANSK UNIVERSITET ___ Campusvej 55 * 5230 * Odense M * Tlf. 6550 1000 * www.sdu.dk -Oprindelig meddelelse- Fra: Gavin Henry [mailto:[EMAIL PROTECTED] Sendt: 4. februar 2008 11:50 Til: catalyst@lists.scsys.co.uk Emne: [Catalyst] Catalyst and Web Services? Hi All, If you want to provide access over SSL with auth, i.e. for example a desktop app posting and retrieving info from/to a Catalyst app what's the best way? REST or SOAP? I want the same users that normalling login via a web browser and get a cookie to be able to login via a light wee desktop app or some such? Would you create a new interface/access point on the Cat site and use REST or SOAP? All new to me, so excuse the dumb questions. Thanks. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/ -- Mit freundlichen Grüßen Felix Antonius Wilhelm Ostmann -- Websuche Search Technology GmbH Co. KG Martinistraße 3 - D-49080 Osnabrück - Germany Tel.: +49 541 40666-0 - Fax:+49 541 40666-22 Email: [EMAIL PROTECTED] - Website: www.websuche.de -- AG Osnabrück - HRA 200252 - Ust-Ident: DE814737310 Komplementärin: Websuche Search Technology Verwaltungs GmbH - AG Osnabrück - HRB 200359 Geschäftsführer: Diplom Kaufmann Martin Steinkamp -- ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Weird loss of user in session
On Mon, Feb 04, 2008 at 08:03:23PM -0800, Ashley wrote: Solved. I have a theory. I think I had a session persisting from before I turned off verify_address. Maybe? I also went back to short names authentication and session instead of the new namespaced Plugin style. Don't do that. The old-style will stoip being supported sooner or later. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://chainsawblues.vox.com/http://www.shadowcat.co.uk/servers/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] add components to files generated by C::Helper::Model::DBIC::Schema
On Mon, Feb 04, 2008 at 08:18:27PM +0100, Moritz Onken wrote: Hi, I need to add some components to some packages created by Catalyst::Helper::Model::DBIC::Schema. Which uses DBIx::Class::Schema::Loader so this question would have been better asked on the DBIC list, but never mind. I tried adding them under the md5 checksum so updates wont break, but some of them needed to be placed before Core is loaded. Why? No component I've ever written requires that. No component I've ever used requires that. Doing an extra __PACKAGE__-load_components at the bottom of the file is equivalent to adding the contents of that call in front of core in the original load_components - why won't that work? Did you even try it? :) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://chainsawblues.vox.com/http://www.shadowcat.co.uk/servers/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] using legacy auth stores with new auth system
On Mon, Feb 04, 2008 at 06:35:12PM +, Carl Franks wrote: Can the old Catalyst::Plugin::Authentication::Store::* modules be used with the new Catalyst::Authentication system? I can't see anything in the docs or list archive about how to set this in the configuration - and it looks like only 'Authentication' should be listed in the Cat plugin import list. Don't the docs say it'll search the old namespace if it can't find anything in the new one? -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://chainsawblues.vox.com/http://www.shadowcat.co.uk/servers/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] Advice on form submission
Hi, I'm using Catalyst with FormBuilder and TT I need an advice on how to handle multiple SUBMIT buttons on one form. I have a method: sub index : Local Form { .. This creates my main form with multiple SUBMITS like UPDATE DELETE ADD SUBSCRIBER } What would be the most elegant solution to deal with this according to Catalyst. I would prefer to have separate actions like: sub delete : Local Form { . sub update : Local Form { . Regards Peter Sorensen/university of Southern Denmark / e-mail: [EMAIL PROTECTED] ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] using legacy auth stores with new auth system
On 05/02/2008, Matt S Trout [EMAIL PROTECTED] wrote: On Mon, Feb 04, 2008 at 06:35:12PM +, Carl Franks wrote: Can the old Catalyst::Plugin::Authentication::Store::* modules be used with the new Catalyst::Authentication system? I can't see anything in the docs or list archive about how to set this in the configuration - and it looks like only 'Authentication' should be listed in the Cat plugin import list. Don't the docs say it'll search the old namespace if it can't find anything in the new one? I just came across LCatalyst::Plugin::Authentication/COMPATIBILITY ROUTINES a couple of minutes ago. I can use the old store package, but have to use the old auth methods, and I lose the new realms feature. Rather than use the legacy features on a new app, I'm just going to write a new Htpasswd store that uses the new auth API. Thanks, Carl ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] home dir set to /home/MyApp/lib/MyApp
Matt S Trout schrieb: Don't delete the Makefile.PL Wow, that was easy. Thanks! Wouldn't have thought of that myself in hours of banging my head against the wall to come. Jochen ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] PAR deployment w/ non-standard layout
Due to our initial development effort being broken down b/t code and design, our application has somewhat of a non-standard layout. I'm now looking to use PAR to deploy the app, but I'm having some issues due to our non-standard setup and I'm hoping someone can shed some light on the magic behind 'make catalyst_par'. Does the built PAR contain all of the app's root content? I've built some test PARs and I can't find where it has this content included. However, when I run a test server via a PAR and browse the the /tmp/par-... directory that contains the app I find the inc/lib/MyApp/root directory that contains all such rootness. If the PAR doesn't get built with root inside, then does it copy root into the /tmp/par-... directory when it is run via 'parl myapp.par script/myapp_server.pl'? Are there still issues with PAR's /tmp/par-... magic in a FCGI setup with multiple versions of the same app? Reference: http://www.gossamer-threads.com/lists/catalyst/users/11148 I want to be able to run my UAT and PROD apps on the same system, but obviously they would need different home directories. Can I use myapp.par as a FCGI internal process in mod_fcgid? Would I just replace my Apache directive references to 'script/myapp_fastcgi.pl' with 'parl myapp.par script/myapp_fastcgi.pl'? Are there any issues with using the following for mod_fcgid to support my non-standard layout: 'CATALYST_HOME=/path/to/home parl myapp.par script/myapp_fastcgi.pl'? TIA for any help. Regards, -matt pitts ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] add components to files generated by C::Helper::Model::DBIC::Schema
On Tue, Feb 05, 2008 at 11:18:46AM +0100, Moritz Onken wrote: sure I tried. Try InflateColumn::DateTime which overwrites the register_column method. It only works if it's loaded before Core. Which is what you'd be doing with a second load_components call, which is why I asked. The -actual- problem is that it needs to be loaded before the *add_columns* call. If you'd described the symptoms rather than guessing at the disease we could have solved your problem by now. Anyway, as John said - use a BEGIN block. That'll make the load_components call run before add_columns (note that you'll need to include Core in it since the first load_components won't have run yet iehter). -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://chainsawblues.vox.com/http://www.shadowcat.co.uk/servers/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] installing Catalyst::Plugin::Authentication::Store::LDAP
On 01/25/2008 06:51 PM, Jay K wrote: Catalyst::Authentication::Store::XYZ Catalyst::Authentication::Credential::XYZ What's the recommended approach for existing stores and credentials? Rename them and mark the old ones as deprecated? Create new stubs with the new names that just subclass the existing plugins? Well - Overall to update to the new naming scheme and then deprecate the old ones, yes. Catalyst::Plugin::Authentication::Store::LDAP 0.0601 is now marked at deprecated. Catalyst::Authentication::Store::LDAP 0.1000 is now the latest and greatest. Both just uploaded to CPAN etc. -- Peter Karman . [EMAIL PROTECTED] . http://peknet.com/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] javascript libraries in your application
hello!! i just started building my web application on catalyst and i'm wondering where to put my javscript library in the framework. i would greatly appreciate sharing your experience fitting javascript into this cool framework! Jennifer ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] javascript libraries in your application
On Feb 5, 2008 2:04 PM, Jennifer Ahn [EMAIL PROTECTED] wrote: hello!! i just started building my web application on catalyst and i'm wondering where to put my javscript library in the framework. Usually you want your javascript library to just download to the client as is, so under root/static is a good place. I like to set dedicated directories for static files: root/static/js root/static/css /dennis ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
RE: [Catalyst] javascript libraries in your application
I put mine under root/static/js during testing and development but on live servers I put it under /js and use mod rewrite rules to allow that and the images directory to be served up statically. For some reason having /static/js on a live URL is ghetto to me. Thanks, -- Ali Mesdaq (CISSP, GIAC-GREM) Security Researcher II Websense Security Labs http://www.WebsenseSecurityLabs.com -- From: Dennis Daupert [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 05, 2008 11:43 AM To: The elegant MVC web framework Subject: Re: [Catalyst] javascript libraries in your application On Feb 5, 2008 2:04 PM, Jennifer Ahn [EMAIL PROTECTED] wrote: hello!! i just started building my web application on catalyst and i'm wondering where to put my javscript library in the framework. Usually you want your javascript library to just download to the client as is, so under root/static is a good place. I like to set dedicated directories for static files: root/static/js root/static/css /dennis Click here https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg== JgBaACSDeMXQWRz9bcREXBI5WqhMaOjSoV05X3tupocxOU+hzbZ!McXk8aO1IcCWTJm2e1JR kak83gA7i1ZX0Rh0pjvjOVVc6jcNlB8Ds4+JocbhkZWBW7!0F73cQW1dwOla+spYSJAy!Vv4 KBKU6lr3gM0bZYMcdwivWgSmGe9NjQAjWNIXit9O to report this email as spam. Protected by Websense Messaging Security -- www.websense.com ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
RE: [Catalyst] javascript libraries in your application
Serving your javascript as a static resource is OK if your view really has a static behavior -- that is, it does not mutate as you change parameters in your request, or it is shared among multiple requests. If it is not static, you may want to serve it as templates, in the same way you serve the screen templates. For example, I have a set of somewhat similar views into a tree-shaped database. All these views share the same YUI tree component and the same AJAX dispatcher. But the way each view uses this component is not the same; the content of the nodes, and therefore the code for their construction is somewhat different, and the associated callbacks are entirely different; also, different sets of YUI modules are loaded to minimize load times, and the module dependencies are such that various modules must be included at a number of different locations inside the page. The behavior remains conceptually the same, but the details of its implementation differ so much that I have to separate and parameterize the variations. If I didn't do that, I would end up with a huge replication of my javascript code. So I think the correct answer is, it depends. If your client-side behavior is simple and does not vary, put it into static. Otherwise, there may not be a good place for it. It may have to be designed and architected in the same way you do it with you server-side code. --Gene On Tue, 5 Feb 2008, Mesdaq, Ali wrote: I put mine under root/static/js during testing and development but on live servers I put it under /js and use mod rewrite rules to allow that and the images directory to be served up statically. For some reason having /static/js on a live URL is ghetto to me. Thanks, -- Ali Mesdaq (CISSP, GIAC-GREM) Security Researcher II Websense Security Labs http://www.WebsenseSecurityLabs.com -- From: Dennis Daupert [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 05, 2008 11:43 AM To: The elegant MVC web framework Subject: Re: [Catalyst] javascript libraries in your application On Feb 5, 2008 2:04 PM, Jennifer Ahn [EMAIL PROTECTED] wrote: hello!! i just started building my web application on catalyst and i'm wondering where to put my javscript library in the framework. Usually you want your javascript library to just download to the client as is, so under root/static is a good place. I like to set dedicated directories for static files: root/static/js root/static/css /dennis Click here https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg== JgBaACSDeMXQWRz9bcREXBI5WqhMaOjSoV05X3tupocxOU+hzbZ!McXk8aO1IcCWTJm2e1JR kak83gA7i1ZX0Rh0pjvjOVVc6jcNlB8Ds4+JocbhkZWBW7!0F73cQW1dwOla+spYSJAy!Vv4 KBKU6lr3gM0bZYMcdwivWgSmGe9NjQAjWNIXit9O to report this email as spam. Protected by Websense Messaging Security -- www.websense.com ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/