Re: [Catalyst] Sending 3000 emails.

2015-11-26 Thread Octavian Rasnita
A queue in Perl is better when there is a need of sending thousand messages. Without a queue, if the Catalyst-based code just sends the messages directly and a browser is waiting for a page to load after the web app sent them, it may time-out. But otherwise it should work and not crash the web ap

Re: [Catalyst] Keep Plack -r working when commandline closed...?

2015-10-27 Thread Octavian Rasnita
e Makholm To: The elegant MVC web framework Sent: Monday, October 26, 2015 11:37 PM Subject: Re: [Catalyst] Keep Plack -r working when commandline closed...? On Mon, Oct 26, 2015 at 9:55 AM, Octavian Rasnita wrote: When I connect to Linux servers using SSH and run the progr

Re: [Catalyst] Keep Plack -r working when commandline closed...?

2015-10-26 Thread Octavian Rasnita
When I connect to Linux servers using SSH and run the programs using perl program.pl > something.log 2>&1 & then I can use the command exit to close the SSH console but the program continues to run. I remember that in past I needed to use nohup, but in last years I didn't need it anymore. Is th

Re: [Catalyst] Where best to store database connection information?

2015-02-16 Thread Octavian Rasnita
ng the database username/password stored in a text file. And what do people consider best practice for this from a security point of view? Thanks Adam -Original Message----- From: Octavian Rasnita [mailto:orasn...@gmail.com] Sent: 16. februára 2015 17:10 To: The elegant MVC web framewo

Re: [Catalyst] Where best to store database connection information?

2015-02-16 Thread Octavian Rasnita
Catalyst uses Config::General to read .conf files. If Config::General is configured with the option -UseApacheInclude, then you can use an apache "include file.conf" in the .conf file to include another file from another directory which is not saved by git. Or the option -IncludeDirectories can

Re: [Catalyst] forward not working correctly ?

2015-01-29 Thread Octavian Rasnita
From: "Luca Ferrari" Hi all, I'm surely missing something in my action: sub edit : Local Form { my ( $self, $c, $id ) = @_; my $form = $self->formbuilder(); ... if ( $is_form_ok ){ ... $c->forward( 'list' ); } else { ... } } The result is that the same page

Re: [Catalyst] Catalyst 5.90080 on CPAN!

2015-01-19 Thread Octavian Rasnita
From: "Craig Chant" Thanks Chakkit, However, I run Active-State Perl on IIS and have done for 12 years. Regards, Craig Catalyst works fine with ActivePerl, so you shouldn't have any problem upgrading it. You can make a backup of your current Perl instalation with Control+C, Control+V

Re: [Catalyst] Advent Calendar... Grant proposal...

2015-01-18 Thread Octavian Rasnita
From: Octavian said: Imho a beginner should not start by creating "best practice" apps, but apps which help him/her to understand each step as easy as possible. She or he just need to know that there are better ways that will be learned later. Your 2012 Catalyst Advent Calendar articles "Ca

Re: [Catalyst] Advent Calendar... Grant proposal...

2015-01-18 Thread Octavian Rasnita
From: I think that one of the main use of Perl is to create web apps. And the best way of creating web apps is by using a web framework. And the most developed web framework for Perl is Catalyst. But those who prefer other frameworks do it because they consider Catalyst too complex and hard t

Re: [Catalyst] Advent Calendar... Grant proposal...

2015-01-03 Thread Octavian Rasnita
From: Kieren Diment The catalyst docs could do with a substantial review, they haven't had much attention lately. In particular there could do with being a good index. I think the issue with people thinking catalyst is too big/complex is that lots and lots of developers are used to a pr

[Catalyst] Advent Calendar... Grant proposal...

2015-01-03 Thread Octavian Rasnita
From: http://www.catalystframework.org/calendar/2014/21 "I've also considered making a request for a grant from the Perl Foundation in order to work on these docs, and wonder what you all think of that :)" I think that one of the main use of Perl is to create web apps. And the best way of cre

[Catalyst] Requirement to add for C::A::Serialize::JSON to not give Content-Type application/json is not supported

2014-12-26 Thread Octavian Rasnita
Hello and... Marry Christmas! I tried to use Catalyst::Controller::REST, but it returned the error "Content-Type application/json is not supported.". I've seen that somehow I had the module Catalyst::Action::Serialize::JSON installed, so it should have been working. I checked its source code

Re: [Catalyst] Random thoughts on helper class generation

2014-01-27 Thread Octavian Rasnita
From: "neil.lunn" > On 27/01/2014 1:27 PM, John Napiorkowski wrote: >> Neil, >> >> I know the problem we have here, but honestly I think the solution is going >> to be more about having less stuff in Catalyst.pm rather than more... > Hi John, > > Actually probably missed something in my intende

