Re: [Catalyst] How Can I get online Catalyst web example project

2013-03-24 Thread Alejandro Imass
On Tue, Mar 19, 2013 at 4:59 AM, 疾驰者 <78778...@qq.com> wrote: > > Dear friends: > I have study catalyst framework for a long time. I read the book about > Perl DBI TT Catalyst and so on, and I can create a simple catalyst web > application. > Is there example application for learning cataly

Re: [Catalyst] Setting an environment variable with the value of a header

2013-03-24 Thread Alejandro Imass
On Fri, Mar 22, 2013 at 2:32 PM, Robert Rothenberg wrote: > I've not gotten replies to my posts regarding HTTP authentication, so I'm > starting a separate thread. > > I am running a Catalyst app as a separate server with a reverse proxy. > > If I pass the REMOTE_USER to the Catalyst app via a hea

Re: [Catalyst] Using the Catalyst Makefile to install

2013-03-11 Thread Alejandro Imass
her files for example a sqllite db file, where would those go? /var/lib/db ? How about Windows, how does work there? -- Alejandro Imass ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable

Re: [Catalyst] Using the Catalyst Makefile to install

2013-03-08 Thread Alejandro Imass
yze all other options. Again, thanks for your comments and will keep posted to close the thread. -- Alejandro Imass ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.ma

Re: [Catalyst] Using the Catalyst Makefile to install

2013-03-07 Thread Alejandro Imass
gt; etc. > > perldoc Module::Install for more info ;-) > > So the source, static files and the config file, etc. need to be installed manually ?? BTW: saludes! -- Alejandro Imass ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lis

[Catalyst] Using the Catalyst Makefile to install

2013-03-07 Thread Alejandro Imass
where they belong, but where do the resto of the files go?? Example, the /root directory, the config file, etc. Is there a document that talks about this? Thanks, -- Alejandro Imass ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.

Re: [Catalyst] sub-modules for model

2013-01-10 Thread Alejandro Imass
On Thu, Jan 10, 2013 at 10:37 PM, Alejandro Imass wrote: > On Wed, Dec 19, 2012 at 12:53 PM, will trillich > wrote: >> >> Spent a bit of time googlilng this and apparnelty I'm not searching very >> effectively today... >> >> >> >> Short vers

Re: [Catalyst] sub-modules for model

2013-01-10 Thread Alejandro Imass
On Wed, Dec 19, 2012 at 12:53 PM, will trillich wrote: > > Spent a bit of time googlilng this and apparnelty I'm not searching very > effectively today... > > > > Short version: > > What's best-practices to get model library sub-modules hooked in to the main > model? > Hi there. As in all Perl

Re: [Catalyst] Session::Store::DBIC and session table (postgres)

2012-11-14 Thread Alejandro Imass
ource and contact the module's author directly? -- Alejandro Imass ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalys

Re: [Catalyst] Session::Store::DBIC and session table (postgres)

2012-11-14 Thread Alejandro Imass
the Catalyst DB user to the objects in the particular schema, unless of course the user is the owner of the schema and in that case you don't even need to fq the object names. Also, if you are creating your Result classes with loader have you tried

[Catalyst] Catalyst-based SCADA Project

2012-11-14 Thread Alejandro Imass
C is quite simple but impressive potential IMHO. You can post your interest here or contact me directly at work: aim...@yabarana.com Cheers, -- Alejandro Imass ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinf

[Catalyst] Re: Catalyst::Test Plack and HTTP Auth

2012-05-24 Thread Alejandro Imass
On Thu, May 24, 2012 at 2:02 PM, Alejandro Imass wrote: > On Thu, May 24, 2012 at 1:53 PM, Alejandro Imass > wrote: >> Hello, >> >> Is it possible to set the auth headers with the Plack stuff w/o having >> to do the base64 and set headers manually? >> I.e. s

[Catalyst] Re: Catalyst::Test Plack and HTTP Auth

2012-05-24 Thread Alejandro Imass
On Thu, May 24, 2012 at 1:53 PM, Alejandro Imass wrote: > Hello, > > Is it possible to set the auth headers with the Plack stuff w/o having > to do the base64 and set headers manually? > I.e. something like with mech: > > $mech->credentials( $username, $password ); &g

