[Catalyst] get the path to the home

2007-09-28 Thread Octavian Rasnita
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 MyApp::I18N::ro; Thank you. Octavian

[Catalyst] Can't start Apache when using Catalyst

2007-09-23 Thread Octavian Rasnita
Hello, I am using Windows XP SP2, Apache 2.2.4, Active perl 5.8.8 build 822, mod_perl 2.03, and Catalyst 5.7010. If I want to start apache and if I have a virtualhost that uses Catalyst, most of the times it gives the following errors and doesn't want to start: [Sun Sep 23 00:35:36 2007]

Re: [Catalyst] printing the generated SQL

2007-09-14 Thread Octavian Rasnita
From: Paul Rudolf Seebacher [EMAIL PROTECTED] Octavian Rasnita wrote: Hi, Is it possible to log a certain SQL which is generated in a Catalyst application by a controller that uses a DBIx::Class model? Thank you. Octavian ___ List: Catalyst

[Catalyst] printing the generated SQL

2007-09-13 Thread Octavian Rasnita
Hi, Is it possible to log a certain SQL which is generated in a Catalyst application by a controller that uses a DBIx::Class model? Thank you. Octavian ___ List: Catalyst@lists.rawmode.org Listinfo:

Re: [Catalyst] CMS

2007-08-29 Thread Octavian Rasnita
Can you tell me if this CMS can be used only with the keyboard? (with no mouse) If somebody knows a CMS that is accessible only with the keyboard and which can create tables and links by someone that doesn't know HTML, please tell me. Octavian - Original Message - From: Davood

Re: [Catalyst] CMS

2007-08-29 Thread Octavian Rasnita
On 8/29/07, Octavian Rasnita [EMAIL PROTECTED] wrote: Can you tell me if this CMS can be used only with the keyboard? (with no mouse) From: Davood Firoozian I don't think so. but may I ask why you are asking that ? Because I am blind and I cannot use a mouse but only the keyboard

[Catalyst] Ajax

2007-08-03 Thread Octavian Rasnita
Hi, Which of the Ajax modules do you recommend using in a Catalyst app? I am interested especially to know which of them work better with Template-Toolkit and DBIx::Class. For the moment I am not interested in the most advanced, but in the most simple to use by someone that doesn't know

Re: [Catalyst] Ajax