Re: [Catalyst] Re: Content Disposition filename

2013-12-03 Thread Octavian Rasnita
From: Bill Moseley On Tue, Nov 19, 2013 at 10:32 AM, Bill Moseley wrote: Anyone aware of a good, portable way in Perl to encode the filename in a Content-Disposition header? I would like to support UTF8 filenames, but support in browsers is unclear (if not changing). Is this co

Re: [Catalyst] Can't detach from root / create action object

2013-11-27 Thread Octavian Rasnita
From: "Craig Chant" Hi Andre, That is clearer, and Alexander provided me with a working solution, but it doesn't make sense with your example. $action is an action object isn't it? So Alexander's example has :- $c->detach($c->controller('ComplianceUpdate')->action_for('index')); So I ass

Re: [Catalyst] Re: New design

2013-07-24 Thread Octavian Rasnita
Maybe it was made for Dancer but they rejected it :-)) --Octavian - Original Message - From: "Hernan Lopes" To: "The elegant MVC web framework" Sent: Wednesday, July 24, 2013 3:20 PM Subject: Re: [Catalyst] Re: New design its because catalyst can do everything, including dance. And i

Re: [Catalyst] Catalyst $c->request->params

2013-06-02 Thread Octavian Rasnita
From: ?? Dear friends: I read and follow http://www.catalystframework.org/calendar/2012/8 article, These code --- $c->request->params --- in controller Manage.pm, and

[Catalyst] Catalyst web site

2013-04-09 Thread Octavian Rasnita
Hi, I think the content of this page should be changed a little because it is not OK and shows that the Advent Calendar has stopped: http://wiki.catalystframework.org/wiki/adventcalendararticles --Octavian ___ List: Catalyst@lists.scsys.co.uk List

Re: [Catalyst] How to get IP address of the interface which therequest come through

2013-03-23 Thread Octavian Rasnita
From: "N.A." To: >> I wan to get the IP address of the interface(network device) which the >> request come through. > > My bad. Unless there is a more direct way of getting the IP address, you can create distinct virtual hosts for each IP address that can access y

Re: [Catalyst] Catalyst::Model::DBIC::Schema and caching row objects

2013-02-12 Thread Octavian Rasnita
Hi Bill, From: Bill Moseley Not sure if the is a Catalyst or DBIC question. Catalyst::Model::DBIC::Schema returns objects blessed into classes related to the app. Then the problem is I cannot share (cached) objects across applications. If you want to use DBIC in more apps, don't use

Re: [Catalyst] Advent wrap-up blog and next steps

2013-01-11 Thread Octavian Rasnita
Thanks for letting us know that there was a calendar entry on December 26. I didn't know about it. I read on it: "The decisions to use Params::Validate and Data::FormValidator were rock-solid. However, they are ageing modules and we would evaluate Module inline declarations and HTML::FormBuild

Re: [Catalyst] Re: Advent 2012 -- Catalyst in Nine Steps -- Kudos toOctavian

2013-01-03 Thread Octavian Rasnita
From: "John Napiorkowski" Pretty solid list, mind if I use it to blog? Very good. Of course I don't mind. :-) regarding the thing about Catalyst and its half in and half out regarding Moose, yeah I think this is definitely a problem. Luckily I think a lot of the more important bits that ar

Re: [Catalyst] Windows Deployment

2013-01-02 Thread Octavian Rasnita
From: Tadhg Hi All, I’m trying to deploy a simple Catalyst application for internal users, so I don’t need anything fancy load balancing or proxy servers etc. My environment, Server: Windows 2003 server 32 bit Dev Client: Windows 7 64 bit Perl: 5.14.12 32 bit Catalyst: 5.90018

Re: [Catalyst] Re: Advent 2012 -- Catalyst in Nine Steps -- Kudos toOctavian

2012-12-31 Thread Octavian Rasnita
From: "John Napiorkowski" - Original Message ----- From: Octavian Rasnita To: John Napiorkowski ; The elegant MVC web framework Cc: Sent: Saturday, December 29, 2012 4:32 PM Subject: Re: [Catalyst] Re: Advent 2012 -- Catalyst in Nine Steps -- Kudos toOctavian F

Re: [Catalyst] Re: Advent 2012 -- Catalyst in Nine Steps -- Kudos toOctavian

2012-12-29 Thread Octavian Rasnita
From: "John Napiorkowski" Hi John and thank you again. I'd really like to see a project to gather up, modernize and peer review all the best / informative Advent articles of years past, and we could gather it together as an open source project on github (similarly to the way the Modern Perl

[Catalyst] Catalyst::Authentication::Store::DBI::ButMaintained