[Catalyst] Catalyst::Test Plack and HTTP Auth

2012-05-24 Thread Alejandro Imass
Hello, Is it possible to set the auth headers with the Plack stuff w/o having to do the base64 and set headers manually? I.e. something like with mech: $mech->credentials( $username, $password ); But using the Catalyst::Test way... Thanks! -- Alejandro Im

Re: [Catalyst] Wiki down

2012-03-08 Thread Alejandro Imass
On Wed, Mar 7, 2012 at 10:19 AM, Roderick A. Anderson wrote: > ShinyCMS? www.shinycms.org We got tired of CMS and decided to build something very simple with Catalyst. We would gladly offer the hosting space a pre-confugred "EzCat" to host the Catalyst Web content. For Wiki, we could offer to hos

Re: [Catalyst] Model Instances vs. Model Classes - Round 2

2011-08-02 Thread Alejandro Imass
On Tue, Aug 2, 2011 at 6:45 AM, Darius Jokilehto wrote: > On 20/07/11 15:00, Alejandro Imass wrote: >> >> The Catalyst Wiki seems to be having some problems so i posted it on PM as >> well: >> >> http://www.perlmonks.org/?node_id=915657 > > In your first

Re: [Catalyst] Model Instances vs. Model Classes - Round 2

2011-08-02 Thread Alejandro Imass
On Thu, Jul 28, 2011 at 3:22 PM, Alejandro Imass wrote: > On Wed, Jul 20, 2011 at 12:50 PM, Peter Flanigan wrote: >> On 20/07/11 07:25, Alejandro Imass wrote: >>> [...] > I updated the Perlmonks article and the code in SVN to reflect this fix. > > http://www.pe

Re: [Catalyst] Catalyst Model Issue

2011-08-01 Thread Alejandro Imass
_to etc.). If you are unable to generate the static DBIC model try a small program with plain-old DBI and see if you can actually connect to the DB and have the correct privileges to extract the schema. perldoc DBI Cheers, -- Alejandro Imass > > Gordon > > >> On Fri, Ju

Re: [Catalyst] Catalyst Model Issue

2011-07-31 Thread Alejandro Imass
On Fri, Jul 29, 2011 at 12:14 PM, wrote: > Alejandro > > I am using the create fuction catalyst provides,  I find that is the best > way of creating the model.  Does it need 'source_name'  in the classes > that it creates. > Hi Gordon, To better help you, please indicate: - Operating System o

Re: [Catalyst] Refactoring Controllers

2011-07-28 Thread Alejandro Imass
aving a hard time wrapping my mind around how the URI's > would be handled. > Action classes and default methods on your root controller. -- Alejandro Imass > Thanks, > Steve > > ___ > List: Catalyst@lists.scsys.co.uk &g

Re: [Catalyst] Model Instances vs. Model Classes - Round 2

2011-07-28 Thread Alejandro Imass
On Wed, Jul 20, 2011 at 12:50 PM, Peter Flanigan wrote: > On 20/07/11 07:25, Alejandro Imass wrote: >> >> http://wiki.catalystframework.org/wiki/best_practices/models_definitive_guide >> > > In this example > >    package Models::Model::HomeGrownModel;

Re: [Catalyst] Catalyst Model Issue

2011-07-28 Thread Alejandro Imass
e the create script for DBIC is: script/_create.pl model [model_name] DBIC::Schema [namespace] create=static dbi:[sriver]:dbname=data/catmodels.db [user] [pass] -- Alejandro Imass ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.sc

Re: [Catalyst] Model Instances vs. Model Classes - Round 2

2011-07-28 Thread Alejandro Imass
On Fri, Jul 22, 2011 at 11:46 AM, Benjamin Hitz wrote: > > Alejandro - > thanks for this, it's quite clear I had forgotten that I asked for it > even. > > Ben Yeah I had this pending because I think it's very frustrating for many people that, even by buying commercial Catalyst books, they t

Re: [Catalyst] Model Instances vs. Model Classes - Round 2

2011-07-20 Thread Alejandro Imass
On Wed, Jul 20, 2011 at 10:07 AM, Ashley Pond V wrote: > On Wed, Jul 20, 2011 at 7:00 AM, Alejandro Imass > wrote: >> On Wed, Jul 20, 2011 at 2:25 AM, Alejandro Imass [...] > You probably never saw it but I did a bunch of this a couple years > ago. It's a bit old but

