I've been neglecting my test scripts, and I'm finally getting to that
before my app gets any bigger. I want to make sure I don't break anything
that's working, and that it works as well as I think it does.
I'm probably going to have several questions in the next few days about
tests. I think
Paweł Tęcza wrote:
Dnia 2009-05-12, wto o godzinie 19:30 +0100, Matt S Trout pisze:
Well, that's a horrible idea.
The whole point of having a database is to -model- your data.
If you try and turn it into a giant hash, then of course you're going to
end up with nasty code.
I -could- explain ho
On Wed, 2009-05-13 at 07:21 +0900, Daisuke Maki wrote:
> >> 2. Hooking to methods that Plugins use via method modifiers breaks
> >> method dispatch
> >>
> >> I got bit by this while depending on Catalyst::Plugin::Unicode, and
> >> trying to hook a custom error handling mechanism at finalize().
> >
Dnia 2009-05-12, wto o godzinie 19:30 +0100, Matt S Trout pisze:
> Well, that's a horrible idea.
>
> The whole point of having a database is to -model- your data.
>
> If you try and turn it into a giant hash, then of course you're going to
> end up with nasty code.
>
> I -could- explain how to
>> 2. Hooking to methods that Plugins use via method modifiers breaks
>> method dispatch
>>
>> I got bit by this while depending on Catalyst::Plugin::Unicode, and
>> trying to hook a custom error handling mechanism at finalize().
>
>
>
> Hmm, that certainally looks like a bug to me..
>
> Any c
On Tue, May 12, 2009 at 11:45:01AM +0200, Paweł Tęcza wrote:
> Dear Catalyst users,
>
> It's my first post here, so I would like to say "Hello" to all of us! :)
>
> I'm writing my first Catalyst application for student registration and I
> have the following tables for details about studies at ou
On Mon, May 11, 2009 at 06:28:12PM -0500, Andrew Rodland wrote:
> On Monday 11 May 2009 05:45:01 pm Jonathan Rockway wrote:
> > Or, you can use Debian, which fixed this bug in its Perl a while ago:
> >
> > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488088
> >
> Not everyone uses Debian, and I
Am 11.05.2009 um 23:43 schrieb Steve Rippl:
__PACKAGE__->belongs_to(
"locationid",
"WsdSis::Schema::Result::Location",
{ locationid => "locationid" },
);
should be
__PACKAGE__->belongs_to(
"locationid",
"WsdSis::Schema::Result::Location",
);
or
__PACKAGE__->belongs_to(
"locationid",
"WsdSis
Tomas Doran pisze:
> Paweł Tęcza wrote:
>> Thank you very much for your response! Is it a way to autogenerate all
>> necessary subroutines in a loop or I need define all of them manually?
>> They should have very similar body :)
>
> Here is the gross method:
>
> no strict 'refs';
> foreach my $name
Hello, Collin
I have the same configuration and output of the Catalyst config too!
My problem is a bit different. I could login but the accounts that have
'admin' roles would never get detected of the 'admin' role.
How are you doing with this issue?
Guys, please comment.
Thank you:)
K.
Quoting Kieren Diment :
> Try prodding around your code with the debugger.
Yep and done that. I could login without a problem just that the 'roles'
never get populated.
Any ideas to debug?
> The docs are fine, and I think roles support should work out of the
> box, but use the http credential
Roland Lammel wrote:
Here is the very simplistic patch, which only renames the "actions"
attribute to "_controller_actions" in Catalyst::Controller. Test suite
still passes with the patch and my app that originally showed that
error, is now also working like a charm.
Great stuff, change looks
kakim...@tpg.com.au wrote:
What am I missing out? Please help. My apologies for the many files here.
Hmm, hard to tell from just looking at the code.
It'd probably be easier if you made a TestApp which just contains the
code in question (i.e. small enough section to demonstrate your issue)
Paweł Tęcza wrote:
Thank you very much for your response! Is it a way to autogenerate all
necessary subroutines in a loop or I need define all of them manually?
They should have very similar body :)
Here is the gross method:
no strict 'refs';
foreach my $name (qw/ method_one method_two /) {
Daisuke Maki wrote:
> I've switched an application of mine to CataMoose. Thanks for the hard
> work, it's seems surprisingly stable for such a massive overhaul.
Great, thanks a lot, and thanks for the feedback below!
> I've observed a few glitches / gotchas, they seem like things that
> probably
Kieren Diment pisze:
> On 12/05/2009, at 8:57 PM, Paweł Tęcza wrote:
>
>>
>> Do you know solution of that issue? Maybe I should define
>> subroutines in
>> MyApp::Schema::ResultSet::Studies module for all type of data?
>>
>
> Yes you should. That means that even though your code might be
> horribl
hello, Kieren,
Good evening. Thank you and I shall get on it.
K. akimoto
Quoting Kieren Diment :
> Try prodding around your code with the debugger.
>
> http://search.cpan.org/perldoc?Catalyst::Manual::Tutorial::Debugging
___
List: Catalyst@lists.s
On 12/05/2009, at 8:57 PM, Paweł Tęcza wrote:
Do you know solution of that issue? Maybe I should define
subroutines in
MyApp::Schema::ResultSet::Studies module for all type of data?
Yes you should. That means that even though your code might be
horrible, you can hide the implementatio
Zbigniew Lukasiak pisze:
> 2009/5/12 Paweł Tęcza :
>> So my question is: how can I modify my model to get the study details
>> in the following, more "natural" way? Is it possibble at all?
>>
>> my @studies = $c->model('DB::Studies')->all;
>> foreach my $study in (@studies) {
>>$study_name
2009/5/12 Paweł Tęcza :
> Dear Catalyst users,
>
> It's my first post here, so I would like to say "Hello" to all of us! :)
>
> I'm writing my first Catalyst application for student registration and I
> have the following tables for details about studies at our university:
>
> CREATE TABLE studies
Dear Catalyst users,
It's my first post here, so I would like to say "Hello" to all of us! :)
I'm writing my first Catalyst application for student registration and I
have the following tables for details about studies at our university:
CREATE TABLE studies (
id integer NOT NULL,
unit_i
2009/5/12 Daisuke Maki
> Hi,
>
> I've switched an application of mine to CataMoose. Thanks for the hard
> work, it's seems surprisingly stable for such a massive overhaul.
>
> I've observed a few glitches / gotchas, they seem like things that
> probably should be documented, but I'd like to share
Try prodding around your code with the debugger.
http://search.cpan.org/perldoc?Catalyst::Manual::Tutorial::Debugging
Also Catalyst::Helper::AuthDBIC on cpan.
The docs are fine, and I think roles support should work out of the
box, but use the http credential, as it's easier to get up.
Put
hi, guys,
I have looked at my codes again.
I read a lot more and debugged a lot more. I have arrived at the point
whereby my catalyst user object doesn't have any value for roles (despite
all the values have been set in the database backend).
What am I missing?
For example, running th
24 matches
Mail list logo