Re: [Catalyst] London Perl tutorials - 25th 26th February 2009 - day 2 includes Cat+DBIC

2009-01-22 Thread Dermot
2009/1/21 Robert L Cochran cochr...@speakeasy.net: This is really tempting. I don't know if I can afford this one. Diito, If I'd heard before the 21-Jan I would have heard about it in time to qualify for the Early Bird rates (until Jan 21st) Non-members: £295 + VAT (£339.25) UKUUG members'

Re: [Catalyst] Re: how to confirm before deleteing

2009-01-22 Thread Carl Johnstone
Aristotle Pagaltzis wrote: img src=http://yourapp.example.org/addressbook/delete/all; into a page they control and then send a link to that page to your users. If you allow destructive actions on GET, you have just allowed for your users to be screwed over through no fault of their own.

[Catalyst] Port on c.req.base behind a caching program

2009-01-22 Thread Terence Monteiro
I'm running a Catalyst application on port x behind varnish on 80 for caching. Whenever I call c.req.base or c.uri_for, I get the backend server port as a result. I tried setting the using_frontend_proxy option in my config, but still I get the backend port. I searched the mailing list and found

Re: [Catalyst] Re: OT: Better TT pager?

2009-01-22 Thread David Schmidt
On Thu, Dec 25, 2008 at 12:18 AM, Aristotle Pagaltzis pagalt...@gmx.de wrote: * Jesse Sheidlower jes...@panix.com [2008-12-23 12:45]: Does someone have a model I can steal from? I have something pretty close to that. Not entirely happy insofar as that I want to add the ability show a few

Re: [Catalyst] Port on c.req.base behind a caching program

2009-01-22 Thread J. Shirley
On Thu, Jan 22, 2009 at 3:21 AM, Terence Monteiro tere...@deeproot.co.in wrote: I'm running a Catalyst application on port x behind varnish on 80 for caching. Whenever I call c.req.base or c.uri_for, I get the backend server port as a result. I tried setting the using_frontend_proxy option in

Re: [Catalyst] Re: OT: Better TT pager?

2009-01-22 Thread Oliver Charles
I might as well join in with this :) Here's what we use at work: [% IF pager %] ul class=paginator li class=counterPage [% pager.current_page %] of [% pager.last_page %]/li lia href=[% c.req.uri_with( page = pager.first_page ) %]laquo;/a/li [% IF pager.previous_page %]

Re: [Catalyst] Re: OT: Better TT pager?

2009-01-22 Thread Octavian Rasnita
From: Oliver Charles oliver.g.char...@googlemail.com I might as well join in with this :) Here's what we use at work: [% IF pager %] ul class=paginator li class=counterPage [% pager.current_page %] of [% pager.last_page %]/li lia href=[% c.req.uri_with( page = pager.first_page

Re: [Catalyst] Re: OT: Better TT pager?

2009-01-22 Thread Oliver Charles
Can you also provide the CSS classes used by this example? Sure, here it is - not particularly amazing though, but I'm no designer :) [1]: .paginator ul { margin: 0; } .paginator .counter { margin-right: 20pt; } .paginator li { display: inline; } .paginator li a { padding:

RE: [Catalyst] Re: OT: Better TT pager?

2009-01-22 Thread Byron Young
Aristotle Pagaltzis wrote on 2008-12-24: [snip] This is also a perfect demonstration of why I say that TT sucks. This should by all rights be handled in the template since it’s display logic, but writing it in that TT mini-language rather than Perl is fugly. And PERL and RAWPERL blocks have

[Catalyst] RFC: Catalyst::Controller::RHTMLO

2009-01-22 Thread Jason Gottshall
[Cross-posted to catalyst-users and rhtmlo lists] I know there are several modules out there that hook up rhtmlo and catalyst, but none of them do what I want. They all seem to do too much: connect to a CRUD API, interface with rdbo, build a form object from a config file, etc. I really just

[Catalyst] Re: how to confirm before deleteing

2009-01-22 Thread Aristotle Pagaltzis
* Carl Johnstone catal...@fadetoblack.me.uk [2009-01-22 12:55]: Aristotle Pagaltzis wrote: img src=http://yourapp.example.org/addressbook/delete/all; into a page they control and then send a link to that page to your users. If you allow destructive actions on GET, you have just

[Catalyst] Re: Tool for rendering web pages consistently though time ?

2009-01-22 Thread Aristotle Pagaltzis
* Octavian Rasnita orasn...@gmail.com [2009-01-22 07:45]: I hope there isn't. ++ Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst

Re: [Catalyst] how to confirm before deleting

2009-01-22 Thread Patrick Donelan
On Thu, Jan 22, 2009 at 5:35 PM, Trevor Phillips trevor.phill...@gmail.comwrote: On Thu, Jan 22, 2009 at 3:12 PM, Toby Corkindale toby.corkind...@strategicdata.com.au wrote: But what happens when your site gets spidered by a search engine, that follows all links? Whoops. There's a

Re: [Catalyst] London Perl tutorials - 25th 26th February 2009 - day 2 includes Cat+DBIC

2009-01-22 Thread Dave Cross
Dermot wrote: 2009/1/21 Robert L Cochran cochr...@speakeasy.net: This is really tempting. I don't know if I can afford this one. Diito, If I'd heard before the 21-Jan I would have heard about it in time to qualify for the Early Bird rates (until Jan 21st) Non-members: £295 + VAT

[Catalyst] flexible ACL rules

2009-01-22 Thread Jens Schwarz
Hi *, I have some difficulties in applying flexible rules [1] in my Catalyst app. Until now, I only used easy rules (mainly with deny_access_unless) like: deny_access_unless( /users/edit , sub{ shift-check_any_user_role(qw/admin user/) } ); What I now want to achieve is, that 'admin' users

Re: [Catalyst] Port on c.req.base behind a caching program

2009-01-22 Thread Terence Monteiro
On Thu, Jan 22, 2009 at 06:49:16AM -0800, J. Shirley wrote: On Thu, Jan 22, 2009 at 3:21 AM, Terence Monteiro tere...@deeproot.co.in wrote: I'm running a Catalyst application on port x behind varnish on 80 for caching. Whenever I call c.req.base or c.uri_for, I get the backend server port