Re: [Catalyst] Model Instances vs. Model Classes - Round 2

2011-07-20 Thread Alejandro Imass
On Wed, Jul 20, 2011 at 2:25 AM, Alejandro Imass wrote: > On Thu, May 19, 2011 at 7:06 PM, Benjamin Hitz wrote: >>> [...] > I tried to make it as practical as possible: > > http://wiki.catalystframework.org/wiki/best_practices/models_definitive_guide > > Maybe othe

Re: [Catalyst] Model Instances vs. Model Classes - Round 2

2011-07-19 Thread Alejandro Imass
itive_guide Maybe others can complement with more "M Patterns" Best, Alejandro Imass > Also - can you comment on the following: > > WARNING WARNING WARNING > > Using this module is somewhat of a hack. Changing the state of your objects > on every request is a pretty

Re: [Catalyst] ACCEPT_CONTEXT not invoked if COMPONENT if present

2011-05-27 Thread Alejandro Imass
cePerContext It's supposed to ease the creating of per instance models, but I wonder. Hope you understand it ;-) -- Alejandro Imass ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/cataly

Re: [Catalyst] Return a TT view

2011-05-26 Thread Alejandro Imass
On Thu, May 26, 2011 at 12:43 PM, will trillich wrote: > > The only thing I can see at www.jemplate.net is the home page. All the other > links aren't working for me...? (Chrome on OSX) > Lovely tag, there, too. > Yeah the Web page is broken but the sofware is awesome. Simply put with the Cat p

Re: [Catalyst] Return a TT view

2011-05-26 Thread Alejandro Imass
On Thu, May 26, 2011 at 8:31 AM, jeff robinson wrote: > Alejandro, > Sounds like an ambitious project. We eventually solved the issues we > were having and the app was as a user GUI to hosted VoIP PBX, where we > needed to implement some long poll AJAX interfaces to provide for zero > latency scre

Re: [Catalyst] Return a TT view

2011-05-25 Thread Alejandro Imass
access to the project. Or, if there is sufficient interest we can just open it up right now? Best, -- Alejandro Imass On Sat, May 21, 2011 at 12:05 PM, jeff robinson wrote: > Alejandro > I'm mapping a "tradional" website (where page 2 replaces page 1 etc) > wriitten obv

Re: [Catalyst] Return a TT view

2011-05-20 Thread Alejandro Imass
ls there, in fact it's already pre-configured so if the extension is txt it will not process the headers, etc. Hope that helps. -- Alejandro Imass > > ___ > List: Catalyst@lists.scsys.co.uk > Listinfo: http://lists.scsys.co.uk/cgi-bin

Re: [Catalyst] Model Instances vs. Model Classes - Round 2

2011-05-20 Thread Alejandro Imass
On Thu, May 19, 2011 at 7:06 PM, Benjamin Hitz wrote: [...] > Would like to see that.  Some of us don't follow all this abstract computer > science jargon that well. > Granted, after re-reading my posts _I_ don't even understand them > Also - can you comment on the following: > > WARNING WARN

Re: [Catalyst] Model Instances vs. Model Classes - Round 2

2011-05-19 Thread Alejandro Imass
s state, the entity can be a data object or a business process object). What I'm not exactly sure is about the way we are using Catalyst Model Instances. For us all this trouble of instances is mainly to load as much business logic code as possible wh

Re: [Catalyst] REST-like url question