2012-12-29 Thread Octavian Rasnita
Hi, I am trying to use Catalyst::Authentication::Store::DBI::ButMaintained. The problem of that module is that it says that it requires Catalyst::Model::DBI, but actually it requires a model named DBI.pm which is strange. I corrected it and now it can work with a model with any name, which

[Catalyst] Re: Advent 2012 -- Catalyst in Nine Steps -- Kudos to Octavian

2012-12-27 Thread Octavian Rasnita
From: "John Karr" I was just looking at Octavian Rasnita's 9 part contribution to the Advent Calendar. This is exactly what I needed when I was learning Catalyst, and would have made it a lot easier. I would love to see this approach carried out to a larger book for beginners and this artic

Re: [Catalyst] Catalyst::Plugin::Email, TT, html config problem

2012-12-18 Thread Octavian Rasnita
From: Dimitar Petrov Hello Thag, I think plugin is the wrong approach here. Plugins seemed to be good idea in the past, but now they are recommended only if you mess with the internals. I think the recommended think to send emails within Catalyst application is either: a) https://m

Re: [Catalyst] separate sessions

2012-12-16 Thread Octavian Rasnita
If you want to have more sessions in the same time in the same application, it means that you want a user to log on for more times, once for each session. In that case that app looks like more apps, so you can create 2 Catalyst apps and mount them on different paths. If you just want to send/re

Re: [Catalyst] The optimal captcha

2012-12-16 Thread Octavian Rasnita
There is no optimal Captcha. All of them block the access for some human users, so Captcha can't make the distinction between humans and non-humans, but only the distinction between sighted humans and anything else. reCaptcha offers an audio alternative for the blind but it is almost uninteligi

Re: [Catalyst] Its time for Advent again

2012-11-30 Thread Octavian Rasnita
Hi John, I have sent you a message with articles attached but I haven't received any message from you, so I don't know if they reached your mailbox. It's December 1st, but I can still see "The calendar has been retired." message on the page: http://www.catalystframework.org/calendar It's t

[Catalyst] Storing the hash of the session token with C::P::Session::Store::File

2012-11-18 Thread Octavian Rasnita
Hi, I read a good suggestion: "And DO NOT STORE THE PERSISTENT LOGIN COOKIE (TOKEN) IN YOUR DATABASE, ONLY A HASH OF IT! The login token is Password Equivalent, so if an attacker got his hands on your database, he/she could use the tokens to log in to any account, just as if they were clearte

Re: [Catalyst] thoughts on a catalyst roadmap

2012-10-11 Thread Octavian Rasnita
Hi, From: John Napiorkowski Hey All, I published a blog regarding my thought (and only my thoughts at this point) regarding how to approach understanding what a long term roadmap for Catalyst could be. From the recent poll it seems this is a major gap. So here's my way to kick off a

Re: [Catalyst] (no subject)

2012-08-31 Thread Octavian Rasnita
Hi Dimitar, From: Dimitar Petrov Hello Octavian, If you take a look at the generated files from DBIx::Class::Schema::Loader you'll see something like: # Created by DBIx::Class::Schema::Loader v0.07024 @ 2012-07-25 17:05:05 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YCnxLAuOQnGE

Re: [Catalyst] (no subject)

2012-08-30 Thread Octavian Rasnita
From: Dimitar Petrov Hello, you can pass a use_moose => 1 option to the make_schema_at as it's described in the documentation here https://metacpan.org/module/DBIx::Class::Schema::Loader#make_schema_at Thanks. I used use_moose=1 in the Catalyst helper command line and it should hav

Re: [Catalyst] (no subject)

2012-08-30 Thread Octavian Rasnita
From: piet molenaar Subject: [Catalyst] (no subject) Hi, We work with svn were we've committed the schema classes also into the repository. Using the Catalyst helper script we tried to update the DBIC schema that was created with the Catalyst helper after checkout on another machine and t

[Catalyst] Plack::Middleware based session for Catalyst apps?

2012-07-15 Thread Octavian Rasnita
Hi, Is it possible to use Plack::Middleware sessions in Catalyst apps? (To be able to set/get to/from $c->session...) --Octavian ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable arc

Re: [Catalyst] upstart script for Starman-based app?

2012-05-16 Thread Octavian Rasnita
From: Bill Moseley Subject: Re: [Catalyst] upstart script for Starman-based app? On Thu, May 3, 2012 at 2:24 AM, Octavian Rasnita wrote: Hi all, Does anyone have an upstart script that can be used for automaticly starting a Cat app using Starman? I use Perlbrew and local

Re: [Catalyst] upstart script for Starman-based app?

2012-05-09 Thread Octavian Rasnita
From: "Jack Downes" Subject: RE: [Catalyst] upstart script for Starman-based app? I do something similar with FreeBSD. My install consists of a local install of perl, cat, dbic, etc to get my app running. I use nginx from system configured as a proxy. Now, I see a lot of people using Starman

