Hello.
I put the service script into
APP_HOME/script/service/online_users.plx
In the script:
use FindBin;
use lib $FindBin::Bin/../../lib;
use MyApp;
print MyApp-path_to('/'); # prints APP_HOME/script/service/
Fix for Catalyst::Utils (sub Catalyst::Utils::home):
174,176c174,177
MyApp-path_to()
2007/9/28, Octavian Rasnita [EMAIL PROTECTED]:
Hi,
I have a I18N module in my Catalyst application and I want to get the path
to the home directory of the application. Is it possible to get it without
hard codding it in that module?
The module is:
package
I use this hack to disable buffering for MyApp code (not for Catalyst core).
package MyApp;
__PACKAGE__-log( MyApp::Log-new );
package MyApp::Log;
use strict;
use base 'Catalyst::Log';
sub _log {
my $self = shift;
$self-SUPER::_log(@_);
$self-_flush if scalar(caller(1)) =~
If someone need te attach one application to another i will send the
plugin's code (it works only with several restriction to the application
being attached).
___
List: Catalyst@lists.rawmode.org
Listinfo:
I solved this problem recently. But only for my case.
To enable uniadm for your project you just need to do
use Catalyst qw/Uniadm/;
and possibly.
__PACKAGE__-config-{uniadm} = {
prefix = 'admin',
};
and it will be available at yoursite/admin
The plugin attaches all actions (changing
Thanks for a lot of usefull answers :)
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/
I need to plug in application B in A, so it could extend A's actions under
some namespace.
I understand this is not so simple, but i have no other way.
I write a dynamic admin interface (Uniadm) that will be plugged in to
various projects.
It will extend functionallity of a project it was
Hi.
I would like to use references to variables that have been defined in my
yaml config.
Something like this:
var_dir: var __path_to(var)__
log_dir: log *var/log
log_file: *log/file.txt
This is a feature of YAML 1.0.
But it seems that only *pure* aliases (*var) work only in YAML::Syck
Under mod_perl all calls to DBI are proxied to Apache::DBI
2007/7/24, Cédric Bouvier [EMAIL PROTECTED]:
Hello,
I have failed to understand something. If I run my Catalyst application
under mod_perl, will it automatically use persistent database
connections, or do I have to explicitely tell
)__
?
Too many copy-pasting. And too many to change when var_dir changes.
2007/7/24, Ash Berlin [EMAIL PROTECTED]:
Oleg Pronin wrote:
Hi.
I would like to use references to variables that have been defined in my
yaml config.
Something like this:
var_dir: var __path_to(var)__
log_dir: log
I don't even know what those do. Why do you want them?
anchors are used to define an anchor on variable.
*aliases are used to insert previously defined anchor's value.
For example,
root_dir: root /very/long/path/to/root/dir
root_dir2: *root
print MyApp-config-{root_dir2}; #
/subdir
etc
I didn't find it in specification.
YAML::XS is the most advanced Yaml parser supporting Yaml 1.1, but it is not
used by Catalyst.
2007/7/24, Ash Berlin [EMAIL PROTECTED]:
Oleg Pronin wrote:
I don't even know what those do. Why do you want them?
anchors are used to define
Can you give a specific reference to the place in the YAML spec that
says this is allowed? I can only find statements about aliases to nodes
(i.e. what you call pure aliases). I can't see any provision for
substituting values and then adding to them. So the modules are simply
implementing the
:)
2007/7/1, Matt S Trout [EMAIL PROTECTED]:
On Sun, Jul 01, 2007 at 06:50:36PM +0400, Oleg Pronin wrote:
OptiPerl does. The coolest IDE for perl i ever seen
http://xarka.com
Wake me up when they release a version for an OS worth doing dev work on.
--
Matt S Trout Need help
OptiPerl does. The coolest IDE for perl i ever seen
http://xarka.com
2007/7/1, Matt S Trout [EMAIL PROTECTED]:
On Sat, Jun 30, 2007 at 04:43:57PM -0500, Tom Printy wrote:
Hi There,
I am taking a this week off of work and would really like to build an
application with catalyst. Does
Hi.
I want to call -uri_for from my DBIC sources, but it is object method, so
MyApp-uri_for doesn't work.
How do I access current catalyst object ($c)?
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
You can use this technique for simple forwarding to private action and
including its result template (to use with template-toolkit):
I defined a dynamic filter:
iforward = [
sub {
my ($context, $c, $args) = @_;
return sub {
my
If you want to include your components with dispatching (full request
cycle), please see plugin Subrequest. But with this plugin you will lose
perfomance because instead of 1 request you will get many. (possibly 'auto'
actions will be called several times).
2007/5/17, John Goulah [EMAIL
Greetings. Imagine:
Variant #1 - simple
BROWSER http://site.com - Apache(80). uri_for is http://site.com
Variant #2 - simple proxing
BROWSER http://site.com - nginx/oops (80) - Apache(81). uri_for is
http://site.com:81 !
Variant #3 - complex proxing
BROWSER http://site.com
- nginx (80)
-
Thanks a lot !
2007/5/16, Brian Cassidy [EMAIL PROTECTED]:
Oleg Pronin wrote:
Does anyone can advice a good solution ?
Read:
http://search.cpan.org/dist/Catalyst-Runtime/lib/Catalyst.pm#PROXY_SUPPORT
-Brian
___
List: Catalyst@lists.rawmode.org
Is this feature planned for the next release ?
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site:
Please tell me how could i implement that without making the interface a
complete app ?
2007/5/8, Matt S Trout [EMAIL PROTECTED]:
On Mon, May 07, 2007 at 06:58:16PM +0400, Oleg Pronin wrote:
I can test the part related to the subject of this thread with great
pleasure.
I'm currently making
This interface is accessible under /folder/. It has its own templates,
static content, DBIC sources and controllers.
What excatly do i need to specify?
So please share your ideas :)
2007/5/8, Matt S Trout [EMAIL PROTECTED]:
On Mon, May 07, 2007 at 06:58:16PM +0400, Oleg Pronin wrote:
I can
I think it would be better if it does not.
Because AppA don't know and don't want to know the templates and models of
AppB. They communicate through controllers only.
2007/5/8, Matt S Trout [EMAIL PROTECTED]:
On Tue, May 08, 2007 at 12:20:33PM +0400, Oleg Pronin wrote:
This interface
enough with catalyst's internals to
advice somethin.
2007/5/8, Matt S Trout [EMAIL PROTECTED]:
On Tue, May 08, 2007 at 06:13:29PM +0400, Oleg Pronin wrote:
I think it would be better if it does not.
Because AppA don't know and don't want to know the templates and models
of
AppB
). That's because i need this feature.
2007/5/7, Matt S Trout [EMAIL PROTECTED]:
On Thu, May 03, 2007 at 06:27:58PM +0400, Oleg Pronin wrote:
Do you know when will be the next release?
Depends on whether you help us test the code to make sure it's fit for
release :)
--
Matt S Trout Need
to use separate $c objects, variable namespaces e.t.c.
each $c can just jump to another $c if foreign url has been detected.
2007/5/7, Matt S Trout [EMAIL PROTECTED]:
On Wed, May 02, 2007 at 08:02:04PM +0400, Oleg Pronin wrote:
You didn't understand what i meant. MyApp::A is not a class. It's
Greetings!
I want to make MyApp::B a part of MyApp::A under namespace for example
/folder/
Both B and A are normal catalyst applications. (both do
'__PACKAGE__-setup()' and etc. and therefore cannot work together).
How to do this with minimal changes to application A (for example, using B
as
That /is/ what we are talking about - unless MySQL cannot
tell you that the database connection has evaporated while in
transaction context.
$dbh can tell you. while in transaction $dbh-{AutoCommit} is off.
___
List: Catalyst@lists.rawmode.org
Dragonstaff Limited http://www.dragonstaff.com
Oleg Pronin wrote:
One can say that it is a very rare situation. I can tell you that
in
production environment (about 1.000.000 hits per day) it happens
every
day several times. Some users just see an error, some lost
If you don't need transaction you don't use it. This is not we talking
about. To use transaction or not in every case is a high-level logic
decision
2007/4/27, Jeff Chimene [EMAIL PROTECTED]:
Oleg Pronin wrote:
One can say that it is a very rare situation. I can tell you that in
production
Hi all!
Unfortunately, Catalyst::Model::DBI and similar modules are too simple to
avoid some more rare situations.
For example, what if $dbh-prepare result is fine but before you call
$dbh-execute the database will be gone away?
I'm creating a DBI wrapper (it will be called DBIx::Safe) that
]:
Oleg Pronin [EMAIL PROTECTED] wrote on 04/26/2007 01:29:23 PM:
Hi all!
Unfortunately, Catalyst::Model::DBI and similar modules are too
simple to avoid some more rare situations.
For example, what if $dbh-prepare result is fine but before you
call $dbh-execute the database will be gone away
One can say that it is a very rare situation. I can tell you that in
production environment (about 1.000.000 hits per day) it happens every day
several times. Some users just see an error, some lost their data. This is
just not always visible to you.
2007/4/27, Oleg Pronin [EMAIL PROTECTED
(...); # anyway ok
$sth-execute(...); #anyway ok
It will block you program until it reconnects and re-execute your query. (or
number of retries reached).
Of course in case of any non-connection error you will give an error :)
2007/4/27, Oleg Pronin [EMAIL PROTECTED]:
No. SQL query may produce
) { ... }
# Responds to /object/[OBJ_ID]/property/[PROP_ID]/edit
sub edit : Chained('property') Args(0) { ... }
Hope that helps!
Danny Warren
Oleg Pronin wrote:
Greetings.
I've got some kind of problem using chained actions.
There are some objects. Each object has a number of properties.
And this is how
Greetings.
I've got some kind of problem using chained actions.
There are some objects. Each object has a number of properties.
And this is how i want it to be:
URL for a list of objects is
/object/list
URL for editing object is
/object/OBJ_ID/edit (through chained action)
URL for list of
These actions (like /schema/list) is processed by default handler in root
controller so there are no such actions.
See previous post
2007/3/30, Bill Moseley [EMAIL PROTECTED]:
On Fri, Mar 30, 2007 at 12:46:48AM -0300, Nilson Santos Figueiredo Junior
wrote:
On 3/29/07, Oleg Pronin [EMAIL
auto actions etc. The code is executed
twice.
I need to execute only action i want but i need catalyst to look for it with
all dispatch rules.
2007/3/30, Nilson Santos Figueiredo Junior [EMAIL PROTECTED]:
On 3/29/07, Oleg Pronin [EMAIL PROTECTED] wrote:
I cannot forward to the list actions
Greetings!
I'm developing a website based on catalyst and want it to be moduled and
componentised the way like this:
site.com/object1/list
displays objects 1 in empty design.
site.com/object2/list
displays objects 2 in empty design.
site.com/nicepage
displays a page in website design
40 matches
Mail list logo