2011-05-18 Thread Alejandro Imass
On Wed, May 18, 2011 at 3:32 PM, Alejandro Imass wrote: > On Wed, May 18, 2011 at 2:50 PM, John M. Dlugosz > wrote: >> [...] > Yeah, let me re-phrase. The REST URLs must look more like paths on a > drive rather than an API. The URL parameters can be used freely (and >

Re: [Catalyst] REST-like url question

2011-05-18 Thread Alejandro Imass
On Wed, May 18, 2011 at 2:50 PM, John M. Dlugosz wrote: > >> Parameters and stuff are all not that important if the parameters are >> conditions / extra information needed to retrieve/update the resource. >> In your case I don't think it makes much difference, except for the >> way you will handle

Re: [Catalyst] REST-like url question

2011-05-18 Thread Alejandro Imass
On Wed, May 18, 2011 at 12:22 PM, Bill Moseley wrote: > Quick question, and I hope this doesn't turn into a debate about REST > specifics, just looking for a sane URL scheme. > Say I have an app for managing technical conferences.   There's one "user" Parameters and stuff are all not that import

Re: [Catalyst] Model Instances vs. Model Classes - Round 2

2011-05-18 Thread Alejandro Imass
On Wed, May 18, 2011 at 1:42 AM, Octavian Rasnita wrote: > From: "Alejandro Imass" >> >> 3) It is written somewhere (I couldn't find it before writing this but >> I know is in the POD somewhere) that it is not a good idea to pass the >> complete $c refer

[Catalyst] Model Instances vs. Model Classes - Round 2

2011-05-17 Thread Alejandro Imass
ary pieces of $c. What are the implications of passing the complete $c ? Any other comments greatly appreciated. I think this could make an interesting article for the Wiki so I want to get all the real experts opinions on this before I attempt to create it. Thanks, -- Aleja

Re: [Catalyst] Job Queue recommendation

2011-01-24 Thread Alejandro Imass
On Mon, Jan 24, 2011 at 5:40 AM, Tomas Doran wrote: > > On 21 Jan 2011, at 15:30, Alexander Hartmaier wrote: > >> t0m created CatalystX::JobServer which is currently only available on > > This entirely requires RabbitMQ (well, any AMQP broker should be fine, but > I've only tried Rabbit) to do the

[Catalyst] Has anyone here had problems with the MooseX::NonMoose wrapper around DBIx::Class::Schema ?

2011-01-22 Thread Alejandro Imass
Hi folks, I installed Catalyst on a new machine yesterday and Catalyst was unable to load the Schema. Using the perl debugger I detected that the class: MooseX::NonMoose::Meta::Role::Class Is choking with (circa line 40 in most latest versions): return @options if $self->get_method('

Re: [Catalyst] Unit tests for controllers based on Catalyst::Controller::REST?

2011-01-01 Thread Alejandro Imass
On Tue, Dec 28, 2010 at 7:47 PM, James Russo wrote: > Hello, > >        Does anyone there some examples of unit tests for a controller which > is based on Catalyst::Controller::REST? There was some >discussion on the > list a few years ago, and I think the conclusion was to use LWP directly and

[Catalyst] Logging and other stuff in a Model Class

2010-12-28 Thread Alejandro Imass
pendent class to use similar logging semantics (debug, info, warn, error, fatal). TIA, Alejandro Imass ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive

Re: [Catalyst] Catalyst::Component/Model Instances and Attributes per Request

2010-07-18 Thread Alejandro Imass
On Sun, Jul 18, 2010 at 6:47 PM, Tomas Doran wrote: > > On 18 Jul 2010, at 21:42, Alejandro Imass wrote: >> [..,] > > No, Catalyst::Model::Factory does _exactly_ and _only_ this for you, so you > probably/possibly want to use that rather than writing it yourself :) > Yea

Re: [Catalyst] Catalyst::Component/Model Instances and Attributes per Request

2010-07-18 Thread Alejandro Imass
On Sun, Jul 18, 2010 at 3:36 PM, Tomas Doran wrote: > > On 18 Jul 2010, at 19:58, Alejandro Imass wrote: > >> So in conclusion, it seems reasonable to say that I should not worry >> about the global vars (the Moose object attributes) in my Model >> Instance to get overr

Re: [Catalyst] Catalyst::Component/Model Instances and Attributes per Request

2010-07-18 Thread Alejandro Imass
On Sun, Jul 18, 2010 at 2:23 PM, Alejandro Imass wrote: > On Sun, Jul 18, 2010 at 12:29 PM, Tomas Doran wrote: >> >> On 17 Jul 2010, at 18:58, Alejandro Imass wrote: >>> [..] >> Perl code isn't in the 'code segment' of your process. >>

Re: [Catalyst] Catalyst::Component/Model Instances and Attributes per Request

2010-07-18 Thread Alejandro Imass
On Sun, Jul 18, 2010 at 12:29 PM, Tomas Doran wrote: > > On 17 Jul 2010, at 18:58, Alejandro Imass wrote: >> >> I am confused now. mod_worker will share the same code segment for >> sure, and if you said earlier that in some scenarios where the code >> segment is sh

Re: [Catalyst] Catalyst::Component/Model Instances and Attributes per Request

2010-07-17 Thread Alejandro Imass
On Fri, Jul 16, 2010 at 3:32 AM, Tomas Doran wrote: > > On 15 Jul 2010, at 21:37, Alejandro Imass wrote: > >> On Mon, Jul 12, 2010 at 3:08 PM, Tomas Doran >> wrote: >>> >>> Each process is in a separate memory space if you're using FCGI or >>

Re: [Catalyst] Catalyst::Component/Model Instances and Attributes per Request

2010-07-15 Thread Alejandro Imass
, or use Catalyst::Component::InstancePerContext if you'd like > the instance you build to be scoped to the request. > Understood. But in that case it's better to use a class than an instance. Thanks for your kind replies! Alejandro Imass __

[Catalyst] Catalyst::Component/Model Instances and Attributes per Request

2010-07-10 Thread Alejandro Imass
e. Well, maybe it's a stupid question but just to be sure... any comments greatly appreciated! Thanks, Alejandro Imass ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive:

Re: [Catalyst] Debian recommendation

2009-10-28 Thread Alejandro Imass
yst not CPAN or Perl in Debian. Let's end it here - pretty please! Best, Alejandro Imass ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/cataly

Re: [Catalyst] Debian recommendation

2009-10-28 Thread Alejandro Imass
On Tue, Oct 27, 2009 at 10:25 PM, J. Shirley wrote: > On Tue, Oct 27, 2009 at 5:45 PM, Andrew Rodland > wrote: >> >> On Tuesday 27 October 2009 07:14:02 pm Evan Carroll wrote: >> > > Then I suppose it's a good thing that no such thing happens. >> > >> > Sure it happens; >> >> Taking the world's m

Re: [Catalyst] Debian recommendation

2009-10-27 Thread Alejandro Imass
es of this. The rest of the Catalyst packages I install with CPAN and have yet to run into any problems. I have been using Debian since 2.0 and Catalyst since it came out. Best, Alejandro Imass On Mon, Oct 26, 2009 at 5:08 PM, Evan Carroll wrote: > I just wanted to buzz in and be slightly

Re: [Catalyst] Catalyst::Controller::REST JSON Serialization/Encoding Problem

2009-09-28 Thread Alejandro Imass
to be the encode_json function. On Mon, Sep 28, 2009 at 11:58 AM, Tomas Doran wrote: > Alejandro Imass wrote: >> >> Well, that's it for now, but I can verify that by using to_json it >> actually solves my encoding problems. > > Well, I have this working fine for

Re: [Catalyst] Catalyst::Controller::REST JSON Serialization/Encoding Problem

2009-09-28 Thread Alejandro Imass
I have sent you an example directly to your mail. If anyone else wants to test, let me know and I will forward to you as well. Thanks, Alejandro Imass On Mon, Sep 28, 2009 at 11:58 AM, Tomas Doran wrote: > Alejandro Imass wrote: >> >> Well, that's it for now, but I can

Re: [Catalyst] Catalyst::Controller::REST JSON Serialization/Encoding Problem

2009-09-28 Thread Alejandro Imass
Sure, I can work out an example but I'm up to my neck in work so it won't be immediate... On Mon, Sep 28, 2009 at 11:58 AM, Tomas Doran wrote: > Alejandro Imass wrote: >> >> Well, that's it for now, but I can verify that by using to_json it >> actually solv

[Catalyst] Catalyst::Controller::REST JSON Serialization/Encoding Problem

2009-09-28 Thread Alejandro Imass
tically use JSON::XS # if available, at virtually no speed overhead either, so you should # be able to just: use JSON; Well, that's it for now, but I can verify that by using to_json it actually solves my encoding problem

Re: [Catalyst] Hi, First time using Catalyst and get an install error

2009-09-23 Thread Alejandro Imass
On Tue, Sep 22, 2009 at 5:22 PM, Octavian Râsnita wrote: [snip] > If you want to go into the directory where the module ModuleName was built, > you don't need to exit the CPAN shell, but just use: > > cpan> look ModuleName > > It will open a sub-shell. > There you can use perl Makefile.PL, make, m

Re: [Catalyst] Hi, First time using Catalyst and get an install error

2009-09-22 Thread Alejandro Imass
om that single module's output here and many will surely help. Best, Alejandro Imass On Tue, Sep 22, 2009 at 2:02 PM, David Silva wrote: > Hi again, i updated CPAN to 1.9402, but the error apeared again, só i > decided to force the installation. Have to see if everything is working.

Re: [Catalyst] Modelling the right way

2009-09-07 Thread Alejandro Imass
package it and release it ASAP. Best, Alejandro Imass On Thu, Sep 3, 2009 at 6:20 AM, Matthias Dietrich wrote: > Hi, > > the models in my past applications were quite small and if they need > interaction with other models (like DBIC and stuff), I used ACCEPT_CONTEXT > to either get th

Re: [Catalyst] Catalyst and workflow ...

2009-08-18 Thread Alejandro Imass
We integrate Workflow.pm into Catalyst at p2ee: http://www.p2ee.org Take a look at the Business Process Resources (BPR) On Sun, Aug 16, 2009 at 1:04 PM, Kiffin Gish wrote: > I was just wondering if there are any catalyst applications or other > examples out there using some kind of workflow mec

Re: [Catalyst] XSD Validation of Forms

2009-08-13 Thread Alejandro Imass
Ok, this is what I do, so to spark some ideas. I can't disclose many details because of legal issues but generally speaking XXXLIB is a special module (can't disclose it's name) where all the XML stuff is done. It uses LibXML as backend (gnome libxml2 via XS). xxxapp is the app name xxx_xsd is

Re: [Catalyst] Loading template according to request path

2009-08-11 Thread Alejandro Imass
very cool!, live and learn, thanks!! On Tue, Aug 11, 2009 at 4:59 PM, J. Shirley wrote: > On Tue, Aug 11, 2009 at 1:34 PM, Alejandro Imass > wrote: >> >> Well in Catalyst an action is usually mapped to a controller method, >> so I really don't understand your req

Re: [Catalyst] Loading template according to request path

2009-08-11 Thread Alejandro Imass
;authority; #do whatever you want with that info... See perldoc URI Best, Alejandro Imass On Tue, Aug 11, 2009 at 3:09 PM, Matt Whipple wrote: > Is there a presently existing mechanism which flexibly allows for template > selection according to the request URI?  For instance a req

Re: [Catalyst] XSD Validation of Forms

2009-08-11 Thread Alejandro Imass
with all of it. I think that sane RDBMS modeling is still not going away for a while. regarding REST take a look at this project I'm working on and that is Catalyst-based: http://www.p2ee.org Cheers, Alejandro Imass On Mon, Aug 10, 2009 at 8:17 AM, John Napiorkowski wrote: > > >

[Catalyst] XSD Validation of Forms

2009-08-06 Thread Alejandro Imass
I did something cool these days for a client and was thinking that perhaps might be a cool plugin for Catalyst. I created a B2B app for a client that has both HTML and XML API. So I decided to convert the HTML/XHTML requests to XML, the same XML format as the XML API and validate both with the sam

Re: [Catalyst] Integrating with ASP.NET sessions and authentication

2009-07-07 Thread Alejandro Imass
Going out on a limb here but it's probable that the .NET apps are authenticating to an Active Directory or Primary Domain Controller, a Windoze domain in any case. They should offer the LDAP protocol and you could use that for authentication. Session management will occur at your Catalyst Server d

Re: [Catalyst] Configuration process

2009-07-02 Thread Alejandro Imass
t; On 3 Jul 2009, at 15:36, Alejandro Imass wrote: > >> You are right and this is something new. I've only ported my apps to >> new cat releases but haven't started one from scratch in a while. >> >> I just tested, and sure enough, it creates a .conf file instead o

Re: [Catalyst] Configuration process

2009-07-02 Thread Alejandro Imass
put a : in front of "name" if # you want to use yaml like in old versions of Catalyst Guess I have to catchup to all these changes... :( On Fri, Jul 3, 2009 at 2:47 PM, Octavian Râsnita wrote: > From: "Alejandro Imass" >> >> Why don't you just use the sta

Re: [Catalyst] Configuration process

2009-07-02 Thread Alejandro Imass
Why don't you just use the standard yml config file? On Thu, Jul 2, 2009 at 1:00 PM, Frederic Demians wrote: > Hello, > > It must be a newbie question... > > I have a simple application, let say MyApp. In lib/MyApp.pm, I ask for > standard config loading with: > > Catalyst qw/ ConfigLoader / > >

Re: [Catalyst] Scalable Catalyst

2009-07-01 Thread Alejandro Imass
tical mod_perl" O'Reilly Edition May 2003. Look at 24.3 "What's new in mod_perl 2.0", specifically 24.3.1 "Thread Support". When I read this section, I decided to give this a try, as it was perfect for our blocking processes problem (i.e. having many light-wei

Re: [Catalyst] REST and text/html not supported

2009-06-29 Thread Alejandro Imass
urn 1; } YMMV, Alex On Tue, Jun 30, 2009 at 4:28 PM, Angel Kolev wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Thanks! Now it works. > > Alejandro Imass wrote: >> You can override the default serializers: >> >> __PACKAG

Re: [Catalyst] REST and text/html not supported

2009-06-29 Thread Alejandro Imass
You can override the default serializers: __PACKAGE__->config( 'default' => 'application/json', 'stash_key' => 'rest', 'map' => { 'text/html' => [ 'View', 'TT', ], 'text/xml' => [ 'View', 'TT', ], }, ); On Tue, Jun 30, 2009 at 4:07 PM, Angel Kolev wrote: > -BEGIN PGP

Re: [Catalyst] Scalable Catalyst

2009-06-29 Thread Alejandro Imass
On Tue, Jun 30, 2009 at 2:42 PM, Tomas Doran wrote: > > You're doing it wrong. > > Don't block app server threads on a remote service if you have a slow remote > service, the only thing that lies down that route is doom and fail. > I don't see the problem. In fact, this was the _main and central_

Re: [Catalyst] Scalable Catalyst

2009-06-29 Thread Alejandro Imass
nd your insight explains this very well. BTW, Ashley suggested I write a how-to on the WIki or something like that. Could some suggest exactly where, and I may have time to that this week. Best, Alejandro Imass On Fri, May 1, 2009 at 8:01 AM, Tomas Doran wrote: > Alejandro Imass wrote: >>

Re: [Catalyst] best practice: where to put constants

2009-06-04 Thread Alejandro Imass
at 11:44 AM, Lance A. Brown wrote: > Alejandro Imass wrote: >> Although I think there is no best practice as such, I mean there are >> many ways to do this in Perl in general, but Catalyst offers the nice >> feature of the main config file in YAML, so I keep all my constants >

Re: [Catalyst] best practice: where to put constants

2009-06-04 Thread Alejandro Imass
Yeah well, that is [TIMTOWTDI] the beauty of the Perl world, is precisely that the is not _one_ best practice. Apart from Conway's PBPs which a) apply to mostly any language anyway, and b) are just that: _recommended_ PBPs, so it really doesn't contradict _the_ Zen of Perl (pun intended), neither

Re: [Catalyst] best practice: where to put constants

2009-06-04 Thread Alejandro Imass
t ony to store your constants but to structure them intelligently. Of course, all the constants you put in your YAML file will be vailable through $c->config->{foo} Best, Alejandro Imass On Fri, Jun 5, 2009 at 10:50 AM, Jarom Smith wrote: > Hi all: > > This is probably my la

Re: [Catalyst] Scalable Catalyst

2009-04-29 Thread Alejandro Imass
Best, Alejandro Imass On Sat, Apr 18, 2009 at 11:22 AM, Juan Miguel Paredes wrote: > On Sat, Apr 18, 2009 at 2:42 AM, Graeme Lawton wrote: >> Yeah, I was reading this the other day. Does anyone know if they use DBIC? >> > > Apparently, yes... > > "...The te

Re: [Catalyst] DELETE through REST and Jemplate

2009-04-12 Thread Alejandro Imass
creen like the ones you see in the tag. That was just a POC to demonstrate the concept of Business Element Resources, but they are cool nonetheless ;-) Best, Alejandro Imass On Tue, Mar 31, 2009 at 9:54 AM, Emmanuel Quevillon wrote: > Hi, > > I am playing with REST and Jemplate from

