Re: [Catalyst] Postgresql database with non default -public- schema
On 20/10/10 18:40, Hetényi Csaba wrote: The automatic schema generation is a very convenient feature -especially in developing phase, when table structures often change. I hear you!... I have the exact same issue. So far writing my own script that harnesses the power of DBIX::Class::Schema::Loader to run over each schema in my DB seems to be working out well... althou, due to some horrific column naming my dbic objects have a some ugly accessor names... I feel I 'might' start manually managing my ::Result:: files :( ___ 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] Postgresql database with non default -public- schema
On 20/10/10 15:22, Hetényi Csaba wrote: Is this helper script capable to automatically create model for the non-default tablespace? I believe this is known issue with ::Schema::Loader. http://search.cpan.org/~ribasushi/DBIx-Class-Schema-Loader-0.07002/lib/DBIx/Class/Schema/Loader.pm#KNOWN_ISSUES You can sort of get around it by specifiy 'db_schema' (I think you can get it into the command line script args) I think it works with Postgres but with Oracle it did not seem to work.. I think, regardless, you will have to manually add cross schema relationships. Its not hard to roll your own script to build and manage your ::Result:: files... just take a peek at the ::Schema::Loader cpan docs. ___ 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] [Absolute Beginner] Navigation?
On 19/08/10 22:28, Ekki Plicht (DF4OR) wrote: Some kind of introspection of the dispatcher which spits out a list of handled URIs which I can turn into a nav tree? I had an simlar issue and started my solution by using ideas taken from Catalyst::Plugin::Authorization::ACL::Engine to build a tree of actions within my app ... once I had a nice tidy tree object to deal with, I was able to build not only a Navigation system but also and pretty niffy access control system. ___ 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::View::Email stopped working
Excellent... I had this exact problem yesterday, and thought I would have to battle through modules tracking down the source of the problem... but totally randomly I read this posting in the list and it fixed my problem.. thanks very much :) Devin Austin wrote: Charlie Garrison wrote: Good morning, I'm getting errors like the following when sending emails from my app (it was working fine previously): Caught exception in MMM::View::Email::Template-process Can\'t locate object method is_simple via package sendmail (perhaps you forgot to load sendmail?) at /Library/Perl/5.8.8/Email/Sender/Simple.pm line 100. When trying to find out exactly where the problem was; I noted that backend is no longer using Email::Send like it used to ( the documentation says), eg: # Setup how to send the email # all those options are passed directly to Email::Send sender = { mailer = 'SMTP', # mailer_args is passed directly into Email::Send mailer_args = { Host = 'smtp.example.com', # defaults to localhost username = 'username', password = 'password', } C::V::Email now seems to be using Email::Sender instead. And I'm having trouble working out the correct config options I should be using. I've got 'mailer' set to 'SMTP' and there should be a $transport for that in Email::Sender. I'm using the following config (for local test server): View::Email::Template sender mailer SMTP mailer_args Host192.168.1.5 /mailer_args /sender /View::Email::Template Is this a bug with C::V::Email or Email::Sender, or am I doing something wrong? Charlie Hi Charlie/Everyone Else Who Experienced the Breakage, Catalyst::View::Email version 0.20 *should* in theory fix the recent breaks. Please install (most conveniently using cpanf, attainable through App::CPAN::Fresh) and test, and notify the list/irc channel if you have any issues. Also, see my previous email to the list regarding this fix/release. Thanks, dhoss ___ 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/