Re: [Catalyst] Getting strange warning each time a request is made to myApp

2009-03-14 Thread kakimoto
Hi, Russell, Interesting. I have checked and well, found no traces of a default view or anything similar to it. The app persists in working but gives out this warning message (Which has always been absent). Any idea or documentation that I could read up to find out on how to configure a

Re: [Catalyst] [Announce] Catalyst::Runtime 5.7099_04. IMPORTANT; PLEASE TEST!

2009-03-14 Thread kakimoto
Alright, I tracked down my codes and found in MyApp.pm, __PACKAGE__-config('default_view' = 'MyApp::View::HTML'); I altered it as per your advise below to __PACKAGE__-config('default_view' = 'HTML'); and it works! Thank you. So, to confirm my understanding, the reason why this is working

Re: [Catalyst] [Announce] Catalyst::Runtime 5.7099_04. IMPORTANT; PLEASE TEST!

2009-03-14 Thread kakimoto
Problem solved!! Alright, I tracked down my codes and found in MyApp.pm, __PACKAGE__-config('default_view' = 'MyApp::View::HTML'); I altered it as per your advise below to __PACKAGE__-config('default_view' = 'HTML'); and it works! Thank you. So, to confirm my understanding, the reason why

Re: [Catalyst] Getting strange warning each time a request is made to myApp

2009-03-14 Thread kakimoto
Hello, Eden! Thank you for the solution in the previous email reply. $c-view - doesn't seem to be documented in the Catalyst tutorials at all. I don't know how to have the tutes updated. I wish someone would update the tute so that others don't get stung by this silly warning. Thank you

Re: [Catalyst] Getting strange warning each time a request is made to myApp

2009-03-14 Thread kakimoto
Hello, Eden! Thank you for the solution in the previous email reply. $c-view - doesn't seem to be documented in the Catalyst tutorials at all. I don't know how to have the tutes updated. I wish someone would update the tute so that others don't get stung by this silly warning. Thank you

[Catalyst] Getting strange warning each time a request is made to myApp

2009-03-13 Thread kakimoto
Hi, everyone, I realised that my app's terminal console has been spitting out a warning as per below each time I make a request to the app. This is be it to '/' or to a valid controller like 'subscriptions/create', 'subscriptions/update', 'subscriptions/delete', and so forth. - extract

Re: [Catalyst] Getting strange warning each time a request is made to myApp

2009-03-13 Thread kakimoto
Hi, everyone, I went into my MyApp::Controller::Login-index method and made some changes. I noticed that upon successful login of the current user, I will do a redirect to the base path '/' (ie. www.insurance-example.com:3000/). So in this case, i specified something like:

Re: [Catalyst] Getting strange warning each time a request is made to myApp

2009-03-13 Thread kakimoto
hi everyone, I tried googling and found that it's got somethign to do with component resolution which has been refactored for Catalyst Runtime 5.8. I am running Catalyst 5.71000 and my Catalyst::Action::RenderView is up to date (ie ver 0.09 ). Any ideas?? I tried looking in my Root.pm

[Catalyst] [Announce] Catalyst::Runtime 5.7099_04. IMPORTANT; PLEASE TEST!

2009-03-13 Thread kakimoto
Guys, can some one please elaborate further on this or point me to a doc on cpan to read about? I'm getting a very annoying warning as below and can't figure it out. Please help. [warn] Used regexp fallback for $c-model('myApp::View::HTML'), which found 'myApp::View::HTML=HASH(0x8ef7b50)'.

Re: [Catalyst] Catalyst - any good AJAX tutes?

2009-03-10 Thread kakimoto
hello, David, Sounds good. For me, I have done away with html::Formfu, formbuilder and so forth because my needs better met with manual old school html. Can you give us some links as a reference to the rest of us? thanks K. Akimoto Quoting David Morel dmore...@gmail.com: Le 6 mars

[Catalyst] Catalyst - can't find Can't locate DBIx/Class/TimeStamp.pm in @INC ( have both perl 5.8.8 and 5.8.9 installed)

