Re: [Catalyst] Attribute::Handlers wont work in own classes under catalyst

2007-08-29 Thread Nilson Santos Figueiredo Junior
On 8/29/07, Felix Antonius Wilhelm Ostmann [EMAIL PROTECTED] wrote: after a few tests we gone use this classes under catalyst ... and ... dont work :-/ under catalyst our classes dont use Attribute::Handlers :-/ we declare UNIVERSAL::Property and then use sub nondigit : Property { defined

Re: [Catalyst] Re: PATCH: refactor Catalyst::Engine::HTTP::Restarter to standalone module

2007-07-25 Thread Nilson Santos Figueiredo Junior
On 7/24/07, Matt S Trout [EMAIL PROTECTED] wrote: Any chance you could comment on the bit of the thread where signal-like solutions for win32 were discussed instead of repeating the bit of the conversation we already went past a day ago? Of course (I assume you're talking about Ash Berlin's

Re: [Catalyst] Re: PATCH: refactor Catalyst::Engine::HTTP::Restarter to standalone module

2007-07-24 Thread Nilson Santos Figueiredo Junior
On 7/22/07, Matt S Trout [EMAIL PROTECTED] wrote: I suspect SIGUSR1 would work just fine; the 'authors' (mostly Sebastian) don't actually understand signal handling, I had to do quite a lot of cleanup work to make the child-related stuff sane. Please, keep in mind that the current code, as it

Re: [Catalyst] template toolkit caching

2007-05-31 Thread Nilson Santos Figueiredo Junior
On 5/31/07, Perrin Harkins [EMAIL PROTECTED] wrote: The second step is loading that perl code and compiling it to a sub in memory. That happens once per process and no external cache can help with it, since it's compiled perl code in memory. Well, if you're feeling risky and think that it

Re: [Catalyst] JavaScript::Minifier new version

2007-05-26 Thread Nilson Santos Figueiredo Junior
On 5/26/07, Peter Michaux [EMAIL PROTECTED] wrote: Thanks for the suggestions. I just want to keep a little utility module like this plain Perl without any dependencies. Just because I think Perl if funny looking doesn't affect whether or not I'll be using it. With my first Perl adventure I did

Re: [Catalyst] JavaScript::Minifier new version

2007-05-26 Thread Nilson Santos Figueiredo Junior
On 5/26/07, Nilson Santos Figueiredo Junior [EMAIL PROTECTED] wrote: Perl 6 will take care of making that: obj.property Oops, missed the dollar sign, it's: $obj.property -Nilson Santos F. Jr. ___ List: Catalyst@lists.rawmode.org Listinfo: http

Re: [Catalyst] DBIC/RDBO comparison (excuse new thread)

2007-05-23 Thread Nilson Santos Figueiredo Junior
On 5/22/07, Matt S Trout [EMAIL PROTECTED] wrote: * Queries accept rich values as arguments (e.g., DateTime and Bit::Vector objects) -- expected in 09 This works (at least for DateTime objects). For instance: $rs-search( { my_date_field = { -between = [$dt1, $dt2] } } ); works as expected

Re: [Catalyst] Re: forwarding to chained actions

2007-04-24 Thread Nilson Santos Figueiredo Junior
On 4/24/07, Bernhard Graf [EMAIL PROTECTED] wrote: I don't want to be rude, but could you guys open your own thread when you want to discuss pros and cons of forwards and redirects? This is the classic XY problem[1]. They're trying to show you that Y is bad for solving X. No one wants to

Re: [Catalyst] Internet Explorer.... not doing the log-in redirect thing?

2007-04-02 Thread Nilson Santos Figueiredo Junior
On 4/2/07, Michael Higgins [EMAIL PROTECTED] wrote: Using IE7, log-in with redirect (just like the tutorial) doesn't work. Are you running the builtin server with -k? e.g: perl myapp_server.pl -k -Nilson Santos F. Jr. ___ List:

Re: [Catalyst] Componentised actions.

2007-03-29 Thread Nilson Santos Figueiredo Junior
On 3/29/07, Oleg Pronin [EMAIL PROTECTED] wrote: I cannot forward to the list actions because they are not private actions (they have its own URLs). In docs 'forward' is for private actions. If the docs state that, they're wrong. It's perfectly possible to forward to public actions. For

Re: [Catalyst] Performance

2007-03-08 Thread Nilson Santos Figueiredo Junior
On 3/8/07, Jim Spath [EMAIL PROTECTED] wrote: URI is next up at around 14% of time. Is there anything that can be done about this one? Wherever is reasonably possible, instead of actually using calls to $c-uri_for() for every item, call it only once and then build the rest of the URI

Re: [Catalyst] You have been automatically logged out.

2007-02-21 Thread Nilson Santos Figueiredo Junior
On 2/21/07, Jonathan Rockway [EMAIL PROTECTED] wrote: The idea is to let the user know why their action failed, not to pop up messages saying something might fail in the future! Plus it's easier to implement, and works with every browser. I've been a victim of web applications designed like

Re: [Catalyst] CGI::State style Plugin?

2007-02-09 Thread Nilson Santos Figueiredo Junior
On 2/9/07, Jim Spath [EMAIL PROTECTED] wrote: Looks interesting, but it doesn't provide for arrays? It should - at least that's what CGI::Expand's documentation claims (CGI::Expand is the underlying module which actually converts params to data structures). Unfortunately, it seems to be

Re: [Catalyst] Pagenav?

2007-02-09 Thread Nilson Santos Figueiredo Junior
On 2/9/07, Jonathan Rockway [EMAIL PROTECTED] wrote: $rs = $c-model('DBIC')-search-whatever; I'd advise you against calling whatever() and limiting yourself to the first search() call if you're planning on using DBIC's built-in pager for this resultset. As of 0.07005, multiple search()es over

Re: [Catalyst] memory usage of mod_perl process

2007-02-08 Thread Nilson Santos Figueiredo Junior
On 2/8/07, Fayland Lam [EMAIL PROTECTED] wrote: but the memory usage of each process seems to be 95 m. it's pretty high! we have more 60+ pms. We've got around 100+ pms and myapp_server.pl uses around 87mb of RAM. Don't really know about usage under mod_perl, I'd need to check it out. -Nilson

Re: [Catalyst] Catalyst::Engine::HTTP::Restarter issue

2007-02-02 Thread Nilson Santos Figueiredo Junior
On 2/2/07, Jim Spath [EMAIL PROTECTED] wrote: Another way I can get around the issue is to kill the server, and restart it by hand. This problem also happens with me. It's even reproducible: every time I edit MyApp.pm, restarter can't do its thing so I end up killing it and running it again.

Re: [Catalyst] uri_for() and Chained endpoints: a proposed convenience method

2007-01-26 Thread Nilson Santos Figueiredo Junior
On 1/26/07, Jason Gottshall [EMAIL PROTECTED] wrote: 1) Is my convenience method a sensible approach, or is there a better way to do this? I usually stuff this inside MyApp.pm: sub uri_for_action { my ($c, $controller, $action, @params) = @_; $c-uri_for(

Re: [Catalyst] CALLING FOR VCS AND EDITOR REGEXES

2007-01-26 Thread Nilson Santos Figueiredo Junior
On 1/26/07, Matt S Trout [EMAIL PROTECTED] wrote: So, everybody with dumbass editors and version control systems that like polluting lib, get chore patterns for these files in this thread. If nobody else collects 'em up and sends 'em to muttley, I will, because I'm sick of hearing about this :)

Re: [Catalyst] Recommend methods for form handling

2007-01-20 Thread Nilson Santos Figueiredo Junior
On 1/19/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: These types of application decisions always make me ponder about javascript going back into lockdown mode in large corporations. You seem to be boxing yourself into a corner if js filtering ever becomes back in trend. Also how are you

Re: [Catalyst] Catalyst vs Rails vs Django Cook off

2007-01-15 Thread Nilson Santos Figueiredo Junior
On 1/15/07, Octavian Rasnita [EMAIL PROTECTED] wrote: That's why I was curious and I have sent to the list that blog with the comparison between RoR and Catalyst. You need to keep in mind that sometimes it's easier to optimize things for benchmarks than for real world applications. That

Re: [Catalyst] RFC for Catalyst enabled GWT clone

2006-12-29 Thread Nilson Santos Figueiredo Junior
On 12/29/06, John Napiorkowski [EMAIL PROTECTED] wrote: So I guess my question is would people like a GWT like system for Catalyst and if so what would you like to see in it? I've been thinking a lot about these sort of things lately but I couldn't come up with a clean way to do it the way I

[Catalyst] Performance Tip (regarding URI handling)

2006-12-27 Thread Nilson Santos Figueiredo Junior
I've previously posted about my performance issues regarding TT. At the time, one of Matt's suggestions for improving performance was to reduce the usage of uri_for() whenever possible. I had some list pages where I'd need to display dozens of items and link to each one of them and all my links

Re: [Catalyst] Catalyst on Windows

2006-12-26 Thread Nilson Santos Figueiredo Junior
On 12/26/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: A recent version of ActiveState Perl, the mingw package/environment, a well configured CPAN and CPANPLUS and finally PPM (with such extra repositories such as the one provided by Randy Kobes) makes installing modules (and Catalyst) an

Re: [Catalyst] Catalyst on Windows

2006-12-26 Thread Nilson Santos Figueiredo Junior
On 12/27/06, Octavian Rasnita [EMAIL PROTECTED] wrote: Does Cache::FastMmap support Windows now? I have tried installing it with ppm, but I couldn't find it, and using cpan, but it gave errors. I've tested a preliminary version and (incorrectly) assumed it was already available at the CPAN.

Re: [Catalyst] SchemaLoader?

2006-12-25 Thread Nilson Santos Figueiredo Junior
On 12/25/06, Octavian Rasnita [EMAIL PROTECTED] wrote: After forcing a new DBI install, the Catalyst helper works well, without any error and it creates all the files that it should create. That's probably because you've previously updated DBI using PPM instead of the CPAN shell. PPM can be a

Re: [Catalyst] SchemaLoader?

2006-12-25 Thread Nilson Santos Figueiredo Junior
On 12/25/06, Emanuele Zeppieri [EMAIL PROTECTED] wrote: Nilson, there are several PPM repositories, and the availability of the various CPAN packages depends on the repositories you are querying, of course. Yes, I'm aware of that and usually I've got every repository under the sun configured

Re: [Catalyst] SchemaLoader?

2006-12-24 Thread Nilson Santos Figueiredo Junior
On 12/24/06, Octavian Rasnita [EMAIL PROTECTED] wrote: Attempt to free unreferenced scalar: SV 0x237e190, Perl interpreter: 0x274324 at D:/usr/site/lib/DBIx/Class/Schema/Loader/Base.pm line 501. These errors are not usually errors per se - just warnings. And everything ends up working

Re: [Catalyst] SchemaLoader?

2006-12-24 Thread Nilson Santos Figueiredo Junior
On 12/25/06, Octavian Rasnita [EMAIL PROTECTED] wrote: Can you tell me what version of perl do you have? I use ActivePerl 5.8.8 build 819. Same here. Have you tried updating DBI itself (not DBIx::Class), using the CPAN shell, as I've said before? That usually does away with those unreferenced

Re: [Catalyst] question from tutorial - does creating HTML in a controller using HTML::Widget violate MVC?

2006-12-06 Thread Nilson Santos Figueiredo Junior
On 12/6/06, Matt S Trout [EMAIL PROTECTED] wrote: Reaction calls these ViewPort objects :) Sweet. Any docs yet? -Nilson Santos F. Jr. ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable

Re: [Catalyst] question from tutorial - does creating HTML in a controller using HTML::Widget violate MVC?

2006-12-06 Thread Nilson Santos Figueiredo Junior
On 12/6/06, Eden Cardim [EMAIL PROTECTED] wrote: Why not override MyApp::View::MyView-process() and put your Perl code layer in there? What I do is have -process() build up pieces of HTML, like tables, forms, etc, with whatever external module I see fit, based on the stash data. Then I stuff

Re: [Catalyst] question from tutorial - does creating HTML in a controller using HTML::Widget violate MVC?

2006-12-06 Thread Nilson Santos Figueiredo Junior
On 12/6/06, Jonathan Rockway [EMAIL PROTECTED] wrote: The code example that comes with the reaction source is pretty understandable. If that's not enough, questions are welcome on the #reaction channel on irc.perl.org :) Hmm... I will take a look at it again. I don't remember seeing any code

Re: [Catalyst] {OT] protecting against attacks with multilingual input

2006-12-05 Thread Nilson Santos Figueiredo Junior
On 12/5/06, Jonathan Rockway [EMAIL PROTECTED] wrote: Nilson Santos Figueiredo Junior wrote: This way, everything will probably just work, even when the user has a on their names or any other weird characters. No, you can inject plenty of bad code without . You need to escape

Re: [Catalyst] question from tutorial - does creating HTML in a controller using HTML::Widget violate MVC?

2006-12-05 Thread Nilson Santos Figueiredo Junior
On 12/5/06, Perrin Harkins [EMAIL PROTECTED] wrote: It can be really easy to add custom view code to TT templates. You can immediately load any class and just call it: [% USE MyView %] [% MyView.method(arg) %] Yes, but you'd need to manually use the correct class in every template and then

Re: [Catalyst] Re: Last Chance / LastDay:Webdevelopmentplatformcontestand Perl / Catalyst

2006-12-04 Thread Nilson Santos Figueiredo Junior
On 12/4/06, Octavian Rasnita [EMAIL PROTECTED] wrote: And I said that there is no de facto standard, because there isn't one generally accepted. There's a defacto standard for writing Catalyst applications. The Catalyst users have an opinion, the CGI::App might have another one, the Mason

Re: [Catalyst] Re: old versions of Catalyst on CPAN

2006-12-03 Thread Nilson Santos Figueiredo Junior
On 12/3/06, Jonathan Rockway [EMAIL PROTECTED] wrote: Sorry, I don't. This is a common complaint on IRC and PM, so I'd like to resolve it. I know search.cpan isn't the ideal source of current documentation, but lots of people use it for that, and I'd like to help them if possible. If that's

Re: [Catalyst] Re: Last Chance / LastDay:Webdevelopmentplatformcontestand Perl / Catalyst

2006-12-03 Thread Nilson Santos Figueiredo Junior
On 12/2/06, Octavian Rasnita [EMAIL PROTECTED] wrote: I have seen that your example modifies the root controller, so this convince me that this is not a tutorial for beginners. The beginners should start learning to use Catalyst, without SVN, with its default ways of doing things, without other

Re: [Catalyst] Re: Last Chance / Last Day: Webdevelopmentplatformcontestand Perl / Catalyst

2006-12-02 Thread Nilson Santos Figueiredo Junior
On 12/2/06, Octavian Rasnita [EMAIL PROTECTED] wrote: Of course, there are more ways to do it in every language, but for perl, the correct expression should be: There are too many ways to do it. :-) There is no the most important templating system in perl, or the best module for creating

Re: [Catalyst] Last Chance / Last Day: Web development platform contestand Perl / Catalyst

2006-12-01 Thread Nilson Santos Figueiredo Junior
On 12/1/06, Jonathan Rockway [EMAIL PROTECTED] wrote: Perl. Is. Not. Dead. No one *here* is stating that Perl is really dead. Otherwise we'd all be undead zombies from hell or something like that. Anyone who's inside the Perl community knows it's alive and kicking and that most of Perl's

Re: [Catalyst] Re: using Plugin::Singleton and testing

2006-11-17 Thread Nilson Santos Figueiredo Junior
On 11/17/06, Daniel McBrearty [EMAIL PROTECTED] wrote: So my original example : say we have an application that streams audio, and only one source may be streamed at a time. Having more than one player instance in existence could violate this on many OS's. Even if the OS would cause an error

Re: [Catalyst] Non-real world irrelevant benchmarks

2006-11-16 Thread Nilson Santos Figueiredo Junior
On 11/16/06, Matt S Trout [EMAIL PROTECTED] wrote: Besides which, I've never yet seen a production application (and between Shadowcat's client portfolio I've seen not a small number thereof) where the dispatch overhead was even statistically significant to the overall performance - the

Re: [Catalyst] Non-real world irrelevant benchmarks

2006-11-16 Thread Nilson Santos Figueiredo Junior
On 11/16/06, Brandon Black [EMAIL PROTECTED] wrote: If template rendering speed might be a bottleneck for you, you may want to investigate ClearSilver. I haven't tried it yet myself, but I've heard good things about its performance, and there's already a Cat View for it. Its a bit different

Re: [Catalyst] Chained('.') counter-intuitive?

2006-11-10 Thread Nilson Santos Figueiredo Junior
On 11/10/06, Josef Karthauser [EMAIL PROTECTED] wrote: Ooh, am I missing a trick here? What are chained action? I've been chaining actions together using $c-forward(). Is this the same kind of thing, or something altogether different? Chained actions is a feature that has already been

Re: [Catalyst] Chained actions usage and DBIC performance

2006-11-01 Thread Nilson Santos Figueiredo Junior
On 11/1/06, David Jack Olrik [EMAIL PROTECTED] wrote: http://www.onemogin.com/blog/528-chained-searches-the-beauty-of- dbixclass-and-catalyst.html Nice article. However, by chained actions I meant Catalyst's builtin Chained actions. But I guess it still added some weight to the previous

[Catalyst] Chained actions usage and DBIC performance

2006-10-30 Thread Nilson Santos Figueiredo Junior
Lately I've been using chained actions a lot, since it ends up making everything look cleaner and more organized. I tend to structure things in a way that I've got some Catalyst actions that load some items from the database which are the root of the chain and then I've got another set of

Re: [Catalyst] Testers Wanted: Cache::FastMmap 1.15 (w/Win32 Support)

2006-10-29 Thread Nilson Santos Figueiredo Junior
On 10/29/06, Ash Berlin [EMAIL PROTECTED] wrote: If you could all run it through its paces on both Win and *nix and let me know if there are any problems that would be great. Unfortunately, it doesn't compile under Win32 with AS Perl 5.8.8 (build 817) using MSVC. Compile log follows:

Re: [Catalyst] Testers Wanted: Cache::FastMmap 1.15 (w/Win32 Support)

2006-10-29 Thread Nilson Santos Figueiredo Junior
On 10/29/06, Ash Berlin [EMAIL PROTECTED] wrote: My bad - it didn't take the updated MANIFEST file (somewhere I messed up clearly) so it didn't include all the right files. Please try again, same url as before. That previous problem was fixed. Unfortunately, a linking error popped up. Here's

Re: [Catalyst] Testers Wanted: Cache::FastMmap 1.15 (w/Win32 Support)

2006-10-29 Thread Nilson Santos Figueiredo Junior
On 10/29/06, Ash Berlin [EMAIL PROTECTED] wrote: Hmmm okay. Could you try editing Win32.c and including varargs.h and changing line 467 to one of the following: No need to include varargs.h. Chaning line 467 from: vsnprintf(errbuf, 1023, error_string, ap); to _vsnprintf(errbuf, 1023,

Re: [Catalyst] acceptable solution for running Catalyst on Windows

2006-10-13 Thread Nilson Santos Figueiredo Junior
On 10/13/06, Cédric Bouvier [EMAIL PROTECTED] wrote: Question: what would you recommend to deploy a Catalyst app on Windows, ideally without too much headaches, and knowing that it is not meant to handle much traffic? We have tried mod_perl2, but getting it to work seems quite cumbersome...

Re: [Catalyst] Catalyst Performance issues

2006-10-08 Thread Nilson Santos Figueiredo Junior
On 10/7/06, Jonathan Rockway [EMAIL PROTECTED] wrote: Obviously you don't get all of TT's features. No EVAL, no MACRO, no BLOCK. I don't use any of that anyway. I write my code in perl, not in TT :) Unfortunately, I use MACROs and BLOCKs extensively. Anyway, if you Need Something Now, try

[Catalyst] Catalyst Performance issues

2006-10-07 Thread Nilson Santos Figueiredo Junior
Hi everyone, Recently I've been facing some performance issues in my Catalyst application and the situation worries me a little bit. The first optimization I tried was to start prefetching everything I could and it indeed improved the performance quite a bit (by a factor of 2 or so). But it

Re: [Catalyst] Catalyst Performance issues

2006-10-07 Thread Nilson Santos Figueiredo Junior
On 10/7/06, Matt S Trout [EMAIL PROTECTED] wrote: The Class::C3::* methods you're seeing are startup overhead only; unless you're messing with class hierarchies at run-time that's a one-off hit. Right. But next::method calls also seem to weight in a little bit. But I really have no idea on how

Re: [Catalyst] Catalyst Performance issues

2006-10-07 Thread Nilson Santos Figueiredo Junior
On 10/7/06, Perrin Harkins [EMAIL PROTECTED] wrote: Maybe this will help: http://www.modperlbook.org/html/ch09_05.html Thanks, I'll try using Apache::DProf as suggested. How did you determine this? Manually running and timing the queries as output when DBIC_TRACE=1. Switching from running a

[Catalyst] InstantCRUD and Windows

2006-08-31 Thread Nilson Santos Figueiredo Junior
I'm currently starting a new simple Catalyst application and decided to give InstantCRUD a shot. However, it couldn't even be installed under Windows since Cache::FastMmap isn't installable under Win32. I don't really know if the authors are aware of this issue, that's why I'm posting this here.

Re: [Catalyst] Announce Catalyst::Plugin::DBIC::TemplateMaker

2006-08-30 Thread Nilson Santos Figueiredo Junior
On 8/30/06, Kieren Diment [EMAIL PROTECTED] wrote: It does virtually nothing, apart from saving you some typing. You must resolve any related columns to a properly stringified name for example. Maybe it should've been a Catalyst::Helper ? Then it could be used through Catalyst's default

Re: [Catalyst] Chained actions question

2006-08-29 Thread Nilson Santos Figueiredo Junior
On 8/29/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: sub base :Chained('/') PathPart('') CaptureArgs(0) { sub drpt : Chained('base') PathPart('dailystatusrpt') CaptureArgs(0) { sub view_drpt :Chained('drpt') PathPart('view') Args(0) {} sub drpt_year : Chained('base')

Re: [Catalyst] Minor Problem With Tutorial

2006-08-14 Thread Nilson Santos Figueiredo Junior
On 8/14/06, Kevin Monceaux [EMAIL PROTECTED] wrote: Anyway, I'm at the end of the BasicCRUD section of the tutorial where one creates the Books::Delete method. The last line in the method is: $c-forward('list'); Catalyst appears to be ignoring this statement. When I tried to delete a

Re: [Catalyst] Storing a password hash with DBIC

2006-08-10 Thread Nilson Santos Figueiredo Junior
On 8/10/06, Jonas [EMAIL PROTECTED] wrote: I'm trying to store an hashed password in a database using DBIC. What is the best way to create the digest of the password? When checking the password (e.g. during login) Catalyst::Plugin::Authentication should handle this task for you. When storing

Re: [Catalyst] quick windows catinabox question

2006-08-09 Thread Nilson Santos Figueiredo Junior
On 8/9/06, Joe Landman [EMAIL PROTECTED] wrote: Last I tried, Cygwin had some issues (Matt had been wrestling with it). Is Catinabox working in Cygwin, or will everything just work in Cygwin? Native vs cygwin doesn't matter. I don't know about Cygwin - Catalyst runs alright natively under

Re: [Catalyst] Sigh. How do we get on this list?

2006-08-09 Thread Nilson Santos Figueiredo Junior
On 8/9/06, Matt S Trout [EMAIL PROTECTED] wrote: Point out that everybody on http://dev.catalyst.perl.org/wiki/LiveApplications disagrees :) I haven't stumbled upon this page before and I'm sort of amazed. I never thought there were so many public facing sites using Catalyst. I really think

Re: [Catalyst] question on storing session in win32 machine

2006-08-09 Thread Nilson Santos Figueiredo Junior
On 8/9/06, Nagarajan M [EMAIL PROTECTED] wrote: I am using **Cache::FileCache** since **Session::Store::FastMmap** is not supported in Win32. Use C::P::Session::Store::File and your problems should be solved. -Nilson Santos F. Jr. ___ List:

Re: [Catalyst] c-user_exists causes runtime error.

2006-08-02 Thread Nilson Santos Figueiredo Junior
On 8/2/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Are you running C::P::Auth v0.09? I think that error was happening to people running v0.08... Yep. Auth 0.09. Try it with 0.07. That seems to be working alright (at least for me) where 0.08 didn't. -Nilson Santos F. Jr.

[Catalyst] Breakage in Catalyst::Plugin::Authentication v0.08

2006-08-01 Thread Nilson Santos Figueiredo Junior
I've seen all these numerous posts regarding problems with Catalyst::Plugin::Authentication and, naively, I thought I'd be immune to them. I updated everything yesterday on my development machine and it was working alright. But today (probably after the session expired or something like that) my

Re: [Catalyst] HTML::Widget styling

2006-07-28 Thread Nilson Santos Figueiredo Junior
On 7/28/06, Bogdan Lucaciu [EMAIL PROTECTED] wrote: uhm, do attribute selectors work in IE? As of IE 6, unfortunately, not. Hopefully, IE 7 will get a little better. But don't get your hopes up. -Nilson Santos F. Jr. ___ List:

Re: [Catalyst] authentication plugin advice

2006-07-27 Thread Nilson Santos Figueiredo Junior
On 7/27/06, Jonathan Rockway [EMAIL PROTECTED] wrote: I checked the manpage, and it says $c-request-user is deprecated and that $c-user should be used instead. There's no mention of $c-user existing elsewhere in the docs, though, so I'm not sure about that. I will test and get back to you

Re: [Catalyst] How do you structure multi-table DBIx queries?

2006-07-24 Thread Nilson Santos Figueiredo Junior
On 7/24/06, Dennis Daupert [EMAIL PROTECTED] wrote: I have a number of tables that contain foreign keys to other tables; I need to be able to do selects on multiple tables, specifying particular columns in particular tables. If you define your relationships correctly you should be able to

Re: [Catalyst] Bugfree development release?

2006-07-03 Thread Nilson Santos Figueiredo Junior
On 7/3/06, Matt S Trout [EMAIL PROTECTED] wrote: RFC a proposed API to the DBIC list if you want to see that in 0.08 - or at the very least throw together a couple of tests for the hack if you want to be able to rely on it in production :) I was thinking about that earlier today. There should

Re: [Catalyst] Restricting access to the model

2006-07-03 Thread Nilson Santos Figueiredo Junior
On 7/3/06, Matt S Trout [EMAIL PROTECTED] wrote: I tend to just modify the relevant ACCEPT_CONTEXT to return a resultset that already has (e.g.) WHERE order.user_id = $current_uid applied to it, at which point I can just do $c-model('DBIC::Orders') in my controller code and it Does The Right

Re: [Catalyst] Restricting access to the model

2006-07-03 Thread Nilson Santos Figueiredo Junior
On 7/3/06, Matt S Trout [EMAIL PROTECTED] wrote: and C::M::DBIC::Schema gives you a model per table. I'm not sure I see the problem here ... From Catalyst::Model::DBIC::Schema docs there's an example which reads: # For resultsets, there's an even quicker shortcut: $c-model('FilmDB::Actor')

Re: [Catalyst] Bugfree development release?

2006-07-02 Thread Nilson Santos Figueiredo Junior
On 7/1/06, Nilson Santos Figueiredo Junior [EMAIL PROTECTED] wrote: On 7/1/06, Marcus Ramberg [EMAIL PROTECTED] wrote: So, we've heard nothing from you guys about the development release. I guess that means one of two things. Either we've made a bugfree catalyst version, or you guys haven't

Re: [Catalyst] PPM vs CPAN in a Windows Context

2006-06-30 Thread Nilson Santos Figueiredo Junior
On 6/30/06, Christopher H. Laco [EMAIL PROTECTED] wrote: Don't do that. Bad things will happen. Always compiled your modules with the same compiler used for the perl install itself on Windows. To that point, you could compile perl in .NET, then do the modules that way too. FUD. VS.NET 2003

Re: [Catalyst] PPM vs CPAN in a Windows Context

2006-06-30 Thread Nilson Santos Figueiredo Junior
On 6/30/06, Matt S Trout [EMAIL PROTECTED] wrote: I think that's the point - that AS has switched to gcc and it's *generally* preferable to use the same compiler as your perl binary was built with. There's nothing in the release notes indicating that they've done this (they've recently switched

Re: [Catalyst] Program the logic

2006-06-29 Thread Nilson Santos Figueiredo Junior
On 6/29/06, John Napiorkowski [EMAIL PROTECTED] wrote: writing monolythic cgi type applications. Personally I put all the logic having to do with manipulating the database into my model class. So things like adding/removing users or very common searches I put there. Anything that more than

Re: [Catalyst] Program the logic

2006-06-29 Thread Nilson Santos Figueiredo Junior
On 6/29/06, Brandon Black [EMAIL PROTECTED] wrote: If you find yourself putting code in your View templates that isn't directly related to rendering this specific flavour of output, it probably needs to be moved to the Controller. Good code in views: iterating an arrayref to generate a ul

Re: [Catalyst] Program the logic

2006-06-29 Thread Nilson Santos Figueiredo Junior
On 6/29/06, Brandon Black [EMAIL PROTECTED] wrote: The approach I'm attempting lately (and I haven't gotten it all working right yet...) is to make Controller base-classes that implement generic concepts for things like paging and sorting tables of data (complete with handling form args like

Re: [Catalyst] PPM vs CPAN

2006-06-29 Thread Nilson Santos Figueiredo Junior
On 6/29/06, Hugh Lampert [EMAIL PROTECTED] wrote: OK, don't mean to sound like a whiner here, and I haven't spent any time investigating the various GCC packages, but it's making me laugh that it's been suggested I download a C++ development package just so I can get my perl modules to

Re: [Catalyst] Program the logic

2006-06-29 Thread Nilson Santos Figueiredo Junior
On 6/29/06, Matt S Trout [EMAIL PROTECTED] wrote: Nilson Santos Figueiredo Junior wrote: That involves doing bad things such as using c.param() from the View but it really was the only practical way (i.e. DRY) I could think of. So, any suggestions are welcome. ;-) No, it's the best

Re: [Catalyst] Program the logic

2006-06-29 Thread Nilson Santos Figueiredo Junior
On 6/29/06, Matthieu Codron [EMAIL PROTECTED] wrote: This does not matter much in most cases except big projects where business logic elements are reused in various situations around the application. Then you put that logic in external regular Perl modules and make your controllers just use

Re: [Catalyst] Program the logic

2006-06-28 Thread Nilson Santos Figueiredo Junior
On 6/28/06, Eduardo Oliveros [EMAIL PROTECTED] wrote: I'm planning to program the logic of the application (the Model in MVC) previously to start with web page and the presentation. Actually, the Controller is what is supposed to drive the logic of the application. The model is really just

Re: [Catalyst] Program the logic

2006-06-28 Thread Nilson Santos Figueiredo Junior
On 6/28/06, Eduardo Oliveros [EMAIL PROTECTED] wrote: When you create a Catalyst application some tests are created also. I thought calling the Controller actions could be performed by the testing framework... (without using a browser)... I guess I was wrong :) Yes, it can be performed

Re: [Catalyst] PPM vs CPAN

2006-06-28 Thread Nilson Santos Figueiredo Junior
On 6/28/06, Hugh Lampert [EMAIL PROTECTED] wrote: Err, yes... gcc... seems to be a bit of a problem. Hate to impose on the members of the list, but can anyone point me in the direction of a good win32 binary GCC package that doesn't require Cygwin or other environments? the CPAN module was

Re: [Catalyst] PPM vs CPAN (Was: Problem with Catalyst Authorization)

2006-06-26 Thread Nilson Santos Figueiredo Junior
On 6/26/06, Hugh Lampert [EMAIL PROTECTED] wrote: Thanks for responding! Perhaps you can forward this to the mailing list, as I am unable to reach it from my work (the mail server will not accept my relays.) Done. I'll answer your message without removing anything you wrote. I looked at the

Re: [Catalyst] development setup

2006-06-23 Thread Nilson Santos Figueiredo Junior
On 6/23/06, Carl Johnstone [EMAIL PROTECTED] wrote: Do you mean that you have a shared apache installation under which every developer runs his/her own code ? Yes. I think that if you're really willing to maintain this development setup then Catalyst won't be a good choice. I find this

Re: [Catalyst] Problem with Catalyst Authorization

2006-06-23 Thread Nilson Santos Figueiredo Junior
On 6/23/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I understand DBIx::Class:Schema is now in vogue, but I do not have access to the schema variant of the model in a PPM. I'm thinking this might be causing my problem, but I'm hoping not. You should try installing a recent ActivePerl