Re: [Catalyst] Open Source CMS

2011-04-29 Thread Mike Raynham
On 29/04/11 23:36, shawn wilson wrote: On Apr 29, 2011 6:29 AM, "Mike Raynham" mailto:catal...@mikeraynham.co.uk>> wrote: > > > That's an interesting idea. One of the things that drew me to Movable Type was its ability to publish static content. I'm going to try again with MT, hopefully wit

Re: [Catalyst] Open Source CMS

2011-04-29 Thread shawn wilson
On Apr 29, 2011 6:29 AM, "Mike Raynham" wrote: > > > That's an interesting idea. One of the things that drew me to Movable Type was its ability to publish static content. I'm going to try again with MT, hopefully with Plack and Nginx, and see if I can overcome whatever the problem was that I had

[Catalyst] Overriding $c->model / selecting different databases

2011-04-29 Thread Bill Moseley
I'm not sure if this is more of a DBIC question or a Catalyst question. I have two Catalyst::Model::DBIC::Schema model classes called "App::Model::Foo" and "App::Model::Bar" configured to use two different schema classes. The databases are not exactly the same but both DBIC schema classes expose

Re: [Catalyst] Mock dbix search/count functionality for model testing

2011-04-29 Thread Trevor Leffler
Hi Frank, Have you mocked $c->model so that you get your mock, $pin_attempt_mock, when you call $c->model('Foo') ? You can either create a MockObject for $c, or you can locally override $c's model method. I tend to do the former. --Trevor Franklin Kumro Jr wrote: Hello, I have a model

[Catalyst] Mock dbix search/count functionality for model testing

