eck out the docs for 'default_view', assuming you are using the RenderView
Action class.
--
Peter Karman . [EMAIL PROTECTED] . http://peknet.com/
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listin
schema is a little unusual, but you were right in pointing out that
Net::LDAP::Entry only returns one value when called in scalar context. I
applied the patch
after testing it locally against my POSIX schema.
http://dev.catalystframework.org/svnweb/Catalyst/revision?rev=8100
Thanks.
--
Peter
On 06/16/2008 06:52 PM, Christopher Laco wrote:
> Committed to trunk.
>
> RT filed for MIME::Types
>
claco++
--
Peter Karman . [EMAIL PROTECTED] . http://peknet.com/
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists
s Catalyst Advent calendar here:
http://www.catalystframework.org/calendar/2007/7
Also new in this version:
* support for YUI 2.5.x
* Excel export of db records
* lots of UI improvements
Feedback, comments welcome.
--
Peter Karman . [EMAIL PROTECTED] . http://
Daniel McBrearty wrote on 6/7/08 5:25 AM:
of course. But how do you regex an inclusive list for any character in
any human language ?
[\w]+
works pretty well iirc, if your locale includes UTF-8.
--
Peter Karman . http://peknet.com/ . [EMAIL PROTECTED
On 05/19/2008 06:04 PM, John Napiorkowski wrote:
> I'd just like to clarify this is the behavior we want and see if we can cook
> up a test for it. Is this giving anyone else trouble?
>
FYI, I just sent a test patch exposing the problem to the catalyst-dev list.
--
Peter Kar
On 05/19/2008 06:04 PM, John Napiorkowski wrote:
> I'd just like to clarify this is the behavior we want and see if we can cook
> up a test for it. Is this giving anyone else trouble?
>
Yes, this is biting my app too.
--
Peter Karman . [EMAIL PROTECTED] . htt
On 05/05/2008 02:33 PM, luke saunders wrote:
> On Mon, May 5, 2008 at 7:28 PM, Peter Karman <[EMAIL PROTECTED]> wrote:
>>
>> On 05/05/2008 12:16 PM, J. Shirley wrote:
>>
>> >
>> > The discussions about a better CRUD base class with REST and RPC
eserved PK value since seq PKs start at 1 and zero
evaluates as
false in Perl.
my ($self, $c, $oid) = @_;
if (!$oid) {
# could be absent or zero, either is fine
# ...
}
Also, I adopted drolsky's suggestion of /create_form instead of /create in
order to keep
the RESTful no-
plementation, rather than starting a new project. There are already
too many
CRUD-style Catalyst modules on CPAN imho.
--
Peter Karman . [EMAIL PROTECTED] . http://peknet.com/
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys
.
--
Peter Karman . http://peknet.com/ . [EMAIL PROTECTED]
___
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
%]
Of course, you have to be careful when adding virtual methods, that you don't
step on the
default ones. So I just have a couple I often use (dump_data and as_json).
--
Peter Karman . [EMAIL PROTECTED] . http://peknet.com/
___
ry sending large numbers of email
(see other
replies on this thread for suggestions on that). Usually it's a confirmation
email for
some action the requester has made.
--
Peter Karman . [EMAIL PROTECTED] . http://peknet.com/
___
List: Cataly
CKAGE__->config(
session => {
storage => '/tmp/session'.$$,
cache_size => '10m',
page_size => '256k',
expires => 3600
and gives user something
to chew on.
Jon, what do you think?
--
Peter Karman . [EMAIL PROTECTED] . http://peknet.com/
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: h
On 03/12/2008 01:24 PM, Zbigniew Lukasiak wrote:
>
> We are closing to it. Basically the adaptor needs to store the table
> name in it's instance - that's all.
>
So one adaptor per table? How is that different than one model per table?
--
Peter Karman . [EMA
On 03/12/2008 11:39 AM, Zbigniew Lukasiak wrote:
> On Wed, Mar 12, 2008 at 5:06 PM, Peter Karman <[EMAIL PROTECTED]> wrote:
>>
>> On 03/12/2008 10:27 AM, Zbigniew Lukasiak wrote:
>>
>> > If you'd make them to use the same db connection than indeed this
rage, connections, etc. It's up
to the
implementation to handle that part.
>> If you like the model_adaptor() syntax in the Controller API, how would you
>> implement a
>> ModelAdaptor class and how would you change the Controller API to use it?
>>
You've left t
ld be simplified, that
the ::Object
class could go away, and that the Model class could take over the c/r/u/d
methods that
Object currently performs.
If you like the model_adaptor() syntax in the Controller API, how would you
implement a
ModelAdaptor class and how would you change the Controller A
@_;
my $thing = $c->model('Foo')->fetch( id => $id );
$c->stash->{object} = $thing; # NOT a CX::CRUD::Object
}
and if wanted to update $thing:
$c->model('Foo')->update( $thing );
I could live with that. Does it meet your needs? Does it make
to forward to the REST API
> (with suitable massaging of the stash).
CX::CRUD::REST is part of the core dist. It is designed to make swapping
between REST and
RPC-style APIs as trivial as:
use base qw( CatalystX::CRUD::REST CatalystX::CRUD::Controller::SomeThing );
where SomeThing is cur
t is (a) terser and (b) seems
clearer to
me what is happening.
But if the design goal of common expectations for $form and $object is to be
achieved, we
need some way of defining that API. I'm open to suggestions of how to get rid of
CX::CRUD::Object and still defining a way for
ormFu make sure to make it Model agnostic. That is, it
could be used with
DBIC or RDBO or whatever. That's the whole point of CatalystX::CRUD. It would
appear that
HTML::FormFu::Model::* is a placeholder for that same idea wrt FormFu.
--
Peter Karman . [EMAIL PROTECTED] . http://peknet.
On 03/10/2008 07:14 AM, Zbigniew Lukasiak wrote:
> Hi Peter,
>
> On Wed, Feb 20, 2008 at 7:48 PM, Peter Karman <[EMAIL PROTECTED]> wrote:
>> Also look at CatalystX::CRUD::Model::DBIC. Feedback appreciated.
>>
>
> I had today another look at CatalystX::CRUD
anted
to use DBIC and C::C::HTML::FormFu, so I made my own. Anyway, kudos!
Consider contributing a CX::CRUD::Controller::FormFu then! :) If you based yours
off the Rose::CRUD API, you're mostly there.
--
Peter Karman . http://peknet.com/ . [EM
sistent
objects, etc. IME, there isn't much you want like that.
--
Peter Karman . http://peknet.com/ . [EMAIL PROTECTED]
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchabl
a separate 'expires' entry in the cache. AFAIK it
is the only session store class to do that.
I don't know if that is a fault with how the Cache store itself is implemented,
or with the implementation of the superclass.
--
Peter Karman . http://peknet
On 02/20/2008 09:17 AM, Alex Povolotsky wrote:
> Hello!
>
> Scaffold seems to be a good thing, but it is using CDBI. Maybe something
> like it with DBIC exists?
>
Also look at CatalystX::CRUD::Model::DBIC. Feedback appreciated.
--
Peter Karman . [EMAIL PROTECTED] . ht
end_path_info} ) {
+$base_path = $c->config->{prepend_path_info} . $base_path;
+}
+
my $path = $base_path . ( $ENV{PATH_INFO} || '' );
$path =~ s{^/+}{};
--
Peter Karman . [EMAIL PROTECTED] . http://peknet.com/
___
ecated.
Catalyst::Authentication::Store::LDAP 0.1000 is now the latest and greatest.
Both just uploaded to CPAN etc.
--
Peter Karman . [EMAIL PROTECTED] . http://peknet.com/
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin
"strict refs"
> in use at /usr/local/share/perl/5.8.7/Class/Accessor/Fast.pm line 38.
>
> MyApp::Model::DBI connect_info is automatically loaded from the global
> config file. I need to get the models dbh into DBIx::Simple->new(). What
> am I doing wrong?
override new(
d effect (see
http://catalyst.perl.org/calendar/2007/7) so if Ext had some widget I really
wanted, I would just use both together.
--
Peter Karman . http://peknet.com/ . [EMAIL PROTECTED]
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.s
bs with the new names that just
subclass the
existing plugins?
pek
--
Peter Karman . [EMAIL PROTECTED] . http://peknet.com/
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive:
P's [warn] in my own apps. I'm still running
C::P::A 0.10002.
Thanks, jrockway.
--
Peter Karman . http://peknet.com/ . [EMAIL PROTECTED]
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/cat
On 01/24/2008 03:22 PM, Jonathan Rockway wrote:
> Peter Karman <[EMAIL PROTECTED]> writes:
>
>> On 01/24/2008 02:49 PM, Andrew Peebles wrote:
>>
>>> perl -MCPAN -e 'install Catalyst::Authentication::Store::LDAP'
>>> CPAN: Storable loaded ok
&
On 01/24/2008 03:45 PM, Andrew Peebles wrote:
> Peter Karman wrote:
>> On 01/24/2008 02:49 PM, Andrew Peebles wrote:
>>
>>
>>> perl -MCPAN -e 'install Catalyst::Authentication::Store::LDAP'
>>> CPAN: Storable loaded ok
>>> Going to rea
alyst::Authentication::Store::LDAP, don't
> know what it is.
you forgot the ::Plugin part
--
Peter Karman . [EMAIL PROTECTED] . http://peknet.com/
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/
d that
first if
you are upgrading from a previous version of
Catalyst::Plugin::Authentication::Store::LDAP."
I have added that line to svn. In the meantime, you can read about it here:
http://search.cpan.org/~jayk/Catalyst-Plugin-Authentication-0.10004/lib/Catalyst/Plugin/Authe
nd timeout if they can't reach it. So
you can
safely ignore those test failures for now.
--
Peter Karman . [EMAIL PROTECTED] . http://peknet.com/
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinf
Peter Karman wrote on 1/20/08 7:53 PM:
Aristotle Pagaltzis wrote on 1/20/08 7:36 PM:
* Peter Karman <[EMAIL PROTECTED]> [2008-01-20 22:10]:
there's no checking of HTTP method at all.
Yikes!!
http://example.org/foo/id/42/delete";>
I actually consider that a feat
Aristotle Pagaltzis wrote on 1/20/08 7:36 PM:
* Peter Karman <[EMAIL PROTECTED]> [2008-01-20 22:10]:
there's no checking of HTTP method at all.
Yikes!!
http://example.org/foo/id/42/delete";>
That API is intentionally RESTish
It’s not REST if it ignores the unifo
method at
all.
--
Peter Karman . http://peknet.com/ . [EMAIL PROTECTED]
___
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/
On 01/14/2008 08:01 AM, Angel Kolev wrote:
> the file archive_report.tt is in MyApp/root/src/sheets
> xls that i receive is named myapp_archives_export.xls
>
what are the contents of MyApp/root/src/sheets ? That's what will matter. Is
that template
actually getting called?
--
SQL with DBIx::Class to excel sheet, but
Catalyst-View-Excel-Template-Plus is not enough documented. Can anyone
show me examples pls.
Thanks.
Look at CatalystX::CRUD::View::Excel.
http://search.cpan.org/~karman/CatalystX-CRUD-View-Excel-0.03/
--
Peter Karman . http://peknet.com/ . [EM
DBIC.
I have uploaded a 0.01 version of CatalystX::CRUD::Model::DBIC that might be
useful to
look at. I'm sure the templates generated by RDGC could be adapted to use it
instead.
--
Peter Karman . [EMAIL PROTECTED] . http://peknet.com/
___
L
d or something like that, and then
> make sure that such objects can be used in place of plain DBI
> handles, so that anyone who needs this functionality can use that
> instead of maintaining the $N'th copy of the code?
>
How is this different than DBI's own connect_cach
s if it’s an arrayref
> it’s impossible to forget to unpack the array when you meant to
> do that.)
>
I did something similar in my last $job, where I just had a begin() block in my
Root.pm
that reset params->{foo} to always return an arrayref.
--
Peter Karman . [EMAIL PROTECTE
lidation based on the data types defined in the form classes (a'la
FormBuilder).
There's an Advent entry on RDGC coming up Soon.
--
Peter Karman . http://peknet.com/ . [EMAIL PROTECTED]
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://
ween MVC, CRUD and CMS?"
>
> I'm seeing this as an opportunity (hey, Peter Karman!) to get more word out
> that Catalyst is the blocks you build a CRUD app or CMS with. It is not a
> CMS app... but neither is Rails. And really, if we do get the word out we
> still can'
> - TT (index.tt):
>
>
> Hello
> [%c.subreq('/parts/test')%]
>
>
>
> I hope that the page including 'Hello' and 'Test' are cached.
> But, often I cannot see 'Test' in the cached page.
> The behavior often happens.
>
You l
as what
I had to go on in my template. The Catalyst::Dispatcher seems to be the correct
place to interrogate the action map for any given URL, maybe with
get_action_by_path().
Or am I way off base?
--
Peter Karman . [EMAIL PROTECTED] . http://peknet.com/
_
t.
* add Create/Search to menu
* bumped req versions of CatalystX::CRUD::*
--
Peter Karman . [EMAIL PROTECTED] . http://peknet.com/
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/l
object with the
> numeric id=
> /namespace//edit => brings up a form to edit object with numeric
> id=
> /namespace/create => brings up a form to create a new object
>
This controller implements that exact API:
http://search.cpan.org/~karman/Catalyst-Controller-Rose-0.04/
simple, but I just ain't getting it. Lots of hints on
> the list, but nothing I can find that's helping.
>
why not have a different Model class for each db?
--
Peter Karman . http://peknet.com/ . [EMAIL PROTECTED]
___
oblem.
good idea. thanks.
>
> P.S. If you want an example set up for authenticating against Active
> Directory (as opposed to posix LDAP setup, as in your documentation),
> let me know, and I'll send you the relevant config lines.
>
sure. send them to me offlist.
--
Peter
-enabled Catalyst app for you. YUI is Very Cool.
--
Peter Karman . [EMAIL PROTECTED] . http://peknet.com/
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-arc
On 11/09/2007 01:13 PM, Peter Karman wrote:
> I've just uploaded Rose::DBx::Garden::Catalyst 0.01 to CPAN.
>
And in the spirit of release early and often, 0.02 is now uploaded as well.
Thanks to John Siracusa for spotting some bugs in the CatalystX::CRUD::*
dependencies.
>Fr
tication method that simply takes over the username and password
> that Apache got from the user?
I believe Apache stores the user name from its auth in the REMOTE_USER env var.
--
Peter Karman . [EMAIL PROTECTED] . http://peknet.com/
__
On 11/09/2007 03:47 PM, Octavian Rasnita wrote:
> Do you have a recommendation for a good perl module that can be used
> easyly for creating a spider that should index a web site?
>
If you don't need UTF-8, check out Swish-e. It has a spider and parser.
--
Peter Karman . [E
doc?
>
Xapian is a library. The related Omega project has support for parsing docs of
various formats.
--
Peter Karman . [EMAIL PROTECTED] . http://peknet.com/
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bi
);
$garden->plant('MyApp');
# run your script
> perl mk_cat_garden.pl
# start your Catalyst dev server
> cd MyApp
> perl script/myapp_server.pl
# enjoy the fruits at http://localhost:3000/rdgc
Feedback, comments, patches, tests,
I posted this link awhile back too:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg06061.html
--
Peter Karman . [EMAIL PROTECTED] . http://peknet.com/
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman
t; just like stash.
>
> Really, it is very simple. And I thought I had it.
>
> $c->flash
>
$c->session
That does what you describe.
--
Peter Karman . http://peknet.com/ . [EMAIL PROTECTED]
___
List: Ca
On 10/24/2007 10:41 AM, Matt S Trout wrote:
> On Wed, Oct 24, 2007 at 09:09:34AM -0500, Peter Karman wrote:
>>
>>
>> ...
>>
>> This is a bit of an involved question. I'm looking mostly for feedback on
>> whether (a) what I am attempting is sane and
->{$base_component};
$class->components->{$base_component}
= $class->setup_component($base_component);
}
}
1;
__END__
--
Peter Karman . [EMAIL PROTECTED] . http://peknet.com/
___
List: Catalyst@lists.scsys.co.uk
L
gt; -Original Message-----
> From: Peter Karman [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 19, 2007 3:13 PM
> To: The elegant MVC web framework
> Subject: Re: [Catalyst] New auth stuff and LDAP store...
>
>
>
> On 10/19/2007 03:42 AM, Hartmaier Alexander wrote:
>
On 10/19/2007 03:42 AM, Hartmaier Alexander wrote:
> I will test it now.
>
> BTW the Changes file has a wrong date for 0.0600.
>
Thanks. I'll change in svn do it is correct for the next release.
--
Peter Karman . [EMAIL PROTECTED] .
Thanks to Adam, mst and jshirley for bringing me into the Cat fold.
Catalyst-Plugin-Authentication-Store-LDAP-0.0600 was just pushed to CPAN. This
brings the LDAP auth plugin up to speed with the current C::P::Authentication
realms API.
On 09/24/2007 12:22 PM, Peter Karman wrote:
>
> On
mponent};
$class->components->{$base_component}
= $class->setup_component($base_component);
}
}
1;
__END__
--
Peter Karman . [EMAIL PROTECTED] . http://peknet.com/
___
List: Catalyst@lists.scsys.co.uk
Listinfo: ht
On 10/16/2007 12:02 PM, Octavian Rasnita wrote:
> Does anyone know if I can find somewhere a list of perl modules which
> are recommended to be used with Catalyst for some tasks like
[snip]
http://www.perlfoundation.org/perl5/index.cgi?recommended_cpan_modules
--
Peter Karman .
On 10/15/2007 11:32 AM, Peter Karman wrote:
> I ended up writing a Net::LDAP::Server::Test based on the existing CPAN
> module.
> As soon as I get permission to release it, I'll post for comments.
>
http://search.cpan.org/~karman/Net-LDAP-Server-Test-0.01/
I'm es
On 10/15/2007 12:28 PM, Adam Jacob wrote:
> Peter, do you want CPAN privileges for C::P::A::S::LDAP?
>
sure.
> Do you have a commit bit in the Catalyst SVN?
>
I do not.
pek
> Adam
>
> On 10/15/07, Peter Karman <[EMAIL PROTECTED]> wrote:
>>
>> On
r on CPAN which may or may not be any use.
>
Thanks, Matt.
I ended up writing a Net::LDAP::Server::Test based on the existing CPAN module.
As soon as I get permission to release it, I'll post for comments.
--
Peter Karman . [EMAIL PROTECTED] . http://peknet.com/
__
get_user().
I started on some more tests to exercise some of the roles features, but the
attached at least exercises the changes in the patches I submitted.
--
Peter Karman . [EMAIL PROTECTED] . http://peknet.com/
#!/usr/bin/perl
use strict;
use warnings;
use Catalyst::Exception;
us
e static content from a different
URL altogether (as I do) by just changing
[% img_url = 'http://static.mystuff.foo' %]
in one place.
--
Peter Karman . [EMAIL PROTECTED] . http://peknet.com/
___
List: Catalyst@lists.scsys.co.uk
Lis
::Data::Inheritable
Catalyst::Plugin::Session::Store
/;
use NEXT;
--
Peter Karman . [EMAIL PROTECTED] . http://peknet.com/
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable
wondering if there is a
way anyone knows of writing portable tests with a mock LDAP server. I'd be
happy to write such a test if there were a way to do it.
> On 9/24/07, Peter Karman <[EMAIL PROTECTED]> wrote:
>>
>> On 09/24/2007 12:22 PM, Peter Karman wrote:
>>>
poses.
>
> What I'd like to do though is when I do a search in the DB, turn any
> rows returned into these XML objects so I can then access the whole of
> the content as usual.
>
Check out SWISH::API::Object. Swish-e indexes XML from the grou
nal_uri_for( I, I )
Like uri_for() but for URIs outside the current application
(i.e., beginning with C<\w+://>).
=cut
sub external_uri_for {
my ( $c, $path, @arg ) = @_;
my $uri = $c->uri_for( $c, $path, @arg );
# remove the pre-pe
101 - 179 of 179 matches
Mail list logo