Re: [Catalyst] what is the type of $context?

2006-06-09 Thread Carl Franks
On 09/06/06, Yuval Kogman <[EMAIL PROTECTED]> wrote: > On Fri, Jun 09, 2006 at 11:25:40 +0100, Carl Franks wrote: > > > I'd be surprised if there *was* a way to do intropection with perl5. > > WTF? Perl is possibly the most lax and free minded language there is >

Re: [Catalyst] YAML vs. *

2006-06-09 Thread Carl Franks
Wow, this is a long thread for only 4 hours! I dislike YAML, but I still prefer it to the other options you suggested. The main reason I dislike it is everytime I need to add an array to a cat config file, I need to either find a previous application that had an array in it's config file, or star

Re: [Catalyst] YAML vs. *

2006-06-12 Thread Carl Franks
On 09/06/06, Matt S Trout <[EMAIL PROTECTED]> wrote: > Carl Franks wrote: > > I think what would make me happy would be to simply have the > > auto-generated yaml config file have a half-dozen or so lines of > > comments at the top, containing a brief overview of t

[Catalyst] Alien-Dojo / HTML-Dojo merger suggestions

2006-06-14 Thread Carl Franks
message cc'd to Dominique in case you're not still on the cat list. Further to the discussion a couple of weeks ago, I suggest deprecating HTML-Dojo (of which I'm the author), and merging it's functionality into Alien-Dojo, with the following changes. Backwards compatabilty shouldn't be an issue,

Re: [Catalyst] PPM vs CPAN

2006-06-29 Thread Carl Franks
You may want to look into Vanilla / Strawberry perl as an alternative to ActivePerl. It includes the mingw (gcc) compiler and nmake, and the perl included is compiled from scratch with mingw, rather than ms compilers. http://win32.perl.org/wiki/index.php?title=Vanilla_Perl The files are here (get

Re: [Catalyst] [Announce] Planet Catalyst

2006-08-03 Thread Carl Franks
On 03/08/06, John Wang <[EMAIL PROTECTED]> wrote: > > > I just set up Planet Catalyst at > http://planet.catalystframework.org to aggregate blogs > about Catalyst . This is great to see, thanks for putting it together! > it filters articles on catalyst, dbic, > dbix(::)?class or html(::)?widget (

Re: [Catalyst] Forms and Plugins and Tutorials, oh my!!

2006-08-18 Thread Carl Franks
On 18/08/06, Kevin Monceaux <[EMAIL PROTECTED]> wrote: > That would certainly work. But, imagine if a form plugin took care of the > dirty work for the developer. Let's pretend for a moment. Imagine, if you > will, that someone integrated the FCKEditor with HTML::Widget. One might be > able to

Re: [Catalyst] Forms and Plugins and Tutorials, oh my!!

2006-08-18 Thread Carl Franks
On 18/08/06, Jonas Alves <[EMAIL PROTECTED]> wrote: > On 18/08/06, Carl Franks <[EMAIL PROTECTED]> wrote: > > > > If you don't want to manually download the dojo library, it needs > > Catalyst::Plugin::Dojo which currently uses HTML::Dojo, but will be >

Re: [Catalyst] Forms and Plugins and Tutorials, oh my!!

2006-08-18 Thread Carl Franks
On 18/08/06, Kevin Monceaux <[EMAIL PROTECTED]> wrote: > On Fri, Aug 18, 2006 at 01:48:06PM +0100, Carl Franks wrote: > > If you're able to help at all with developing these, it'd be most welcome. > > The first priority is probably rewriting Alien::Dojo, along the li

Re: [Catalyst] how to get started?

2006-08-21 Thread Carl Franks
On 21/08/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I've been trying for days to install Catalyst and haven't gotten > far. I've tried both "perl -MCPAN 'install Task::Catalyst'" and > cat-install and they both fail with many errors in various > prerequisite modules. I've tried this on Su

Re: [Catalyst] automatic CRUD (was: how to get started?)

2006-08-22 Thread Carl Franks
On 21/08/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > fireartist wrote: > > Many modules, particularly DBI / DBD::SQLite, include C code which > > needs to be compiled on the target machine. > > Ok, now I realize Catalyst isn't what I'm looking for. > > I need something more lightweight. I'm

Re: [Catalyst] Re: How to redirect before some code excute

2006-10-26 Thread Carl Franks
On 26/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Fayland Lam <[EMAIL PROTECTED]> wrote: > > Lee Standen wrote: > > It's a subroutine, right? > > > > Tried a return?such as: > > > > $c->res->redirect('http://www.yahoo.com'); > > return undef; > > Indeed I want to run the 'while' loop

Re: [Catalyst] Where should constraints go

2006-11-03 Thread Carl Franks
On 03/11/06, Ian Docherty <[EMAIL PROTECTED]> wrote: Where should the various constraint values go in my MVC structure? For example the Model defines the size of each field in (for example) a username field in the User database table as being 16 characters max. I am using FormValidator to valida

Re: [Catalyst] Where should constraints go

2006-11-03 Thread Carl Franks
On 03/11/06, Ian Docherty <[EMAIL PROTECTED]> wrote: Carl Franks wrote: > > I made on very basic start [1] on being able to automatically create > constraints from the database column types. At the moment it only > supports mysql, and it's also probably very out-of-sync

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

2006-11-16 Thread Carl Franks
On 16/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I really don't want to start a bashing session, but I have some concerns that those much more knowledgeable than me should hopefully be able to clarify. Recently, I saw this article via Catalyst Planet: http:// letsgetdugg.com/feed/view/C

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

2006-11-16 Thread Carl Franks
On 16/11/06, Cory Watson <[EMAIL PROTECTED]> wrote: On 11/16/06, Carl Franks <[EMAIL PROTECTED]> wrote: > On 16/11/06, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> wrote: > > > > Essentially, according to his test, which doesn't take into account > > ORM

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

2006-11-16 Thread Carl Franks
On 16/11/06, Christopher H. Laco <[EMAIL PROTECTED]> wrote: Carl Franks wrote: > On 16/11/06, Cory Watson <[EMAIL PROTECTED]> wrote: >> On 11/16/06, Carl Franks <[EMAIL PROTECTED]> wrote: >> > On 16/11/06, [EMAIL PROTECTED] >> > <[EMAIL PROTECTED]

Re: [Catalyst] HTML::Widget and Unicode

2006-11-26 Thread Carl Franks
On 26/11/06, Alejandro Imass <[EMAIL PROTECTED]> wrote: Hi, HTML::Widget is translating my UTF-8 characters into presumably ISO LATIN-1. Can I stop HTML::Widget from doing this? I looked into enctype but I don't think is for that, and if it is could someone kindly offer an example? if so (suppos

Re: [Catalyst] How to use HTML::Widget::Constraint::Date

2006-11-26 Thread Carl Franks
On 26/11/06, Alejandro Imass <[EMAIL PROTECTED]> wrote: Thanks! But how do I use this constraint if I have several date fields in my form? Suppose I have two dates which would mean 6 fields on the form (per your explanation above). Do I just pass all 6 in order to the constraint? or am I missing

Re: [Catalyst] How to use HTML::Widget::Constraint::Date

2006-11-27 Thread Carl Franks
On 27/11/06, Andrew Peebles <[EMAIL PROTECTED]> wrote: Michele Beltrame wrote: > Hello Alejandro! > >> I decided to create my own class in my controller namespace but I >> think it can be contributed to HTML::Widget::Constraint namespace if >> anyone here has acces to that. > > I have several con

Re: [Catalyst] Browser window/tab independent sessions

2007-01-08 Thread Carl Franks
On 08/01/07, Octavian Rasnita <[EMAIL PROTECTED]> wrote: Well, it seems that Internet Explorer doesn't work that way. Here are the steps: I have opened a window with the main page of the site. No cookie file was created. I have logged on. No cookie file was created, even though it was sent, and

Re: [Catalyst] HTML to plain text conversion

2007-01-08 Thread Carl Franks
On 08/01/07, Xavier Robin <[EMAIL PROTECTED]> wrote: Hello, Do you know a (catalyst plugin|perl module|external tool) that converts HTML to plain text? I mean, keeping some formatting (especially lists and links...), not just stripping HTML tags... I tried Template::Plugin::HtmlToText that fits

Re: [Catalyst] Browser window/tab independent sessions

2007-01-09 Thread Carl Franks
On 08/01/07, Perrin Harkins <[EMAIL PROTECTED]> wrote: On Mon, 2007-01-08 at 23:34 +0200, Octavian Rasnita wrote: > And I think this is what is wanted, because I can't see other needs for > having 2 separate sessions on the same computer. Go back and read the original post again. The problem is

(off-topic) Re: [Catalyst] Preferred Ajax framework

2007-01-11 Thread Carl Franks
On 11/01/07, Toby Corkindale <[EMAIL PROTECTED]> wrote: ... Attempts to correct said documentation by me failed, as you need to sign a disclosure saying your contributions are owned by the Dojo Foundation (so they can publish a book later) ... The CLA ( http://dojotoolkit.org/icla.txt ) grants

Re: [Catalyst] creating binaries

2007-01-17 Thread Carl Franks
On 17/01/07, Joe Landman <[EMAIL PROTECTED]> wrote: That is unless you have your in-memory image also encrypted with on the fly decryption/execution. I am not aware of any one doing this for any language. Though I could be wrong. I've heard of this being used in pc/console games, but even thi

Re: [Catalyst] Hair-pulling over YAML config

2007-01-29 Thread Carl Franks
On 29/01/07, Carl Vincent <[EMAIL PROTECTED]> wrote: Hi everyone, I've just spent an inordinate amount of time debugging a problem which was actually caused by my Yaml config file not parsing properly. Catalyst isn't helping much - all it does is skip out the line of debug that says "[debug] Loa

Re: [Catalyst] C::C::FormBuilder question

2007-01-30 Thread Carl Franks
On 29/01/07, Marc Logghe <[EMAIL PROTECTED]> wrote: Hi all, I am lost. In my conf I have: # configuration of FormBuilder Controller::FormBuilder: method_name: form template_type: Mason stash_name: form obj_name: fb form_suffix: fb attr_name: Form form_path: __path_to

Re: [Catalyst] C::C::FormBuilder question

2007-01-31 Thread Carl Franks
On 30/01/07, Matt S Trout <[EMAIL PROTECTED]> wrote: On 30 Jan 2007, at 08:48, Carl Franks wrote: > I was just looking at this last week, as I was using the code as a > basis for a new controller. I suspect that it's never been tested, > because as far as I can tell, it i

Re: [Catalyst] Using C::C::FormBuilder With DBIC

2007-02-18 Thread Carl Franks
On 18/02/07, RA Jones <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote: > Hi Everyone, > > I have been experimenting with Catalyst::Controller::FormBuilder. I'm > trying to provide an edit form for objects read from and written to the > DB via DBIx::Class. Have FormBuilder automatically load

Re: [Catalyst] L10N + FormBuilder/HTMLWidget

2007-02-19 Thread Carl Franks
Chris, On 19/02/07, Christopher H. Laco <[EMAIL PROTECTED]> wrote: Is anyone doing complete localization using FormBuilder or HTML::Widget? I'm stuggling with probably the same things everyone struggles with when it comes to forms. FormBuilder is nice when it comes to localizing the messages vi

Re: [Catalyst] Performance

2007-03-09 Thread Carl Franks
On 09/03/07, Nilson Santos Figueiredo Junior <[EMAIL PROTECTED]> wrote: 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()

Re: [Catalyst] assigning vars to $c->stash

2007-03-12 Thread Carl Franks
On 12/03/07, Octavian Rasnita <[EMAIL PROTECTED]> wrote: I have a $hash hash reference and I want to add all its elements to the stash. How can I do this? Do I need to use a loop and assign each element one by one? I have seen that it is not possible to use $c->stash = $hash; %{ $c->stash } =

Re: [Catalyst] Help needed with Unicode

2007-03-20 Thread Carl Franks
On 20/03/07, Mario Minati <[EMAIL PROTECTED]> wrote: - text with german umlauts from lexicon style pm files is currupted, it is Does your .pm file have "use utf8;" ? It's necessary for when you have UTF-8 in perl source files. Cheers, Carl ___ List

Re: [Catalyst] html escaping question

2007-03-21 Thread Carl Franks
On 21/03/07, Mario Minati <[EMAIL PROTECTED]> wrote: Am Mittwoch 21 März 2007 10:38 schrieb Ash Berlin: > Mario Minati wrote: > > What is the best/common practice to get text that might containt html > > escapable characters (e. g. '&', '<') from a form field to catalyst to db > > and back to for

Re: [Catalyst] html escaping question

2007-03-21 Thread Carl Franks
On 21/03/07, Mario Minati <[EMAIL PROTECTED]> wrote: Am Mittwoch 21 März 2007 12:42 schrieb Carl Franks: > In which case you may be double-escaping. But how can I circumvent this. Actually it's not a clever question. Is it usefull to circumvent that. My current problem: As

Re: [Catalyst] Form Module Dichotomy

2007-03-23 Thread Carl Franks
On 22/03/07, Alejandro Imass <[EMAIL PROTECTED]> wrote: Hello, I wrote a complete backend in HTML::Widget a couple of months ago, and now I'm adding new functionallity to another part of the site. The question is: a - Stick with HTML::Widget and wait for FormFu ? b - use C::C::FormBuilder ? I

Re: [Catalyst] Form Module Dichotomy

2007-03-23 Thread Carl Franks
On 22/03/07, Doran L. Barton <[EMAIL PROTECTED]> wrote: I am currently developing my first app using C:C:FormBuilder too, having done previous Catalyst projects with HTML::Widget. I think FormBuilder may become the de facto way to develop Catalyst apps in the future, especially seeing there is a

Re: [Catalyst] Form Module Dichotomy

2007-03-23 Thread Carl Franks
On 23/03/07, Alejandro Imass <[EMAIL PROTECTED]> wrote: >From the comments, my conclusion is that if you already developed with HTML::Widget it would probably be better to stick with it and wait for FormFu (or use FormFu from svn), because it's more backward compatible with legacy HTML::Widget co

Re: [Catalyst] $c->detach and $c->action

2007-05-18 Thread Carl Franks
On 01/02/07, Matt S Trout <[EMAIL PROTECTED]> wrote: On 1 Feb 2007, at 02:05, Michael Reece wrote: > is there something like detach that will also set the current > 'action' to the one being detached to? Not until 5.80 but there's no reason you can't simply set $c->action - it -is- an accessor

Re: [Catalyst] Forms: Chapter 1647

2007-05-24 Thread Carl Franks
On 24/05/07, Christopher H. Laco <[EMAIL PROTECTED]> wrote: One of the never ending topics for Catalyst seems to be forms: how to build them, validate them, localize them and generally just live with them without hating the toolset or wanting to strangle someone. I don't have a solution for ever

Re: [Catalyst] Dept. of Redundancy Dept.

2007-05-30 Thread Carl Franks
On 30/05/07, Marvin Humphrey <[EMAIL PROTECTED]> wrote: C<$c-Ereq-Ecaptures-E[0]> ...should be written as: C<< $c->req->captures->[0] >> ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable a

Re: [Catalyst] Catalyst Unicode woes ...

2007-08-09 Thread Carl Franks
On 09/08/07, Tobias Kremer <[EMAIL PROTECTED]> wrote: > Following up on a conversion I started on the DateTime mailing-list I'd like > to > ask if it is really neccessary to use C::P::Unicode if a site uses > utf8-encoding? > > I have the problem that up until now everything worked absolutely fine

[Catalyst] OT: Re: Catalyst hosting: the wiki page

2007-08-13 Thread Carl Franks
On 12/08/07, Francesc Romà i Frigolé <[EMAIL PROTECTED]> wrote: > > Catalyst application with DBIx::Class and TT which uses 5.2MB of space but > the .cpan directory uses 37M more. btw, once you've installed everything, you can delete the contents of the .cpan directory (except the "CPAN" directory

Re: [Catalyst] Re: Catalyst Unicode woes ...

2007-08-13 Thread Carl Franks
Aristotle, thanks for your input - as soon as I saw your name in this thread, I knew to sit up and take notice :) It's taken a few hours, but I've figured out what's causing the specific problems Tobias was having with some parts of the page being double-encoded. In a nut-shell, it's YAML::Syck's

Re: [Catalyst] Re: Catalyst Unicode woes ...

2007-08-14 Thread Carl Franks
On 13/08/07, Tatsuhiko Miyagawa <[EMAIL PROTECTED]> wrote: > > Try $YAML::Syck::ImplicitUnicode = 1? Thanks, that solved the problem. >From reading the docs, I had thought that option did the opposite of what I was wanting, but then obviously I still have a lot to learn about unicode ;) Cheers,