Re: [Catalyst] DELETE through REST and Jemplate

2009-04-12 Thread Alejandro Imass
On Thu, Apr 2, 2009 at 5:51 PM, Lee Aylward wrote: > On Mon, Mar 30, 2009 at 04:24:42PM +0200, Emmanuel Quevillon wrote: >> Hi, >> >> I am playing with REST and Jemplate from the great Tuts from JRock's >> book. [...] > As has already been mentioned, you'll have to use a seperate javascript > lib

Re: [Catalyst] Catalyst needing LOTS of RAM

2009-02-20 Thread Alejandro Imass
e or leaky modules. Best, Alejandro Imass On Wed, Feb 18, 2009 at 10:14 AM, Neo [GC] wrote: > Hello guys, > > after fiddling around with Catalyst+DBIx starup time, here comes my next > issue: > > Is there some way to tune Catalyst to use less RAM? Is there even some kind > of

Re: [Catalyst] DBIC::Schema issue - out of ideas.

2009-02-17 Thread Alejandro Imass
Are you using a static schema? (it seems). If so, and unless you have customized the generated Schema files, it is usually safe to delete your Schema classes and generate the ORM model again. If you re-generate your static schema, on top of the old one, the model class will not overwrite and you

Re: [Catalyst] TT Latex Experiences with Catalyst