2009-03-10 Thread kakimoto
hi , everyone, I installed DBIx::Class::TimeStamp successfully. I nevertheless have both perl 5.8.8 and 5.8.9 in my machine. I think it was when I ran apt-get on my ubuntu feisty box months ago apt-get install perl (yes,itchy fingers) and it installed perl 5.8.9. This is what I get when i

[Catalyst] command in Catalyst tute part 4 for generating schema files (static creation) using DBIx::Class::TimeStamp needs to be updated

2009-03-10 Thread kakimoto
hi everyone, I just followed the tute in http://search.cpan.org/~hkclark/Catalyst-Manual-5.7018/lib/Catalyst/Manual/Tutorial/BasicCRUD.pod to regenerate my schema (model) files to use DBIx::Class::TimeStamp. I refered to the section Update DBIC to Automatically Handle the Datetime Columns. I

Re: [Catalyst] command in Catalyst tute part 4 for generating schema files (static creation) using DBIx::Class::TimeStamp needs to be updated

2009-03-10 Thread kakimoto
myApp::Schema create=static components=TimeStamp dbi:Pg:dbname=myApp:Username=test_user:Password=password11 exists /home/kakimoto/projects/myApp/script/../lib/myApp/Model exists /home/kakimoto/projects/myApp/script/../t DBIx::Class::Schema::Loader::make_schema_at(): DBI Connection failed

Re: [Catalyst] How to save timestamps using DBIx::CLASS?

2009-03-10 Thread kakimoto
hi all, I looked at Update DBIC to Automatically Handle the Datetime Columns in the Catalyst Tute (part 4 - basic CRUD). Nevertheless, I am running into problems when i run the myapp_create.pl script. Have posted another mail entitled,[Catalyst] command in Catalyst tute part 4 for

Re: [Catalyst] Catalyst - any good AJAX tutes?

2009-03-10 Thread kakimoto
hello, David :) yep I do know that things like FormFu and FormBuilder are good but for Perl people who maintain existing applications that have not ever touched these form packages and Catalyst, it seems like a whole new world . Add the requirement to get a prototype up pretty soon, and the

Re: [Catalyst] Catalyst - any good AJAX tutes?

2009-03-06 Thread kakimoto
hello, all :) thanks for the responses to help me out. I was wondering if there are any good tutes that can be recommended for a perl programmer to 1) learn enough to set up the javascript itself ( be it in jQuery, dojo or anything you prefer) 2) learn enough about how to intercept the ajax

[Catalyst] Catalyst - any good AJAX tutes?

2009-03-05 Thread kakimoto
hello there, I would like to use AJAX in my catalyst app. Any good references/tutes to recommend? thanks. K. akimoto ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive:

[Catalyst] How to save timestamps using DBIx::CLASS?

2009-03-02 Thread kakimoto
hello, everybody (simpsons doctor tone), How to save timestamps using DBIx::CLASS in a Catalyst app? For example, assume there is a database table named Subscriptions which has the following definitions: id (primary key), name, type, costs, activation_status, created_by, created_on,

Re: [Catalyst] How to save timestamps using DBIx::CLASS?

2009-03-02 Thread kakimoto
Hello, Kieren! Thanks for that. Yeah, I was googling again after I posted the previous email and I did find DBIx::Class::TimeStamp on cpan. ah, http://search.cpan.org/perldoc?DBIx::Class::InflateColumn::DateTime looks interesting. Just had a glance and will check it out. Cheers! K. akimoto.

[Catalyst] How to clear off request parameter element

2009-02-23 Thread kakimoto
hi all I have an app with a listing method in the controller. It goes a little like this: sub list { # get object from model based on $c-request-param('id'); IF (object) { return; } ELSE { return all objects belonging to the current user;

Re: [Catalyst] DBIC::Schema issue - out of ideas [ more info ]

2009-02-18 Thread kakimoto
Hello, Dermot and Alejandro, Thanks for your help. Yes, they are very good hints :) I tried them and I learnt more about the Catalyst framework. I looked at how I executed the script and I think I figured out why. I ran myApp_create.pl within the script subdirectory. For some reason, the

Re: [Catalyst] DBIC::Schema issue - out of ideas [ more info ]

