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
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 eb...@bergbrains.com wrote: I'm trying to

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

2010-11-10 Thread Moritz Onken
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::Payment. Try to remove it and add 1; instead. cheers, mo Am 10.11.2010 um 15:11 schrieb David

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

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 output during

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 output during

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

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 iterator at

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.

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

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:

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 changes. No, it was not. What gave

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

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 devin.aus...@gmail.com [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.

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

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

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

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,

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,

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] 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:

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] n...@gothic-chat.de 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

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::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 =

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: script type=text/javascript Ext.onReady(function(){ var submitForm = function() {

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 out

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

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 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] 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] 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

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 latest 4

[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 -

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

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: [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

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 digest

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 the random

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 can inject

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 that makes

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 flash movies can send

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

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

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 that I

[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

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

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 parent

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] 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

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 robin

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
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

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

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

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

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 ) {

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] uri_for problem

2008-03-05 Thread Moritz Onken
[%- ourl = Catalyst.uri_for('/search') _ ?stype=seqidquery= -%] ? 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] 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

Re: [Catalyst] Push services with catalyst

2008-03-05 Thread Moritz Onken
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 create an extra fastcgi

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 =

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

2008-02-16 Thread Moritz Onken
) 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 schrieb Guillermo Roditi: Which

[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 user

[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] 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] 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

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

2008-01-10 Thread Moritz Onken
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 AM, Moritz Onken [EMAIL PROTECTED] wrote: Hi

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