__PACAKGE__-deny_access_unless( /foo/bar, [qw/admin user/] );
The user can't access /foo/bar.
What's the matter with it?
Thanks!
2006/12/8, [EMAIL PROTECTED]
[EMAIL PROTECTED]:
Send Catalyst mailing list submissions to
catalyst@lists.rawmode.org
To subscribe or unsubscribe via the
Hello friends,
i am working on a website using catalyst. Users are required to fill some forms
which are 4-5 pages long. While filling the form he may opt to go to the
previous page to edit details he has previously filled.if he goes back to the
previous page I need to show him all his details
On Thu, May 24, 2007 at 05:33:16PM +1000, Gaurav Talwar wrote:
i am working on a website using catalyst. Users are required to fill
some forms which are 4-5 pages long. While filling the form he may opt
to go to the previous page to edit details he has previously filled.if
he goes back to the
Gaurav Talwar wrote:
I am using session to store all his details he is filling in the
form. When he goes back to the previous pages, i take the information
from the session and i fill them in the pages. Now the problem is
that if users opens two forms together and fills some data and then
I
mla wrote:
Two options to avoid the problem:
- Store already received data in hidden fields of the subsequent
forms.
This is almost always the best approach, IMO. The state of the form
is kept with the form, where it belongs. There are no synchronization
issues with the session.
This
On Thu, 2007-05-24 at 08:13 -0400, Andy Grundman wrote:
No, I hadn't set CATALYST_POE_MAX_PROC as I'm happy with forking on-
demand in this app. However, I just tried it now, and it made no
difference.
The POE engine does not fork at all unless you have set this
variable, so I'm
One of the never ending topics for Catalyst seems to be forms: how to
build them, validate them, localize them and generally just live with
them without hating the toolset or wanting to strangle someone.
I don't have a solution for everyone, but I did create a solution for
me. I offer it here as
On 24/05/07, Christopher H. Laco [EMAIL PROTECTED] wrote:
One of the never ending topics for Catalyst seems to be forms: how to
build them, validate them, localize them and generally just live with
them without hating the toolset or wanting to strangle someone.
I don't have a solution for
Carl Franks wrote:
On 24/05/07, Christopher H. Laco [EMAIL PROTECTED] wrote:
One of the never ending topics for Catalyst seems to be forms: how to
build them, validate them, localize them and generally just live with
them without hating the toolset or wanting to strangle someone.
I don't
Will Smith wrote:
Hi,
I tried to add a link to a wav file on server. The file location is in
var/www/html/myfolder/myfile.wav. And my app is in var/www/myapp. Hope
that you could help me out here. Do I need Static Plugin to add this
hyper link?
What was the error or result? Are you using
On Thu, 24 May 2007, John Goulah wrote:
What are peoples thoughts on using REST not only as a web service, but also
within the application itself as another layer of abstraction? I would
assume in this way all the DB related calls would go through the REST layer,
and this way they can be
the error is : File Not Found.
Yes, I have apache, and also tried on dev machine at localhost. Problem is
when adding the file path to template, like: a href=[% myvar %]listen/a,
and myvar = '/var/www/html/myfolder/myfile.wav';
when move the cursor over listen the link is :
On Thu, May 24, 2007 at 08:43:52AM -0700, Will Smith wrote:
the error is : File Not Found.
Yes, I have apache, and also tried on dev machine at localhost. Problem is
when adding the file path to template, like: a href=[% myvar
%]listen/a, and myvar =
On 5/24/07, Dave Rolsky [EMAIL PROTECTED] wrote:
On Thu, 24 May 2007, John Goulah wrote:
What are peoples thoughts on using REST not only as a web service, but
also
within the application itself as another layer of abstraction? I would
assume in this way all the DB related calls would go
--- John Goulah [EMAIL PROTECTED] wrote:
What are peoples thoughts on using REST not only as
a web service, but also
within the application itself as another layer of
abstraction? I would
assume in this way all the DB related calls would go
through the REST layer,
and this way they can
When replying, please edit your Subject line so it is more specific
than Re: Contents of Catalyst digest...
^^ I've done this for you, but please do so in future.
On Thu, May 24, 2007 at 02:36:34PM +0800, 张淼 wrote:
__PACAKGE__-deny_access_unless( /foo/bar, [qw/admin user/] );
On 5/24/07, John Goulah [EMAIL PROTECTED] wrote:
What are some of the patterns people are using to implement this? Any other
thoughts?
People are going to hate me for saying this... but I've started to
adopt the Java bean paradigm for my Catalyst app. To the point where I
even have a whole
--- Paul Makepeace [EMAIL PROTECTED] wrote:
I'm hoping there's a 'best practice' or common
pattern for reporting
errors and messages to templates (not necessarily
just forms).
I find myself doing stuff like,
my @errors; my @messages;
# ...
if ($some_err_condition) {
push
thank you for all of your help.
Yes, I just want to link to a file on local machine. And yes, I added the
file:// to the path, but it links to nowhere. When cursor over, it shows
file:///var. just like any other links on a html page outside Cat, but it
links to nothing. Just wonder if you
On Thu, May 24, 2007 at 09:29:40AM -0700, Will Smith wrote:
thank you for all of your help.
Yes, I just want to link to a file on local machine. And yes, I added the
file:// to the path, but it links to nowhere. When cursor over, it shows
file:///var. just like any other links
--- stephen joseph butler [EMAIL PROTECTED]
wrote:
On 5/24/07, John Goulah [EMAIL PROTECTED] wrote:
What are some of the patterns people are using to
implement this? Any other
thoughts?
People are going to hate me for saying this... but
I've started to
adopt the Java bean paradigm
Sorry for all the confusion. I run the browser on the same machine that cat app
running.
My file is at: /var/www/html/myfolder/myfile.wav
On any html page outside Cat, just simply add the full path to the href, then
user just click on the link to listen to the audio.
I have tried with
DBIx::Class::ResultSet::create(): Can't get last insert id
This is happening because dbic is attempting to do a SELECT
STORE_CART_SEQ.CURRVAL FROM DUAL, without a preceding NEXTVAL.
Here's the create statement:
$c-model('StoreDB::Cart')-create({ session_id = $session_id });
I'm under the
On Thu, May 24, 2007 at 02:08:21PM -0400, Rom Bre wrote:
DBIx::Class::ResultSet::create(): Can't get last insert id
Any help would be greatly appreciated
I think you've accidentally posted to the catalyst list instead of the
dbix-class one ...
--
Matt S Trout Need help with your
On Thu, May 24, 2007 at 02:36:34PM +0800, 张淼 wrote:
__PACAKGE__-deny_access_unless( /foo/bar, [qw/admin user/] );
The user can't access /foo/bar.
What's the matter with it?
That fragment of code isn't nearly enough for us to help, could you give
us an idea of how your app's set up please?
* Dave Rolsky [EMAIL PROTECTED] [2007-05-24 17:55]:
The big advantage of using a Perl API is its expressiveness and
flexibility. Perl is a programming language. HTTP +
JSON|XML|YAML is not a programming language, and as such is
much less flexible.
Exactly.
What you see as weakness can
* John Goulah [EMAIL PROTECTED] [2007-05-24 17:45]:
What are peoples thoughts on using REST not only as a web
service, but also within the application itself as another
layer of abstraction?
I like it for two reasons.
1. Browsers are pretty much dumb terminals. Javascript can help,
but
I am baffled by both of these, and I don't (usually) baffle that easily.
First, the background:
- Latest Catalyst, C::E::Apache, and all related modules
- Using SQLite from within DBIC for model storage
My application runs fine from the test-server scripts that
catalyst.plauto-generated. When I
On Fri, 25 May 2007, A. Pagaltzis wrote:
The big advantage of using a Perl API is its expressiveness and
flexibility. Perl is a programming language. HTTP +
JSON|XML|YAML is not a programming language, and as such is
much less flexible.
Exactly.
What you see as weakness can contrariwise be a
Thanks,
In my MyAPP.pm
package MyAPP;
use strict;
use warnings;
use Catalyst::Runtime '5.70';
use Catalyst qw/
..
Authentication
Authentication::Store::DBIC
Authentication::Credential::Password
Authorization::Roles
Authorization::ACL
..
/;
__PACKAGE__-config( name =
On 5/24/07, Randy J. Ray [EMAIL PROTECTED] wrote:
Subroutine Bylines::Model::DB::class redefined at
/usr/lib/perl5/site_perl/5.8.5/DBIx/Class/Schema.pm line 415.
Subroutine Bylines::Model::DB::source redefined at
/usr/lib/perl5/site_perl/5.8.5/DBIx/Class/Schema.pm line 415.
Subroutine
On Thu, May 24, 2007 at 09:29:40AM -0700, Will Smith wrote:
thank you for all of your help.
Yes, I just want to link to a file on local machine. And yes, I added the
file:// to the path, but it links to nowhere. When cursor over, it shows
file:///var. just like any other links on a
On 5/24/07, John Goulah [EMAIL PROTECTED] wrote:
the above error eems to indicate a problem on line 259.
probably should setup like this:
On 5/24/07, Randy J. Ray [EMAIL PROTECTED] wrote:
On 5/24/07, John Goulah [EMAIL PROTECTED] wrote:
the above error eems to indicate a problem on line 259.
probably should setup like this:
http://search.cpan.org/~agrundma/Catalyst-Engine-Apache-1.11/lib/Catalyst/Engine/Apache/MP13.pm
Thanks,
In my MyAPP.pm
package MyAPP;
use strict;
use warnings;
use Catalyst::Runtime '5.70';
use Catalyst qw/
..
Authentication
Authentication::Store::DBIC
Authentication::Credential::Password
Authorization::Roles
Authorization::ACL
..
/;
__PACKAGE__-config( name =
On Fri, May 25, 2007 at 10:08:00AM +0800, Cookie wrote:
I write my database connect info in the yml files.It's not very safe because
the database password can see by everyone who can access the catalyst
folder.I want to know if there any way to encrypt the database password use
the internal
On Thu, May 24, 2007 at 07:17:29PM -0700, Randy J. Ray wrote:
Perl
use lib qw(/.../bylines); # This block only matters when the app is
outside the default Perl areas
/Perl
PerlModule Bylines# This is line 259
Location /bylines
SetHandler perl-script
PerlHandler Bylines
On 5/24/07, Randy J. Ray [EMAIL PROTECTED] wrote:
PerlModule Bylines# This is line 259
This recommended way to do this in mod_perl is actually to make a
separate startup.pl file that loads your modules, not to list them in
httpd.conf. Then you call it with PerlRequire. You can find
38 matches
Mail list logo