2009-02-18 Thread kakimoto
Hello, Dermot, Replies are as per below. Quoting Dermot paik...@googlemail.com: myApp_create.pl model myAppDB DBIC::Schema myApp::Schema create=static dbi:Pg:dbname=myApp myAdminUser mypassword Your command says Create a schema under the directory 'myAppDB', so they should be under

Re: [Catalyst] DBIC::Schema issue - out of ideas [ more info ]

2009-02-18 Thread kakimoto
Reply is as per below I'm going to do something horrid and point you at the documentation: http://search.cpan.org/~ribasushi/DBIx-Class-0.08012/lib/DBIx/Class/Relationship.pm#has_many and http://search.cpan.org/~ribasushi/DBIx-Class-0.08012/lib/DBIx/Class/Schema.pm You created

[Catalyst] DBIC::Schema issue - out of ideas.

2009-02-17 Thread kakimoto
ngs.pm in @INC (@INC contains: /home/kakimoto/projects/myApp/script/../lib /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/pe rl/5.8 /usr/local/lib/site_perl . /home/kakimoto/projects/myApp/lib/myApp/Schema) at /usr/local/share

[Catalyst] DBIC::Schema issue - out of ideas [ more info ]

2009-02-17 Thread kakimoto
Hi, guys, Just about to shut the machine down when i realised I could give a little more info. This is the command I ran to generate the static ORM files. myApp_create.pl model myAppDB DBIC::Schema myApp::Schema create=static dbi:Pg:dbname=myApp myAdminUser mypassword - the Schema.pm

Re: [Catalyst] DBIC::Schema issue - out of ideas [ more info ]

2009-02-17 Thread kakimoto
go to the DBIc mailing list. This problem that DBIx can't locate Listings.pm which might be defined in you Schema.pm file. If your pwd is /home/kakimoto/projects/ and you type `find . -name Listings.pm -ls` do you see the file? Can you post the contents of that file. Good luck, Dp

Re: [Catalyst] DBIC::Schema issue - out of ideas [ more info ]

2009-02-17 Thread kakimoto
Hello Dermot, sorry, you're right. Yes, I could not find myAppDB::Listing myself. I ran the following command for generating the static schema manually. myApp_create.pl model myAppDB DBIC::Schema myApp::Schema create=static dbi:Pg:dbname=myApp myAdminUser mypassword Where in catalyst do

Re: [Catalyst] DBIC::Schema issue - out of ideas.

2009-02-17 Thread kakimoto
::Model::myAppDB, Cannot load schema class 'myApp::Schema': DBIx::Class::Schema::throw_exception(): DBIx::Class::Row::throw_exception(): Can't locate myAppDB/Listi ngs.pm in @INC (@INC contains: /home/kakimoto/projects/myApp/script/../lib /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share

Re: [Catalyst] Any alternatives to generating thumbnails aside from Catalyst::Plugin::Upload::Image::Magick::Thumbnail

2008-12-23 Thread kakimoto
hello, Carl, thanks for that. I have shied away from using HTML::FormFu as my application's view requires heavy customisation which html::formfu cannot offer without steep learning curve and time. Yes i have heard of Imager. Anyone else used it extensively ? thanks ps-good god i wish

Re: [Catalyst] Any alternatives to generating thumbnails aside from Catalyst::Plugin::Upload::Image::Magick::Thumbnail

2008-12-23 Thread kakimoto
hello, Lars, thank you :) Quoting Lars Balker Rasmussen l...@balker.dk: On Tue, Dec 23, 2008 at 07:49:50PM +1100, kakim...@tpg.com.au wrote: Yes i have heard of Imager. Anyone else used it extensively ? Extremely heavily for all image-related tasks for years. And remember the 1st

Re: [Catalyst] Any alternatives to generating thumbnails aside from Catalyst::Plugin::Upload::Image::Magick::Thumbnail

2008-12-23 Thread kakimoto
hello, Lars, thank you :) Quoting Lars Balker Rasmussen l...@balker.dk: On Tue, Dec 23, 2008 at 07:49:50PM +1100, kakim...@tpg.com.au wrote: Yes i have heard of Imager. Anyone else used it extensively ? Extremely heavily for all image-related tasks for years. And remember the 1st

