Re: [Catalyst] XML MIME types

2007-09-25 Thread Ash Berlin
A. Pagaltzis wrote: * Javier E. Perez P. [EMAIL PROTECTED] [2007-09-23 10:20]: i already change the http header content_type to text/xml Don’t use `text/xml`, it is broken for numerous esoteric reasons, mostly to do with encodings. The easiest completely correct thing you can do is to use

Re: [Catalyst] Re: XML MIME types

2007-09-25 Thread Ash Berlin
A. Pagaltzis wrote: * Ash Berlin [EMAIL PROTECTED] [2007-09-25 19:20]: Since its XUL and this is Firefox only, thats okay. But as a general point, ISTR application/xml is hideously broken with IE Do you remember anything about how that would be? I know of no such problem. Regards, Its

Re: [Catalyst] Mojomojo installation

2007-09-17 Thread Ash Berlin
Bernhard Graf wrote: Hi all, I wanted to check out latest Mojomojo from CPAN, but got several failures in the installation: [snip] - t/c/page_edit.t fails test #4 and #6 because the order of the expected HTML attributes is not the same (expects

Re: [Catalyst] Some guidance needed please

2007-09-13 Thread Ash Berlin
Simon Wilcox wrote: Matt S Trout wrote: On Thu, Sep 13, 2007 at 03:14:58PM +0100, Ian Docherty wrote: Almost, if I do my $used_password = $c-model('DBIC::UsedPassword')-result_class-create_limited(); it works. So that should do for now, thanks Simon and Will for your help ;) No. Don't do

Re: [Catalyst] A Perl Message Queue?

