Re: [Catalyst] DBIC connecting to remote MySQL

2010-05-23 Thread Robert Wohlfarth
t's very cool stuff. Moose offers limited type checking. Moose reported a mis-match in the type it expected versus the type it received. "schema_class" eventually becomes an object attribute. Moose thinks that "schema_class" should be set to an instance of type "Catalyst::Model::

Re: [Catalyst] Getting hashref instead of value

2012-05-08 Thread Robert Wohlfarth
n => 'compliance', '+select' => ['compliance.percent_compliant'], '+as' => ['compliance.percent_compliant'], join => 'department_id', &#

Re: [Catalyst] LDAP question

2012-05-21 Thread Robert Wohlfarth
o the LDAP server. If the connection succeeded, then that user is authenticated. E-mail me off list if you would like a copy of that credential module. -- Robert Wohlfarth rbwohlfa...@gmail.com ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://

Re: [Catalyst] LDAP question

2012-05-21 Thread Robert Wohlfarth
On Mon, May 21, 2012 at 11:03 AM, Luis Muñoz wrote: > > On May 21, 2012, at 11:42 AM, Robert Wohlfarth wrote: > > > The standard Catalyst::Authentication::Store::LDAP does not work with > this model. > > I've been told that the "right" way to do authentic

Re: [Catalyst] problem with Apache and FastCGI

2012-05-26 Thread Robert Wohlfarth
n one of my projects reads "#!/usr/bin/env perl". Does the Apache user have permissions to execute both "/usr/bin/env" and "perl"? Can it find "perl" in the PATH? The Apache environment may have a totally different PATH (or none at all). -- Ro

Re: [Catalyst] problem with Apache and FastCGI

2012-05-27 Thread Robert Wohlfarth
to the interpreter. In addition, if your CGI program depends on other environment variables<http://httpd.apache.org/docs/2.0/howto/cgi.html#env>, you will need to assure that those variables are passed by Apache. -- Robert Wohlfarth ___ List: Catal

Re: [Catalyst] create_related is failing on second time through loop?

2012-06-19 Thread Robert Wohlfarth
nt_id, > role_id, user_id) V...', 'ARRAY(0x4fa0490)', 'ARRAY(0x533ea30)') called at > /usr/local/share/perl5/DBIx/Class/Storage/DBI.pm line 789 > I see that you send $new_role to the log. What is the value when it crashes? An invalid value may cause unhelpful

Re: [Catalyst] Using Catalyst on MS SQL DB that has tables with no primary keys

2012-09-14 Thread Robert Wohlfarth
he model code, I defined an auto number field as the primary key. That makes DBIx::Class happy. -- Robert Wohlfarth ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archiv

Re: [Catalyst] Using Catalyst on MS SQL DB that has tables with no primary keys

2012-09-14 Thread Robert Wohlfarth
t; > You can set the primary key in the schema file. For example, add a line like __PACKAGE__->set_primary_key( "id" ); to lib/MyApp/Schema/Result/MyTable.pm. You do not need to change the database. DBIx::Class will then use *id* whenever it wants

Re: [Catalyst] Problems with authentication (LDAP and Minimal)

2013-06-05 Thread Robert Wohlfarth
t" :) > I've used this configuration successfully in a couple of apps. class NoPassword class LDAP ldap_server ldaps://ldap.domain:636 binddn uid=user,ou=group,dc=domain bindpw password user_basedn ou=people,dc=domain user_field uid user_filter (uid=%s) user_scope

Re: [Catalyst] has_many but no left join?!

2013-06-18 Thread Robert Wohlfarth
# Generate the HTML here with columns from $index_status... foreach my $old_status ($index_status->old_statuses->all) { # Generate the HTML here for any $old_status records... } } -- Robert Wohlfarth ___ List: Catalyst@lists.scsys.

Re: [Catalyst] has_many but no left join?!

2013-06-18 Thread Robert Wohlfarth
do not have a corresponding row in old_statuses. The "join" tells the SQL generator to join the tables so that you can add conditions about old_statuses. DBIx::Class automatically does a LEFT JOIN because the relationship is declared has_many. -- Robert Wohlfarth ___