[Catalyst] Any alternatives to generating thumbnails aside from Catalyst::Plugin::Upload::Image::Magick::Thumbnail

2008-12-22 Thread kakimoto
hi, all, I have tried to install this package, Catalyst::Plugin::Upload::Image::Magick::Thumbnail and have been unsuccessful due to failing regression tests. I have checked out the maintainers' website and the same tests are failing.

[Catalyst] file paths when using catalyst controllers.

2008-11-08 Thread kakimoto
hi all I have a project that runs fine in terms of the index and static pages. All my graphics (ie logos and stuff ) load property when I am in the index page. I am using Template Toolkit. Nevertheless, when I access a method in the controller, I noticed that the graphics do not load. I

Re: [Catalyst] file paths when using catalyst controllers.

2008-11-08 Thread kakimoto
hi there, 1) there is no particular reason the static references need to use relative paths 2) i tried using an absolute path but the issue is still no good. guys, I updated Catalyst-Plugin-Static-Simple and Catalyst-Plugin-Static and tried to run my application again. I am getting this message

Re: [Catalyst] how to set a default (index.html) page (Template Toolkit used)

2008-11-01 Thread kakimoto
any ideas? Quoting [EMAIL PROTECTED]: hi guys i am fine tuning my application. Like the examples given in the tutes, the default page is to login the user. How do I load a default page (ie index.html)? Assume it is stored in project-name/root/static. I was looking at Root.pm

[Catalyst] how to set a default (index.html) page (Template Toolkit used)

2008-10-30 Thread kakimoto
hi guys i am fine tuning my application. Like the examples given in the tutes, the default page is to login the user. How do I load a default page (ie index.html)? Assume it is stored in project-name/root/static. I was looking at Root.pm where the default behaviour of logging in users is

[Catalyst] How to use self made Template Toolkit plugins?

2008-10-20 Thread kakimoto
hi there i am thinking of writing some template toolkit plugins for use within my *.tt2 files. I read the Template toolkit book but of course, this is catalyst so some things (ie configuration) is different 1) how do I tell my *.tt2 file that a certain template is to be found in a certain

Re: [Catalyst] HTML::FormFu - how to manually control the rendering?

2008-08-19 Thread kakimoto
Hi, there, Thank you Dermot for your response. I am not sure i see how introducing a class element for the element would help. For example, if we hand coded the form, we would have something like: form method=post action=... ... h3Accessories/h3 table border=0 tr

Re: [Catalyst] HTML::FormFu - how to manually control the rendering?

2008-08-19 Thread kakimoto
If anyone has seen another tutorial (aside the one in the Catalyst manual), please post the link here. Would help a lot :) Thank you K.akimoto Quoting Dermot [EMAIL PROTECTED]: 2008/8/18 [EMAIL PROTECTED]: hello there I love using HTML::FormFu in these two aspects: 1) Validation -

[Catalyst] DBIx::Class method, update_or_create_related - it tries to populate the primary key value of the related object

2008-08-18 Thread kakimoto
hello, all, I am trying to use DBIx::Class method, update_or_create_related to cut down the amount of code I have. My code has happily worked with 1) me manually doing a search (with find) to see if an object in question exists or not. If it doesn't, I will issue a new/create . Else, the find

[Catalyst] HTML::FormFu - how to manually control the rendering?

2008-08-18 Thread kakimoto
hello there I love using HTML::FormFu in these two aspects: 1) Validation - oh ,yeah :) 2) configuration (via yaml in my case) nevertheless, is there any way we can control the rendering (in TT2)? From what has been done in the catalyst tute for html::FormFu, i noticed that it just lists

Re: [Catalyst] DBIx::Class method, update_or_create_related - it tries to populate the primary key value of the related object

2008-08-18 Thread kakimoto
Hello, there, Zbigniew, Thanks for the article, Perl Alchemy - notes of a Catalyst programmer. Phew.. Thought I was going insane cause I figured a proper ORM would not have this problem. Anyway, can you please give some examples of using pk = undef? The code extract below is what I used

[Catalyst] Catalyst::Plugin::FormValidator -- What does the ' prepare' method really do and is it necessary?