Re: [Catalyst] upstart script for Starman-based app?

2012-05-06 Thread Octavian Rasnita
From: "Dave Rolsky" Subject: Re: [Catalyst] upstart script for Starman-based app? > On Fri, 4 May 2012, Octavian Rasnita wrote: > >>>> expect fork >>> >>> I'm not sure why you need this. There's no fork happening with your config, &g

Re: [Catalyst] upstart script for Starman-based app?

2012-05-06 Thread Octavian Rasnita
From: "Todd Lyons" Subject: Re: [Catalyst] upstart script for Starman-based app? On Thu, May 3, 2012 at 12:24 AM, Octavian Rasnita wrote: Does anyone have an upstart script that can be used for automaticly starting a Cat app using Starman? I use Perlbrew and local::lib and I sta

Re: [Catalyst] upstart script for Starman-based app?

2012-05-04 Thread Octavian Rasnita
From: "Dave Rolsky" Subject: Re: [Catalyst] upstart script for Starman-based app? On Fri, 4 May 2012, Octavian Rasnita wrote: expect fork I'm not sure why you need this. There's no fork happening with your config, AFAICT. But isn't Starman doing a fork? To

Re: [Catalyst] upstart script for Starman-based app?

2012-05-04 Thread Octavian Rasnita
From: "Dave Rolsky" Subject: Re: [Catalyst] upstart script for Starman-based app? > On Thu, 3 May 2012, Octavian Rasnita wrote: > >> Does anyone have an upstart script that can be used for automaticly starting >> a Cat app using Starman? >> >> I use Per

Re: [Catalyst] upstart script for Starman-based app?

2012-05-03 Thread Octavian Rasnita
From: "Morad IGMIR" Subject: RE: [Catalyst] upstart script for Starman-based app? So you're looking for an /etc/init.d/ init script ? Thank you for your script. I hope I will be able to use an upstart script, because upstart requires much less code and it is more powerful than the old SysV

Re: [Catalyst] upstart script for Starman-based app?

2012-05-03 Thread Octavian Rasnita
From: "Tomas Doran" Subject: Re: [Catalyst] upstart script for Starman-based app? On 3 May 2012, at 08:24, Octavian Rasnita wrote: > Hi all, > > Does anyone have an upstart script that can be used for automaticly starting > a Cat app using Starman? > > I use P

Re: [Catalyst] upstart script for Starman-based app?

2012-05-03 Thread Octavian Rasnita
From: "Morad IGMIR" Subject: RE: [Catalyst] upstart script for Starman-based app? I'm currently using CatalystX::Script::Server::Starman to do just this, it works fine so far, and you don't need to adapt your script, just use myapp_server.pl https://metacpan.org/module/CatalystX::Script::Server

[Catalyst] upstart script for Starman-based app?

2012-05-03 Thread Octavian Rasnita
Hi all, Does anyone have an upstart script that can be used for automaticly starting a Cat app using Starman? I use Perlbrew and local::lib and I start the app in my own account and not as root and I don't know how to make upstart start the app under my account. Maybe it will be helpful to see

Re: [Catalyst] Re: Using model layers between Catalyst and DBIC

