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

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

2015-10-27 Thread Octavian Rasnita
holm 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 <orasn...@gmail.com> wrote: When I connect to Linux servers using S

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

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] Where best to store database connection information?

2015-02-16 Thread Octavian Rasnita
issue of having 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

Re: [Catalyst] forward not working correctly ?

2015-01-29 Thread Octavian Rasnita
From: Luca Ferrari fluca1...@infinito.it 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

Re: [Catalyst] Catalyst 5.90080 on CPAN!

2015-01-19 Thread Octavian Rasnita
From: Craig Chant cr...@homeloanpartnership.com 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

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

2015-01-18 Thread Octavian Rasnita
From: r...@hiranyaloka.com 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

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

2015-01-18 Thread Octavian Rasnita
From: r...@hiranyaloka.com 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

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

[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 n...@mylunn.id.au 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

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 mose...@hank.org 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).

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

2013-11-27 Thread Octavian Rasnita
From: Craig Chant cr...@homeloanpartnership.com 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 :-

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 hernanlo...@gmail.com To: The elegant MVC web framework catalyst@lists.scsys.co.uk Sent: Wednesday, July 24, 2013 3:20 PM Subject: Re: [Catalyst] Re: New design its because

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

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

2013-03-24 Thread Octavian Rasnita
From: N.A. n...@u01.gate01.com To: catalyst@lists.scsys.co.uk 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

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

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

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

2013-01-03 Thread Octavian Rasnita
From: John Napiorkowski jjn1...@yahoo.com 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

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 jjn1...@yahoo.com - Original Message - From: Octavian Rasnita orasn...@gmail.com To: John Napiorkowski jjn1...@yahoo.com; The elegant MVC web framework catalyst@lists.scsys.co.uk Cc: Sent: Saturday, December 29, 2012 4:32 PM Subject: Re: [Catalyst] Re: Advent

[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

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

2012-12-29 Thread Octavian Rasnita
From: John Napiorkowski jjn1...@yahoo.com 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

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

2012-12-27 Thread Octavian Rasnita
From: John Karr brain...@brainbuz.org 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

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)

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

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

[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

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!

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

[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

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 orasn...@gmail.com wrote: Hi all, Does anyone have an upstart script that can be used for automaticly starting a Cat app using Starman? I use

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

2012-05-09 Thread Octavian Rasnita
From: Jack Downes jdow...@krmc.org 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

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

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

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

2012-05-06 Thread Octavian Rasnita
From: Dave Rolsky auta...@urth.org 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? Yes

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

2012-05-04 Thread Octavian Rasnita
From: Dave Rolsky auta...@urth.org 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 Perlbrew and local::lib and I start

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

2012-05-04 Thread Octavian Rasnita
From: Dave Rolsky auta...@urth.org 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 be honest, I

[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] upstart script for Starman-based app?

2012-05-03 Thread Octavian Rasnita
From: Morad IGMIR mig...@alliancemca.com 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

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

2012-05-03 Thread Octavian Rasnita
From: Tomas Doran bobtf...@bobtfish.net 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 Perlbrew and local

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

2012-05-03 Thread Octavian Rasnita
From: Morad IGMIR mig...@alliancemca.com 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

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 li...@eightdegrees.com.au 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

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. And

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 dhowo...@mrc-lmb.cam.ac.uk 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] Running Catalyst apps with start_server

2012-01-25 Thread Octavian Rasnita
Hi t0m, From: Tomas Doran bobtf...@bobtfish.net 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. Well, this is good news. :-) Testing

Re: [Catalyst] Running Catalyst apps with start_server

2012-01-23 Thread Octavian Rasnita
Hi t0m, From: Tomas Doran bobtf...@bobtfish.net 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 ... and I've seen that if I do that it works and I