2008-08-16 Thread kakimoto
hi, guys, Was looking through Catalyst::Plugin::FormValidator's source code. Was wondering what does the ' prepare' method really do and is it necessary? I mean looking at the code, what's the significance of $c = $c-NEXT::prepare(@_);. Was wondering if i could just use -form straight away

[Catalyst] Catalyst::Plugin::FormValidato-form method - naming of the method and parameter (call to Data::FormValidator-check)

2008-08-16 Thread kakimoto
Dear all, 1) Since Catalyst::Plugin::FormValidator is considered a thin wrapper around Data::FormValidator, shouldn't we be keeping the naming conventions the same? 2) 'form' seems to call Data::FormValidator-check , why can't we call it check instead of form? 3) the second parameter to the

Re: [Catalyst] Jemplate and AJAX woes... [Bump -anyone??]

2008-08-14 Thread kakimoto
I have managed to get Jon Rockway's AddressBook application (from chapter 7 of the book) to work (ie i managed to log in as I put in the SQLs for User,UserRole and Role tables). I tried to edit an address and 1) it does not work (ie. the webpage did not change and present a form for edit) 2)

[Catalyst] Jemplate and AJAX woes... [Bump -anyone??]

2008-08-13 Thread kakimoto
hi, guys, I think Ajax is cool. With Jemplate, it sounds good that Javascript templating is possible. I tried to go chapter 7 of Jon Rockway's book. Looks good. For my system, I just needed something very basic. === 1) Load up a data input form 2) user

[Catalyst] Jemplate and AJAX woes...

2008-08-12 Thread kakimoto
hi, guys, I think Ajax is cool. With Jemplate, it sounds good that Javascript templating is possible. I tried to go chapter 7 of Jon Rockway's book. Looks good. For my system, I just needed something very basic. === 1) Load up a data input form 2) user

[Catalyst] Chapter 7[Jon rockway's catalyst book] - AJAX - What's the user id and password for the AddressBook source codes?

2008-08-12 Thread kakimoto
hi guys (especially Jon), What's the user id and password for the AddressBook source codes from chapter 7 of the Catalyst Book (by Jon Rockway) ? thank you K. Akimoto ___ List: Catalyst@lists.scsys.co.uk Listinfo:

[Catalyst] Problem installing Catalyst::View::Jemplate

2008-08-05 Thread kakimoto
Failed 1/2 test programs. 1/19 subtests failed. make: *** [test_dynamic] Error 1 thank you, Kakimoto ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail

[Catalyst] Problem with BindLex panicking for nothing...

2008-08-05 Thread kakimoto
Hi, guys, The URL used was http://www.select-a-bank-loan.com:3000/loanss/list?id=338;. For some silly reason, a call with a parameter of id causes this issue of [error] Caught exception in myApp::Controller::Loans-list Exception Caught-panic: Can't find ARRAY(0x8a068fc) in the the caller's

[Catalyst] javascript in Catalyst using Template Toolkit

2008-07-18 Thread kakimoto
hi there,, Did this work? I have actually tried this and yes, like Emily,my JS stuff is store in myapp/root/lib/site . script src=[% Catalyst.uri_for('/multifile.js') %]/script Does not work. Did I miss anything out? thank you On 20/12/2007, Emily Heureux emily at burnham.org

Re: [Catalyst] javascript in Catalyst using Template Toolkit

2008-07-18 Thread kakimoto
Hello, Jonathan and Peter, Thanks for that :) i got the issue fixed up by add root/static to lib/myApp/View/TT.pm and yes, 'Static::Simple' was used. Here's an extract... __PACKAGE__-config({ CATALYST_VAR = 'Catalyst', INCLUDE_PATH = [ myApp-path_to( 'root', 'src' ),

Re: [Catalyst] HTML::FormFu - how do constraints work?

2008-07-14 Thread kakimoto
I have untarred the tgz file you mentioned below. 1) Ran the app 2) logged in as test01 with pwd of mypass 3) Added a book successfully with nothing filled in (title, rating and author ID blank). 4) It was successful with this message, Added book 'N/A' by 'Bastien' with a rating of N/A.