2007-08-03 Thread Octavian Rasnita
selector and imho the docs are ok. -abraxxa -Original Message- From: Octavian Rasnita [mailto:[EMAIL PROTECTED] Sent: Friday, August 03, 2007 9:47 AM To: Catalyst@lists.rawmode.org Subject: [Catalyst] Ajax Hi, Which of the Ajax modules do you recommend using in a Catalyst app

Re: [Catalyst] error installing Catalyst::Plugin::Session (2)

2007-07-12 Thread Octavian Rasnita
there. -Ashley On Jul 11, 2007, at 10:25 PM, Octavian Rasnita wrote: Hi, I have seen that when trying to install C::P::Session, appears the following error. It seems that C::P::Session depends on C::P::Session::State::Cookie but this second module depends on the first one. t/06_finalize

Re: [Catalyst] error installing Catalyst::Plugin::Session (2)

2007-07-12 Thread Octavian Rasnita
I don't know if this was the case, because I've just installed perl 5.8.8 on a new machine (X86_64 SuSE), and I have tried installing Catalyst using: cpan install Task::Catalyst I guess it should have tried to install the newest versions. Thanks. Octavian - Original Message -

[Catalyst] C::P::Session installation error

2007-07-11 Thread Octavian Rasnita
Hi, I have tried to install C::P::Session using the cpan shell, and it gave the following error: Failed Test Stat Wstat Total Fail List of Failed --- t/06_finalize.t 255 65280 34 2-3 4 tests skipped.

[Catalyst] error installing Catalyst::Plugin::Session (2)

2007-07-11 Thread Octavian Rasnita
Hi, I have seen that when trying to install C::P::Session, appears the following error. It seems that C::P::Session depends on C::P::Session::State::Cookie but this second module depends on the first one. t/06_finalize.ok 1/3Can't locate

[Catalyst] displaying email addresses

2007-06-28 Thread Octavian Rasnita
Hi, Do you know if there are any Catalyst plugins, or TT filters, or perl modules that can find all the email addresses in a text and convert them into a Javascript code that prints that email address (possibly as a link)? I want to do something like this for avoiding robots that harvest

Re: [Catalyst] displaying email addresses

2007-06-28 Thread Octavian Rasnita
Ok, thank you all. I think I will use this method and the Email::Find module to do what I want. Octavian - Original Message - From: Marc Logghe [EMAIL PROTECTED] To: The elegant MVC web framework catalyst@lists.rawmode.org Sent: Thursday, June 28, 2007 3:05 PM Subject: RE: [Catalyst]

Re: [Catalyst] displaying email addresses

2007-06-28 Thread Octavian Rasnita
of making the code as hard to read as possible. Octavian - Original Message - From: [EMAIL PROTECTED] To: The elegant MVC web framework catalyst@lists.rawmode.org Sent: Thursday, June 28, 2007 5:15 PM Subject: Re: [Catalyst] displaying email addresses Octavian Rasnita [EMAIL

Re: [Catalyst] displaying email addresses

2007-06-28 Thread Octavian Rasnita
PROTECTED] wrote on 06/28/2007 10:54:00 AM: On Thu, Jun 28, 2007 at 06:31:28PM +0300, Octavian Rasnita wrote: Those harversters should have a Javascript interpreter that will compile the js code and extract the results, and I think most of them don't have such a thing. I have never used a JS

[Catalyst] Custom error

2007-06-25 Thread Octavian Rasnita
Hi, Is it possible to change that multilanguage message that Catalyst displays when the application gives an error? It is that message with Please come back later in a few languages. I would like to be able to display a page made by me when such an error should appear. Thank you.

Re: [Catalyst] plat_forms report published on June 20th. 2007. Genevateam on Catalyst wins the Perl track.

2007-06-20 Thread Octavian Rasnita
From: Matt S Trout [EMAIL PROTECTED] Perl WSDL/SOAP tooling is pants. Film at 11. I do know of a large suite of Cat apps whose primary purpose is to handle such, but I believe the company in question largely built the functionality up from scratch. Perl supports SOAP and even WSDL, but the

Re: [Catalyst] plat_forms report published on June 20th. 2007. Genevateam on Catalyst wins the Perl track.

2007-06-20 Thread Octavian Rasnita
From: Daniel McBrearty [EMAIL PROTECTED] If you read closely (p43), re SQL injection : We record any failures to process our inputs appropriately as broken only, i.e., when an exception is raised that stems directly from the SQL processing rather than the application logic. We record a solution

[Catalyst] redirecting

2007-06-13 Thread Octavian Rasnita
Hi, I have tried to make the following redirection: $c-res-redirect($c-uri_for(/fr/thread?thread=$id_thread)); But it replaces ? with %3F and the request is: http://www.anrcluj.ro/fr/thread%3Fthread=1 How can I redirect to a URL that contains a question mark? Thank you. Octavian

Re: [Catalyst] How to show SQL in apache error_log?

2007-06-11 Thread Octavian Rasnita
You can put $ENV{DBIC_TRACE}++; in MyApp.pm Octavian - Original Message - From: Cookie To: catalyst@lists.rawmode.org Sent: Monday, June 11, 2007 7:01 AM Subject: [Catalyst] How to show SQL in apache error_log? As we know,if we use export DBIC_TRACE=1 and then we run

[Catalyst] 2 Catalyst applications on the same server

2007-06-07 Thread Octavian Rasnita
Hi, I am trying to use 2 Catalyst applications on the same web server, using mod_perl. The problem is that I can run only one of them, no matter which one. If I put them both to run, the web server doesn't want to start, and it doesn't write any error in the error log. I think there might

Re: [Catalyst] 2 Catalyst applications on the same server

2007-06-07 Thread Octavian Rasnita
From: Peter Flanigan [EMAIL PROTECTED] Octavian Rasnita wrote: Virtualhost 127.0.0.1:80 They cannot both listen on the same address and port Both virtualhosts have the same IP and port, but they use a different server name. I also have another virtualhost that listens to this IP and port

Re: [Catalyst] 2 Catalyst applications on the same server

2007-06-07 Thread Octavian Rasnita
From: Matt S Trout [EMAIL PROTECTED] In httpd.conf I have: LoadFile d:/usr/bin/perl58.dll LoadModule perl_module modules/mod_perl.so Include e:/web/MyApp1/include/httpd.txt Include e:/web/MyApp2/include/httpd.txt Do you have a NameVirtualHost directive? Yes I have, and the applications

[Catalyst] deploying a Catalyst app

2007-06-01 Thread Octavian Rasnita
Hi, Please tell me where can I find more information about deploying a Catalyst app. I think there should be a way of creating a tarball with the whole app, including the entire application. When installing it on the target machine (with make, make install) it should require all the necessary

[Catalyst] Using a custom TT filter

2007-05-22 Thread Octavian Rasnita
Hi, I am trying to use a custom TT filter in a Catalyst app. In MyApp.pm I use: 'View::TT' = { PLUGIN_BASE = __PACKAGE__-path_to('lib'), }, In the lib dir I have a Diverse/NoDia.pm module that looks like this: package Diverse::NoDia; use Template::Plugin::Filter; use base

Re: [Catalyst] C:P:Session::Store::FastMmap

2007-05-10 Thread Octavian Rasnita
(), }, ); You'll see what the point is. Though this may not be perfect, at least it works for me. Kenichi Ishigaki aka tcool. On Wed, 9 May 2007 08:38:13 +0300, Octavian Rasnita [EMAIL PROTECTED] wrote: From: Ash Berlin [EMAIL PROTECTED] http://perlitist.com/static/Cache-FastMmap-1.15.tar.gz

