Re: [Catalyst] Users hierarchy

2008-06-03 Thread John Tate
Check out Nested Trees, Joe Celko has some articles about them. Mojomojo has a pretty complete implementation of one in dbix:class if I remember. Along the same lines, you could look at modified pre-order tree traversal. There's a nice sitepoint article about the method:

[Catalyst] ANNOUNCE: Catalyst::Devel 1.07 and Catalyst::Manual 5.7012 released to CPAN

2008-06-03 Thread Kieren Diment
The catalystarati would like to announce that new versions of Catalyst::Devel and Catalyst::Runtime have been released to CPAN. The important changes to Catalyst::Devel are: 1. Config::General .conf files are generated by catalyst.pl instead of yaml. If you want to use yaml or any other

Re: [Catalyst] Manipulating CGI cookie via Catalyst

2008-06-03 Thread Mitch Jackson
On Mon, Jun 2, 2008 at 11:54 PM, [EMAIL PROTECTED] wrote: So does it mean that Javascript will regard different ports on the same domains as having the same domains while Catalyst apps will treat different ports as different domains ? Cookies are not different depending on the programming

Re: [Catalyst] ANNOUNCE: Catalyst::Devel 1.07 and Catalyst::Manual 5.7012 released to CPAN

2008-06-03 Thread Bill Moseley
On Tue, Jun 03, 2008 at 08:37:38PM +1000, Kieren Diment wrote: Translation: pod and YAML are both whitespace dependent in subtly different ways that interact in a manner which is confusing for new users. Yes, whitespace issues in YAML can be frustrating. Can you give an example of a

[Catalyst] Re: ANNOUNCE: Catalyst::Devel 1.07 and Catalyst::Manual 5.7012 released to CPAN

2008-06-03 Thread Aristotle Pagaltzis
* Bill Moseley [EMAIL PROTECTED] [2008-06-03 16:40]: Can you give an example of a case where POD and YAML were causing new users confusion? See [EMAIL PROTECTED] and subsequent thread for previous discussion of the issue; archived at

Re: [Catalyst] ANNOUNCE: Catalyst::Devel 1.07 and Catalyst::Manual5.7012 released to CPAN

2008-06-03 Thread Octavian Rasnita
From: Bill Moseley [EMAIL PROTECTED] Yes, whitespace issues in YAML can be frustrating. Can you give an example of a case where POD and YAML were causing new users confusion? YAML is hard to understand for a blind developer because if he arrows up or down the text, he hears the current line

Re: [Catalyst] ANNOUNCE: Catalyst::Devel 1.07 and Catalyst::Manual5.7012 released to CPAN

2008-06-03 Thread Marcus Ramberg
On 3. juni. 2008, at 21.03, Octavian Rasnita wrote: From: Bill Moseley [EMAIL PROTECTED] Yes, whitespace issues in YAML can be frustrating. Can you give an example of a case where POD and YAML were causing new users confusion? YAML is hard to understand for a blind developer because if he

Re: [Catalyst] ANNOUNCE: Catalyst::Devel 1.07 and Catalyst::Manual5.7012 released to CPAN

2008-06-03 Thread Jonathan Rockway
* On Tue, Jun 03 2008, Marcus Ramberg wrote: On 3. juni. 2008, at 21.03, Octavian Rasnita wrote: From: Bill Moseley [EMAIL PROTECTED] Yes, whitespace issues in YAML can be frustrating. Can you give an example of a case where POD and YAML were causing new users confusion? YAML is hard to

Re: [Catalyst] Users hierarchy

2008-06-03 Thread sindharta_tanuwijaya
Hi, Haven't tried it yet, but I think the code in Catalyst should look like: my $edited = $c-model('DB::User')-find({id=$target_user_id}); my $ancestor = $c-model('DB::User')-find({id=$edited-{parent_id}}); my $found = 0; while ($found==false $ancestor) { if ($ancestor == $c.user.user_id)