[Catalyst] HTML::FormFu - how do constraints work?

2008-07-13 Thread kakimoto
hi all I have just posted out a question earlier as I could not get the example for Tutorial::AdvancedCRUD::FormFu to work. I have also looked at the examples and put in the Constraint settings in myapp.yml file but it does not work at all. Whilst I await for some help of you helpful folks

[Catalyst] Can't seem to run Tutorial::AdvancedCRUD::FormFu due to DBD::SQLite problems

2008-07-13 Thread kakimoto
try to submit the page, http://localhost:3000/books/form_create_do; Here's what myapp.db looks like in the eyes of ls -la myapp.db -rwxrwxrwx 1 kakimoto kakimoto 11264 2008-07-14 00:51 myapp.db Help please :) ___ List: Catalyst@lists.scsys.co.uk

Re: [Catalyst] HTML::FormFu - how do constraints work?

2008-07-13 Thread kakimoto
hello, Kieren thank you for that. Also, my apologies to everyone as my other email seemed to have been posted 3 times! thank you K. akimoto Quoting Kieren Diment [EMAIL PROTECTED]: For both of your problems, check the code at http://

Re: [Catalyst] Any recommendations for multiple forms in catalyst (have been using HTML::FormFu)?

2008-07-03 Thread kakimoto
() of a certain file which I define (for example, home_loans.yml) b) and return the form object that has just runned load_config_file (as per the step above)? Any sites you could point me to read in reference to the first question would be great. Thanks! kakimoto Quoting Carl Franks [EMAIL

[Catalyst] Any recommendations for multiple forms in catalyst (have been using HTML::FormFu)?

2008-07-02 Thread kakimoto
hello all :) i;m trying to build a system with catalyst. Followed the tutes and used html::FormFu. Works great but fails when i have multiple step operations. been introduced to Catalyst-Controller-FormBuilder-MultiForm and will look at it. Any more recommendations to achieve the purpose

[Catalyst] Updated from Catalyst 5.7012 to 5.7014 - got problems with HTML::FormFu-model()

2008-07-01 Thread kakimoto
This is what I did: 1) Updated from Catalyst 5.7012 to 5.7014 2) Got the message below when I tried to save a new entry into the db Caught exception in gozila::Controller::Books-create Can't locate object method new via package HTML::FormFu::Model::DBIC at

Re: [Catalyst] Updated from Catalyst 5.7012 to 5.7014 - got problems with HTML::FormFu-model()

2008-07-01 Thread kakimoto
Dear all, I found that 1) i had also updated HTML::FormFu 2) this had caused the problem By reverting to version 0.02004 of HTML::FormFu, the problem was solved. I believe it's to do with the deprecation of HTML::FormFu-model(). Quoting [EMAIL PROTECTED]: This is what I did: 1)

Re: [Catalyst] Updated from Catalyst 5.7012 to 5.7014 - got problems with HTML::FormFu-model()

2008-07-01 Thread kakimoto
Hello, Carl, Spot on.. HTML-FormFu-Model-DBIC is the culprit. Thank you for your help. Rock on. If you have more tutorial pages on making more advanced forms it would be good. I have your cAtalyst book but have not found anything close to that. Would be interested in learning how to produce

Re: [Catalyst] Updated from Catalyst 5.7012 to 5.7014 - got problems with HTML::FormFu-model()

2008-07-01 Thread kakimoto
Hello, Carl, Now, we're cookin'. Going to look at 'em links you gave. Ta :) Quoting Carl Franks [EMAIL PROTECTED]: 2008/7/1 [EMAIL PROTECTED]: Hello, Carl, Spot on.. HTML-FormFu-Model-DBIC is the culprit. Thank you for your help. Rock on. If you have more tutorial

[Catalyst] Issue with Catalyst:Can't locate object method get_user via package Catalyst::Plugin::Authentication::Store::DBIC

2008-05-14 Thread kakimoto
hi, there, i have installed catalyst and done a few of the tutes you have put on the net on my macbook. Runs great. i am using a Postgresql db backend. I am now doing the authentication tutorial and have been stuck in a bad error for ages. [error] Caught exception in

<    1   2