[Catalyst] C:P:Session::Store::FastMmap

2007-05-08 Thread Octavian Rasnita
Hi, I am trying to install Catalyst::Plugin::Session::Store::FastMmap under Windows XP, and on the nmake test command it gives the following error. Can I do something to be able to install it? I couldn't find a ppm version of this module. (I need it because I want to install

Re: [Catalyst] C:P:Session::Store::FastMmap

2007-05-08 Thread Octavian Rasnita
I also thought that, but I was able to install Cache-FastMmap-1.15 under Windows. (I found about this version on this list). From: Hartmaier Alexander [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo:

Re: [Catalyst] C:P:Session::Store::FastMmap

2007-05-08 Thread Octavian Rasnita
From: Ash Berlin [EMAIL PROTECTED] http://perlitist.com/static/Cache-FastMmap-1.15.tar.gz The author has been in touch with me, and I've made the changes he asked for, so hopefully it should be avaiable to CPAN soon. Ash Yes, this version is the one I've installed, but I cannot install

[Catalyst] Catalyst::Controller::FormBuilder

2007-04-30 Thread Octavian Rasnita
Hi, I want to create a form with some fields which are displayed only if some conditions are met. Can I do this using Catalyst::Controller::FormBuilder, or in this case I need to create/print the forms manually? For example, I want to print a form for editing the fields in a record from a

Re: [Catalyst] connection to DB

2007-04-25 Thread Octavian Rasnita
Hi, Try this: __PACKAGE__-config( schema_class = 'testDB', connect_info = [ 'dbi:mysql:database=myapp;host=192.168.2.115', 'root', 'test', { AutoCommit = 1 }, ], );___ List:

Re: [Catalyst] Catalyst::Plugin::Session::Store::Memcached notcorrectly work with session expire

2007-03-28 Thread Octavian Rasnita
I don't know if the problem is in this module, because I think I have the same issue, and I am using Session::Store::File Octavian - Original Message - From: Dmitry [EMAIL PROTECTED] To: Catalyst@lists.rawmode.org Sent: Wednesday, March 28, 2007 10:25 PM Subject: [Catalyst]

Re: [Catalyst] C::C::FB and captchas or similar

2007-03-19 Thread Octavian Rasnita
From: Joe Landman [EMAIL PROTECTED] Hi folks: Two part question. Has anyone played with captchas in conjunction with C::C::FB? Second part: should I be looking at different technology rather than captchas? I have no idea if there are other perl modules that can replace Captcha, but I

Re: [Catalyst] C::C::FB and captchas or similar

2007-03-19 Thread Octavian Rasnita
Hmmm... I haven't been focusing on this, but it is worth a read. I am working on making the pages as simple as possible (no AJAXian-ness) for a combination of aesthetic and personal time reasons. Any pointers to document design elements to encourage accessibility you can provide would be

Re: [Catalyst] C::C::FB and captchas or similar

2007-03-19 Thread Octavian Rasnita
From: Brian Cassidy [EMAIL PROTECTED] A technique i recently saw was to add an input to your form with a usual sounding name (like subject) but style is as display:none. The primary concept is that users manually filling out the form will not see that field and therefore it will be blank on

[Catalyst] putting an object in the stash

2007-03-13 Thread Octavian Rasnita
Hi, I have a DBIC record object like my $obj = $c-model(Database::Table)-find($id); The table has very many fields and I would like to put their values in a TT template without inserting them one by one in the stash. So I would like to create a hash ref from $obj where the name of the field

Re: [Catalyst] putting an object in the stash

2007-03-13 Thread Octavian Rasnita
From: Simon Wilcox [EMAIL PROTECTED] I just put the object in the stash. TT abstracts the method/hash key accessor issue for you so that [% obj.name1 %] will work whether obj is an object with a name1 accessor or a hash with a name1 key. Ok, then I will use that way. I hoped that the first

Re: [Catalyst] putting an object in the stash

2007-03-13 Thread Octavian Rasnita
I know that an object is a blessed hash, but the DBIC objects are very complex, and I cannot use $c-stash($obj); If I do that, the values from $obj hash reference are not put in the template like when $obj is a reference to a common hash. That's why I want to find how to put the key/values

Re: [Catalyst] putting an object in the stash

2007-03-13 Thread Octavian Rasnita
From: Simon Wilcox [EMAIL PROTECTED] You will have to iterate over the accessors individually to put them into the stash (I think) but you should be able to use DBIC to do most of the thinking. Something like (untested): my $model = $c-model(Database::Table); foreach my $column

Re: [Catalyst] putting an object in the stash

2007-03-13 Thread Octavian Rasnita
From: Simon Wilcox [EMAIL PROTECTED] You will have to iterate over the accessors individually to put them into the stash (I think) but you should be able to use DBIC to do most of the thinking. Something like (untested): my $model = $c-model(Database::Table); foreach my $column

Re: [Catalyst] putting an object in the stash

2007-03-13 Thread Octavian Rasnita
From: Daniel McBrearty [EMAIL PROTECTED] Impossible to know what you mean here without an example of the template, but I commonly put DBIC objects on the stash, and call methods on them with the dot operator in TT. TT is smart enough to work out what needs to be done and do it so whether the

Re: [Catalyst] putting an object in the stash

2007-03-13 Thread Octavian Rasnita
From: Matt Lawrence [EMAIL PROTECTED] Alternatively, get_columns will return a hash (not a reference!) of the current row. $c-stash-{obj }= { $row-get_columns }; Oh thanks. Finally I've used $c-stash-{obj} = $obj; and I've modified the template, because it seems that it is a better design.

[Catalyst] assigning vars to $c-stash

2007-03-12 Thread Octavian Rasnita
Hi, I have a $hash hash reference and I want to add all its elements to the stash. How can I do this? Do I need to use a loop and assign each element one by one? I have seen that it is not possible to use $c-stash = $hash; Can I use something else than foreach(keys %$hash) { $c-stash-{$_}

Re: [Catalyst] assigning vars to $c-stash

2007-03-12 Thread Octavian Rasnita
Thank you all for your solutions. I think this is the most simple. Octavian - Original Message - From: Eden Cardim [EMAIL PROTECTED] To: The elegant MVC web framework catalyst@lists.rawmode.org Sent: Monday, March 12, 2007 2:39 PM Subject: Re: [Catalyst] assigning vars to $c-stash

[Catalyst] Catalyst::Plugin::DateTime

2007-03-09 Thread Octavian Rasnita
Hi, I have tried to install Catalyst::Plugin::DateTime under Windows using the cpan shell, but I have recieved the error below. I have also previously set the environment variable TZ=+02:00 but it still can't find the time zone. Is there anything I can do to install this Catalyst Plugin under

Re: [Catalyst] reserved words

2007-03-07 Thread Octavian Rasnita
From: Jason Kohles Hi, Please tell me how can I find the list of reserved words that cannot be used as names for views, controllers, models, $c-stash elements... For example I have seen that the name of the application is also found in $c-stash-{name}. $c-stash-{template} is

Re: [Catalyst] reserved words

2007-03-07 Thread Octavian Rasnita
From: John Napiorkowski This is the error message you get if you create a subclass of Catalyst::View that doesn't implement a process() method. It probably doesn't have anything to do with the name of the module... I have tried: perl script/myapp_create.pl view Show After

[Catalyst] reserved words

2007-03-06 Thread Octavian Rasnita
Hi, Please tell me how can I find the list of reserved words that cannot be used as names for views, controllers, models, $c-stash elements... For example I have seen that the name of the application is also found in $c-stash-{name}. $c-stash-{template} is also special. I have also tried

Re: AW: [Catalyst] Session problems with IE and cookies

2007-03-01 Thread Octavian Rasnita
Today I had that issue. I couldn't login on my site even though I've tried for more times with 2 different user names. I have also tried closing and opening again the browser, but I still wasn't able to login. So I wanted to read the HTTP headers sent and received by IE before trying to

Re: [Catalyst] Session problems with IE and cookies

2007-02-28 Thread Octavian Rasnita
I have created a site using Catalyst, and I access it with IE, but I can login with no issues. However, 2 customers told me that they can login on the site from one location, but they cannot do it from their work place. I don't know, but it might be the same bug, since after the login, the

[Catalyst] displaying csv content

2007-02-23 Thread Octavian Rasnita
Hi, Can anyone point me to a place where I can find how to send csv content to the browser correctly? If I right click on the link and choose save as... the content is saved correctly, and the file name specified by Content-Disposition appears correctly, but if I just click on the link, it

Re: [Catalyst] displaying csv content

2007-02-23 Thread Octavian Rasnita
-headers-header('Content-Type' = 'text/csv'); $c-res-headers-header('Content-Disposition' = attachement;filename=$f); $c-res-body($out); } --vlad On 2/23/07, Octavian Rasnita [EMAIL PROTECTED] wrote: Hi, Can anyone point me to a place where I can find how to send csv

Re: [Catalyst] displaying csv content

2007-02-23 Thread Octavian Rasnita
.= $csv-string . \n; } $c-res-headers-header('Content-Type' = 'text/csv'); $c-res-headers-header('Content-Disposition' = attachement;filename=$f); $c-res-body($out); } --vlad On 2/23/07, Octavian Rasnita [EMAIL PROTECTED] wrote: Hi, Can anyone

