Re: [Catalyst] error handling (Chain where ajax and non-ajax actionschain off)

2010-11-10 Thread Octavian Rasnita
Hi, From: Eden Cardim edencar...@gmail.com in Controller::Artist: sub error_404 :Action { Can I find more information about the :Action dispatch type? Is it just a replacement for :Private? Or it is something different? Thanks. Octavian ___

Re: [Catalyst] Accessing DB from external model

2010-11-05 Thread Octavian Rasnita
From: Mike Raynham catal...@mikeraynham.co.uk Hi, I am fairly new to all things Perl and Catalyst, and would like to know if what I am attempting to do is correct. I've recently finished reading 'The Definitive Guide to Catalyst', which has been very helpful, but I am still a little

Re: [Catalyst] Accessing DB from external model

2010-11-05 Thread Octavian Rasnita
, then put these directly in your MyDBLib code instead. Yes you are right. Octavian Rasnita wrote: The best idea would be to put the connection information in the application's config file like in the example below. (This example uses a Perl data structure, but you can use any configuration type

Re: [Catalyst] myapp_test.pl - running code from the command line

2010-11-03 Thread Octavian Rasnita
From: Jonathon Soong j...@investmentscience.com.au Yes I realise now it might make more sense in the Model, but at the moment it is in the Controller (it is someone else's code, so more difficult for me to refactor). There are two questions I have then: 1. How do you call a Model's function

Re: [Catalyst] Creating HTML docs from POD

2010-11-03 Thread Octavian Rasnita
From: Rippl, Steve I use Pod::Simple::HTMLBatch and a simple script that points to .../Controller ../Model .../Schema/ResultSet etc and dumps the resulting html in a subfolder under root/pod which I set to be server statically be the application itself. Thanks. I have successfully

Re: [Catalyst] Creating HTML docs from POD

2010-11-03 Thread Octavian Rasnita
From: Michael Brutsch Try pod2html I have tried it with many options, but it just sits and doesn't do anything for a long time. Do you have a sample command line that works? Thanks. Octavian ___ List: Catalyst@lists.scsys.co.uk Listinfo:

Re: [Catalyst] Has anyone read the book Catalyst 5.8 : The Perl MVCFramework yet?

2010-10-26 Thread Octavian Rasnita
IMHO the dispatching is a very important chapter for a web framework, especially for Catalyst that has so many things to offer in this field. And another important thing is to show how Catalyst works alone, without an ORM, without a templating system, without a form processor, with the warning

Re: [Catalyst] Returning to referer - which action to take?

2010-09-26 Thread Octavian Rasnita
From: Ekki Plicht (DF4OR) e...@plicht.de Hi. In my app I use I18N, so the visitor should be able to select his or her language at will. The available languages are available on all pages for selection. Once selected the preferred language is stored in a session cookie, otherwise the

Re: [Catalyst] best practices for handling forms?

2010-09-21 Thread Octavian Rasnita
Hi, A clean example that uses HTML::FormFu is: package MyApp::Controller::Foo; use Moose; extends 'Catalyst::Controller::HTML::FormFu'; # or just use parent 'Catalyst::Controller::HTML::FormFu' if you don't use Moose sub edit : Local FormConfig { my ($self, $c, $id) = @_; my $form =

Re: [Catalyst] Defining ARRAY in Config::General config

2010-09-21 Thread Octavian Rasnita
The problem appears when the array should have just a single item, because in that case Config::General reports it as a scalar value. I don't know if there is a better way of defining a single-item array with Config::General, but I found a workaround that may work. We can use something like:

Re: [Catalyst] Defining ARRAY in Config::General config

2010-09-21 Thread Octavian Rasnita
21, 2010 02:52:52 am Octavian Rasnita wrote: The problem appears when the array should have just a single item, because in that case Config::General reports it as a scalar value. I don't know if there is a better way of defining a single-item array with Config::General, but I found a workaround

Re: [Catalyst] Defining ARRAY in Config::General config

2010-09-21 Thread Octavian Rasnita
From: Emanuele Zeppieri ema...@gmail.com To obtain single value arrays with the syntax in question, the above line should be: my $conf = Config::General-new( -ConfigFile = 'config.conf', -ForceArray = 1 ); Aa, thanks. Octavian ___ List:

Re: [Catalyst] best practices for handling forms?

2010-09-21 Thread Octavian Rasnita
You don't need to do the redirect if you don't want it, but it is the recommended way. Instead of the redirect, you can forward to another method that prints the page you want: $c-forward('foo/success_method', ['possible', 'parameters']); In that case after the data is stored in DB, the

Re: [Catalyst] Working with project configurationfileoutsideofCatalyst directory

2010-09-05 Thread Octavian Rasnita
Hi Leandro, Have you tried to use in your main configuration file something like: MyDB include db.conf /MyDB and in your Catalyst configuration file something like: Model::DB include db.conf /Model::DB and in the db.conf: schema_class ... connect_info dsn ... username ...

Re: [Catalyst] Deleting the expired session files?

2010-09-05 Thread Octavian Rasnita
From: Peter Karman pe...@peknet.com Octavian Rasnita wrote on 9/4/10 8:39 AM: Hello, I am trying to create a script that will be executed by a cron job which will delete all the expired session files, but without success. I use the Session::Store::File plugin. can't you just use

Re: [Catalyst] Working with project configurationfileoutsideofCatalystdirectory

2010-09-05 Thread Octavian Rasnita
configurationfileoutsideofCatalystdirectory Hi Octavian, That makes a lot of sense thank you, I had mistakenly thought that you had to include an entire Config::General block if you wanted to include it in something else. Will try that best, Leandro On Sun, Sep 5, 2010 at 8:58 AM, Octavian Rasnita

Re: [Catalyst] DBIC mailing list?

2010-09-03 Thread Octavian Rasnita
First, sorry for offtopicness. From: Bill Crawford billcrawford1...@gmail.com To: The elegant MVC web framework catalyst@lists.scsys.co.uk Sent: Friday, September 03, 2010 3:07 PM Subject: Re: [Catalyst] DBIC mailing list? 2010/9/3 Octavian Rasnita octavian.rasn...@ssifbroker.ro: Hi, Has

Re: [Catalyst] DBIC mailing list?

2010-09-03 Thread Octavian Rasnita
framework catalyst@lists.scsys.co.uk Sent: Friday, September 03, 2010 6:52 PM Subject: Re: [Catalyst] DBIC mailing list? Dave Howorth wrote: Octavian Rasnita wrote: From: Bill Crawford billcrawford1...@gmail.com 2010/9/3 Octavian Rasnita octavian.rasn...@ssifbroker.ro: Has anyone any idea why I

[Catalyst] DBIC mailing list?

2010-09-02 Thread Octavian Rasnita
Hi, Has anyone any idea why I can't send messages to the DBIC mailing list anymore? When I used to send messages from home they used to be rejected as SPAM. I've subscribed with another email address from office and I send messages from the office but now the messages don't reach on the list

Re: [Catalyst] Working with project configuration file outside ofCatalyst directory

2010-09-01 Thread Octavian Rasnita
There may be other ways, but you could create a separate configuration file that contains the database connection settings only and include that configuration file in both the master configuration and Catalyst configuration files. If you'll want to change the database connection settings, you

Re: [Catalyst] Working with project configuration file outsideofCatalyst directory

2010-09-01 Thread Octavian Rasnita
I have Catalyst be able to include the configuration automatically from myproject.conf outside the Catalyst app dir? best, Leandro On Wed, Sep 1, 2010 at 7:25 PM, Octavian Rasnita orasn...@gmail.com wrote: There may be other ways, but you could create a separate configuration file

Re: [Catalyst] Working with project configuration fileoutsideofCatalyst directory

2010-09-01 Thread Octavian Rasnita
and it won't be like this for the parent configuration. Is there a way for Catalyst::Model::DBIC::Schema to read from a different config section? best, Leandro On Wed, Sep 1, 2010 at 9:20 PM, Octavian Rasnita orasn...@gmail.com wrote: Hi Leandro, If you use Config::General style configuration files

Re: [Catalyst] [Beginner] model with MySQL, is many_to_many required?

2010-08-26 Thread Octavian Rasnita
From: Ekki Plicht (DF4OR) e...@plicht.de Hi. Just getting around to implement the first user auth stuff, and as usual I am going along with MySQL. I know, I know, please no DB flame wars :-) As most of the docs are based on SqLite and Cat/MySQL docs are a little bit sketchy, I am unsure if

Re: [Catalyst] Store something in the stash at startup

2010-08-17 Thread Octavian Rasnita
From: Tomas Doran bobtf...@bobtfish.net On 17 Aug 2010, at 06:27, Octavian Rasnita wrote: I load and store this object in the stash on each request in the Root::auto : Private method with: $c-stash(menu = $c-model('Menu')); But this would re-create the menu object on each request

Re: [Catalyst] Store something in the stash at startup

2010-08-17 Thread Octavian Rasnita
To: The elegant MVC web framework catalyst@lists.scsys.co.uk Sent: Tuesday, August 17, 2010 9:27 AM Subject: Re: [Catalyst] Store something in the stash at startup Good afternoon, On 17/08/10 at 8:27 AM +0300, Octavian Rasnita octavian.rasn...@ssifbroker.ro wrote: $c-stash(menu = $c-model('Menu

Re: [Catalyst] Finding the memory leaks in a Cat app

2010-08-16 Thread Octavian Rasnita
Hi Tomas, From: Tomas Doran bobtf...@bobtfish.net On 13 Aug 2010, at 12:11, Octavian Rasnita wrote: I have a Catalyst application that occupies 180 MB of RAM if it uses the internal development server. It occupies more than 1 GB of RAM if it uses Apache/mod_perl. I don't believe

[Catalyst] Store something in the stash at startup

2010-08-16 Thread Octavian Rasnita
Hi, I have a module that creates an object (a menu) and I want to store it in the stash when the application starts. Where is the recommended place to create this object and store it in the stash if I want that object created just once at app startup? Should I override a certain method in

[Catalyst] Finding the memory leaks in a Cat app

2010-08-13 Thread Octavian Rasnita
Hello, I have a Catalyst application that occupies 180 MB of RAM if it uses the internal development server. It occupies more than 1 GB of RAM if it uses Apache/mod_perl. Even though it is very much, it would be OK if the memory usage wouldn't increase on each request. I have started Apache

[Catalyst] C::P::Unicode::Encoding and C::P::Compress

2010-07-28 Thread Octavian Rasnita
Hi, I have been using Catalyst::Plugin::Unicode but I read in its POD that Catalyst::Plugin::Unicode::Encoding is now recommended. Can C::P::Unicode::Encoding be used with C::P::Compress::Gzip or C::P::Compress? I've seen that the HTTP headers seem to be correctly generated, but no page

Re: [Catalyst] rich ajax UI component libraries for Catalyst?

2010-07-26 Thread Octavian Rasnita
I understood that Scriptaculous/Prototype has a design problem because it can't be used with other JS libraries like jQuery, ExtJS, Dojo because it creates a conflict, and that it should be avoided. Isn't this true? Octavian - Original Message - From: Dami Laurent (PJ)

[Catalyst] Create a PHP::Session

2010-07-18 Thread Octavian Rasnita
Hi, I need to make a program that shares the sessions with another program which is made in PHP and I thought the easiest way would be to generate the session data on the server using PHP::Session. The PHP session file names are of the form sess_po0nkrgqkjcbx7jb2z1ug17vwn. I was able to

Re: [Catalyst] Best practice for setting up database in a complexproject?

2010-07-16 Thread Octavian Rasnita
I use to create the SQL queries by hand because if they are complicated they can be done much better in the DB directly. I don't use a versioning system because exactly when I wanted to try DBIx::Class::Schema::Versioned I wanted to do it for an Oracle database but I read that this module

Re: [Catalyst] HOWTO: order_by a field in a related record, for paging

2010-06-12 Thread Octavian Rasnita
From: w...@serensoft.com $c-model()-search( {}, {order_by=???, page=$page} ) How do we order_by a field from a related record when pulling a resultset? We want to order users by team (then by lastname, firstname) and be able to PAGE back and forth... e.g. a User belongs_to a Team.

[Catalyst] Literal elements in uri_for generated paths

2010-06-08 Thread Octavian Rasnita
Hi, I have tried to use uri_for() in some parameters of a Java applet, but that URI should contain chars like { and } which then should be replaced by the appled with something else: param name=DataSource value=[% c.uri_for('/static/data/eof', '{symbol}.txt').path %] If I do this , { and }

[Catalyst] nmake manifest

2010-05-12 Thread Octavian Rasnita
Hello, I have tried to create a distro for a Catalyst based app, using: perl Makefile.PL nmake manifest (Then I eddited MANIFEST.SKIP, adding ^root as a test), then again: nmake manifest But it always returns 'manifest' is up-to-date and the wanted lines from MANIFEST are not deleted. Do

Re: [Catalyst] nmake manifest

2010-05-12 Thread Octavian Rasnita
Thank you. If I first delete the MANIFEST, the MANIFEST.SKIP is taken into consideration the next time I run `nmake manifest`. I was confused by 3. make manifest (edit MANIFEST.SKIP and run make manifest again if you'd like to exclude certain file patterns) found on:

[Catalyst] Can't detect C::V::TT VERSION

2010-05-07 Thread Octavian Rasnita
Hi, I am trying to install the prerequisites for a Catalyst app using `make installdeps` and although I have the required version of C::V::TT, it reports that it is not installed: $ perl Makefile.PL ... - Catalyst::View::TT ...missing. (would need 0.34) ==

Re: [Catalyst] Bareword catalyst not allowed while strict subs inuse at Makefile.PL line 90.

2010-05-07 Thread Octavian Rasnita
From: Matt S Trout m...@shadowcat.co.uk On Mon, May 03, 2010 at 02:57:10PM +0300, Octavian Rasnita wrote: Hi, I am trying to install a Catalyst-based app under Debian which has Perl 5.10.0 installed. I've installed the latest versions of CPAN, CPANPLUS, ExtUtils::MakeMaker, Module::Install

[Catalyst] Bareword catalyst not allowed while strict subs in use at Makefile.PL line 90.

2010-05-03 Thread Octavian Rasnita
Hi, I am trying to install a Catalyst-based app under Debian which has Perl 5.10.0 installed. I've installed the latest versions of CPAN, CPANPLUS, ExtUtils::MakeMaker, Module::Install, Module::Build and local::lib using cpan. Then I tried to run perl Makefile.PL because I was hoping that it

Re: [Catalyst] Alternatives to Catalyst ?

2010-04-26 Thread Octavian Rasnita
From: Ævar Arnfjörð Bjarmason ava...@gmail.com ... Now that it's quietened down, I can ask a question. Does this I mean it's preferable to use $c-req-{parameters}-{foo} rather than $c-req-param('foo') Obviously I'd rather use the faster method but if I'm breaking the encapsulation in some

Re: [Catalyst] Alternatives to DBIx?

2010-04-17 Thread Octavian Rasnita
From: Kiffin Gish kiffin.g...@planet.nl I'd say that rather than spending time studying SQL::DB, which I found complicated and hard to tackle, you might as well invest the same time and energy anyway in figuring out DBIx::Class. BTW, is there a comparison among the ORMs in Perl somewhere? It

Re: [Catalyst] Alternatives to DBIx?

2010-04-17 Thread Octavian Rasnita
Hi, From: John Karr brain...@brainbuz.org Working in raw DBI is the opposite of the DRY principle which underlies having a framework in the first place, so I am seeking an alternative. Just as Catalyst uses MVC, DBIx chooses ORM, but that paradigm is not the only way to be effective

Re: [Catalyst] Catalyst Redirect to https

2010-03-26 Thread Octavian Rasnita
From: Bill Moseley 2010/3/25 Octavian Rasnita orasn...@gmail.com The back end servers don't know if the current request is an http or an https one and on each redirect, they do the redirection using the http scheme. (I have also set the configuration option

[Catalyst] Catalyst Redirect to https

2010-03-25 Thread Octavian Rasnita
Hi, In a catalyst action accessed using https I do: if ($c-authenticate({username = $username, password = $password, active = 1})) { $c-res-redirect($c-uri_for_action(/index)); } It redirects to / URI of the site, but using http, not https as in the request for the current page. Isn't

Re: [Catalyst] Catalyst Redirect to https

2010-03-25 Thread Octavian Rasnita
Octavian Rasnita schreef: Hi, In a catalyst action accessed using https I do: if ($c-authenticate({username = $username, password = $password, active = 1})) { $c-res-redirect($c-uri_for_action(/index)); } It redirects to / URI of the site, but using http, not https

Re: [Catalyst] [DBIx::Class::ResultSet ] not equal in where clause

2010-03-11 Thread Octavian Rasnita
From: David Hi, is not possible to set 'not equal' using ResultSet search method? I can't make it with 'search_literal' method because I need to use a join clause too. I would like to do something like: $c-model('DB::Test')-search({-and = [ 'me.name' = 'name', -not = { 'users.id' =

Re: [Catalyst] uri_for and unicode

2010-03-09 Thread Octavian Rasnita
From: Bernhard Graf cataly...@augensalat.de Am 09.03.2010 14:30, schrieb Alex Povolotsky: After adding Catalyst::Plugin::Unicode::Encoding, it became MUCH worse. What was readable, became unreadable. What was unreadable, remained so. Replacing C::P::Unicode by C::P::Unicode::Encoding did not

Re: [Catalyst] Which C::View::PDF should I use?

2010-03-08 Thread Octavian Rasnita
Hi Charlie, From: Charlie Garrison garri...@zeta.org.au Good evening, On 8/03/10 at 8:41 AM +0200, Octavian Rasnita orasn...@gmail.com wrote: Do you know if there is a way of creating PDFs in the same way the HTML templates are created, by just putting a variable name in a certain place

Re: [Catalyst] Which C::View::PDF should I use?

2010-03-07 Thread Octavian Rasnita
To: The elegant MVC web framework catalyst@lists.scsys.co.uk Hi Charlie, Thanks for that. I've looked at various html 2 pdf tools (I used html2ps for a project about 10 years ago). But lack of even basic CSS support makes the them useless for creating pretty PDFs. In reality, this project

[Catalyst] Create a session after login only?

2010-02-24 Thread Octavian Rasnita
Hi, I use the following Catalyst plugins in my app: Session, Session::Store::File, Session::State::Cookie Authentication, Authorization::Roles The problem is that on each request of the main page, the app creates 2 session files before even logging in. Is it possible to make it generate

Re: [Catalyst] Requiring a certain module version in Makefile.PL

2010-02-21 Thread Octavian Rasnita
From: J. Shirley jshir...@gmail.com On Sun, Feb 21, 2010 at 9:54 AM, Octavian Rasnita orasn...@gmail.com wrote: Hi, In Makefile.PL I have the following line: requires 'DBIx::Class::Schema::Loader' = '0.05003'; When I do perl Makefile.PL shouldn't that line require and install this version

Re: [Catalyst] Requiring a certain module version in Makefile.PL

2010-02-21 Thread Octavian Rasnita
From: Florian Ragwitz r...@debian.org Of course that Makefile.PL contains auto_install() at the end. Octavian ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive:

Re: [Catalyst] Multiple chaining to same action ...

2010-02-15 Thread Octavian Rasnita
From: Kiffin Gish kiffin.g...@planet.nl In my application, users are allowed to edit only their own settings like this: /account/id/client/settings/edit | /role/*/settings/edit | /auth (0) | | | - /role/base (1) | |

Re: [Catalyst] datetime formatting ...

2010-02-13 Thread Octavian Rasnita
From: Kiffin Gish kiffin.g...@planet.nl That worked, thanks. Only weird thing now is that the time is one hour behind. Use something like: -last_modified-set_time_zone('America/Chicago')-strftime('%F %T') Or add the time_zone parameter as an option in your Result class (after do not modify

Re: [Catalyst] datetime formatting ...

2010-02-13 Thread Octavian Rasnita
From: Kiffin Gish kiffin.g...@planet.nl Well actually I want to relate it to the timezone of the current user or if that is not set in the user preferences, the browser time. After you get the user time zone from users preferences, you can send it as a parameter to set_time_zone() method of

Re: [Catalyst] datetime formatting ...

2010-02-13 Thread Octavian Rasnita
From: Kiffin Gish kiffin.g...@planet.nl Thanks. You're right about the timezone thing, I was confused with javascript and now realize that the tz is not passed via HTTP headers. Could save it in a cookie. Is $c-user-get(x) the same as $c-user-x ? mvg Kiffin Yes it is the same thing if the

Re: [Catalyst] Please beta test new DBIx::Class::Schema::Loader(create=static)

2010-02-07 Thread Octavian Rasnita
From: Rafael Kitover rkito...@io.com Release candidate for DBIx::Class::Schema::Loader 0.05000 is now available as a dev release: http://search.cpan.org/~rkitover/DBIx-Class-Schema-Loader-0.04999_14/ The schemas it now generates are incompatible with the output of 0.04006, but there is an

Re: [Catalyst] Please beta test new DBIx::Class::Schema::Loader(create=static)

2010-02-07 Thread Octavian Rasnita
From: Rafael Kitover rkito...@io.com Release candidate for DBIx::Class::Schema::Loader 0.05000 is now available as a dev release: http://search.cpan.org/~rkitover/DBIx-Class-Schema-Loader-0.04999_14/ The schemas it now generates are incompatible with the output of 0.04006, but there is an

Re: [Catalyst] action_for with user_id removed ...

2010-02-01 Thread Octavian Rasnita
From: Kiffin Gish kiffin.g...@planet.nl I have a number of user-defined actions which are described with the user id like this: settings/user_id/(view|edit) Where user_id is the primary key into the users resultset. However, I do not want this to be visible to the end-user for security reasons

Re: [Catalyst] Users, roles, HTML::FormFu::DBIx::Class::Model - complete example?

2010-01-27 Thread Octavian Rasnita
From: Alex Povolotsky tark...@over.ru Hello! Maybe someone can provide the community with complete example of users/roles editor with HTML::FormFu::DBIx::Class::Model? Are you sure this module exists? Octavian ___ List:

Re: [Catalyst] Where is the form field lost?

2010-01-26 Thread Octavian Rasnita
From: Charlie Garrison garri...@zeta.org.au One of the reasons I found IC::FS so much better, was the extra control for things like how files are named/stored on disk. From the POD: fs_file_name Provides the file naming algorithm. Override this method to change it. This method is called

[Catalyst] Where is the form field lost?

2010-01-24 Thread Octavian Rasnita
Hi, After sending a form with a file upload field, that field is lost if no file was attached, just like when the form doesn't contain that file upload field at all. I have tried to check Catalyst, Catalyst::Request, Catalyst::Engine, HTTP::Body and HTTP::Body::MultiPart in order to find where

Re: [Catalyst] Where is the form field lost?

2010-01-24 Thread Octavian Rasnita
Hi Bill, From: Bill Moseley mose...@hank.org On Sun, Jan 24, 2010 at 7:03 AM, Octavian Rasnita orasn...@gmail.comwrote: I need to know if the form didn't have a file upload field, or if it had it but no file was uploaded. Give your upload field(s) a name like upload_1 and then see

Re: [Catalyst] Where is the form field lost?

2010-01-24 Thread Octavian Rasnita
Hi Stephen, From: Stephen Howard step...@enterity.com I believe your problem lies in the browser itself. I know, for example, that browsers do not send empty values for checkboxes that remain unchecked - they simply eliminate that field from the form submission altogether. Sounds like

Re: [Catalyst] Where is the form field lost?

2010-01-24 Thread Octavian Rasnita
From: Bill Moseley mose...@hank.org On Sun, Jan 24, 2010 at 8:31 AM, Octavian Rasnita orasn...@gmail.comwrote: Give your upload field(s) a name like upload_1 and then see if it exists in uploads. I gave it the name file, but if the file is not uploaded, it doesn't appear in uploads(). (I

Re: [Catalyst] modules for conditional GET ?

2010-01-14 Thread Octavian Rasnita
From: Dami Laurent (PJ) laurent.d...@justice.ge.ch Hi Catalysters, For some actions of a Catalyst app, I would like to implement conditional GET (using If-Modified-Since HTTP header), where the timestamp of one config file decides whether the page should be refreshed or not --- this is because

Re: [Catalyst] Various ways to use c.uri_for

2010-01-09 Thread Octavian Rasnita
From: Kiffin Gish kiffin.g...@planet.nl I noticed that in certain examples depending on the coder, sometimes the following format is used: c.uri_for(c.controller('Users').action_for('list')) and other times this fomat: c.uri_for('/users/list') What's the difference and is there an

Re: [Catalyst] Re: Various ways to use c.uri_for

2010-01-09 Thread Octavian Rasnita
From: Aristotle Pagaltzis pagalt...@gmx.de * Octavian Rasnita orasn...@gmail.com [2010-01-09 15:20]: It could be helpful to have shortcuts for the second way of creating URLS, something like... c.url_query('controller_name', 'action_name', param1, param2) Already exists, although it uses

Re: [Catalyst] Re: Various ways to use c.uri_for

2010-01-09 Thread Octavian Rasnita
From: Tomas Doran bobtf...@bobtfish.net On 9 Jan 2010, at 20:35, Octavian Rasnita wrote: (Maybe the docs could be a little more clear, because this is a great feature.) Please supply a doc patch? Cheers t0m I was sure you will say this. :-) I attached a unified diff for the version

Re: [Catalyst] datetime formatting ...

2010-01-06 Thread Octavian Rasnita
From: Kiffin Gish kiffin.g...@planet.nl I've got a datetime column defined: __PACKAGE__-add_columns( ... last_modified, { data_type = DATETIME, default_value = undef, is_nullable = 1, size = undef, }, ); For some reason it's being displayed like this: 2010-01-05T20:35:14

[Catalyst] Recommended OS for Catalyst?

2009-08-06 Thread Octavian Rasnita
Hi, Can you recommend a Linux distribution for production for Catalyst apps? ...and a version of Perl? Thanks. -- Octavian ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable

Re: [Catalyst] 10 Catalyst Models in 10 Days wrapping up-ish

2009-07-28 Thread Octavian Rasnita
From: Tomas Doran bobtf...@bobtfish.net On 28 Jul 2009, at 18:21, Octavian Râsnita wrote: MooseX::TheSchwartz I haven't even looked at this, other than to note that it wins the worst named module EVAR prize (as MooseX:: is a namespace for Moose extensions, which this blatantly isn't). Cheers

Re: [Catalyst] Catalyst::Plugin::Captcha example ...

2009-06-17 Thread Octavian Rasnita
From: Kieren Diment kie...@diment.org On 17/06/2009, at 7:52 PM, Kiffin Gish wrote: Is there some example code out there using the Captcha plugin so I could learn a bit better how to use it? Use Catalyst::Controller::reCAPTCHA instead. It's better in quite a few ways.

Re: [Catalyst] Potential query string pollution vulnerability?

2009-06-16 Thread Octavian Rasnita
From: Tobias Kremer tobias.kre...@gmail.com Hi all, I just experienced a nasty case of query string pollution vulnerability in one of my Catalyst/DBIC apps. I think that the circumstances under which this applies are not _that_ rare, so I figured it'd be best to inform the world. Imagine the

Re: [Catalyst] how do you distribute a catalyst app

2009-06-11 Thread Octavian Rasnita
From: Hans Dieter Pearcey hdp.perl.catalyst.us...@weftsoar.net On Thu, Jun 11, 2009 at 10:46:49PM +0300, Octavian Râşniţă wrote: I discovered the problem. Moose requires a newer version of Class::MOP than the one I had it installed. I don't know why cpan didn't try to install the newer version,

[Catalyst] DBIx::Class::Schema::Loader catalyst helper

2009-05-29 Thread Octavian Rasnita
Hi, I made a Catalyst app (under Windows) and I put it run under Linux. Under both OSes I use the same version (latest) of: Catalyst::Runtime Catalyst::Devel Catalyst::Helper::Model::DBIC::Schema DBIx::Class If I generate the DBIC result classes using DBIC::Schema under Windows and I upload

Re: [Catalyst] DBIx::Class::Schema::Loader catalyst helper

2009-05-29 Thread Octavian Rasnita
From: Ivan Wills 2009/5/29 Octavian Rasnita orasn...@gmail.com Hi, I made a Catalyst app (under Windows) and I put it run under Linux. If I generate the DBIC result classes using DBIC::Schema under Windows and I upload them under Linux, then I try to re-generate them

Re: [Catalyst] Looking for a working example using DBIC and Authentication

2009-05-28 Thread Octavian Rasnita
From: J. Shirley Trusting Google to give you the latest version is probably a pretty bad idea :) To derail this conversation a little bit, perhaps the canonical meta tag pointing to the most recent release would do well on older versions still sitting on CPAN? I'm not sure how else to

Re: [Catalyst] Mason + DBI + Catalyst?

2009-05-27 Thread Octavian Rasnita
From: Marcello Romani mrom...@ottotecnica.com Octavian Râsnita ha scritto: On Tue, May 26, 2009 at 01:37:40AM +0200, Daniel Carrera wrote: Being able to chain resultsets makes it much much easier than using straight SQL, and you write less code. If you have a query you've constructed called

[Catalyst] Slow fastcgi

2009-05-04 Thread Octavian Rasnita
Hi, I have started using fastcgi with a Catalyst app, using it as an external server, but I've seen that it works very slow and many requests give a timeout error and display a 500 error because of this. I started the Catalyst app using: /oct/TB/script/tb_fastcgi.pl -l /tmp/tb.socket -n 5

Re: [Catalyst] website member urls

2009-04-30 Thread Octavian Rasnita
From: Merlyn Kline It could be also helpful if we could find a way to create urls like http://user.hostname.com/ dynamicly as Google blogger site does. We do this with a wildcard A record in the DNS and an Apache URL rewriting rule that moves the hostname into the path.

[Catalyst] Using path_to()

2009-04-29 Thread Octavian Rasnita
Hi, In which components of a Catalyst app can I use __PACKAGE__-path_to()? I've seen that if I use in a MyApp/View/TT.pm module __PACKAGE__-config( COMPILE_DIR = __PACKAGE__-path_to('templates'), ); it gives an error like: Can't locate object method path_to via package MyApp::View::TT at

[Catalyst] Using mysql_enable_utf8

2009-04-29 Thread Octavian Rasnita
Hi, I need to use C::M::DBI for a fulltext index with MySQL, and the tables contain UTF-8 data. I found that I can use mysql_enable_utf8 but I couldn't find how to use this option. I've tried to use it in the model in 2 places as: __PACKAGE__-config( dsn =

Re: [Catalyst] website member urls

2009-04-29 Thread Octavian Rasnita
From: Charles technically, you're correct in that I should consider placing the usernames under /user. But I'm thinking of the fuzzy (to me) usability issues involved and the http://website.com/ meme is what hundreds of millions non-developer users have come to expect. Also, fwiw,

Re: [Catalyst] The Netiquette thread (OT)

2009-04-28 Thread Octavian Rasnita
From: Simon Wilcox sim...@digitalcraftsmen.net Actually, it's mostly the inconsistency that's bad. I'm on several lists that work just fine with top posting. I fully agree with this. The netiquette's scope is to make everyone happy, but this is not possible. As an example, a blind person

[Catalyst] setting the locale with DBIx::Class::InflateColumn::DateTime

2009-04-24 Thread Octavian Rasnita
Hi, (Sorry for asking on this list, but my messages are rejected from DBIC mailing list.) Is it possible to set the locale for a certain date field if DBIx::Class::InflateColumn::DateTime is used when using that date, and not in the class definition? I don't think it is OK to hard code

Re: [Catalyst] setting the locale withDBIx::Class::InflateColumn::DateTime

2009-04-24 Thread Octavian Rasnita
From: Moritz Onken on...@houseofdesign.de Am 24.04.2009 um 10:53 schrieb Octavian Rasnita: Hi, (Sorry for asking on this list, but my messages are rejected from DBIC mailing list.) Is it possible to set the locale for a certain date field if DBIx::Class::InflateColumn::DateTime is used

Re: [Catalyst] RFC: Sample press release and announcement homepage

2009-04-23 Thread Octavian Rasnita
From: John Napiorkowski jjn1...@yahoo.com ... the revolutionary Moose Object system, the most advanced Object Oriented framework for any major scripting language I would change that to 'one of the most advanced' - less flame igniting (and by the way Perl 6 probably does have a more advanced

Re: [Catalyst] Using JSON

2009-04-14 Thread Octavian Rasnita
Ok, thank you all for your recommendations. So C::V::JSON would be the way to go for creating JSON and C::C::REST for creating/parsing. I don't know yet if I would need to parse JSON if I use JQuery because I've seen that it can get the data in JSON format, but it sends the requests to the

Re: [Catalyst] How to detect if the current form request is a post?

2009-04-01 Thread Octavian Rasnita
From: kakim...@tpg.com.au Thank you:) Yep, and I am aware of GET as a form request method and yes, i hate it. Why? I knew that it should be the prefered method for the forms that don't change anything on the server, like a search form. Isn't this true? I ask this because I've seen many

Re: [Catalyst] Thoughts On GeoIP Modules?

2009-03-12 Thread Octavian Rasnita
From: Andy Dorman ador...@ironicdesign.com The problem so far is manual sign ups for accounts that are then abused. And in analyzing what happened we have noticed that many of the abused accounts were signed up from one or two countries. We think that geoIP restrictions could cut our

Re: [Catalyst] RFC: New to Catalyst questions

2009-02-20 Thread Octavian Rasnita
From: Kieren Diment kie...@diment.org On 20/02/2009, at 8:49 PM, Octavian Rasnita wrote: From: Dan Dascalescu ddascalescu+catal...@gmail.com Regarding wiki questions: The Catalyst wiki runs on MojoMojo (http://mojomojo.org), Too bad that it doesn't run under Windows. Why not? I

Re: [Catalyst] RFC: New to Catalyst questions

2009-02-20 Thread Octavian Rasnita
From: Rodrigo rodrigol...@gmail.com First I was not able to install File::NFSLock with cpan, but I found a ppm distribution for it. But I've seen that after doing this, more other cpan modules couldn't be installed, and one of them is Cache::FastMmap which I know that it can't be installed

Re: [Catalyst] RFC: New to Catalyst questions

2009-02-20 Thread Octavian Rasnita
From: Dan Dascalescu ddascalescu+catal...@gmail.com I didn't have a problem with File::NFSLock compiling with the latest Strawberry version. I did, and I'm not the only one: http://rt.cpan.org/Public/Bug/Display.html?id=40185 PS: Cache::Memory is a bogus dependency. I just removed it.

Re: [Catalyst] RFC: The paradox of choice in web development

2009-02-17 Thread Octavian Rasnita
From: Ali M. tclwarr...@gmail.com When Catalyst is not chosen I personally believe it the combination of two things 1. Perl is no longer perceived as an easy language, or language that make development easier. More exactly,, Perl is considered a language hard to learn, that creates a code

Re: [Catalyst] HTML::FormFu form elements

2009-02-11 Thread Octavian Rasnita
From: Greg Coates gcoa...@csuchico.edu I've run into a scenario where I need to be able to build an HTML::FormFu form and then only display portions of it in my template. (So, the typical [% form %] in the template will be replaced by something else, at least in my ideal world.) I tried

Re: [Catalyst] Proper ngettext with Catalyst

2009-02-02 Thread Octavian Rasnita
From: Felix Antonius Wilhelm Ostmann ostm...@websuche.de i run into the same problem with german phrases [quant,_1,message has,messages have] been sent. but in german: singular: Es wurde 1 Nachricht gesendet. plural: Es wurden 10 Nachrichten gesendet. So i cant build that with normal

Re: [Catalyst] Proper ngettext with Catalyst

2009-02-01 Thread Octavian Rasnita
On Sat, Jan 31, 2009 at 8:29 AM, Nikolai Prokoschenko b. is wrong semantically, since plural form count is different in different languages and the position of a word can differ depending on the number (this is one reason why gnu recommends translating complete sentences) I didn't know that.

Re: [Catalyst] Proper ngettext with Catalyst

2009-02-01 Thread Octavian Rasnita
From: J. Shirley jshir...@gmail.com Most east-Asian languages don't have the same concept of plurals. You don't add the s, so it would just be I have 1 apple or I have 10 apple. This is not an issue, because for the japanese translation, the string could be something like: I have

Re: [Catalyst] Proper ngettext with Catalyst

2009-02-01 Thread Octavian Rasnita
From: Kieren Diment dim...@gmail.com In indonesian, to pluralise you just say the word twice, or in writing put a 2 after it. I have two apples: Saya ada dua appel appel. or: Saya ada dua appel2 Saya ada [quant,_1,appel,appel appel]. But it doesn't do a perfect translation this way,

<    1   2   3   >