[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 \

[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

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

2011-09-29 Thread Octavian Rasnita
From: linuxsupport lin.supp...@gmail.com 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

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

2011-09-21 Thread Octavian Rasnita
From: Tomas Doran bobtf...@bobtfish.net 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

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

2011-09-21 Thread Octavian Rasnita
From: Tomas Doran bobtf...@bobtfish.net On 21 Sep 2011, at 12:03, Octavian Rasnita wrote: From: Tomas Doran bobtf...@bobtfish.net 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

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

2011-09-21 Thread Octavian Rasnita
From: Tomas Doran bobtf...@bobtfish.net 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::Tutorial::01_Intro

[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

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

2011-09-12 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

[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',

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

2011-09-08 Thread Octavian Rasnita
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: Thursday, September 08, 2011 12:45

[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

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 c.jack...@shadowcat.co.uk To: The elegant MVC web framework catalyst@lists.scsys.co.uk Sent: Friday, August 26, 2011 2:49 PM Subject: Re: Bounces (was Re: [Catalyst] Multiple

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 [%

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

2011-04-12 Thread Octavian Rasnita
From: Peter Edwards On 12 April 2011 00:50, Charlie Garrison garri...@zeta.org.au wrote: Good morning, On 11/04/11 at 6:58 PM +0300, Octavian Rasnita orasn...@gmail.com wrote: The TT templates used by the Catalyst app might contain many things like c.user

Re: [Catalyst] Validation of entered content

2011-04-11 Thread Octavian Rasnita
From: John M. Dlugosz wxju46g...@snkmail.com 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 p or a stray

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

2011-04-11 Thread Octavian Rasnita
From: Charlie Garrison garri...@zeta.org.au 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

Re: [Catalyst] Sending Email from Page?

2011-03-22 Thread Octavian Rasnita
From: John M. Dlugosz wxju46g...@snkmail.com 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

Re: [Catalyst] Sending Email from Page?

2011-03-22 Thread Octavian Rasnita
From: John M. Dlugosz wxju46g...@snkmail.com 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

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-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-21 Thread Octavian Rasnita
From: John M. Dlugosz wxju46g...@snkmail.com 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

Re: [Catalyst] Sending Email from Page?

2011-03-21 Thread Octavian Rasnita
From: John M. Dlugosz wxju46g...@snkmail.com 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 like helper just installs a dummy Model

Re: [Catalyst] Sending Email from Page?

2011-03-21 Thread Octavian Rasnita
From: Jorge Gonzalez jorge.gonza...@daikon.es 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

Re: [Catalyst] Sending Email from Page?

2011-03-21 Thread Octavian Rasnita
From: John M. Dlugosz wxju46g...@snkmail.com 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

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

Re: [Catalyst] Escaping of argument of private path

2011-03-16 Thread Octavian Rasnita
From: John M. Dlugosz wxju46g...@snkmail.com 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(;/?:@=+$,[]); $mark = q

Re: [Catalyst] Escaping of argument of private path

2011-03-15 Thread Octavian Rasnita
From: John M. Dlugosz wxju46g...@snkmail.com Consider this TT fragment: [% fname = rec.filename | uri %] img src=[% c.uri_for(${directory}/${fname}) %] alt=photo / There is no reason to suppose that the filename following URL naming conventions, and may be something like ham

Re: [Catalyst] Escaping of argument of private path

2011-03-15 Thread Octavian Rasnita
From: John M. Dlugosz wxju46g...@snkmail.com 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: img src=[% c.uri_for

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 m...@simplicidade.org Hi, On Wed, Mar 9, 2011 at 6:11 AM, will trillich will.trill...@serensoft.com 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

Re: [Catalyst] Best form library?

2011-03-07 Thread Octavian Rasnita
From: Devin Austin devin.aus...@gmail.com On Sun, Mar 6, 2011 at 2:52 PM, Roger Horne ro...@hrothgar.co.uk 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

Re: [Catalyst] Best form library?

2011-03-07 Thread Octavian Rasnita
From: Steve st...@matsch.com 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

Re: [Catalyst] Best form library?

2011-03-06 Thread Octavian Rasnita
From: John M. Dlugosz wxju46g...@snkmail.com 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

Re: [Catalyst] Best form library?

2011-03-06 Thread Octavian Rasnita
From: Victor Churchill victorchurch...@gmail.com 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

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

Re: [Catalyst] Simple literal Model

2011-02-26 Thread Octavian Rasnita
From: John M. Dlugosz wxju46g...@snkmail.com 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

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

2011-02-24 Thread Octavian Rasnita
From: John M. Dlugosz wxju46g...@snkmail.com ... 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

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

2011-02-23 Thread Octavian Rasnita
From: John M. Dlugosz wxju46g...@snkmail.com 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: img

[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

Re: [Catalyst] Weird problem with Catalyst::Authentication, and redirects

2011-01-26 Thread Octavian Rasnita
From: David Schmidt davew...@gmx.at On Wed, Jan 26, 2011 at 12:18 PM, Ben van Staveren benvanstave...@gmail.com wrote: Hi Denny list, Have you tried turning it off and then on again? ;) Repeatedly :) More seriously, I have found on multiple occasions that the Catalyst Auth stuff can seem

[Catalyst] Gearman

2011-01-24 Thread Octavian Rasnita
Hi, I have installed Gearman::Server and ran gearmand under Linux and tried to use the worker and the client from Windows, but I saw that Gearman is not very reliable. I have created a worker that sends email but for beeing sure that it is not a problem of the mail server I have put it to

Re: [Catalyst] Gearman

2011-01-24 Thread Octavian Rasnita
Hi Devin, From: Devin Austin devin.aus...@gmail.com You might also want to create a job tracker that uses a database of some sort to mark jobs done when they complete, and just selects jobs that are incomplete and runs them. That way, if a job doesn't complete, the tracker picks it up and

[Catalyst] Job Queue recommendation

2011-01-21 Thread Octavian Rasnita
Hello, Can you recommend a job queue system that works under Windows (and which works with Oracle if it needs a database)? TheSchwartz can't be installed, TheSchwartz::Moosified doesn't work with Oracle and Gearman::Server can't be installed under Windows because of Danga::Socket. Thanks.

Re: [Catalyst] FormHandler -- pro or con?

2010-12-13 Thread Octavian Rasnita
From: Toby Corkindale t...@dryft.net On 9 December 2010 19:24, Octavian Rasnita orasn...@gmail.com wrote: Using Moose Roles for forms is awesome. I also agree with this idea, but the fact that the most used constraints, filters and validators should be also manually specified using Perl code

Re: [Catalyst] FormHandler -- pro or con?

2010-12-09 Thread Octavian Rasnita
From: Toby Corkindale t...@dryft.net On 7 December 2010 18:03, Octavian Rasnita orasn...@gmail.com wrote: From: Toby Corkindale t...@dryft.net On 1 December 2010 02:34, will trillich will.trill...@serensoft.com wrote: Anybody else *dissing* FormHandler? We've started developing based

Re: [Catalyst] FormHandler -- pro or con?

2010-12-06 Thread Octavian Rasnita
From: Toby Corkindale t...@dryft.net On 1 December 2010 02:34, will trillich will.trill...@serensoft.com wrote: Anybody else *dissing* FormHandler? We've started developing based on FormHandler lately and haven't had troubles... yet? I'm running it, and have been very happy with it. It's

Re: [Catalyst] Which Form Validation Libs?

2010-11-29 Thread Octavian Rasnita
HTML::FormFu and also: Catalyst::Controller::HTML::FormFu HTML::FormFu::Model::DBIC Octavian - Original Message - From: Eric Berg eb...@bergbrains.com To: catalyst@lists.scsys.co.uk Sent: Tuesday, November 30, 2010 5:34 AM Subject: [Catalyst] Which Form Validation Libs? I see that

Re: [Catalyst] Suggestions on how to handle 12 page form

2010-11-17 Thread Octavian Rasnita
- From: Rippl, Steve rip...@woodlandschools.org To: The elegant MVC web framework catalyst@lists.scsys.co.uk Sent: Wednesday, November 17, 2010 5:48 PM Subject: Re: [Catalyst] Suggestions on how to handle 12 page form On Tue, Nov 16, 2010 at 10:38 PM, Octavian Rasnita octavian.rasn...@ssifbroker.ro

Re: [Catalyst] Suggestions on how to handle 12 page form

2010-11-17 Thread Octavian Rasnita
From: Bogdan Lucaciu bog...@sinapticode.ro On Wed, Nov 17, 2010 at 9:11 PM, Octavian Rasnita orasn...@gmail.com wrote: Thanks for the example. I think that the following line could be improved: $form-load_config_filestem($c-config-{root}./forms/students/info$form_id); to be (untested): $form

Re: [Catalyst] Suggestions on how to handle 12 page form

2010-11-16 Thread Octavian Rasnita
From: Hauck, William B. william.ha...@ibx.com Hi. I'm working on the project request section of our new project tracking system. The request form is broken up into 12 pages-yes, lots and lots of data to be submitted. Anyone have any experience / advice on how to handle that many fields?

Re: [Catalyst] Re: Organizing link generators

2010-11-12 Thread Octavian Rasnita
I was also confused and that's why I added the following small piece of documentation in Catalyst.pm: Note that although the path looks like a URI that dispatches to the wanted action, it is not a URI, but an internal path to that action. For example, if the action

  1   2   3   >