Re: [Catalyst] displaying csv content

2007-02-23 Thread Octavian Rasnita
catalyst@lists.rawmode.org Sent: Friday, February 23, 2007 11:41 PM Subject: Re: [Catalyst] displaying csv content Octavian Rasnita wrote: Content-Type: text/comma-separated-values Is this correct? RFC4180 says to use text/csv, although TSV is text/tab-separated-values. Confusing. http://www.rfc

[Catalyst] no buffering

2007-02-05 Thread Octavian Rasnita
Hi, I want to send a dynamicly generated csv file to the browser using a Catalyst app, but without storing the whole content in a variable before sending it. Please tell me how can I do this with Catalyst. I have something like: while (...) { # and here I want to add a new line to the csv

Re: [Catalyst] getting the role id

2007-02-04 Thread Octavian Rasnita
Ok, thank you. I will try it. Octavian - Original Message - From: Jason Kohles On Feb 4, 2007, at 6:52 AM, Octavian Rasnita wrote: Hi, Is it possible to get the id of the roles of the current user from $c-user? I found that I can get the role names using $c

Re: [Catalyst] Re: nmake too long error installing catalyst onactiveperl

2007-01-20 Thread Octavian Rasnita
Ok, I also have it, but I didn't know that the nmake from VS.net 2005 will work for compiling with VS6. However, I have tested nmake test for Catalyst, and it went fine, with no errors found. Octavian - Original Message - From: Greg McAlpin To: catalyst@lists.rawmode.org

Re: [Catalyst] nmake too long error installing catalyst on activeperl5.8.8

2007-01-19 Thread Octavian Rasnita
I understood that the version of nmake is too old and that version doesn't handle long commands. But I couldn't find a newer version than 1.50 which I use. (So I am skipping the make test command when installing Catalyst). Octavian - Original Message - From: Michael Fuchs [EMAIL

Re: [Catalyst] creating binaries

2007-01-17 Thread Octavian Rasnita
From: Joe Landman [EMAIL PROTECTED] Technological measures can be defeated. Assume they provide speed bumps at most to determined hackers. We have found that people are (sometimes) willing to pay for programs when they add significant value to what it is they are doing. That said, much of

Re: [Catalyst] creating binaries

2007-01-17 Thread Octavian Rasnita
From: Peter Edwards [EMAIL PROTECTED] Can you tell me how to find the source code from a perlapp program? Everyone says that it is very simple, but nobody was able to do it. The answer is in the manual http://perldoc.perl.org/perlfaq3.html#How-can-I-hide-the-source-for-my-Perl- program%3f

Re: [Catalyst] creating binaries

2007-01-17 Thread Octavian Rasnita
From: Bogdan Lucaciu [EMAIL PROTECTED] this is what some people refer to as trolling. (High quality trolling even) Please end this thread, or at least try to keep legal/marketing/philosophy out of it. I wasn't the person that started talking about the legality on this thread. I haven't

Re: Re: [Catalyst] creating binaries

2007-01-17 Thread Octavian Rasnita
From: Kiki [EMAIL PROTECTED] I would say that treating your customers as potential thieves won't get you very far in doing business with them. 1. In a country where the pyracy is over 90%, yes I can consider the potential customers thieves. 2. I am not selling the program directly to the

Re: Re: [Catalyst] creating binaries

2007-01-17 Thread Octavian Rasnita
From: Chisel Wright [EMAIL PROTECTED] If hiding the source was a requirement, why did you use perl? Because perl is the only language I know well enough to write a program that could work under Windows and Linux. Octavian ___ List:

Re: [Catalyst] creating binaries

2007-01-17 Thread Octavian Rasnita
From: Matt S Trout [EMAIL PROTECTED] I suspect it's more complaints about people expecting things for free from somebody who's got a hell of a lot of free advice on here without as yet contributing anything useful back are ... ironic at best. I haven't asked anything for free. I've just

[Catalyst] creating binaries

2007-01-16 Thread Octavian Rasnita
Hi, I want to create a standalone binary executable for Windows and another one for Linux using ActiveState perlapp. Is it possible to make it independent, and distribute only the executable without the modules from the lib directory of the application? I have tried creating an executable

Re: [Catalyst] error

2007-01-16 Thread Octavian Rasnita
From: Matt S Trout [EMAIL PROTECTED] Couldn't instantiate component TranzactiiBursiere::Model::Db, Can't locate object method compose_namespace via package Db Don't call your database class 'Db'. DB is the namespace reserved for the perl debugger. Windows is case insensitive. Guess what's

Re: [Catalyst] creating binaries

2007-01-16 Thread Octavian Rasnita
From: Chisel Wright [EMAIL PROTECTED] On Tue, Jan 16, 2007 at 05:12:05PM +0200, Octavian Rasnita wrote: Is it possible to do what I want, using perlapp? If not, is it possible with PAR? Is this any help? http://www.catalystframework.org/calendar/2005/6 I have tried to do

Re: [Catalyst] creating binaries

2007-01-16 Thread Octavian Rasnita
From: [EMAIL PROTECTED] No. There is really no way to distribute a perl application in a way to hide its source. Any attempt you make will be met with false security and failure. Maybe Perl 6, but that is still unanswered at this point. Have you found a way of cracking the protection of

Re: [Catalyst] creating binaries

2007-01-16 Thread Octavian Rasnita
From: [EMAIL PROTECTED] Take a look at /tmp/pdk/ perlapp exes dump the plaintext while running. This is not a problem with Catalyst, perl is an interpreted language not a compiled one. perlapp is there to make distributing self contained perl applications easier, not to protect your source.

Re: [Catalyst] creating binaries

2007-01-16 Thread Octavian Rasnita
From: Peter Edwards [EMAIL PROTECTED] If a language is interpreted, this doesn't mean that the programs that were made with it cannot be protected in any way. It will be fairly easy to crack installed Perl software. Can you tell me how to find the source code from a perlapp program?

Re: [Catalyst] creating binaries

2007-01-16 Thread Octavian Rasnita
From: Joe Landman [EMAIL PROTECTED] perlapp doesn't drop the source code in /tmp. It puts there only some .dll files, and nothing more than that. (I am using perl Dev Kit 6.02, but now PDK 7 was just released). The source needs to be obtained somehow and in some state for the Perl program

Re: [Catalyst] Catalyst vs Rails vs Django Cook off

2007-01-15 Thread Octavian Rasnita
From: Carl Johnstone [EMAIL PROTECTED] Now to say the truth, I won't use RoR because I don't know Ruby, but I want to know which are the advantages and disadvantages of Catalyst comparing with other frameworks. The most important advantage/disadvantage *to you* must be that Catalyst is Perl

Re: [Catalyst] Catalyst vs Rails vs Django Cook off

2007-01-15 Thread Octavian Rasnita
From: Perrin Harkins [EMAIL PROTECTED] I don't think anyone disputes that Perl (and Python and Java) are much faster than Ruby. You can find benchmarks showing that all over the web. The RoR boosters are usually the ones on the defensive over performance, saying that language performance

Re: [Catalyst] changing the port

2007-01-14 Thread Octavian Rasnita
From: Bill Moseley [EMAIL PROTECTED] That should work. Look at C::Engine::Apache: http://dev.catalyst.perl.org/browser/trunk/Catalyst-Engine-Apache/lib/Catalyst/Engine/Apache.pm $host = $c-request-header( 'X-Forwarded-Host' ); if ( $host =~ /^(.+):(\d+)$/ ) { $host

[Catalyst] error

2007-01-13 Thread Octavian Rasnita
Hi, If I do: perl TranzactiiBursiere.pm it gives the error below. However, if I access the application in the browser, it works fine. Couldn't instantiate component TranzactiiBursiere::Model::Db, Can't locate object method compose_namespace via package Db (perhaps you forgot to load Db?) at

[Catalyst] serving static files

2007-01-10 Thread Octavian Rasnita
Hi, I have a Catalyst application that runs under mod_perl2 and I want to serve some static files, but I want to allow access only to the authorized users. I have other free files that I've put in a directory with the SetHandler none Apache configuration, and they can be served directly,

Re: [Catalyst] serving static files

2007-01-10 Thread Octavian Rasnita
From: Perrin Harkins [EMAIL PROTECTED] If you're serving static files and running mod_perl without a reverse proxy, that should be the first thing you change. It has a very significant effect on performance. - Perrin Sorry for off topicness, but please tell me, does it have a bad effect if

Re: [Catalyst] Browser window/tab independent sessions

2007-01-08 Thread Octavian Rasnita
Hi, Maybe I didn't understand well the question, but if the user wants to create a session that works only in a certain window, but doesn't work in the other windows, a simple cookie can be used if its expiry date is set to 0. This way the cookie won't be saved, but it will be memorised by

Re: [Catalyst] Browser window/tab independent sessions

2007-01-08 Thread Octavian Rasnita
Docherty [EMAIL PROTECTED] To: The elegant MVC web framework catalyst@lists.rawmode.org Sent: Monday, January 08, 2007 5:37 PM Subject: Re: [Catalyst] Browser window/tab independent sessions Octavian Rasnita wrote: Hi, Maybe I didn't understand well the question, but if the user wants to create

Re: [Catalyst] Browser window/tab independent sessions

2007-01-08 Thread Octavian Rasnita
From: Carl Franks [EMAIL PROTECTED] To see better what's happening, try using a browser plugin that will let you view current cookies, or use javascript to display the current cookies. IE might not be creating the actual cookie file immediately on each page view. I already use a browser

[Catalyst] Apache logs

2007-01-07 Thread Octavian Rasnita
Hi, I have set one default error log file in httpd.conf for all the virtualhosts, using: ErrorLog logs/error.log and one especially for my virtual host, using: ErrorLog e:/web/TranzactiiBursiere/logs/error.txt The problem is that some of the messages generated by the Catalyst application

Re: [Catalyst] $c-email

2007-01-06 Thread Octavian Rasnita
/6/07, Octavian Rasnita [EMAIL PROTECTED] wrote: Hi, Does anyone have an example of sending a UTF-8 encoded email message using $c-email? Thank you. Octavian ___ List: Catalyst@lists.rawmode.org Listinfo: http

Re: [Catalyst] Modifying a value returned with DBIC

2007-01-05 Thread Octavian Rasnita
From: Xavier Robin [EMAIL PROTECTED] I solved this thing myself by using the replace method described here : http://search.cpan.org/~abw/Template-Toolkit-2.15/lib/Template/Manual/VMethods.pod So in your template: [% FOREACH message IN messages %] p[% message.replace('\n', 'br') %] [% END %]

[Catalyst] Modifying a value returned with DBIC

2007-01-04 Thread Octavian Rasnita
Hi, I want to get some messages from a database using DBIx::Class, then to pass them to TT, but I also want to make some preformatting before sending to TT. (I don't know if TT can do what I want). I did: @messages = $c-model(Db::Forum)-search({ id_room = $id_room, }, { join = id_user,

Re: [Catalyst] creating a model

2007-01-03 Thread Octavian Rasnita
Hmm, strange indeed. Are you using $c-user in your controllers? What version of perl (and build number) are you using? Octavian - Original Message - From: Nilson Santos Figueiredo Junior [EMAIL PROTECTED] To: The elegant MVC web framework catalyst@lists.rawmode.org Sent: Wednesday,

Re: [Catalyst] More about FormBuilder, how do I do more extensive tracing of the Catalyst internal executionpath?

2007-01-02 Thread Octavian Rasnita
From: David Morel [EMAIL PROTECTED] Catalyst::Controller::FormBuilder is the recommended way to go from now on. D.Morel Why is it recommended? I am asking because I couldn't install it under Windows. It depends on Test::WWW::Mechanize::Catalyst. I found this module using ppm, and I have

Re: [Catalyst] create=static

2007-01-02 Thread Octavian Rasnita
From: Brandon Black [EMAIL PROTECTED] Are you absolutely sure that your foreign keys are really working in MySQL? Are you using InnoDB? Did you specify them on a separate line like FOREIGN KEY (foo) REFERENCES bar (baz) ? Do they exist when you look at the output of SHOW CREATE TABLE

Re: [Catalyst] creating a model

2007-01-02 Thread Octavian Rasnita
From: Matt S Trout [EMAIL PROTECTED] Because we aren't psychic and can't magically solve your windows installation problems without you ACTUALLY TELLING US WHAT WENT WRONG? No, wait, I don't think other languages' developers have ESP either :) Try the Catalyst-Runtime packages from

Re: [Catalyst] creating a model

2007-01-02 Thread Octavian Rasnita
@lists.rawmode.org Sent: Tuesday, January 02, 2007 7:49 PM Subject: Re: [Catalyst] creating a model On Tue, Jan 02, 2007 at 07:42:41PM +0200, Octavian Rasnita wrote: It gave errors when using $c-user in a controller or a template. When not using $c-user, the program worked well. We're making

Re: [Catalyst] creating a model

2007-01-02 Thread Octavian Rasnita
] To: The elegant MVC web framework catalyst@lists.rawmode.org Sent: Tuesday, January 02, 2007 7:52 PM Subject: Re: [Catalyst] creating a model On 2 Jan 2007, at 17:42, Octavian Rasnita wrote: From: Matt S Trout [EMAIL PROTECTED] Because we aren't psychic and can't magically solve your windows

Re: [Catalyst] IMPORTANT: Catalyst::Plugin::FormBuilder obsoleted by::Controller::FormBuilder

2007-01-02 Thread Octavian Rasnita
Oh, too bad. I have tried installing it under Windows, but I couldn't. It requires Test::WWW::Mechanize::Catalyst. I have installed this module using ppm, but if I run it, it breaks with the error telling that Test::WWW::Mechanize is required but it was not installed. Test::WWW::Mechanize

Re: [Catalyst] creating a model

2007-01-02 Thread Octavian Rasnita
Oh yes, I was that who said that I have finally solved the problem, by installing Tie::RefHash by force, however I am not sure I won't have problems in the future because of this. Installing by force, just created 2 files: lib/Tie/RefHash.pm and: lib/auto/Tie/RefHash/.packlist I don't know,

[Catalyst] getting the ID of the user

2006-12-30 Thread Octavian Rasnita
Hi, I have tried to get the id of the currently logged user, using: $c-user-id But it returned same thing as $c-user (the username and not its ID). I have seen that if I use other fields like $c-user-email, they are got correctly, so I think id might be a special field which is used by

[Catalyst] redirection to the original URI

2006-12-30 Thread Octavian Rasnita
Hi, If the user wants to access a restricted zone and it is redirected to the login page, which is the recommended way of redirecting him back to the original URL? I know that I could create a hidden field in the login form and put the request URL in that field, and after the login, make a

Re: [Catalyst] debugging the login

2006-12-29 Thread Octavian Rasnita
From: Ash Berlin [EMAIL PROTECTED] Something else is the case here. If you try $c-user; in a controller I suspect it will give you same error as from the template. As to the exact cause, hard to say, but its something to do with authentication setup. Aha, so it is a known issue? Does it

[Catalyst] default template

2006-12-29 Thread Octavian Rasnita
Hi, I often need to make external redirections like in the following case: sub logout : Local { my ($self, $c) = @_; $c-logout; $c-res-redirect($c-uri_for(/)); } When I access /user/logout for executing this subroutine, it prints the following error: Coldn't render template file error -

Re: [Catalyst] default template

2006-12-29 Thread Octavian Rasnita
From: Eden Cardim [EMAIL PROTECTED] No, there isn't. Catalyst only emits the response after all the actions are dispatched. One way you can keep the end action from running is by not having one. In your case, set up a Controller without an end action just for authentication. In there, you can

Re: [Catalyst] default template

2006-12-29 Thread Octavian Rasnita
')); } So it was just like a common sub : Private action. Octavian - Original Message - From: Jonathan Rockway [EMAIL PROTECTED] To: The elegant MVC web framework catalyst@lists.rawmode.org Sent: Friday, December 29, 2006 10:20 PM Subject: Re: [Catalyst] default template Octavian Rasnita

[Catalyst] accessing the name of the logged user

2006-12-28 Thread Octavian Rasnita
Hi, Can you tell me how can I access the name of the currently logged user for printing it in a TT template? I have tried: if ($c-user_exists) { $c-stash-{user} = $c-user; } But it gives the following error: Coldn't render template undef error - Can't call method from_session on an

  1   2   >