Re: [Catalyst] Forcing scalar context in TT?

2010-12-23 Thread Moritz Onken
Use Template::Alloy and do [% $(row.objects).count %] Am 23.12.2010 um 16:53 schrieb Alex Povolotsky: > Hello! > > I'm writing an application that needs to count some related objects > > [% row.objects.count %] results in "select * from objects" > [% row.objects.scalar.count %] yields an error

Re: [Catalyst] Trouble using Catalyst::Controller::FormBuilder

2010-11-10 Thread Moritz Onken
r at > this point. Can anyone give me a brief explanation? > > Eric > > On 11/10/10 10:58 AM, Moritz Onken wrote: >> Hi, >> >> my guess is that you added __PACKAGE__->meta->make_immutable to your >> controller >> class GLR::Controller::P

Re: [Catalyst] Trouble using Catalyst::Controller::FormBuilder

2010-11-10 Thread Moritz Onken
Hi, my guess is that you added __PACKAGE__->meta->make_immutable to your controller class GLR::Controller::Payment. Try to remove it and add 1; instead. cheers, mo Am 10.11.2010 um 15:11 schrieb David Schmidt: > On Wed, Nov 10, 2010 at 2:37 PM, Eric Berg wrote: >> I'm trying to get Catalyst::C

Re: [Catalyst] Catalyst and FormBuilder vs. IExplorer 8

2010-10-06 Thread Moritz Onken
Sounds like a trailing comma in the javascript somewhere. Am 06.10.2010 um 15:27 schrieb will trillich: > The FormBuilder/Catalyst -generated HTML works just fine in Chrome and in > Firefox, so debugging there isn't useful. It also works fine in older > Internet Explorers. :( I was hoping some

Re: [Catalyst] How to access DBIC schema from class method?

2010-08-11 Thread Moritz Onken
Hi, you need to move this in the resultset class: package MyApp::Schema::ResultSet::User; use base 'DBIx::Class::ResultSet'; ... sub create_user { my ($rs, $params) = @_; return $rs->create({}); } then you can access it via $c->model('DB::User')->create_user($params) cheers, mo A

Re: [Catalyst] REST Controller + ajax(jquery) with file upload

2010-05-18 Thread Moritz Onken
Am 18.05.2010 um 17:47 schrieb David Schmidt: > > > ps: I want my websites to be able to work with and without js. How can > I achieve this without increasing the complexity of my code too much. > (I vaguely remember this was really easy in RoR) Your approach seems perfectly reasonable. To make

Re: [Catalyst] Oddness with Catalyst::Plugin::Session::Store::DBIC

2010-04-28 Thread Moritz Onken
>> > > Right after ConfigLoader ... shouldn't do that. > > Honestly, the session shouldn't be UPDATEd at all in that case. > >> Like I said though, for me it's not a big deal that this happens, now >> that I know what causes it, I'm not worried about this showing up on my >> app_server.pl out

Re: [Catalyst] Oddness with Catalyst::Plugin::Session::Store::DBIC

2010-04-28 Thread Moritz Onken
>> > > Right after ConfigLoader ... shouldn't do that. > > Honestly, the session shouldn't be UPDATEd at all in that case. > >> Like I said though, for me it's not a big deal that this happens, now >> that I know what causes it, I'm not worried about this showing up on my >> app_server.pl out

Re: [Catalyst] Oddness with Catalyst::Plugin::Session::Store::DBIC

