Re: [Catalyst] How can it be - wrong model returned?

2008-03-06 Thread Alex Povolotsky
Ash Berlin wrote: On 6 Mar 2008, at 11:12, Alex Povolotsky wrote: Hello! I've made a simple many-to-many relationship for user/roles authentication, and suddenly found that my $model = $c-model('Pwuser')-search()-all(); my $roles = $c-model('Role')-search()-all(); my $ur =

[Catalyst] How can it be - wrong model returned?

2008-03-06 Thread Alex Povolotsky
Hello! I've made a simple many-to-many relationship for user/roles authentication, and suddenly found that my $model = $c-model('Pwuser')-search()-all(); my $roles = $c-model('Role')-search()-all(); my $ur = $c-model('UserRole')-search()-all(); results in SELECT me.uid, me.login,

Re: [Catalyst] Push services with catalyst

2008-03-06 Thread Moritz Onken
But I still need a lot of code which is run by catalyst, like authentication and of course the whole dbic schema. What about Catalyst::Engine::HTTP::POE? cometd.com is not very informative ... Am 05.03.2008 um 23:47 schrieb Peter Edwards: Jay wrote: On Wed, Mar 5, 2008 at 11:48 AM, Moritz

Re: [Catalyst] How can it be - wrong model returned?

2008-03-06 Thread Andreas Marienborg
Include the model-name, not only the table $c-model('DBIC::Pwuser') for instance - andreas On Mar 6, 2008, at 12:12 PM, Alex Povolotsky wrote: Hello! I've made a simple many-to-many relationship for user/roles authentication, and suddenly found that my $model =

RE: [Catalyst] Push services with catalyst

2008-03-06 Thread Peter Edwards
Am 05.03.2008 um 23:47 schrieb Peter Edwards: Jay wrote: On Wed, Mar 5, 2008 at 11:48 AM, Moritz Onken [EMAIL PROTECTED] wrote: I'm combining ajax with push. So it's a real push service, the website is not pulling the data on a constant time rate. A process per client is really bad.

Re: [Catalyst] On authentication again

2008-03-06 Thread Chisel Wright
On Thu, Mar 06, 2008 at 07:06:55PM +0300, Alex Povolotsky wrote: Hello! Maybe someone could provide the complete example of auth system with MODERN Catalyst::Plugin::Authentication? I mean, with database, Model and proper config. I have _no idea_ if I'm using old, new or pre-historic

Re: [Catalyst] On authentication again

2008-03-06 Thread Felix Antonius Wilhelm Ostmann
you are outdated ;) someone in the channel say we should use: 'Plugin::Authentication' = { ... } Chisel Wright schrieb: On Thu, Mar 06, 2008 at 07:06:55PM +0300, Alex Povolotsky wrote: Hello! Maybe someone could provide the complete example of auth system with MODERN

Re: [Catalyst] On authentication again

2008-03-06 Thread Ashley
On Mar 6, 2008, at 9:42 AM, Chisel Wright wrote: On Thu, Mar 06, 2008 at 06:28:11PM +0100, Felix Antonius Wilhelm Ostmann wrote: you are outdated ;) someone in the channel say we should use: 'Plugin::Authentication' = { ... } I'd better add the update to my Roadmap then Also make

RE: [Catalyst] On authentication again

2008-03-06 Thread Byron Young
Alex Povolotsky wrote: I even don't understand what __PACKAGE__-config- I should use - {'Plugin::Authentication'}, {authentication} or{authentication}{dbic}. Docs are unclear. Alex, It should be {authentication}. Here's mine: authentication: default_realm: database realms:

Re: [Catalyst] On authentication again

2008-03-06 Thread Chisel Wright
On Thu, Mar 06, 2008 at 06:28:11PM +0100, Felix Antonius Wilhelm Ostmann wrote: you are outdated ;) someone in the channel say we should use: 'Plugin::Authentication' = { ... } I'd better add the update to my Roadmap then -- Chisel Wright e: [EMAIL PROTECTED] w:

RE: [Catalyst] Base controllers and multiple inheritance

2008-03-06 Thread Byron Young
Peter Karman wrote: Byron Young wrote on 3/5/08 4:29 PM: Everything looks good, right? My List actions work! However, the CRUD actions don't work because the FormConfig actions seem to have been ignored -- $c-stash-{form} is undef :( I wouldn't expect anything in stash() to persist

Re: [Catalyst] Base controllers and multiple inheritance

2008-03-06 Thread Peter Karman
Byron Young wrote on 3/6/08 12:31 PM: $class-NEXT::new() doesn't do the right thing with this crazy diamond-ish inheritance I have, and I think using Class::C3 in my base classes while Catalyst::Controller and C::C::HTML::FormFu use NEXT is causing some problems. You might try the

Re: [Catalyst] Push services with catalyst

2008-03-06 Thread Jonathan Rockway
* On Thu, Mar 06 2008, Moritz Onken wrote: But I still need a lot of code which is run by catalyst, like authentication and of course the whole dbic schema. What about Catalyst::Engine::HTTP::POE? Theoretically this should work. When your application is in the state of doing IO (sending data

Re: [Catalyst] Base controllers and multiple inheritance

2008-03-06 Thread Zbigniew Lukasiak
I would say don't use Catalyst::Controller::HTML::FormFu in that case - the functionality it provides is rather basic. By the way I am also working on a FormFu based CRUD Catalyst base class (continuation of Catalyst::Example::InstantCRUD). Looks like it has become fashionable thing recently.

[Catalyst] Patch for Catalyst::View::Mason

2008-03-06 Thread David Jack Wange Olrik
Hi Florian, Here is a small patch for Catalyst::View::Mason. When setting $c-stash-{template}, template_extension was not added to the component path. In my opinion this should always be added, so one can easily change the view without having to provide extra logic that sets the template

[Catalyst] sending a variable to more than one tt2 template

2008-03-06 Thread Emily Heureux
Hi, I have a variable in a Controller method sent to the stash for a particular tt file. What if I want that same variable to be available to another tt file? I assume I cannot set two templates in one method. Thanks, Emily ___ List:

Re: [Catalyst] sending a variable to more than one tt2 template

2008-03-06 Thread Eden Cardim
On Thu, Mar 6, 2008 at 7:36 PM, Emily Heureux [EMAIL PROTECTED] wrote: Hi, I have a variable in a Controller method sent to the stash for a particular tt file. What if I want that same variable to be available to another tt file? I assume I cannot set two templates in one method. yeah you

RE: [Catalyst] sending a variable to more than one tt2 template

2008-03-06 Thread Byron Young
You can call another template from within the template you specified in the stash, and pass the stash parameters along. I don't use TT, but I think PROCESS is how you call other templates. HTH Byron From: Emily Heureux [mailto:[EMAIL PROTECTED] Sent: