Re: [Catalyst] formfu-JSON

2008-11-12 Thread Paul Tichonczuk
Thanks for the response guys.

I finally got things strait in my head.

General solution. Setup a convention where only json_data gets output
(json config in main pm)
store what I need in json_data
ie json_data = {form: $form.render()};

side note. Jemplate is not compatible with mootools nor prototype.

2008/11/10 Charles Bailey [EMAIL PROTECTED]:
 On Mon, Nov 10, 2008 at 3:24 PM, Paul Tichonczuk [EMAIL PROTECTED] wrote:
 Hi,
 I'm new to Catalyst.
 I've gone through both the Catalyst Tutorial and the Catalyst book.

 I'm trying out FormFu + Jemplate.

 Basic problem I've come up to is redering a FormFu form into JSON for
 sending to the client.

 I keep getting:
 [error] Caught exception in MyApp::View::JSON-process encountered
 object 'MyApp::Controller::Books=HASH(0x9f4406c)', but neither
 allow_blessed nor convert_blessed settings are enabled at
 /usr/local/share/perl/5.8.8/JSON/Any.pm line 426.

 It looks as though you're trying to render your controller object into
 the JSON response.  By default, C::V::JSON tries to serialize all keys
 in the stash; have you perhaps stored some object references there?

 If your intent is to render only specific values from the hash, you
 should look at the expose_stash configuration option to C::V::JSON.

 If you do want to serialize object, then you'll need to override the
 default encode_json() and use a JSON encoder with the convert_blessed
 or allow_blessed options set, perhaps combined with TO_JSON() in the
 object class(es).  I've attached a (very underdeveloped and
 underdocumented) utility class that I've found helpful  when dealing
 with simple hash-based classes.

 --
 Regards,
 Charles Bailey
 Lists: bailey _dot_ charles _at_ gmail _dot_ com
 Other: bailey _at_ newman _dot_ upenn _dot_ edu

 ___
 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 site: http://dev.catalyst.perl.org/





-- 
Paul Tichonczuk  |  tracer.ca

___
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 site: http://dev.catalyst.perl.org/


[Catalyst] Water the grass roots, please

2008-11-12 Thread Matt S Trout
Perlbuzz was kind enough to post an article by jshirley providing a
different view of Catalyst; I've lobbed it at reddit:

http://www.reddit.com/r/programming/comments/7czb5/populist_not_dictatorial_the_catalyst_web/

-- 
  Matt S Trout   Need help with your Catalyst or DBIx::Class project?
   Technical Directorhttp://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Want a managed development or deployment platform?
http://chainsawblues.vox.com/http://www.shadowcat.co.uk/servers/

___
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 site: http://dev.catalyst.perl.org/


Re: [Catalyst] Water the grass roots, please

2008-11-12 Thread Zbigniew Lukasiak
On Wed, Nov 12, 2008 at 9:41 PM, Matt S Trout [EMAIL PROTECTED] wrote:
 Perlbuzz was kind enough to post an article by jshirley providing a
 different view of Catalyst; I've lobbed it at reddit:

 http://www.reddit.com/r/programming/comments/7czb5/populist_not_dictatorial_the_catalyst_web/

OK - I voted for it.  But doesn't it make us seem a bit desperate?  I
mean this direct invocation to mailing list subscribers not the
article.


-- 
Zbigniew Lukasiak
http://brudnopis.blogspot.com/
http://perlalchemy.blogspot.com/

___
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 site: http://dev.catalyst.perl.org/


Re: [Catalyst] Water the grass roots, please

2008-11-12 Thread Oliver Gorwits
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


Zbigniew Lukasiak wrote:
 OK - I voted for it.  But doesn't it make us seem a bit
 desperate?  I mean this direct invocation to mailing list
 subscribers not the article.

No I think voting shows exactly the kind of evangelism jshirley was
talking about, and that's not to be seen as a negative. It's praise
for something we admire (both Catalyst, and the article).

- --
Oliver Gorwits, Network and Telecommunications Group,
Oxford University Computing Services
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJG1Sh2NPq7pwWBt4RAkqmAKCD0LHwR/CnpREZlWJJF54TpbHXOQCgo7G3
m1t3wPoydy1kSIo044q04zk=
=fJEe
-END PGP SIGNATURE-

___
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 site: http://dev.catalyst.perl.org/


RE: [Catalyst] [META] Advent calendar

2008-11-12 Thread Mesdaq, Ali
I volunteer to write an article on Catalyst + Mochikit + JSON to build AJAX Web 
Apps. I can probably only do a simple example to get people started don’t have 
enough free time to write an in-depth article. If any of the Advent Calendar 
organizers want me to write it just contact me and we can discuss an outline to 
make sure its covering what we want.

Thanks,
--
Ali Mesdaq (CISSP, GIAC-GREM)
Sr. Security Researcher
Websense Security Labs
http://www.WebsenseSecurityLabs.com
--


-Original Message-
From: Kieren Diment [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 04, 2008 9:48 PM
To: The elegant MVC web framework
Subject: Re: [Catalyst] [META] Advent calendar

On Tue, Nov 04, 2008 at 04:19:38PM -0600, Jonathan Rockway wrote:
 * On Tue, Nov 04 2008, Dermot wrote:
  Is there going to be an advent calendar for this year?
 
 Sure, why not?
 

It's been in planning for a while.
http://dev.catalyst.perl.org/wiki/advent08plan

Please feel free to add suggestions as they arise.

___
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 site: http://dev.catalyst.perl.org/


 Protected by Websense Hosted Email Security -- www.websense.com 

___
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 site: http://dev.catalyst.perl.org/