2010-04-27 Thread Moritz Onken
I had the same problem. I boiled it down to Static::Simple. Each request to a static resource issued a session update. In a recent release of cat the handling of requests seemed to have changed. Try downgrading to 5.80018 which fixed it for me (which is not a good solution, but I have no time righ

Re: [Catalyst] Re: Security issue with hashed passwords in C:P:A:Password

2010-03-24 Thread Moritz Onken
> Crypt::SaltHash makes the salt a function of the username, I haven't > looked too much into the implementation but it certainly isn't the > normal method of salting -- though it most probably helps some level. > It's not. Crypt::SaltedHash doesn't know about the username. cheers, mo

Re: [Catalyst] uri_for and unicode

2010-03-09 Thread Moritz Onken
Am 09.03.2010 um 21:30 schrieb Alex Povolotsky: > On 03/09/10 13:47, Bernhard Graf wrote: >> Am 09.03.2010 11:26, schrieb Alex Povolotsky: >> >> >>> uri_for seems to have some troubles with unicode. >>> >> >>> Use of uninitialized value within %URI::Escape::escapes in substitution >>>

Re: [Catalyst] namespace problem

2009-11-21 Thread Moritz Onken
Am 21.11.2009 um 16:34 schrieb gutta: > > Hi, > > I tried to use "use parent 'MyApp::Controller::Root';" > > instead of use parent 'Catalyst::Controller'; in all my other > controllers(for ex: User.pm). > > The reason is that Root.pm is already inheriting Catalyst::Controller. > > But when i

Re: [Catalyst] generating and redirecting to pdfs

2009-10-21 Thread Moritz Onken
Am 21.10.2009 um 00:25 schrieb Steve Rippl: Hi, I'm using TT for my View templates, and I'm experimenting with Template::Plugin::Latex for generating pdf reports. Now I'm generating pdfs (which is nice!) but not redirecting to them at the end, so I suspect I'm using the wrong approach. I

Re: [Catalyst] Per request DBIX Class Schema Connections

2009-10-05 Thread Moritz Onken
Am 05.10.2009 um 08:35 schrieb Chris Grafham: Thanks for the suggestion, however I am limited to using a pure DBIx::Class solution in the production environment. I have an existing setup that is kind of working, but not always (FETCH's failing on prepared statements). The setup is as fo

Re: [Catalyst] How to handle development vs production, required vs recommended module dependencies

2009-09-02 Thread Moritz Onken
Am 02.09.2009 um 19:44 schrieb Tomas Doran: On 31 Aug 2009, at 02:44, Daniel Austin wrote: Interested to hear how others might be handling this. It seems to work for us but I'm still learning Module::Install. I tend to use the excellent Module::Install::AuthorRequires and Module::Instal

Re: [Catalyst] Why no extra attributes on Private actions?

2009-08-17 Thread Moritz Onken
Am 17.08.2009 um 23:19 schrieb Tomas Doran: On 17 Aug 2009, at 09:47, Moritz Onken wrote: __PACKAGE__->config( actions => { foo => { Path => 'bar' } } ); sub foo {} This has been introduced in 5.80006. The Catalyst-Manual just didn't catch up with the change

Re: [Catalyst] Why no extra attributes on Private actions?

2009-08-17 Thread Moritz Onken
__PACKAGE__->config( actions => { foo => { Path => 'bar' } } ); sub foo {} This has been introduced in 5.80006. The Catalyst-Manual just didn't catch up with the changes. cheers, moritz ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists

Re: [Catalyst] RFC: no make install on catalyst apps

2009-07-28 Thread Moritz Onken
Am 28.07.2009 um 09:46 schrieb Devin Austin: Hi gang, There's been some discord as to whether or not Catalyst applications should/should not have the option of make install. Personally, I'm not really partial either way. Especially with the advent of tools like Dist::Zilla that allow yo

Re: [Catalyst] Catalyst tutorial

2009-07-19 Thread Moritz Onken
Am 19.07.2009 um 13:28 schrieb Octavian Râşniţă: In Catalyst::Manual::Tutorial::04_BasicCRUD.pod I read that we need to specify the ResultSet classes we want to use with: __PACKAGE__->resultset_class('MyApp::Schema::ResultSet::Book'); I've seen that it works even without it. Is this line re

Re: [Catalyst] add_columns()

2009-07-19 Thread Moritz Onken
Am 19.07.2009 um 13:21 schrieb Octavian Râşniţă: Hi, In DBIx::Class::ResultSource.pm's POD documentation I read: "" add_columns ... Adds columns to the result source. If supplied key => hashref pairs, uses the hashref as the column_info for that column. Repeated calls of this method

Re: [Catalyst] User timezones

2009-06-25 Thread Moritz Onken
Am 25.06.2009 um 09:54 schrieb Christian Lackas: * Devin Austin [090625 09:43]: Hi Devin, I would approach it so that when the user registers, they choose their time zone. When they login, this information is stored into their session, and retrieved whenever. agreed. I would store i

Re: [Catalyst] Re: Lighttpd and mod_perlite

2009-06-21 Thread Moritz Onken
what questions do you have? All I can think to say right now is look at Catalyst::Engine::HTTP::Prefork and work from there… I'm curious if anyone's implemented a zero downtime restart system (the likes of which FastCGI gives you for free) or if it already exists somehow. Currently we just ^C

Re: [Catalyst] ajax character encoding issue solved, but WHY?

2009-06-19 Thread Moritz Onken
Am 19.06.2009 um 06:23 schrieb seasproc...@gmail.com: I had a character encoding issue that I finally solved, but I don't understand why the fix works. I'm hoping someone can explain this to me! The issue was that non-ascii chars were appearing as junk BUT only when retrieved via ajax ca

Re: [Catalyst] Potential query string pollution vulnerability?

2009-06-16 Thread Moritz Onken
Am 16.06.2009 um 11:11 schrieb Tobias Kremer: Hi all, I just experienced a nasty case of query string pollution vulnerability in one of my Catalyst/DBIC apps. I think that the circumstances under which this applies are not _that_ rare, so I figured it'd be best to inform the world. Imagine th

Re: [Catalyst] FormFu edit form problem

2009-05-29 Thread Moritz Onken
Am 29.05.2009 um 07:43 schrieb Toby Corkindale: Moritz Onken wrote: Do you run the latest version of DBIC? I was running on 0.08012, however I have updated to 0.08103 and still have the same problem. -Toby The problem is that there is no good way to decide whether a given

Re: [Catalyst] FormFu edit form problem

2009-05-28 Thread Moritz Onken
Do you run the latest version of DBIC? Hi Carl, The patched version of 0.04004 seemed to work fine, however the released 0.05000 only works on some, but not all, of my tables. I tracked the issue down to part of HTML::FormFu::Model::DBIC around line 534, where you do: ---

Re: [Catalyst] FormFu edit form problem

2009-05-21 Thread Moritz Onken
Am 20.05.2009 um 00:37 schrieb Greg Coates: I'm using HTML::FormFu::Model::DBIC version 0.04002, and this problem is still there. Do we know when a patch might be available? Greg Hi Greg, which problem are you referring to? Can you provide some code? moritz ___

Re: [Catalyst] FormFu edit form problem

2009-05-13 Thread Moritz Onken
Am 13.05.2009 um 18:57 schrieb Steve Rippl: Thanks for the pointer. I had defined the foreign key relationships within MySQL and relied on wsdsis_create.pl model DB DBIC::Schema etc etc to build the model and define these relations, but it seems that can't be quite be trusted! Anyway, I'

Re: [Catalyst] FormFu edit form problem

2009-05-12 Thread Moritz Onken
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

Re: [Catalyst] setting the locale with DBIx::Class::InflateColumn::DateTime

2009-04-24 Thread Moritz Onken
Am 24.04.2009 um 10:53 schrieb Octavian Rasnita: Hi, (Sorry for asking on this list, but my messages are rejected from DBIC mailing list.) Is it possible to set the locale for a certain date field if DBIx::Class::InflateColumn::DateTime is used when using that date, and not in the clas

Re: [Catalyst] Having trouble even perldoc-ing Catalyst::Authentication::Store::DBIx::Class :(

2009-04-23 Thread Moritz Onken
Am 23.04.2009 um 17:49 schrieb kakim...@tpg.com.au: Catalyst/Plugin/Authentication/Store/DBIx/Class.pm You installed Catalyst/Authentication/Store/DBIx/Class.pm ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman

Re: [Catalyst] how to reuse Catalyst Schema for non-web purposes?

2009-04-23 Thread Moritz Onken
So it's the model I put the business logic in? That sounds ok, for now. But what about this: * Input from the web has to be validated. May be I use Data::FormValidator, may be FormFu. However, I may have to validate the params I get from the script (eg. data import from ERP systems),

Re: [Catalyst] Catalyst::Engine::HTTP::Prefork not used? (solved)

2009-04-14 Thread Moritz Onken
Am 14.04.2009 um 14:48 schrieb Neo [GC]: J. Shirley schrieb: On Tue, Apr 14, 2009 at 8:25 PM, Neo [GC] mailto:n...@gothic-chat.de >> wrote: Hi, I've read about the prefork-engine for the test-server in another thread, which could be very useful for me (our outsourced codemonkeys

Re: [Catalyst] Too many records returned

2009-03-21 Thread Moritz Onken
I think you need to retrieve that object after ->update() again: Character.pm --- sub character : Local FormConfig('character/character.yml') { my ($self, $c, $id) = @_; my $book; if (defined($id)) { $book = $c->model('DB::Character')->find($id);

Re: [Catalyst] Catalyst and ExtJS

2009-03-16 Thread Moritz Onken
Hi Scott, thank for your reply, in having a go at using Catalyst::View::JSON i keep running into the "... encountered object 'MyApp::Model::DB::Experiment=HASH(0xe8ac4c)', but neither allow_blessed nor convert_blessed settings ... " error. I'm getting data from DBIC but can't figure ou

Re: [Catalyst] Catalyst and ExtJS

2009-03-16 Thread Moritz Onken
Thanks for the link Moritz, I'm working my way through your examples from http://html-formfu.googlecode.com/svn/trunk/HTML-FormFu-ExtJS/lib/HTML/FormFu/ExtJS.pm Should javascript.tt2 contain this: Ext.onReady(function(){ var submitForm = function() { form.getForm().submit({ success: func

Re: [Catalyst] Catalyst::Controller::DBIC::Transaction Integration

2009-03-16 Thread Moritz Onken
If any Cat dev could point me to a Cat controller that does the action registering correctly, so I can fix C-C-HTML-FormFu, I'd very much appreciate it. Did you try to put this in C::C::HTML::FormFu? sub _parse_Form_attr { my ( $self ) = @_; return ( ActionClass => 'HTML::FormFu::Action::Fo

Re: [Catalyst] Catalyst and ExtJS

2009-03-14 Thread Moritz Onken
Hi Scott, thanks for the info, do you use any particular module or have you built it yourself? I have found so far: HTML::FormFu::ExtJS Catalyst-Controller-HTML-FormFu-ExtJS any you'd recommend taking a look at? thanks again adam Hi Adam, I'm the author of the above mentioned module

Re: [Catalyst] Catalyst - can't find Can't locate DBIx/Class/TimeStamp.pm in @INC ( have both perl 5.8.8 and 5.8.9 installed)

2009-03-10 Thread Moritz Onken
Am 10.03.2009 um 11:59 schrieb kakim...@tpg.com.au: hi , everyone, I installed DBIx::Class::TimeStamp successfully. I nevertheless have both perl 5.8.8 and 5.8.9 in my machine. I think it was when I ran apt-get on my ubuntu feisty box months ago "apt-get install perl" (yes,itchy fingers)

Re: [Catalyst] In search of RESTful CRUD holy grail

2009-03-04 Thread Moritz Onken
Am 04.03.2009 um 19:30 schrieb Bruce Keeler: On 3/4/2009 4:45 AM, Moritz Onken wrote: Furthermore I would not put the form rendering in the same path as the REST interface. This is my preference too. Keep the browser stuff out of the REST api. I would do something like this: # POST

Re: [Catalyst] In search of RESTful CRUD holy grail

2009-03-04 Thread Moritz Onken
Am 04.03.2009 um 13:25 schrieb Zbigniew Lukasiak: This might be a futile mission - but I think I learn something with each recurrence of this discussion. So let's restart it once again. CatalystX::CRUD::REST has a well described RESTful URI structure: # POST /foo-

Re: [Catalyst] New version of InstantCRUD

2009-02-23 Thread Moritz Onken
Am 23.02.2009 um 10:53 schrieb Alexander Hartmaier: I'm currently patching the hell out of Controller::DBIC::API. Search by passing a json string and pagination is already in the repo, prefetch support is done but needs some sort of controller side restriction so that someone can't fetch the co

Re: [Catalyst] create search engine friendly uri from string

2008-12-16 Thread Moritz Onken
I have tried: use strict; use Search::Tools::Transliterate; use utf8; my $tr = Search::Tools::Transliterate->new; $tr->ebit(0); print $tr->convert("ăşţâîĂŞŢÂÎ"); #It prints: astâîASTÂÎ I want to print ai instead of âî and AI instead of ÂÎ. Am I using $tr->ebit correctly? The lates

Re: [Catalyst] create search engine friendly uri from string

2008-12-15 Thread Moritz Onken
Am 15.12.2008 um 21:53 schrieb Johannes Plunien: On 15.12.2008, at 21:22, Jim Spath wrote: You might also want to add these two to the end: =~ s/--+/-/g; =~ s/-$//g; Scott McWhirter wrote: $str =~ s{\W}{}g; $str = lc($str); $str =~ s{\s+}{-}g; My not very elegant, but working solution:

[Catalyst] create search engine friendly uri from string

2008-12-15 Thread Moritz Onken
Hi, I was wondering if anyone has a nice regex or module which modifies a string to look good in an url. You know this behaviour from blogs which make urls from the blog title Example: "Beta Launch Invites: Kwyno Brings The Web Into Your IM And (Soon) SMS Inboxes" -> http://www.techcrunch.c

Re: [Catalyst] Troubleshooting Help Please

2008-10-06 Thread Moritz Onken
Am 06.10.2008 um 16:14 schrieb Moritz Onken: Authentication Session Session::Store::FastMmap Session::State::Cookie Storing the session with FastMmap is not a good idea. If the cache_size of FastMmap is exhausted it

Re: [Catalyst] Troubleshooting Help Please

2008-10-06 Thread Moritz Onken
Authentication Session Session::Store::FastMmap Session::State::Cookie Storing the session with FastMmap is not a good idea. If the cache_size of FastMmap is exhausted it starts dropping sessions to make space for new sess

Re: [Catalyst] Testing RESTful web services

2008-10-05 Thread Moritz Onken
Am 05.10.2008 um 10:47 schrieb Ian Docherty: Hi I am writing a simple test to test a POST method in a web service but my controller does not see any content in the POSTed request. In the controller both the $c->request->body and $c->request- >content_length are undefined. Any ideas? ---

Re: AW: [Catalyst] Sending E-Mails

2008-10-02 Thread Moritz Onken
Am 02.10.2008 um 13:45 schrieb goetz: I use the email plugin: use Catalyst qw/ -Debug ConfigLoader Static::Simple StackTrace Prototype Email /; Hi, try to configure Plugin::Email to use a smtp server: __PACK

Re: [Catalyst] Re: CSRF

2008-10-01 Thread Moritz Onken
Am 01.10.2008 um 16:23 schrieb Aristotle Pagaltzis: * Moritz Onken <[EMAIL PROTECTED]> [2008-10-01 12:55]: but this does still rely on the fact that there is no XSS issue on your page, doesn't it? So what? If your site has an XSS hole, it’s already game over. The attacker

Re: [Catalyst] Re: CSRF

2008-10-01 Thread Moritz Onken
Am 01.10.2008 um 14:20 schrieb Jonathan Rockway: * On Wed, Oct 01 2008, Moritz Onken wrote: I imagine a case where the attacker's site opens a iframe to your site which exploits a XSS issue and can send the hole form information back to the attacker's site. He has now the HMAC and

Re: [Catalyst] Re: CSRF

2008-10-01 Thread Moritz Onken
Am 01.10.2008 um 12:20 schrieb Aristotle Pagaltzis: * Moritz Onken <[EMAIL PROTECTED]> [2008-10-01 09:25]: The best way is to include a random string which has to be stored somewhere for comparison on the server side. Doesn’t have to be stored. Send a random string as well as a HMAC

Re: [Catalyst] Re: CSRF

2008-10-01 Thread Moritz Onken
Am 01.10.2008 um 08:57 schrieb Ashley: On Sep 30, 2008, at 11:13 PM, Aristotle Pagaltzis wrote: * Ashley <[EMAIL PROTECTED]> [2008-09-30 19:30]: If scripting is involved that makes it a XSS attack instead, though. No? No. Yeah, that was unclear. I was talking about our own sites and Cat a

Re: [Catalyst] CSRF

2008-09-30 Thread Moritz Onken
Am 30.09.2008 um 21:15 schrieb [EMAIL PROTECTED]: Moritz Onken <[EMAIL PROTECTED]> wrote on 09/30/2008 01:08:38 PM: Am 30.09.2008 um 19:20 schrieb Ashley: On Sep 30, 2008, at 10:08 AM, Moritz Onken wrote: "attackers can use POST" This is possible due to the fact that

Re: [Catalyst] CSRF

2008-09-30 Thread Moritz Onken
Am 30.09.2008 um 19:20 schrieb Ashley: On Sep 30, 2008, at 10:08 AM, Moritz Onken wrote: "attackers can use POST" This is possible due to the fact that flash movies can send any request to a server. You can achieve this even with a XMLHTTPRequest. If scripting is involved tha

Re: [Catalyst] CSRF

2008-09-30 Thread Moritz Onken
Am 30.09.2008 um 18:58 schrieb Ashley: On Sep 30, 2008, at 9:40 AM, [EMAIL PROTECTED] wrote: Seems like a cheap way (listing a bunch of frameworks in a security paper) to gain cheap traffic on your paper. Isn't that how and why white papers are written. :) I only skimmed the top page but I

Re: [Catalyst] Slow template processing on debian lenny

2008-09-15 Thread Moritz Onken
Hi, I've been using TT for years and enjoy the features it provides. In one of my Catalyst applications, I'm processing a template which generates HTML to give me a table with counts taken from a hash. I'm using a lot of nested FOREACH to generate the table. On my machine, an ubuntu har

Re: [Catalyst] Pushing data to Catalyst powered web page

2008-09-12 Thread Moritz Onken
Good afternoon all I am busy with a project where I need to read an RFID tag, get the data associated with the tag and then push the data to a web page for a security person to monitor. I can successfully read the tag by using LogicAlloy's ALE server. It then calls my Catalyst application a

[Catalyst] RFC & FYI: HTML::FormFu::ExtJS

2008-08-27 Thread Moritz Onken
Hi, HTML::FormFu::ExtJS uses the validation and processing power of HTML::FormFu and combines it with the great abilities of the JavaScript framework ExtJS to generate more intuitive forms. There is no difference in the form config file. You simply replace HTML::FormFu->new with HTML::FormF

Re: [Catalyst] Duplicate entries with C::P::Session::Store::DBIC and MySQL - new findings

2008-08-27 Thread Moritz Onken
Am 27.08.2008 um 10:19 schrieb Tobias Kremer: Quoting Tobias Kremer <[EMAIL PROTECTED]>: Quoting Daniel Westermann-Clark <[EMAIL PROTECTED]>: The "flash:" rows were used for compatibility with Store::DBI. We can break compatibility if people find the it not very useful. I have to admit t

Re: [Catalyst] Announce: Instant AJAX web front-end for DBIx::Class

2008-08-19 Thread Moritz Onken
Am 18.08.2008 um 23:22 schrieb Oliver Gorwits: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi folks, I'd like to announce a new Cat application which is now on the CPAN. The ListFramework Builder (LFB) takes your DBIx::Class Schema definition and produces an AJAX CRUD web interface, on the

Re: [Catalyst] Debug with FCGI

2008-08-01 Thread Moritz Onken
Am 01.08.2008 um 12:45 schrieb Angel Kolev: Hi all. I run my cat app as standalone FCGI server+apache2: script/myapp_fastcgi.pl -l /tmp/myapp.socket -n 5 How can i run it in debug mode same as catalyst development server? ___ List: Catalyst@lists.sc

Re: [Catalyst] Configuring a Controller from the config file

2008-08-01 Thread Moritz Onken
Which contains the class-level defaults. Not application defaults. You should never, ever EVER access $self->config in a model, view or controller object. Your config value will be in $self->{key}. It's considered normal to do package My::Controller::Foo; use strict; use warnings; use paren

[Catalyst] Configuring a Controller from the config file

2008-07-30 Thread Moritz Onken
Hi, I tried to set some config options for a controller with the config file. YAML-code: --- name: MyApp Controller::Root: key: value I'm using ConfigLoader and the debug shows that it successfully loaded the yaml file. In a method in my Root controller I tried to access those config

Re: [Catalyst] Preventing simultaneous logins

2008-07-25 Thread Moritz Onken
Am 25.07.2008 um 10:27 schrieb Daniel McBrearty: 1. checking whether there is an existing session associated this username Session::PerUser ? I looked briefly at this, but I'm a bit wary because C::P::Session::Store::Fastmmap warns against being used with it. What is PerUser doing that

Re: [Catalyst] Sending email from a Catalyst app

2008-07-02 Thread Moritz Onken
Am 02.07.2008 um 12:09 schrieb ivorw: I know there's more than one way to do this. I'm looking at what the best practice is. I've had some success inthe past with Catalyst::Plugin::Email, but I'm now looking at Catalyst::View::Email[::Template] which seems altogether much cleaner, able to be

Re: [Catalyst] Re: Catalyst site design drafts feedback thread

2008-06-17 Thread Moritz Onken
The classic 2/3 column layouts have become a bit out-of-fashion recently which is why I decided against using them (which doesn't mean they don't make sense anymore). Besides, I don't see that many sub-navigation points for the Catalyst site ... I agree with the out-of-fashion 2/3 col

Re: [Catalyst] Re: Catalyst site design drafts feedback thread

2008-06-17 Thread Moritz Onken
I've started to code the site and the ongoing process is available at http://www.funkreich.de/catalyst. It's currently known to look good in Mozilla Firefox and Safari. MSIE (as always) still looks a bit odd but I think we're far from browser-optimizing the site :) Nice work! Some points:

Re: [Catalyst] Strange Problem: gb2312 showed incorrect in mod_perl, but correct in developer server

2008-06-05 Thread Moritz Onken
Apache might force the encoding of specific mime types. Check the apache config and look for the content type View::JSON generates. cheers, moritz Am 02.06.2008 um 18:39 schrieb J. Shirley: 2008/6/1 cui robin <[EMAIL PROTECTED]>: 2008/6/2 J. Shirley <[EMAIL PROTECTED]>: 2008/6/1 cui robi

Re: [Catalyst] Shirts for YAPC::NA

2008-06-04 Thread Moritz Onken
CafePress sucks. The quality of the print is pretty bad. I bought a few catalyst shirts and they look like pretty bad after a few weeks... Could you find another partner? Am 02.06.2008 um 09:11 schrieb Mike Whitaker: I'll be placing a CafePress order later in the week to save on US- >abroad

Re: [Catalyst] Dispatching with Chained vs HTTP method

2008-04-30 Thread Moritz Onken
Maybe you could make it modular so we can easily add another processor like formfu Am 30.04.2008 um 12:03 schrieb Zbigniew Lukasiak: On Wed, Apr 30, 2008 at 11:46 AM, Moritz Onken <[EMAIL PROTECTED]> wrote: Hi Zbyszek, do you plan FormFu support? In case the submitted values a

Re: [Catalyst] Dispatching with Chained vs HTTP method

2008-04-30 Thread Moritz Onken
Hi Zbyszek, do you plan FormFu support? In case the submitted values are not valid the response is a xml/json/whatever which includes the error messages. That would be really great :) cheers, moritz Am 30.04.2008 um 11:24 schrieb Zbigniew Lukasiak: Hi Toby, I don't know if you are aware

Re: [Catalyst] Re: CatalystSites.org

2008-04-16 Thread Moritz Onken
Totally depends. I ported an app to Catalyst that previously was basically one-action-per-controller. It cannot be called anything less than a lot of work, but it paid of royally. The code is as DRY as it was before, but it’s now far better structured. Previously it was blocks of if-elsif chains

Re: [Catalyst] RIA on Catalyst

2008-04-10 Thread Moritz Onken
Hi Peter, I'm using Catalyst and ExtJS. I use JSON as the default view and pass everything to the stash so it gets to the UI. I'm not using any REST or SOA or anything like that because my app will never communicate with other apps. Are you sure that all the http methods work with xmlhttpreq

Re: [Catalyst] RFC: Catalyst::Plugin::AutoValidate

2008-04-09 Thread Moritz Onken
Hi Markus, great plugin. But is it really a plugin? I'd prefer to use it as a controller base class because it is controller specific. This way you could chose which controllers should use this plugin and let the others do their work without being disturbed by this plugin (and you could s

Re: [Catalyst] Session expiry per user

2008-03-14 Thread Moritz Onken
Am 14.03.2008 um 13:53 schrieb Bill Moseley: Catalyst::Plugin::Session::DynamicExpiry isn't working for me using cookies. The patch was never applied so I go with this: sub auto : Private { my ( $self, $c ) = @_; if ( $c->user_exists ) { $c->config->{sessio

Re: [Catalyst] implementing ajax

2008-03-12 Thread Moritz Onken
For security reasons you should consider to return json only if the request is an xmlhttprequest. I added $c->forward( $c->view("JSON") ) if ( $c->req->header("X-Requested-With") eq "XMLHttpRequest" ); to my end method. If someone tries to get the json data directly he gets an erro

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] Push services with catalyst

2008-03-05 Thread Moritz Onken
9 schrieb Brian Kirkbride: Moritz Onken wrote: Hi, I consider offering a push service for real-time data. It's AJAX based and requires a consistent connection. I'm not sure about the memory usage of this. I plan to run the catalyst app as fastcgi server. Does every consistent connection

[Catalyst] Push services with catalyst

2008-03-05 Thread Moritz Onken
Hi, I consider offering a push service for real-time data. It's AJAX based and requires a consistent connection. I'm not sure about the memory usage of this. I plan to run the catalyst app as fastcgi server. Does every consistent connection create an extra fastcgi process? Which means an ad

Re: [Catalyst] uri_for problem

2008-03-05 Thread Moritz Onken
[%- ourl = Catalyst.uri_for('/search') _ "?stype=seqid&query=" -%] ? Am 05.03.2008 um 10:50 schrieb Emmanuel Quevillon: Hi, I am trying to build some url from TT using uri_for sub but I encounter some problem with it. When in my tt I have : [%- ourl = Catalyst.uri_for('/search?stype=seqi

Re: [Catalyst] $c->user->some_relationship always retrives user id from the db

2008-02-16 Thread Moritz Onken
/Class.pm#CONFIGURATION ) as there are some things you should know about operating in that mode. Jay On Feb 16, 2008, at 8:20 AM, Moritz Onken wrote: If someone tells me where to put that kind of code Matt suggested I'll write a patch and some (1? :-) ) tests. Am 15.02.2008 um 02:16 schr

Re: [Catalyst] $c->user->some_relationship always retrives user id from the db

2008-02-16 Thread Moritz Onken
If someone tells me where to put that kind of code Matt suggested I'll write a patch and some (1? :-) ) tests. Am 15.02.2008 um 02:16 schrieb Guillermo Roditi: Which means the entire thing would be pointless. What you want to do really is $class->new({ %saved_stuff, -result_source => $sche

Re: [Catalyst] $c->user->some_relationship always retrives user id from the db

2008-02-14 Thread Moritz Onken
Am 14.02.2008 um 00:11 schrieb Jay K: Hi there Moritz, The select by id that you are seeing is the retrieval of the user from the database when first recovering the user from the session. I am assuming that you are using the Catalyst::Authentication::Store::DBIx::Class storage module. Any a

[Catalyst] $c->user->some_relationship always retrives user id from the db

2008-02-13 Thread Moritz Onken
Hi, I request all albums of a user by calling $c->user->albums->all; That results in a query which retrieves the user id and then querys the album table with that user id in the where clause. It works, but how can I prevent that first query which retrieves the user id? Can't I store the use

Re: [Catalyst] add components to files generated by C::Helper::Model::DBIC::Schema

2008-02-05 Thread Moritz Onken
sure I tried. Try InflateColumn::DateTime which overwrites the register_column method. It only works if it's loaded before Core. Am 05.02.2008 um 10:44 schrieb Matt S Trout: On Mon, Feb 04, 2008 at 08:18:27PM +0100, Moritz Onken wrote: Hi, I need to add some components to some pac

[Catalyst] add components to files generated by C::Helper::Model::DBIC::Schema

2008-02-04 Thread Moritz Onken
Hi, I need to add some components to some packages created by Catalyst::Helper::Model::DBIC::Schema. I tried adding them under the md5 checksum so updates wont break, but some of them needed to be placed before Core is loaded. I didn't find anything about this in the docs. Any help? Thanks

Re: [Catalyst] OT: YUI v Ext JS

2008-01-26 Thread Moritz Onken
ssues with scrollbars on a mac with firefox, but thats a firefox bug and not ext. So I guess YUI might have the same problem on macs. -- Moritz Onken [EMAIL PROTECTED] Schützenstraße 81 76137 Karlsruhe Festnetz: +49 (721) 2048842 Mobil:+49 (176) 24436493 Am 26.01.2008 um 03:

Re: [Catalyst] TT VMethods

2008-01-17 Thread Moritz Onken
different country, different separators :-) e.g: 10,000.00 is ten thousand in the usa 10.000,00 is ten thousand in germany Am 17.01.2008 um 15:42 schrieb Chisel Wright: On Thu, Jan 17, 2008 at 01:14:22PM +0100, Moritz Onken wrote: please implement localization (different separators) Huh

Re: [Catalyst] TT VMethods

2008-01-17 Thread Moritz Onken
please implement localization (different separators) Am 17.01.2008 um 10:25 schrieb Octavian Rasnita: Also the CPAN module Template::Plugin::Comma can be used for doing this. Octavian - Original Message - From: "Mitchell Jackson" <[EMAIL PROTECTED] > To: <[EMAIL PROTECTED]> Sent:

Re: [Catalyst] Catalyst::View::Email broken?

2008-01-10 Thread Moritz Onken
tent is avaiable. if so pass it all together to create the mail. Otherwise use the stashed subject and the template output for the mail. I'd prefer this way because you have all your localization in one place. Moritz Am 10.01.2008 um 17:20 schrieb J. Shirley: On Jan 10, 2008 1:36

Re: [Catalyst] Catalyst::View::Email broken?

2008-01-10 Thread Moritz Onken
Hi, could you also implement a way to put the subject in the template? Something like (TT): [% subject = "My Subject %] [% BLOCK content %] Email content [% END %] This makes localization possible for the subject, when can we expect a new version? Greets, Moritz Am 10.01.2008 um 01:50 schri

Re: [Catalyst] Template render problem (plugin error) - Hops-0.05 application

2007-12-21 Thread Moritz Onken
try installing Template::Plugin::Class Am 21.12.2007 um 12:39 schrieb Peter Sørensen: Hi, I am new to Catalyst. I have just installed it and got my first very simple application to work. (Catalyst 5.7012 , perl 5.8.5) Now I'm trying to learn by example, and have downloaded the Hops-0.0

Re: [Catalyst] Re: State of the art in form valid =?WINDOWS-1252?Q?ation; _opinion_poll=85_Model_based_forms/validation=3F?=

2007-12-06 Thread Moritz Onken
Hi, I had the same problem with extJS but I use FormFu. I wrote a pretty simple extension for FormFu which generates the items-list for ExtJS from formfu config files. It supports tables, checkboxes, text, select, date, fieldset etc. Not everything yet. But I'm on it. Validation, transformation, d

Re: [Catalyst] (no subject)

2007-11-27 Thread Moritz Onken
$ sudo aptitude install make Am Dienstag, den 27.11.2007, 18:50 +0800 schrieb 伟 陈: > http://hiphotos.baidu.com/weimade/pic/item/3aac6df05986aace7831aac5.jpg > > the picture show some infomation of install error > > anybody who can tell me how to deal with it? > > i am a chinese guy..and my

Re: [Catalyst] need JSON converter which supports unquoted strings

2007-11-19 Thread Moritz Onken
0:35 -0500 schrieb Jason Kohles: > On Nov 19, 2007, at 10:14 AM, Moritz Onken wrote: > > > I tried this approach, too. But I don't like the XXX-Handler replace > > story :-) > > > > If you have a big function with a lot of braces and stuff your regex > > br

Re: [Catalyst] need JSON converter which supports unquoted strings

2007-11-19 Thread Moritz Onken
00 schrieb Jason Kohles: > On Nov 19, 2007, at 9:20 AM, Moritz Onken wrote: > > > Hi, > > > > sorry, a bit off topic, but I'm looking for a perl-object-to-JSON > > converter which supports unquoted strings. > > Modules like JSON::Any quote everything exc

Re: [Catalyst] need JSON converter which supports unquoted strings

2007-11-19 Thread Moritz Onken
yes that works, but I'm using a framework which does not do this. So I really need to pass unquoted strings. Am Montag, den 19.11.2007, 14:37 + schrieb Adeola Awoyemi: > Moritz Onken wrote: > > Hi, > > > > sorry, a bit off topic, but I'm looking for a perl-obj

[Catalyst] need JSON converter which supports unquoted strings

2007-11-19 Thread Moritz Onken
Hi, sorry, a bit off topic, but I'm looking for a perl-object-to-JSON converter which supports unquoted strings. Modules like JSON::Any quote everything except true and false. But I need to pass unquoted strings to let JavaScript run some functions. Any suggestions? Moritz