From: Charles
technically, you're correct in that I should consider placing the usernames
under /user. But I'm thinking of the fuzzy (to me) usability issues involved
and the http://website.com/ meme is what hundreds of millions non-developer
users have come to expect. Also, fwiw, http://
> Another thought - what does $c->detach() do / what do you expect it
> to
> do? If you aren't detaching _to somewhere_, then why not just
> return?
hello, tom,
Good arvo. From what I have read in some of the docs (sorry, I dont
have my bookmarks handy),
they did mention that after a redirect
On Apr 30, 2009, at 8:50 AM, Alejandro Imass wrote:
Anyway, the message is that with mod_worker/mod_perl you can spawn
_thousands_ of threads, getting impressive concurrency (without
counting the mutex). We have tested Catalyst applications that handle
_thousands_ of concurrent requests using off
Couldn’t you do something with the default method in the root controller? So
similar to what others suggested except you would modify the default method so
that if the user doesn’t exist you can 404 and have some kind of message.
Thanks,
--
Ali Mesdaq (CIS
correction: http://website.com/is the user's profile which is publically
viewable ...
From: Charles
To: The elegant MVC web framework
Sent: Wednesday, April 29, 2009 5:46:23 PM
Subject: Re: [Catalyst] website member urls
John,
John,
technically, you're corr
John,
John,
technically, you're correct in that I should consider placing the usernames
under /user. But I'm thinking of the fuzzy (to me) usability issues involved
and the http://website.com/meme is what hundreds of millions non-developer
users have come to expect. Also, fwiw, http://websi
On Apr 29, 2009, at 4:52 PM, Charles wrote:
On Wed, Apr 29, 2009 at 05:31:43PM -0300, Fernan Aguero wrote:
> On Wed, Apr 29, 2009 at 5:23 PM, Charles wrote:
> > I'd like someone w/ better catalyst-fu to recommend how I could
implement
> > urls for members a la myspace and youtube ( ie
> > ht
hans,
This seems to work, although, i'd have to add logic to have this member
controller ignore the following types of urls
http://websiteurl.com/signup
http://websiteurl.com/members/ <= users see this as their url when logged in.
-Charles
From: Hans Dieter
On Wed, Apr 29, 2009 at 04:42:08PM -0400, Hans Dieter Pearcey wrote:
> sub member : Chained(/) Args(1) {
> my ($self, $c, $id) = @_;
> ...
> }
duh, with PathPart('') also.
hdp.
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scs
On Wed, Apr 29, 2009 at 05:31:43PM -0300, Fernan Aguero wrote:
> On Wed, Apr 29, 2009 at 5:23 PM, Charles wrote:
> > I'd like someone w/ better catalyst-fu to recommend how I could implement
> > urls for members a la myspace and youtube ( ie
> > http://websiteurl.com/ ) .
> > There's got to be a
On Wed, Apr 29, 2009 at 5:23 PM, Charles wrote:
> I'd like someone w/ better catalyst-fu to recommend how I could implement
> urls for members a la myspace and youtube ( ie
> http://websiteurl.com/ ) .
> There's got to be a better way that creating a seperate controller for each
> user.
sub memb
I'd like someone w/ better catalyst-fu to recommend how I could implement urls
for members a la myspace and youtube ( ie http://websiteurl.com/ )
.
There's got to be a better way that creating a seperate controller for each
user.
perl 5.9
catalyst-runtime 5.71
___
On 29 Apr 2009, at 17:11, Florian Ragwitz wrote:
On Wed, Apr 29, 2009 at 05:08:38PM +0100, Adam Witney wrote:
I upgraded Catalyst to 5.80002 the other day, and my applications
started beginning with a warning:
The compute_all_applicable_attributes method has been deprecated. Use
get_all_attri
From: J. Shirley
> > I don't know why it didn't work for the first time...
> Because MySQL is evil.
> (I use MySQL. Grudgingly)
Well, now that Oracle bought MySQL, maybe it is the time to have some more
courage and start using PostgreSQL... :-)
Octavian
_
On Wed, Apr 29, 2009 at 05:08:38PM +0100, Adam Witney wrote:
> I upgraded Catalyst to 5.80002 the other day, and my applications
> started beginning with a warning:
>
> The compute_all_applicable_attributes method has been deprecated. Use
> get_all_attributes instead.
> at /usr/local/lib/perl5/sit
Hi,
I upgraded Catalyst to 5.80002 the other day, and my applications
started beginning with a warning:
The compute_all_applicable_attributes method has been deprecated. Use
get_all_attributes instead.
at /usr/local/lib/perl5/site_perl/5.8.9/darwin-thread-multi-2level/
Class/MOP/Class.pm
The Catalyst core team is pleased to announce the availability of the
second maintenance release of Catalyst 5.80.
This release fixes a number of bugs and regressions found in the
previous releases.
As far as I can see, this fixes every regression against 5.71 reported
thus far, except for a
Hi all, just my $0.02 here
100 processes per second is not all that impressive for a Catalyst
app. I have tested Catalyst in mod_perl with mod_worker
(multi-threaded apache/perl), in Linux 2.6 and FreeBSD 6.4, 7.x
With mod_worker, you can spawn processes each with an X number of
threads each. Mem
kakim...@tpg.com.au wrote:
Guys, if the user is clicking on the submit button in step 6, that's a
POST request. So, why is the a 'query parameters' block present? From my
understanding, a query_parameter block is for GET requests.
Doing a POST to /foo?id=58 will fill query_parameters, as you wo
kakim...@tpg.com.au wrote:
The app works fine except that I have set up an eval block within my
controller.
My detach call comes right after the redirect call.
It looks like this:
$c->res->redirect($c->uri_for('/users/subscriptions/added '));
$c->detach ();
Wha
> Yes. If you detach(), you're basically saying 'do nothing more on
> this request'. That plus the redirect mean that template processing
> is not done, as I understand it. This is no doubt dealt with in the
> action
Hi, Ian,
The app works fine except that I have set up an eval block withi
> This is just a stab in the dark, but I guess your form tag is missing
> an
> action attribute and thus resends to the same URI, thus keeping the
> id
> query parameter. This is according to specification: nothing in HTTP
> disallows using GET-Parameters in POST requests IIRC.
>
> Cheers,
> Se
> Akimoto,
>
> You really need to read up on HTTP and the difference between Query
> Parameters and Body Parameters. It will help you write better
> applications.
Hello, J,
Good evening. Yes, you're very right and I have been referring to
documentation on search.cpan.org especially the catal
On Wed, Apr 29, 2009 at 8:30 PM, Octavian Rasnita wrote:
>
>
>> I don't know why it didn't work for the first time...
>>
>
Because MySQL is evil.
(I use MySQL. Grudgingly)
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/
On Wed, Apr 29, 2009 at 8:22 PM, wrote:
>
> Hi, everyone,
>
> I have come across something interesting.
>
> 1) User opens up a page that lists all his/her subscriptions
> 2) Each subscription is a url and a parameter at the end (ie 'id=3325')
> 3) User decides to edit one of the subscriptions. H
On Wed, 2009-04-29 at 21:22 +1000, kakim...@tpg.com.au wrote:
> Hi, everyone,
>
> I have come across something interesting.
> 5) The web form contains the following:
>
> a) 'name' = Text box for subscription alias
> b) 'nominated_agent_code' = Text box for nominated agent code
> c)
From: J. Shirley
> Try using the DSN method of enabling DBD::mysql attributes? I don't use
Catalyst::Model::DBI, so this is just a guess, but try:
> __PACKAGE__->config( dsn =>
'DBI:mysql:database=intranet;mysql_enable_utf8=1' );
> -J
Thanks. Finally I've seen that the followin
Hi, everyone,
I have come across something interesting.
1) User opens up a page that lists all his/her subscriptions
2) Each subscription is a url and a parameter at the end (ie 'id=3325')
3) User decides to edit one of the subscriptions. He/she clicks on one
with an id of 3389 (hence the url w
2009/4/29 Octavian Rasnita
> Hi,
>
> I need to use C::M::DBI for a fulltext index with MySQL, and the tables
> contain UTF-8 data.
>
> I found that I can use mysql_enable_utf8 but I couldn't find how to use
> this option.
>
> I've tried to use it in the model in 2 places as:
>
> __PACKAGE__->conf
2009/4/29 Octavian Rasnita
> Hi,
>
> In which components of a Catalyst app can I use __PACKAGE__->path_to()?
>
> I've seen that if I use in a MyApp/View/TT.pm module
>
> __PACKAGE__->config(
> COMPILE_DIR => __PACKAGE__->path_to('templates'),
> );
>
> it gives an error like:
>
> Can't locate obje
Octavian Rasnita wrote:
Can't locate object method "path_to" via package "MyApp::View::TT" at
D:/web/MyApp/scr
ipt/../lib/MyApp/View/TT.pm line 7.
It works if I use MyApp->path_to() instead...
Generally, it would be also very helpful if we could find which methods
are offered by a certain $c
Hi,
I need to use C::M::DBI for a fulltext index with MySQL, and the tables
contain UTF-8 data.
I found that I can use mysql_enable_utf8 but I couldn't find how to use this
option.
I've tried to use it in the model in 2 places as:
__PACKAGE__->config(
dsn => 'dbi:mysql:databas
Hi,
In which components of a Catalyst app can I use __PACKAGE__->path_to()?
I've seen that if I use in a MyApp/View/TT.pm module
__PACKAGE__->config(
COMPILE_DIR => __PACKAGE__->path_to('templates'),
);
it gives an error like:
Can't locate object method "path_to" via package "MyApp::View::TT"
Malloy wrote:
Which model is
better, DBI or DBIC::Schema?
There's only one way to find out FIIIGHT
Sorry, couldn't resist :)
Ben
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalys
Joel Bernstein wrote:
Cheers Joel, couldn't have done it without you! What a star.
My sarcasm meter just went off the scale. Sorry if you were offended.
/joel
;-)
Ben
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-
35 matches
Mail list logo