Re: [Catalyst] Getting strange warning each time a request is made to myApp
hi there Definitely not. What I don't understand is that this error has not surfaced until recently. Really strange. Any idea where to trace? Quoting Greg Matheson drb...@freeshell.org: On Sat, 14 Mar 2009, kakim...@tpg.com.au wrote: - extract START --- [warn] Used regexp fallback for $c-model('myApp::View::HTML'), which found 'myApp::View::HTML=HASH(0x8ef7b50)'. Relying on regexp fallback behavior for component resolution is unreliable and unsafe. You probably meant $c-model('myApp::View::HTML=HASH(0x8ef7b50)') instead of $c-model{'myApp::View::HTML'}, but if you really wanted to search, pass in a regexp as the argument like so: $c-model(qr/myApp::View::HTML/) at /usr/local/lib/perl5/site_perl/5.8.9/Catalyst/Action/RenderView.pm line 56 [debug] Rendering template index.tt2 [debug] Applying HTML page layout wrappers to index.tt2 - extract END --- You're not calling $c-model('Table') instead of $c-model('DB::Table') are you? ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Getting strange warning each time a request is made to myApp
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 default view? thanks K. akimoto Quoting Russell Jenkins russell.jenk...@strategicdata.com.au: kakim...@tpg.com.au wrote: - extract START --- [warn] Used regexp fallback for $c-model('myApp::View::HTML'), which found 'myApp::View::HTML=HASH(0x8ef7b50)'. Relying on regexp fallback behavior for component resolution is unreliable and unsafe. You probably meant $c-model('myApp::View::HTML=HASH(0x8ef7b50)') instead of $c-model{'myApp::View::HTML'}, but if you really wanted to search, pass in a regexp as the argument like so: $c-model(qr/myApp::View::HTML/) at /usr/local/lib/perl5/site_perl/5.8.9/Catalyst/Action/RenderView.pm line 56 [debug] Rendering template index.tt2 [debug] Applying HTML page layout wrappers to index.tt2 - extract END --- Hmmm, looks like a poor error message confusing what's going on.. RenderView calls $c-view(); ( with no arguments ) Your warning gets thrown from $c-_comp_search_prefixes() from within the call to view(). I'm guessing you have a single view in myApp but have not configured a default view ( $c-config-{default_view} ) or set current_view or current_view_instance in the stash. Hope that helps, Russell. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] [Announce] Catalyst::Runtime 5.7099_04. IMPORTANT; PLEASE TEST!
On Fri, Mar 13, 2009 at 11:06 PM, kakim...@tpg.com.au wrote: 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)'. Relying on regexp fallback You're not using the API correctly, your call should be $c-view('HTML') -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monkeyhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://edenc.vox.com/http://www.shadowcat.co.uk/servers/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Getting strange warning each time a request is made to myApp
On Sat, Mar 14, 2009 at 10:49 AM, kakim...@tpg.com.au wrote: Any idea or documentation that I could read up to find out on how to configure a default view? $c-view is documented in perldoc Catalyst -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monkeyhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://edenc.vox.com/http://www.shadowcat.co.uk/servers/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] [Announce] Catalyst::Runtime 5.7099_04. IMPORTANT; PLEASE TEST!
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 is that 'default_view' will be probing for whatever I assigned to it (in this case, 'HTML') in the myApp/lib/View subdirectory. By assigning MyApp::View::HTML as default_view in the past, my catalyst app would be confused and hence the warning. Is my understanding correct? Thank you K. akimoto Quoting Eden Cardim edencar...@gmail.com: On Fri, Mar 13, 2009 at 11:06 PM, kakim...@tpg.com.au wrote: 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)'. Relying on regexp fallback You're not using the API correctly, your call should be $c-view('HTML') -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monkey http://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://edenc.vox.com/http://www.shadowcat.co.uk/servers/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] Catalyst and ExtJS
Hi, I was thinking about using Catalyst and ExtJS, does anyone have any experience or know if they will play nicely together? Doing some googling implies that this is not a popular combination due to the limited information thanks for any help adam ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] [Announce] Catalyst::Runtime 5.7099_04. IMPORTANT; PLEASE TEST!
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 this is working is that 'default_view' will be probing for whatever I assigned to it (in this case, 'HTML') in the myApp/lib/View subdirectory. By assigning MyApp::View::HTML as default_view in the past, my catalyst app would be confused and hence the warning. Is my understanding correct? Thank you K. akimoto Quoting Eden Cardim edencar...@gmail.com: On Fri, Mar 13, 2009 at 11:06 PM, kakim...@tpg.com.au wrote: 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)'. Relying on regexp fallback You're not using the API correctly, your call should be $c-view('HTML') -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monkey http://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://edenc.vox.com/http://www.shadowcat.co.uk/servers/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Getting strange warning each time a request is made to myApp
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 anyway:) K. akimoto Quoting Eden Cardim edencar...@gmail.com: On Sat, Mar 14, 2009 at 10:49 AM, kakim...@tpg.com.au wrote: Any idea or documentation that I could read up to find out on how to configure a default view? $c-view is documented in perldoc Catalyst -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monkey http://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://edenc.vox.com/http://www.shadowcat.co.uk/servers/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Getting strange warning each time a request is made to myApp
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 anyway:) K. akimoto Quoting Eden Cardim edencar...@gmail.com: On Sat, Mar 14, 2009 at 10:49 AM, kakim...@tpg.com.au wrote: Any idea or documentation that I could read up to find out on how to configure a default view? $c-view is documented in perldoc Catalyst -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monkey http://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://edenc.vox.com/http://www.shadowcat.co.uk/servers/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
RE: [Catalyst] Catalyst and ExtJS
-Original Message- From: Adam Witney [mailto:awit...@sgul.ac.uk] Sent: Saturday, March 14, 2009 10:36 AM To: The elegant MVC web framework Subject: [Catalyst] Catalyst and ExtJS Hi, I was thinking about using Catalyst and ExtJS, does anyone have any experience or know if they will play nicely together? Doing some googling implies that this is not a popular combination due to the limited information thanks for any help adam Yes I currently have a couple of apps that use ExtJS + Catalyst, works great for me! ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Catalyst and ExtJS
On 14 Mar 2009, at 15:19, Scott Pham (scpham) wrote: -Original Message- From: Adam Witney [mailto:awit...@sgul.ac.uk] Sent: Saturday, March 14, 2009 10:36 AM To: The elegant MVC web framework Subject: [Catalyst] Catalyst and ExtJS Hi, I was thinking about using Catalyst and ExtJS, does anyone have any experience or know if they will play nicely together? Doing some googling implies that this is not a popular combination due to the limited information thanks for any help adam Yes I currently have a couple of apps that use ExtJS + Catalyst, works great for me! Hi Scott, thanks for the info, do you use any particular module or have you built it yourself? I have found so far: HTML::FormFu::ExtJS Catalyst-Controller-HTML-FormFu-ExtJS any you'd recommend taking a look at? thanks again adam ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Specifying relationships once
That's perfect. Thank you. Richard Thomas wrote: We do something along those lines - although for very different reasons - our has_a and has_many relationships are defined in the Model.pm, not the individual tables' modules, ie This::Table-has_a(this_col = That::Table); That::Table-has_many(that_col = This::Table); The reason for this is that we use an auto discovery framework, so there's no guarantee that This/Table.pm even exists. So, it's a different purpose to yours, but can be done. Depending on exactly what you're trying to do, you could parse a text file to produce statements like the above, or code them into your Model directly. Hope that helps. RET Sent from my iPhone On 14/03/2009, at 5:08 AM, Ascii King t...@swattermatter.com wrote: Is there some way to place all of the relationship specifications into a file so that I don't have to go out and type them in each time? For example, I can specify a bunch of SQL commands in a text file and have sqlite3 read them and turn them into a database full of data. Now I want to have a text file where, when I run it, it automatically opens up my Schema .pm files and puts the relationships in. I want this so that I can send out the files necessary to build my database and the relationships. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Catalyst and ExtJS
Hi Scott, thanks for the info, do you use any particular module or have you built it yourself? I have found so far: HTML::FormFu::ExtJS Catalyst-Controller-HTML-FormFu-ExtJS any you'd recommend taking a look at? thanks again adam Hi Adam, I'm the author of the above mentioned modules. C::C::HTML::FormFu::ExtJS was just a proof of concept. You can use it though. It's simply a subclass of C::C::HTML::FormFu and replaces new HTML::FormFu with new HTML::FormFu::ExtJS. HTML::FormFu::ExtJS is actively developed. The version on CPAN is not very recent because I'm waiting for the maintainer of HTML::FormFu to release a new version. The most recent version is at http://html-formfu.googlecode.com/svn/trunk/HTML-FormFu-ExtJS/ (requires the svn version of HTML::FromFu). Try it, look at the tests, see me at IRC #formfu or email me. I'd be glad if someone is using this module so we can find bugs and add features to it. moritz ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Catalyst and ExtJS
Adam Witney wrote on 3/14/09 9:36 AM: Hi, I was thinking about using Catalyst and ExtJS, does anyone have any experience or know if they will play nicely together? Doing some googling implies that this is not a popular combination due to the limited information CatalystX::CRUD::YUI uses the ExtJS LiveGrid feature. IME, picking a JS lib is orthogonal to the form manager (if you use one) or Catalyst classes you pick. They can make some things easier in the simple cases, but in the more complex cases I end up handcrafting the forms and JS myself. -- Peter Karman . http://peknet.com/ . pe...@peknet.com ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/