2011-04-29 Thread Franklin Kumro Jr
Hello, I have a model (MyApp/Models/Bar.pm) which retrieves data from the db using the generated schema files (in MyApp/Schema/Result/*.pm). My plan is to mock the classes which are called when retrieving data from the database. BEGIN { my $resultset_mock = Test::MockObject->new(); $

Re: [Catalyst] Open Source CMS

2011-04-29 Thread Peter Edwards
On 29 April 2011 15:45, Denny <2...@denny.me> wrote: > On Fri, 2011-04-29 at 08:27 +0100, Goke Aruna wrote: > > Its been two hours trying to run ShinyCMS. > > > > The dependencies are too many. > > anyone got any advice on packaging up for simpler deployment? > > Would your app work if you bundle

Re: [Catalyst] Mistake in documentation

2011-04-29 Thread Tomas Doran
On 8 Apr 2011, at 23:05, Mark A. Stratman wrote: So when a core contributor gets around to it, can you please review and put in master (there's another /people/mstratman/* branch too, btw). Merged to master, thanks t0m ___ List: Catalyst@lists.

Re: [Catalyst] Re: Using htpasswd file.

2011-04-29 Thread Tomas Doran
On 25 Apr 2011, at 09:54, Rohan M wrote: Catalyst::Plugin::Authentication::Store::Htpasswd Erm, I don't know why this is being loaded / used. You want Catalyst::Authentication::Store::Htpasswd Can you confirm that module is installed? Cheers t0m __

Re: [Catalyst] Open Source CMS

2011-04-29 Thread Denny
On Fri, 2011-04-29 at 08:27 +0100, Goke Aruna wrote: > Its been two hours trying to run ShinyCMS. > > The dependencies are too many. I don't think the list is unusually long for a Catalyst app, although I could be wrong*. Did you already have Catalyst installed, or did you have to start by insta

Re: [Catalyst] server memory usage

2011-04-29 Thread Tomas Doran
On 12 Apr 2011, at 13:51, Jorge Gonzalez wrote: Rather, it needs to load all the stuff and _then_ fork, so that the stuff is identical and shared. You are right in this case: the pages would be shared just after the fork, but would probably start to get copied individually for each pr

Re: [Catalyst] server memory usage

2011-04-29 Thread Tomas Doran
On 13 Apr 2011, at 08:25, Jorge Gonzalez wrote: It's plausible that multiple fire-ups of the same program would wind up with identical pages, if no memory allocation ever depends on timing or anything other than static configuration. Could be, but lots of perl modules defer their load until

Re: [Catalyst] jquery autocomplete and JSON

2011-04-29 Thread Armin Wenz
Am 29.04.2011 13:03, schrieb Oroszi, Róbert: I think it's a client side problem, that Autocomplete plugin is not the jQuery UI Autocomplete. You should grab the latest from http://jqueryui.com and you can read the documentation here: http://jqueryui.com/demos/autocomplete/ You were right. After

Re: [Catalyst] jquery autocomplete and JSON

2011-04-29 Thread Dmitry L.
> Dmitry, you should return JSONP only for crossdomain requests. > if you are on the same domain and port you can send JSON. > Oops... Really. My fault. Sorry -- //wbr, Dmitry L. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/

Re: [Catalyst] jquery autocomplete and JSON

2011-04-29 Thread Lee
Remember 'same domain' includes same port. If you have two servers on the same host and it isn't working for you because on is on a different port, you can try something like this in your Apache config: RewriteEngine ON RewriteRule ^/ajax/(.+) http://localhost:3000/$1 [P,L] There all

Re: [Catalyst] jquery autocomplete and JSON

2011-04-29 Thread Oroszi , Róbert
Dmitry, you should return JSONP only for crossdomain requests. if you are on the same domain and port you can send JSON. 2011/4/29 Dmitry L. > Hi! > > Your controller must return JSONP data (not just JSON) > > jQuery send additional param to you controller ("callback" by default, I > think) > my

Re: [Catalyst] Open Source CMS

2011-04-29 Thread Mike Raynham
On 29/04/11 13:01, Peter Edwards wrote: Hi Mike, I checked back to what the design guy I work with uses commercially nowadays for small-mid range customer CMS systems and it is: http://expressionengine.com/ IME many CMSes are over-complicated and fiddly to set up and get working reliably. If you

Re: [Catalyst] jquery autocomplete and JSON

2011-04-29 Thread Dmitry L.
Hi! Your controller must return JSONP data (not just JSON) jQuery send additional param to you controller ("callback" by default, I think) my $cb = $c->req->param("callback"); So View::JSON should return something like this: $cb($data); Where $data is [{"value":"1","label":"betty"},{"value":"2"

Re: [Catalyst] Open Source CMS

2011-04-29 Thread Peter Edwards
Hi Mike, I checked back to what the design guy I work with uses commercially nowadays for small-mid range customer CMS systems and it is: http://expressionengine.com/ IME many CMSes are over-complicated and fiddly to set up and get working reliably. If you have to write much code or debug the CMS

Re: [Catalyst] Open Source CMS

2011-04-29 Thread Mike Raynham
On 29/04/11 10:54, Tobias Kremer wrote: I believe your best bet is to use a CMS that outputs static content, which may or may not contain TT/Mason/whatever code and then gets eval'd in your Catalyst view. That way you can combine the static content performance with dynamic parts that are rendere

Re: [Catalyst] Open Source CMS

2011-04-29 Thread Tobias Kremer
On Thu, Apr 28, 2011 at 6:40 PM, Mike Raynham wrote: > I've started to look into some of these systems, including Drupal and > Bricolage.  For my sins, I have spent a lot of time working with PHP, so > whilst I'd prefer a Perl framework, using a PHP system wouldn't really be a > problem. I believ

Re: [Catalyst] Open Source CMS

2011-04-29 Thread Nicholas Wehr
I forgot to mention I used a corporate mediawiki as a backend for creating catalyst TT pages. worked out excellent, supported 7 international (utf-8) languages! utilized the power of categories, variables, etc to organize - users had an easy syntax for wiki inclined or toolbar editing (wysiwyg). I

Re: [Catalyst] Open Source CMS

2011-04-29 Thread Goke Aruna
Its been two hours trying to run ShinyCMS. The dependencies are too many. Is it possible to have all the dependencies in a file and run it prior to running it. Thanks. On 4/29/11, Mike Raynham wrote: > On 29/04/11 05:22, Peter Edwards wrote: >> Alfresco leaks memory in practice. >> Drupal is a