2009-02-17 Thread Alejandro Imass
pplication/pdf'); > $c->response->header('Content-Disposition', "attachment; > filename=".$c->stash->{customer_invoice_filename}); > } > > And in TT: > [% USE Latex %] > [% FILTER latex("pdf") %] > \documentclas

[Catalyst] Re: Model Helper and PostgreSql Schemas

2009-02-15 Thread Alejandro Imass
record: Time taken: a bit more than an hour Tools used: warn, Data::Dumper On Mon, Feb 16, 2009 at 12:28 PM, Alejandro Imass wrote: > Hi, > > I am starting a new project that uses database schemas. The Model > helper script does not pass down parameters to > DBIx::Class::Schema:

[Catalyst] Model Helper and PostgreSql Schemas

2009-02-15 Thread Alejandro Imass
hacked their own version of the helper script, or perhaps the helper script actually supports schemas somehow? Best, Alejandro Imass ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searcha

[Catalyst] TT Latex Experiences with Catalyst

2009-02-15 Thread Alejandro Imass
provide a general idea on how it was accomplished. Thanks, Alejandro Imass ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev

Re: [Catalyst] Tutorial

2008-05-04 Thread Alejandro Imass
IMHO we should all be thinking of outputting UIML or XUL from TT and push a lot more work to the client, letting your server REST a lot ;-) On Fri, May 2, 2008 at 6:09 PM, Ali M. <[EMAIL PROTECTED]> wrote: > Considere reading the mailist thread about the possibilities for a new book > here is the

Re: Fw: high school reunion [Catalyst] (no subject)

2008-05-04 Thread Alejandro Imass
Too bad one cannot unsubscribe them from the Internet altogether. On Sun, May 4, 2008 at 5:25 PM, Matt S Trout <[EMAIL PROTECTED]> wrote: > Unsubscribed and banned. Bai. > > -- > Matt S Trout Need help with your Catalyst or DBIx::Class project? >Technical Director

Re: [Catalyst] Serving html pages

2008-01-11 Thread Alejandro Imass
Usually you would try to serve your static content directly with your Web Server and let only the dynamic part with Catalyst. For example you could have a configuration in your apache vhost as such: Suppose your app's name is vdc... [...] # root of your app DocumentRoot /var/ww

Re: [Catalyst] Going through tutorial, part 2 and getting error

2008-01-06 Thread Alejandro Imass
categorias, 'id_categoria'); # Relación 1..n con sub_categorias_creadores __PACKAGE__->has_many(sub_categorias_creadores => 'vdcDB::sub_categorias_creadores', 'id_sub_categoria'); 1; Perl. There is no substitute. Alejandro Imass P.S. Sorry about the spanish comme