2012-02-07 Thread Octavian Rasnita
Hi Bill, From: Bill Moseley On Tue, Jan 10, 2012 at 1:18 PM, Jason Galea wrote: hehe.. you want layers, I got layers.. I just got out of yet another meeting about this architecture redesign. (I'd like to see the graph that relates productivity to the number of people involved som

Re: [Catalyst] What are the best practices for using phrasebooksinCatalyst applications?

2012-01-27 Thread Octavian Rasnita
Hi, On 27 January 2012 14:13, Dave Howorth wrote: > Octavian Rasnita wrote: >> It may work unless the site already needs to use I18N for real languages. > > I think the solution in that case is to use a language tag something like > > en-US-x-my-private-tag-for-this-user

Re: [Catalyst] What are the best practices for using phrasebooks inCatalyst applications?

2012-01-27 Thread Octavian Rasnita
- Original Message - Subject: [Catalyst] What are the best practices for using phrasebooks inCatalyst applications? > > I am working on a project where the terminology we are using for "objects" > in the system is diverging from terminology that the client is using for > those things.

Re: [Catalyst] Running Catalyst apps with start_server

2012-01-25 Thread Octavian Rasnita
Hi t0m, From: "Tomas Doran" > > On 23 Jan 2012, at 21:34, Octavian Rasnita wrote: >> >> So something's obviously wrong if so much memory is occupied even >> after 1 hour of inactivity. > > To start with, you're testing entirely wrong. Wel

Re: [Catalyst] Running Catalyst apps with start_server

2012-01-23 Thread Octavian Rasnita
Hi t0m, From: "Tomas Doran" > > On 21 Jan 2012, at 22:16, Octavian Rasnita wrote: >> But of course, it doesn't go in the background... >> I can put it to run in the background if I add a " &" after the >> command line start_server ... an

[Catalyst] Running Catalyst apps with start_server

2012-01-21 Thread Octavian Rasnita
Hi, Is Server-Starter a good way for starting a Catalyst app? I am asking this because I don't have success with using start_server with the --daemonize option. I use Perl 5.14.2 under Ubuntu 11. Here is the command I used: start_server \ --port :5000 \ -- starman \ --workers 15 \ --max-reques

Re: [Catalyst] Issues with HTML::FormFu and ISO-8859-1

2012-01-15 Thread Octavian Rasnita
From: "Marc SCHAEFER" > Hi, > > I am trying to port an old Catalyst application I wrote in 2009 to the > current framework. Apart from quite a few obsoleted methods I needed > to rewrite, I stumbled on a very bizarre problem which seems to prevent > loading > from all of my templates using HTM

Re: [Catalyst] Re: Running a Cat app with HTTP::Prefork

2012-01-14 Thread Octavian Rasnita
From: "Aristotle Pagaltzis" >* Octavian Rasnita [2012-01-14 17:40]: >> Should it be used diffrently with Catalyst 5.9 > > For 5.9 I suggest switching horses completely and using the built-in > PSGI support together with Starman as a stand-alone preforking dæmon

[Catalyst] Running a Cat app with HTTP::Prefork

2012-01-14 Thread Octavian Rasnita
Hi, I have tried: root@webtest:/srv3# catalyst.pl MyApp ... Change to application directory and Run "perl Makefile.PL" to make sure your install is complete root@webtest:/srv3# cd MyApp/ root@webtest:/srv3/MyApp# CATALYST_ENGINE='HTTP::Prefork' script/myapp_server.pl [debug] Debug messages ena

Re: [Catalyst] Catalyst Advent Calendar

2011-12-02 Thread Octavian Rasnita
From: "Devin Austin" On Thu, Dec 1, 2011 at 10:00 AM, will trillich wrote: Coming up with good articles isn't easy! Documentation is the toughest part of writing code. Myself, I've been mulling, since Nov 3, how to make http://search.cpan.org/~mstrout/Catalyst-View-TT-0.37/lib/Catalyst/View/

Re: [Catalyst] Using a model class from other class

2011-09-29 Thread Octavian Rasnita
From: "linuxsupport" > Hi, > > I have a model called DB where I have 3 classes, User, Group, UserGroup > > Now, I have created a resultset for Group ie. > Myapp::Schema::ResultSet::Group > > How can I call User class from Myapp::Schema::ResultSet::Group ? > > For example In Group resultset I a

Re: [Catalyst] Catalyst still doesn't work under Windows

2011-09-21 Thread Octavian Rasnita
From: "Tomas Doran" On 21 Sep 2011, at 13:30, Octavian Rasnita wrote: This was the recommendation when accessing it with Internet Explorer. Isn't it needed anymore? No idea. Don't know what recommendation from where by whom. "" Catalyst::Manual:

Re: [Catalyst] Catalyst still doesn't work under Windows

2011-09-21 Thread Octavian Rasnita
From: "Tomas Doran" On 21 Sep 2011, at 12:03, Octavian Rasnita wrote: From: "Tomas Doran" On 21 Sep 2011, at 06:48, Octavian Rasnita wrote: Hi, Even though I have the latest Catalyst installed under Windows, it seems that Catalyst is not compatible with Windows

Re: [Catalyst] Catalyst still doesn't work under Windows

2011-09-21 Thread Octavian Rasnita
From: "Tomas Doran" On 21 Sep 2011, at 06:48, Octavian Rasnita wrote: Hi, Even though I have the latest Catalyst installed under Windows, it seems that Catalyst is not compatible with Windows anymore, because I cannot run the apps that use it. When I try to run the app, it

[Catalyst] Catalyst still doesn't work under Windows

2011-09-20 Thread Octavian Rasnita
Hi, Even though I have the latest Catalyst installed under Windows, it seems that Catalyst is not compatible with Windows anymore, because I cannot run the apps that use it. When I try to run the app, it gives the error that Plack::Handler::Starman is not installed, and if I try to install it,

Re: [Catalyst] Can the latest Catalyst version from CPAN be installedunder Windows?

2011-09-11 Thread Octavian Rasnita
Sorry for the false alarm, but there may be something wrong on my home computer that doesn't allow installing Plack, because I was able to install Catalyst::Runtime 5.90002 on my office computer without problems. --Octavian - Original Message - From: "John Napiorkowski" To: "The ele

[Catalyst] Can the latest Catalyst version from CPAN be installed under Windows?

2011-09-08 Thread Octavian Rasnita
Hi, I have tried to install Catalyst with CPAN, but it gave an error telling that it has a missing dependency in Plack::Test::ExternalServer. That module couldn't install because of a test error (something like a missing empty port or something like that) So I force installed Plack::Test::Exte

Re: [Catalyst] Strange DBIC error, only when used in Catalyst

2011-09-08 Thread Octavian Rasnita
o make it work with that module? I am afraid that if I would delete all its settings from all the Result classes, the UTF-8 chars from DB might not show correctly. Thanks. --Octavian - Original Message - From: Octavian Rasnita To: The elegant MVC web framework Sent: Thursd

[Catalyst] Strange DBIC error, only when used in Catalyst

2011-09-08 Thread Octavian Rasnita
Hi all, I have the following action: sub top : Local { my ( $self, $c ) = @_; my $top = $c->model( 'Intra::User' )->search_rs({ 'clients.id' => {'!=' => undef}, }, { join => 'clients', prefetch => 'clients', select => [ 'id', 'username', 'first_name', 'las

Test (please ignore) - was Re: Bounces (was Re: [Catalyst] Multiple applications (some cat based)on the same server)

2011-08-26 Thread Octavian Rasnita
Great! Thanks. Hope this message reaches the list. --Octavian - Original Message - From: "Chris Jackson" To: "The elegant MVC web framework" Sent: Friday, August 26, 2011 2:49 PM Subject: Re: Bounces (was Re: [Catalyst] Multiple applications (some cat based)on the same server) O

Re: [Catalyst] I18N and TT question

2011-07-25 Thread Octavian Rasnita
From: "Alex Povolotsky" Hello! How do I define a macro for localization GLOBALLY? I don't like to add MACRO to every template, nor I don't want to write c.localize() instead of l() Alex I use the following settings in the app configuration file: 'View::TT' => { PRE_PROCESS => ['loc

Re: [Catalyst] Model Instances vs. Model Classes - Round 2

2011-07-24 Thread Octavian Rasnita
From: "Ashley Pond V" > On Wed, Jul 20, 2011 at 7:00 AM, Alejandro Imass > wrote: >> On Wed, Jul 20, 2011 at 2:25 AM, Alejandro Imass >> wrote: >>> On Thu, May 19, 2011 at 7:06 PM, Benjamin Hitz wrote: >> [...] >>> I tried to make it as practical as possible: >>> >>> http://wiki.catalystframew

Re: [Catalyst] Model Instances vs. Model Classes - Round 2

2011-05-17 Thread Octavian Rasnita
From: "Alejandro Imass" 3) It is written somewhere (I couldn't find it before writing this but I know is in the POD somewhere) that it is not a good idea to pass the complete $c reference to the per-request object, but rather only the necessary pieces of $c. What are the implications of passing

Re: [Catalyst] building 'local' lib with dependencies for shipping

2011-04-27 Thread Octavian Rasnita
From: "Fernan Aguero" On Tue, Apr 26, 2011 at 8:29 PM, Nicholas Wehr wrote: > Shipwright is not a silver bullet - it has issues of its own. For catalyst > projects I created a dependency finder that issues shipwright import > commands. on top of that, shipwright is not forgiving with regards to b

Re: [Catalyst] Accessing the catalyst user data from a template

2011-04-17 Thread Octavian Rasnita
From: Adam Jimerson I am trying to display display information about the user currently logged into my catalyst app but for some reason it is returning blank (or even null). I am trying to display the uniqid (user id) and username of the current user. From my template I am calling [% c.user

Re: [Catalyst] Suggestions for sending email from cron jobusing'Catalyst' templates?

2011-04-11 Thread Octavian Rasnita
From: Peter Edwards On 12 April 2011 00:50, Charlie Garrison wrote: Good morning, On 11/04/11 at 6:58 PM +0300, Octavian Rasnita wrote: The TT templates used by the Catalyst app might contain many things like c.user, c.uri_for_action, may display images, may depend on

Re: [Catalyst] Validation of entered content

2011-04-11 Thread Octavian Rasnita
From: "John M. Dlugosz" >I have a form where an admin can change a part of the content on a page. The >form lets > someone do it without having to update the files on the server in a more > traditional > manner; BUT, it must be correct XHTML. If the admin types a or a stray > '<' for that

Re: [Catalyst] Suggestions for sending email from cron job using'Catalyst' templates?

2011-04-11 Thread Octavian Rasnita
From: "Charlie Garrison" Good evening, First, I may not be approaching this the right way at all. So I'm happy to take any suggestions for a better way to do what I need. I've got a daily task (cron job currently) which sends emails to users. I want to use existing TT templates to generate the

Re: [Catalyst] Help System - Can a controller's index capture the remainder of the path as a series of arguments?

2011-03-31 Thread Octavian Rasnita
From: "Kyle Hall" > Hello All, > > I'm trying to a help system to my catalyst app. My idea is to have a > help button. If we are currently at /foo/bar, the help buttons uri > becomes /help/foo/bar. My idea is that the the Help controllers index > will capture everything after /help ( hopefully as

Re: [Catalyst] Sending Email from Page?

2011-03-29 Thread Octavian Rasnita
From: "Dave Howorth" > John M. Dlugosz wrote: >> On 3/27/2011 12:22 PM, Tomas Doran bobtfish-at-bobtfish.net >> |Catalyst/Allow to home| wrote: >>> >>> And I would say that sending an email is a state change, and behavior >>> of the application domain here. >> That's a stretch, because you can arg

Re: [Catalyst] Sending Email from Page?

2011-03-22 Thread Octavian Rasnita
From: John M. Dlugosz If Catalyst had something called an "accessory" that could draw upon the auto-discovery, loading, configuration, etc. of Components, but did not claim to be "a model", I might agree. A model is not only a source of data, but also a destination of data. When sending

Re: [Catalyst] Sending Email from Page?

2011-03-22 Thread Octavian Rasnita
From: Jorge Gonzalez El 21/03/11 20:58, Octavian Rasnita escribió: Yes, it is very simple to use Mail::Builder::Simple directly, but there are some advantages when using it in a model: - You can share the configuration data among more controllers and even external programs; You can do

Re: [Catalyst] Sending Email from Page?

2011-03-21 Thread Octavian Rasnita
From: "John M. Dlugosz" On 3/21/2011 2:47 PM, Octavian Rasnita orasnita-at-gmail.com |Catalyst/Allow to home| wrote: If you use that key, the module won't report the error. If you don't use it and there will appear some errors, it will generate a detailed error. The e

Re: [Catalyst] Sending Email from Page?

2011-03-21 Thread Octavian Rasnita
From: "John M. Dlugosz" On 3/21/2011 2:41 PM, Octavian Rasnita orasnita-at-gmail.com |Catalyst/Allow to home| wrote: If you want this, it is more simple, because you can try to send the message directly, but if the message is not sent, your page visitors will be able to read that

Re: [Catalyst] Sending Email from Page?

2011-03-21 Thread Octavian Rasnita
From: "John M. Dlugosz" > Reading the page for Catalyst::Helper::Model::Email, and assuming that a ')' > keeps getting > lost, it's just a simple to use but you look up an object via Model first. > What is the > benefit of that? I suppose you can have more than one configuration pre-set, >

Re: [Catalyst] Sending Email from Page?

2011-03-21 Thread Octavian Rasnita
From: "Jorge Gonzalez" > Catalyst offers you some posibilities, but it does not force you to use > them. To me, using a model for sending email is like hammering a nail > with a screw driver. You can surely do it, but it's simpler to use the > hammer. Even if you have a fancy screw driver. :-)

Re: [Catalyst] Sending Email from Page?

2011-03-21 Thread Octavian Rasnita
From: "John M. Dlugosz" > On 3/21/2011 1:48 AM, Octavian Rasnita orasnita-at-gmail.com |Catalyst/Allow > to home| wrote: >> >> You can use any of them or Catalyst::Helper::Model::Email. The plugin is no >> longer >> recommended. > > It looks

Re: [Catalyst] Sending Email from Page?

2011-03-20 Thread Octavian Rasnita
From: "John M. Dlugosz" Any pointers as to the right (or best) way to send an email from my Catalyst App? I see there is a Plugin::Email and also a View::Email, which seems to be something totally different? You can use any of them or Catalyst::Helper::Model::Email. The plugin is no longer r

Re: [Catalyst] Error in Accessing Database model

2011-03-17 Thread Octavian Rasnita
From: sushant kumar I'm using SQLite3 and catalyst to develop an application. When I try to access the database file (tmp/daatabase) , It gives error as "UNABLE TO OPEN tmp/database". When I access databse without mentioning the name of database file, It works!! But Catalyst does not recogn

Re: [Catalyst] Escaping of "argument" of private path

2011-03-16 Thread Octavian Rasnita
From: "John M. Dlugosz" On 3/15/2011 4:56 AM, Octavian Rasnita orasnita-at-gmail.com |Catalyst/Allow to home| wrote: uri_for() escapes only the chars which are not in the following list (from URI.pm): $reserved = q(;/?:@&=+$,[]); $

Re: [Catalyst] Escaping of "argument" of private path

2011-03-15 Thread Octavian Rasnita
From: "John M. Dlugosz" On 3/15/2011 1:38 AM, Octavian Rasnita orasnita-at-gmail.com |Catalyst/Allow to home| wrote: uri_for() escapes each component, but I guess that it doesn't escape it if it contains a slash in it. For example, you can do: It will print: Octavian

Re: [Catalyst] Escaping of "argument" of private path

2011-03-14 Thread Octavian Rasnita
From: "John M. Dlugosz" Consider this TT fragment: [% fname = rec.filename | uri %] There is no reason to suppose that the filename following URL naming conventions, and may be something like "ham & eggs.jpeg". This in fact works as written, but I'm wondering if it's quite corr

Re: [Catalyst] Catalyst and oracle database.

2011-03-10 Thread Octavian Rasnita
From: Rohan M Dear All, I'm trying to use Oracle database as a back-end database for Catalyst application. (I tried MySQL and its working properly for me ). At first, I tried the following command - perl script/testapp_create.pl model DB DBIC::Schema DB::Schema create=static '

Re: [Catalyst] Re: How to get uri_for something with a fragment?

2011-03-09 Thread Octavian Rasnita
From: "Pedro Melo" Hi, On Wed, Mar 9, 2011 at 6:11 AM, will trillich wrote: I can't see that the original question has been answered. I'm interested as well... I just opened Catalyst.pm ($VERSION = 5.80030) and read the code for uri_for. As far as I can tell, there is no support for #ancho

Re: [Catalyst] Best "form" library?

2011-03-07 Thread Octavian Rasnita
From: "Steve" In order of importance, my considerations when making the decision about a year ago (no existing Cat apps at that point) were: Adoption Rate: I subscribed to mailing lists for FormFu and HFH, and noticed more people talking about HFH. Moosiness: Since Catalyst was making the m

Re: [Catalyst] Best "form" library?

2011-03-07 Thread Octavian Rasnita
From: "Devin Austin" > On Sun, Mar 6, 2011 at 2:52 PM, Roger Horne wrote: > >> On Sunday 06 March 2011 20:52:04 Devin Austin wrote: >> >> > FormFu is pretty awful in my opinion. Rose::HTML stuff isn't >> > much better. >> >> As an amateur I would be interested to know why. >> >> When I started

Re: [Catalyst] Best "form" library?

2011-03-06 Thread Octavian Rasnita
From: "Victor Churchill" Speaking here as a novice with the same questions as the OP: I like the functionality of HTML::FormFu as deployed in the tutorial example but also find the YAML a bit strange at first; I am, too, a I have used HTML::FormFu a lot, but I have never used YAML because I

Re: [Catalyst] Best "form" library?

2011-03-06 Thread Octavian Rasnita
From: "John M. Dlugosz" > What's the best form-generating/processing library for Catalyst, assuming I > don't need > to worry about old baggage and can move forward with the latest and greatest > stuff? > > --John It depends on what you prefer. The best and most used seem to be HTML::FormFu

Re: [Catalyst] Cache of unchanging content

2011-03-03 Thread Octavian Rasnita
From: will trillich Here's our current dev-to-deploy approach -- we use mercurial and a three-step staging process: I think that it could be helpful to add a page to the Cat site that describe the workflow for deployment because it is not clear which are the possible/recommended m

Re: [Catalyst] Simple literal Model

2011-02-26 Thread Octavian Rasnita
From: "John M. Dlugosz" > On 2/25/2011 9:30 AM, Ashley Pond V apv-at-sedition.com |Catalyst/Allow to > home| wrote: >> What t0m suggested is perfectly fine but if you want to mimic the DBIC >> API with a different engine, this example does that (superficially and >> as a tutorial only): http://s

Re: [Catalyst] Root page for site (my first attempt!)

2011-02-24 Thread Octavian Rasnita
From: "John M. Dlugosz" ... And as Carl recommended, it is good to not hard-code the URLS in the templates because they won't work if you'll want to make some changes and want to put the whole application to listen to a different base than /, for example /old-site. So use $c->uri_for('/pat

Re: [Catalyst] Root page for site (my first attempt!)

2011-02-23 Thread Octavian Rasnita
From: "John M. Dlugosz" I just started trying Catalyst. I went through the Packt Publishing book, but now want a more technical explanation with details. Any suggestions on what documentation to read? With the situation as set-up by default, I would write: to access a site image. How c

[Catalyst] Deployment incompatibility

2011-02-04 Thread Octavian Rasnita
Hi, I have tried to build an app under Windows XP and then deploy the tarball under Ubuntu, using: catalyst MyFoo cd MyFoo perl Makefile.PL nmake nmake manifest nmake dist After this first step I loaded the file MyFoo-0.01.tar.gz on an Ubuntu server, unarchiving it, and ran: perl Makefil

  1   2   3   4   >