2007-08-23 Thread Ash Berlin
Don't use a DB as the backing store for a message queue if you will ever need to pass a lot of messages thought it - you're just asking for trouble doing it that way. Hartmaier Alexander wrote: Database table? -Alex -Original Message- From: Jesper Krogh [mailto:[EMAIL PROTECTED]

Re: [Catalyst] Canonical address changes from rawmode.org - scsys.co.uk

2007-08-08 Thread Ash Berlin
Matt S Trout wrote: I'm sick of having to interrupt gabb in .cz every time the list server moves IP so I'm centralising stuff under an SC domain. The lists.scsys.co.uk URLs and mail acceptors -should- already work and I'm not going to turn lists.rawmode.org off just yet but people seem to have

Re: [Catalyst] overload/override sub? (Session::PerUser)

2007-08-06 Thread Ash Berlin
Fernan Aguero wrote: Hi, I'd like to overload (or would it be override?) the merge_session_to_user sub in Catalyst::Plugin::Session::PerUser to be able to guide the hash merge (i.e. create new hash value keys for conflicting keys). Now, where and how should I do the overriding? Excuse

Re: [Catalyst] accessing methods in another controller?

2007-08-05 Thread Ash Berlin
Alan Spector wrote: Hi all, I had a quick question, what is the best way within a Controller to access a method in another controller? or is it better to put the method (it's a fetch for data in a particular format) in my Model? tia, alan

Re: [Catalyst] YAML Config

2007-07-24 Thread Ash Berlin
Oleg Pronin wrote: Hi. I would like to use references to variables that have been defined in my yaml config. Something like this: var_dir: var __path_to(var)__ log_dir: log *var/log log_file: *log/file.txt This is a feature of YAML 1.0. But it seems that only *pure* aliases

Re: [Catalyst] YAML Config

2007-07-24 Thread Ash Berlin
Oleg Pronin wrote: I don't even know what those do. Why do you want them? anchors are used to define an anchor on variable. *aliases are used to insert previously defined anchor's value. For example, root_dir: root /very/long/path/to/root/dir root_dir2: *root print

Re: [Catalyst] Suggestion for FastMmap related plugin handling

2007-07-21 Thread Ash Berlin
Seems like a bug in Cache::FastMmap. I'll get round to fixing it in my fork (Cache::FastMmap::With::Win32) - that or get co-maint on the proper one. Fancy writing a me a failing test case against either CPAN'd modules? apv wrote: I got a small bite by unexpected behavior when setting the

Re: [Catalyst] accessing ResultSet function from a related object

2007-07-04 Thread Ash Berlin
John Goulah wrote: I am having some trouble in both controller and template code accessing resultset functions off of chained/related objects (because from what I'm seeing they are not ResultSets but of the type MyApp::Model::MyAppDB::Tablename). For example I can create a ResultSet object

Re: [Catalyst] Sending email from Catalyst and scripts

2007-05-23 Thread Ash Berlin
mark wrote: Exactly; sending the email in end() after the page has been sent off would not delay the page loading... Mark Except that end is before the page has been sent back to the browser. You would need some kind of hook in what ever engine you are using to support that. Not a bad idea

Re: [Catalyst] C:P:Session::Store::FastMmap

2007-05-08 Thread Ash Berlin
Octavian Rasnita wrote: I also thought that, but I was able to install Cache-FastMmap-1.15 under Windows. (I found about this version on this list). http://perlitist.com/static/Cache-FastMmap-1.15.tar.gz The author has been in touch with me, and I've made the changes he asked for, so

Re: [Catalyst] FastMmap.pm

2007-05-02 Thread Ash Berlin
RA Jones wrote: Dmitri Pissarenko wrote: I couldn't find FastMmap.pm via ppm. How can I fix this error? You will probably get more authoritative answers, but the problem is that FastMmap doesn't work under Win32. You can get round it by using Session::State, Session::Store and

Re: [Catalyst] Hats off and some Clarifications.

2007-04-18 Thread Ash Berlin
Please sort out your email client to not use such a small font if you insist on sending html emails. Ta Ash ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive:

Re: [Catalyst] Catalyst Exception received by e-mail?

2007-03-27 Thread Ash Berlin
Dylan Vanderhoof wrote: I'm sure there's a better way to do it, but I have some code in Root-end() that effectivly does (pseudocode): If( $error !$debug ) { email_stacktrace(); clear_error(); template = 'default_error.tt'; } The one problem with doing it like that is that if you die

Re: [Catalyst] html escaping question

2007-03-21 Thread Ash Berlin
Mario Minati wrote: Hello @all, as you could help me that fast and excellent yesterday I have an other question to you ;) 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 form field?

Re: [Catalyst] Catalyst::Plugin::ConfigLoader::Environment on windows

2007-02-10 Thread Ash Berlin
Jonathan Rockway wrote: On Friday 09 February 2007 21:03, Greg McAlpin wrote: Hi. Trying to install Angerwhale and running into a problem with one of the tests for Catalyst::Plugin::ConfigLoader::Environment. I hope that it's okay to post this to this list. I would appreciate any help. I

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

2007-02-09 Thread Ash Berlin
Jim Spath wrote: I was considering using the following module in my Catalyst app. http://search.cpan.org/~dkubb/CGI-State-0.02/State.pm Until I saw that it does a use CGI;, the only purpose of which is for the creation of a CGI object if you don't pass one in. So I went ahead and wrote a

Re: [Catalyst] Using $c-view('TT')-render for emails

2007-02-06 Thread Ash Berlin
Jim Spath wrote: In the docs for Catalyst::View::TT and Catalyst::Plugin::Email, it suggests using $c-view('TT')-render() for the rendering of email templates. My issue is that I created my Catalyst view with TTSite as described in the CatalystBasics tutorial, and when I call the render

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

2007-01-26 Thread Ash Berlin
Jason Gottshall wrote: In using chained dispatch, I found that getting URIs for specific endpoints felt a bit clumsy: package MyApp::C::Foo; sub get_foo : Chained('/') PathPart('foo') CaptureArgs(0) {} sub do_bar : Chained('foo') PathPart('bar') Args(2) {} package MyApp::C::Qux

Re: [Catalyst] C::V::PDF? (Anybody have one?)

2007-01-10 Thread Ash Berlin
[EMAIL PROTECTED] wrote: [snip] which unfortunately Template::Latex does not yet do! Have you emailed the author with a patch? ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive:

Re: [Catalyst] Modifying a value returned with DBIC

2007-01-05 Thread Ash Berlin
Octavian Rasnita wrote: Hi, I want to get some messages from a database using DBIx::Class, then to pass them to TT, but I also want to make some preformatting before sending to TT. (I don't know if TT can do what I want). I did: @messages = $c-model(Db::Forum)-search({ id_room = $id_room,

Re: [Catalyst] How safe are database transactions?

2007-01-04 Thread Ash Berlin
Xavier Robin wrote: Hello all, I'm sorry if it is the wrong list, but I thought it was more a Catalyst-specific issue than a DBIx::Class one, as it is about the way Catalyst uses DBIx::Class. I would like to use transactions in Catalyst. my $transaction = $c-model('MyAppDB')-storage;

Re: [Catalyst] RFC $c-uri_to

2007-01-03 Thread Ash Berlin
Michael Reece wrote: $c-uri_for() is great and all, but i usually am more interested in getting a uri for an action rather than a uri to a template (or public path). (incidentally, i feel uri_for would be better named uri_to, and the sub below named uri_for, but i digress.) the following

Re: [Catalyst] debugging the login

2006-12-29 Thread Ash Berlin
Octavian Rasnita wrote: From: Ash Berlin [EMAIL PROTECTED] Something else is the case here. If you try $c-user; in a controller I suspect it will give you same error as from the template. As to the exact cause, hard to say, but its something to do with authentication setup. Aha, so

Re: [Catalyst] What to use ? HTML::Widget ? Data::FormValidator ? etc...

2006-12-28 Thread Ash Berlin
Alexandre Jousset wrote: Hello dear list, I'm currently in the early stage of writing a Catalyst application (in fact redesigning a non-Catalyst one) and I'm wondering what plugins to use. I've already written Catalyst applications successfully but for this one I've decided

Re: [Catalyst] debugging the login

2006-12-28 Thread Ash Berlin
Octavian Rasnita wrote: From: Hermida, Leandro [EMAIL PROTECTED] Are you using IE? Run your test server with the -k switch (i.e. script/myapp_server.pl -k). You can read in previous Catalyst threads that IE has a cookie setting problem and won't login properly if you don't enable keep-alive

Re: [Catalyst] Accessing $c from Model

2006-12-27 Thread Ash Berlin
Mark Zealey wrote: Hi there, I'm basically wanting to write a simple log function which logs hits on my website as entries in a database (automatically adding $c-user-{id} and $c-req-referrer etc), but to do so I want to use a model (I think). Any ideas how I can just say

Re: [Catalyst] Directory with Catalyst::Model::File

2006-12-21 Thread Ash Berlin
Xavier Robin wrote: Hello, I want to save uploaded files in a directory specific for the user (using the user_id). For example, the files of user 326 would be saved in directory /root/files/3/2/6/. I use Catalyst::Model::File to do this. It's really great! I configured it to store files in

Re: [Catalyst] Couldn't forward to vdc::View::tt. Does not implement process

2006-12-18 Thread Ash Berlin
package vdc::View::TT; # I suspect this is why Alejandro Imass wrote: Actually, all controllers are failing at the time of rendering the template. I have now attached startup debug log, other relevant files. I can put the whole app for download if required. The complete Catalyst debug screen

Re: [Catalyst] WAP FrameWork

2006-12-11 Thread Ash Berlin
luke devon wrote: Hi , Does catalyst act as a mobile - wap frame work ? I've found very interesting java frame work which handle a wap portal's functions very well. http://www.morfeo-project.net/index.php?option=com_contenttask=viewid=25Itemid=43lang=en but , i'm still searching for a perl or

Re: [Catalyst] RFC: file/path writing sub-class of Catalyst::Plugin::Static::Simple

2006-11-26 Thread Ash Berlin
apv wrote: I'm probably about to write a sub-class of Catalyst::Plugin::Static::Simple which writes the file to disk on the first request. The reason is I like to have all my extra static files (images, media, css, etc) in the same bundle as the application but I also want to let Apache serve

Re: [Catalyst] Null values in DBIx::Class

2006-11-23 Thread Ash Berlin
Xavier Robin wrote: Hello, I have the following table defined in a PostgreSQL database: CREATE TABLE test_table ( id SERIAL PRIMARY KEY, column1 INTEGER REFERENCES test_table2, column2 INTEGER UNIQUE NOT NULL REFERENCES test_table3 ); I have set up MYAPPDB::TestTable with the

Re: [Catalyst] setting up files and namespace for utilizing different models in the same catalyst app

2006-11-23 Thread Ash Berlin
Matt S Trout wrote: Hermida, Leandro wrote: What would people recommend as a naming convention and namespace setup if one wanted to eventually use more than one model inside of the same Catalyst app? I tend to use MyApp::Library - book+author DB MyApp::Forum - forum DB MyApp::Web - Catalyst

Re: [Catalyst] uri_for (or lack thereof) in static pages

2006-11-16 Thread Ash Berlin
Cédric Bouvier wrote: I have a ѕimple yet thorny problem, which I expect most of you also have or had. It has several possible solutions, but I'm chiefly interested in knowing how *you* would solve it and why. We're developing a Catalyst application. It serves HTML, CSS, JavaScript, and images.

Re: [Catalyst] IDE/editor

2006-11-14 Thread Ash Berlin
[EMAIL PROTECTED] wrote: I hesitate to ask this question because it seems to often result in some juvenille flame war. Everyone is different, with different needs and preferences. That's why we have choices. It's Perl after all, right? [grin] With that out of the way, what IDE or editor

Re: [Catalyst] Catalyst::View::TT

2006-11-13 Thread Ash Berlin
Ivan Wills wrote: Hi, I'm using Catalyst::View::TT to display my pages. I'm having trouble removing excess blank lines appearing at the top of my files. I realise this is not normally a problem but I am playing with mixing SVG and XHTML (with content-type=text/xhtml) but Firefox considers the

Re: [Catalyst] Programmatic way to determine the needed number of captures for an action?

2006-11-04 Thread Ash Berlin
John Napiorkowski wrote: --- Ash Berlin [EMAIL PROTECTED] wrote: This has been discussed before, tho a fully satisfactory solution never appeared. Something that we touched upon that could work was to have a stack of actions which been used/hit in the chain - though this wouldn't help when

Re: [Catalyst] regexes and auto actions

2006-10-31 Thread Ash Berlin
Carl Johnstone wrote: Hi, Got a question regarding the best way of setting up handlers. The site is split into many areas (and subareas) defined by URL path, the same types of content appear in each area of the site. There's stuff that needs setting up that's specific to the area of the

Re: [Catalyst] catalyst + embedded systems?

2006-10-30 Thread Ash Berlin
Jonathan Rockway wrote: Anyone try anything like this: http://bec-systems.com/web/content/view/46/9/ with Perl5 and Catalyst? I'd be interested in hearing how it performs. Regards, Jonathan Rockway I've got an embedded nix device that i've been doing some other work for, and will have to

Re: [Catalyst] Re: template comparison

2006-10-29 Thread Ash Berlin
Hermida, Leandro wrote: Hello, Its great to read how fundamentally different in their approach catalyst views are (TT, Mason, ClearSilver, TAL, etc.). I seem to be leaning on the side of Mason so far because I would like to stick with one powerful language (Perl), even though there is the

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

2006-10-29 Thread Ash Berlin
Nilson Santos Figueiredo Junior wrote: 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

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

2006-10-29 Thread Ash Berlin
Nilson Santos Figueiredo Junior wrote: ..\blib\arch\auto\Cache\FastMmap\CImpl\CImpl.exp mmap_cache.obj : error LNK2019: unresolved external symbol _vsnprintf referenced in function __mmc_set_error ..\blib\arch\auto\Cache\FastMmap\CImpl\CImpl.dll : fatal error LNK1120: 1 unreso lved

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

2006-10-29 Thread Ash Berlin
Ash Berlin wrote: Nilson Santos Figueiredo Junior wrote: ..\blib\arch\auto\Cache\FastMmap\CImpl\CImpl.exp mmap_cache.obj : error LNK2019: unresolved external symbol _vsnprintf referenced in function __mmc_set_error ..\blib\arch\auto\Cache\FastMmap\CImpl\CImpl.dll : fatal error LNK1120: 1

Re: [Catalyst] Dispatching question: same path but different args attributes

2006-10-17 Thread Ash Berlin
Marc Logghe wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt S Trout Sent: Tuesday, October 17, 2006 10:20 AM To: The elegant MVC web framework Subject: Re: [Catalyst] Dispatching question: same path but different args attributes

Re: [Catalyst] Configuring Catalyst::Model::DBIC::Schema from YAML

2006-09-28 Thread Ash Berlin
Jon Warbrick wrote: Can a Catalyst::Model::DBIC::Schema model be configured from a YAML file via Catalyst::Plugin::Config::YAML? If so, how? Apologies if it's in the documentation somewhere, but if so I've yet to find it... Jon. The answer is yes. Strip off Catalyst:: from the

Re: [Catalyst] Rails-like form helpers

2006-09-20 Thread Ash Berlin
Maybe look at FormBuilder. (?) Also suggest a situation that is complex then solutions like HTMLWidget can conveniently cope with and I'll tell you if it is (or will be - refactor is coming) Ash Berlin ___ List: Catalyst@lists.rawmode.org Listinfo

Re: [Catalyst] problem with FormBuilder + TT2

2006-09-18 Thread Ash Berlin
Moritz Sisenop wrote: Hello! I am using FormBuilder, CGI::FormBuilder::Source::File, and TT2. I set the template in the source file: template: type: TT2 template: customers/signup.tt2 And get the following error: undef error - Fatal: file error - customers/signup.tt2: not found

Re: [Catalyst] Trouble with Chained Actions and Redirects?

2006-09-18 Thread Ash Berlin
John Napiorkowski wrote: Hi, I have a controller with some chained actions. One of the actions (not an endpoint) will redirect given a certain value for the arguments. However I find that this doesn't stop the chain from completing. I still get a line about the redirect in the log, but

Re: [Catalyst] Bug in URI ?!

2006-09-10 Thread Ash Berlin
Paul Makepeace wrote: [+catalyst] On 8/16/06, Matt S Trout [EMAIL PROTECTED] wrote: Dominic Mitchell wrote: David Dorward wrote: Paul Makepeace wrote: URI::_query::query_form() which makes query strings: $self-query(@query ? join('', @query) : undef); Now as

Re: [Catalyst] Catalyst::Model::FileSystem? Anybody who's using their own wanna make one? =)

2006-08-09 Thread Ash Berlin
Catalyst::Model::File: http://search.cpan.org/~ash/Catalyst-Model-File-0.02/lib/Catalyst/Model/File.pm Based on Path::Class, so its platform independent. Any features missing from that that you think you'd want? Ash Dylan Vanderhoof wrote: I've noticed a few people posting about fielsystem

Re: [Catalyst] Making pages within pages

2006-08-01 Thread Ash Berlin
Paul Makepeace wrote: On 8/1/06, Ted Carnahan [EMAIL PROTECTED] wrote: Have a look at Catalyst::Plugin::SubRequest. Ah, great, thanks, that looks like what my snippet was trying to achieve. That will allow you to make a completely separate request to a different action, and it

Re: [Catalyst] Debugging DBIC inside a catalyst app

2006-06-22 Thread Ash Berlin
Kevin Old wrote: On 6/21/06, Eric W. Bates [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have read in the new Catalyst/Manual/Tutorial/CatalystBasics.pod (the whole tutorial is very nice, btw) that you can invoke DBIC's debugging inside your code thusly:

Re: [Catalyst] Problem with 'login' method in tutorial

2006-06-22 Thread Ash Berlin
Peter Traub wrote: Hello, I'm a Catalyst newbie stuck on the tutorial with following problem. In the Users.pm http://Users.pm file, the login function fails, as the call to $c-login() gets the following error: [Thu Jun 22 15:57:00 2006] [catalyst] [error] Caught exception Can't locate

Re: [Catalyst] Problem with 'login' method in tutorial

2006-06-22 Thread Ash Berlin
Peter Traub wrote: Hi Ash, Thanks for the reply. I should've mentioned that the top of my app (tutorial.pm http://tutorial.pm) follows the tutorial directions to the letter, and thus has: use Catalyst qw/-Debug Static::Simple Authentication Authentication::Store::Minimal