Re: [Catalyst] improving usability / doc

2007-08-17 Thread Carl Franks
On 17/08/07, Jonathan Rockway <[EMAIL PROTECTED]> wrote: > "Sucks" is somewhat hurtful to the many contributers... > ... (search.cpan.org's navigation sucks). hmm? ;) ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/lis

Re: [Catalyst] About output in a browser

2007-08-29 Thread Carl Franks
On 28/08/2007, lanas <[EMAIL PROTECTED]> wrote: > Hi folks, > > In understanding how Catalyst work and how to work with , I'm making > very simple stuff, like having a model that only returns a directory > listing. I found something curious before starting to make a view. > Every line of the dir

Re: [Catalyst] TT and UNICODE: Garbled special characters

2007-09-06 Thread Carl Franks
On 05/09/07, Daniel McBrearty <[EMAIL PROTECTED]> wrote: > > > > This talk was great: http://vienna.yapceurope.org/ye2007/talk/552 > > Check out the slides of his talk. > > > > looks interesting - where *are* the slides? no link from the page :-) It was front-paged on use.perl.org recently: http:/

[Catalyst] uri_for() not working under lighttpd fastcgi

2007-09-14 Thread Carl Franks
I've got a Cat app working under lighttpd with fastcgi. The app should be served from the address: http://my-domain/amazon If I create a url with $c->uri_for('/books/search'), then instead of getting: http://my-domain/amazon/books/search I get: http://my-domain/books/search I've just

[Catalyst] Re: uri_for() not working under lighttpd fastcgi

2007-09-14 Thread Carl Franks
I discovered that if instead of hitting: http://my-domain/amazon I hit: http://my-domain/amazon/ ... then uri_for() started working as expected. I added a rewrite rule to my lighttpd config: url.rewrite = ( "^/amazon$" => "/amazon/" ) and everything is now working again. I don't know

[Catalyst] Catalyst-View-TT-Alloy v0.00001

2007-09-21 Thread Carl Franks
I've uploaded a new module to cpan - Catalyst-View-TT-Alloy. It's essentially a copy of Cat-View-TT (attributed!), but uses Template::Alloy instead of Template. It only provides the TT emulation interface - not all the other interfaces that Template::Alloy provides. Hope someone else might find i