On 5/20/2011 2:21 PM, jeff robinson jeffreyianrobinson-at-gmail.com |Catalyst/Allow to
home| wrote:
Hi,
I need to be able to process a view through a TT template but instead
of subjecting it to the usual chain of processing (pre-process,
wrapper etc) I just want to return it as text to the
On 5/20/2011 3:10 PM, jeff robinson jeffreyianrobinson-at-gmail.com |Catalyst/Allow to
home| wrote:
Not quite sure how an intro to TT answers my question, but I did find it here:
Because it shows how to call TT to return a string to the caller.
On 4/17/2011 9:55 PM, Dave Rolsky autarch-at-urth.org |Catalyst/Allow to home|
wrote:
Running moose-outdated | cpanm should upgrade everything that needs upgrading.
I don't have cpanm, but moose-outdated is good to know about! Thanks.
___
List:
On 4/17/2011 8:14 PM, Adam Jimerson vendion-at-gmail.com |Catalyst/Allow to
home| wrote:
I am trying to display display information about the user currently logged
into my catalyst app but for some reason it is returning blank (or even
null). I am trying to display the uniqid (user id) and
I just updated Moose to 2, on my development system, prepatory to doing some Moose
explorations.
Catalyst didn't like it one bit. I'm still installing other updates based on things
mentioned in errors, when I try and run script/myapp_server.
Any specific advice?
I see the latest
On 4/13/2011 11:26 AM, Mesdaq, Ali amesdaq-at-websense.com |Catalyst/Allow to
home| wrote:
Try the full version of Komodo. It understands tt files by default. It's been
great to me the past few years. I can't imagine working in a heavy
perl/catalyst environment without it.
Too bad Komodo
I use Eclipse (EPIC) too with the Amateras HTML Editor to open .tt
and .tt2 file extensions:
Window - Preferences - General - Editors - File Associations
OK, y'all have convinced me to try Eclipse next.
I installed it on Windows x64, along with Amateras. Setting the association to tt
The string I end up with, when the user supplied stuff using a TEXTAREA in a form,
contains 0D 0A line endings. This gets passed through as-is until the data runs into
something that doesn't like it.
I would think that the strings imported into Perl would be immediately massaged into
Perl's
On 4/11/2011 8:54 AM, Jorge Gonzalez jorge.gonzalez-at-daikon.es |Catalyst/Allow to home|
wrote:
You can be assured that it's being done that way. Certainly all modern operating systems
do Copy-On-Write on memory pages, which means that several processes with a common set
of code will share
Thanks for the comprehensive reply! That will keep my busy for a while.
On 4/11/2011 10:25 AM, Peter Edwards peter-at-dragonstaff.co.uk |Catalyst/Allow to home|
wrote:
There are two main JS editors, the one above and TinyMCE, you have to be
careful though.
1) People paste a Word document
On 4/11/2011 2:01 PM, Eden Cardim edencardim-at-gmail.com |Catalyst/Allow to
home| wrote:
Emacs also has a set of extensions written by jrockway that facilitate
the writing of perl code in general. I use that combined with yasnippet
and the perltidy extension for maximum throughput and it's
On 4/11/2011 10:25 AM, Peter Edwards peter-at-dragonstaff.co.uk |Catalyst/Allow to home|
wrote:
I've used this before - perhaps it will work for you:
http://ckeditor.com/
That looks interesting, but digging through the documentation it seems that its native
output format is XHTML, and
You are right in this case: the pages would be shared just after the fork, but would
probably start to get copied individually for each process again as soon as the process
starts doing something useful. For perl, which works as some kind of JIT compiler, the
script executable code is just
I have a form where an admin can change a part of the content on a page. The form lets
someone do it without having to update the files on the server in a more traditional
manner; BUT, it must be correct XHTML. If the admin types a p or a stray '' for that
matter, it will render the resulting
Looking at the server's processes, I see three of script/myapp_fastcgi.pl, which I suppose
co-inside with the Apache configuration option where I said to start 3 fastcgi processes
to handle this app.
WebMin tells me size, which can't be the actual load of server RAM needed since it
doesn't
I would suppose that the maintainers follow this mailing list?
Near the beginning of Catalyst::Manual::Intro, it reads:
Note that actions with the |:Global | attribute are equivalent to using a
|:Path('action_name') | attribute, so our action could be equivalently:
However, the preceding
I want to make an admin page available on a URL that's not called admin, but is
something less obvious that people might guess. Even though it will have a password, it
will stop people from just trying to find it.
I thought to configure it using the normal config features:
use 5.10.1;
In Catalyst/Manual/Intro.pod,
The URL (for example http://localhost.3000/foo/bar) consists of two parts
The dot should be a colon.
--John
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
To achieve what you want, change the config:
__PACKAGE__-config-{path} = '/secret_path';
method index($c) :Path {}
Charlie
Thanks. I found that mentioned in the COntroller docs, once you mentioned it. However,
it also refers to :PathPrefix as well as :Local, :Path, etc, which I've
Since fastcgi doesn't get along with the deflate module, I've turned it off, per the
installation instructions and Catalyst tutorials.
But I'm wondering about SVG images. Can I pre-compress the files on disk and have the
browser see the same thing as the deflate wrapper around the actual
On 4/4/2011 8:09 PM, Andrew Rodland andrew-at-cleverdomain.org |Catalyst/Allow to home|
wrote:
For starters: you don't need to do without mod_deflate. Just install a non-broken
version of mod_fastcgi (version SNAP-0811090952, from 2008, or newer).
I did think it was odd that the current
On 3/27/2011 12:22 PM, Tomas Doran bobtfish-at-bobtfish.net |Catalyst/Allow to
home| wrote:
And I would say that sending an email is a state change, and behavior of the application
domain here.
That's a stretch, because you can argue that any side-effect is a change of state to the
universe
Where is Content-Type being set?
I'd like to send it instead as application/xhtml+xml, if the Accept header of the request
claims to take that. I found this example of rewriting it in Apache, but it would be far
easier to target the necessary pages, not to mention more elegant, if I did this
I don't understand why
|Catalyst::Plugin::Unicode::Encoding|
is necessary, based on the writup: it takes request arguments and converts them from
whatever they came in to Perl's native encoding, and likewise for the response.
But Perl is using UTF-8 in its strings anyway. So what's it have
On 3/28/2011 1:25 PM, Jorge Gonzalez jorge.gonzalez-at-daikon.es |Catalyst/Allow to home|
wrote:
Did you set ENCODING = 'utf-8' in the configuration of your TT View?
Ah, thanks! That worked. I looked again carefully at
On 3/27/2011 2:24 AM, Tomas Doran bobtfish-at-bobtfish.net |Catalyst/Allow to
home| wrote:
Erm, why?
Why should it be called an 'accessory', rather than a 'model', what's the difference
other than the nomanclature you want to use?
Cheers
t0m
A view queries the model in order to generate
On 3/23/2011 8:58 AM, Bill Moseley moseley-at-hank.org |Catalyst/Allow to home|
wrote:
Post the smallest possible example (20 lines?) that clearly shows the
problem.
OK, I verified that it still chokes if I strip it down to the bare essentials.
If the view produces a stream that includes a
On 3/22/2011 3:07 AM, Jorge Gonzalez jorge.gonzalez-at-daikon.es |Catalyst/Allow to home|
wrote:
...
my $mail = Mail::Builder::Simple-new;
$mail-send(
from = MyApp-config-{Mail}{from},
to = MyApp-config-{Mail}{to},
subject = MyApp-config-{Mail}{subject},,
plaintext = Hello,\n\nHow are
If Catalyst had something called an accessory that could draw upon the auto-discovery,
loading, configuration, etc. of Components, but did not claim to be a model, I might agree.
On 3/22/2011 4:42 AM, Octavian Rasnita orasnita-at-gmail.com |Catalyst/Allow to
home| wrote:
From: Jorge Gonzalez
Caught exception in engine Wide character in syswrite at
/usr/share/perl5/Catalyst/Engine.pm line 675
When I had a literal U+2032 (a U.S. feet measurement mark) in my tt file, Catalyst
didn't mind one bit. I moved that particular content into a model, and now it's expanded
into the template
Any clues what this means:
Caught exception in engine Wide character in syswrite at
/usr/share/perl5/Catalyst/Engine.pm line 675
When I had a literal U+2032 (a U.S. feet measurement mark) in my tt file, Catalyst
didn't mind one bit. I moved that particular content into a model, and now it's
On 3/21/2011 1:48 AM, Octavian Rasnita orasnita-at-gmail.com |Catalyst/Allow to
home| wrote:
You can use any of them or Catalyst::Helper::Model::Email. The plugin is no longer
recommended.
So I see. It's a simple wrapper that just integrates Catalyst config files, and that
suits by purpose.
On 3/21/2011 11:45 AM, Kutbuddin Doctor ksdoctor-at-sanfordburnham.org |Catalyst/Allow to
home| wrote:
Can someone post instructions for using postfix withing catalyst?
I have been seeing several (earlier) posts recommending Email::Sender.
I see instructions in Email::Sender for SMTP and
On 3/21/2011 1:37 PM, will trillich will.trillich-at-serensoft.com |Catalyst/Allow to
home| wrote:
$c-stash-{*email*} = {
from = $c-config-{email_from},
'reply-to' = $c-user-email_name,
to = $c-user-email_name,
cc = join(',', @cc),
subject=
On 3/21/2011 4:46 PM, Dave Rolsky autarch-at-urth.org |Catalyst/Allow to home|
wrote:
Usually, this will be implemented as something that just writes a file to the server's
mail queue, without relying on the server actually running. The server will pick it up
when it runs, and will handle it
On 3/21/2011 9:07 PM, Andrew Rodland andrew-at-cleverdomain.org |Catalyst/Allow to home|
wrote:
There doesn't need to be any instead of. The email view doesn't set any
response body, so the default view will still run later on by whatever means
usually runs it (i.e. RenderView).
I thought
Any pointers as to the right (or best) way to send an email from my Catalyst
App?
I see there is a Plugin::Email and also a View::Email, which seems to be something totally
different?
Obviously any integrated module should be simpler than just calling sendmail or
Email::Send::SMTP from the
On 3/17/2011 4:24 AM, Carl Franks fireartist-at-gmail.com |Catalyst/Allow to
home| wrote:
It looks like cpan installed it, though its dependancies didn't install cleanly.
Makefile.PL fails to require() it, so thinks its not installed.
Try installing Data::Visitor - and check cpan's output for
I've set up my app on an Apache server using fastcgi. Following the instructions in the
cookbook and a few other places, The Virtual Server block looks something like this:
ServerName www.ClientsDomainName.com
ServerAlias CLientID.dlugosz.com
ServerAlias ClientID.LocalCloneOfServer
When I try to move my app to (a clone of) my Debian server, I get an error installing Perl
modules.
I've determined that just loading the module URI::SmartURI gives an infinite
recursion.
It seems that 'blessed' keeps calling AUTOLOAD to handle it! I've updated everything, to
no avail.
I'd
When I generate a makefile, I also get directories called inc and blib. What are those
for? They are not used by the app.
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive:
I'm going through the Packt Publishing book, and I can't help but wonder first of all why
I had to return to it, instead of finding this in the online documentation? I find tips
on configuring fastcgi, but it completely leaves out all mention of the makefile and the
available options! I did
On 3/16/2011 2:02 AM, Octavian Rasnita orasnita-at-gmail.com |Catalyst/Allow to
home| wrote:
Why would you like to need to escape every path component by using the TT uri filter for
more times and escape the reserved chars even where they can be used as they are,
instead of using the html
On 3/16/2011 8:15 AM, will trillich will.trillich-at-serensoft.com |Catalyst/Allow to
home| wrote:
Probably you've already run this as root (or via sudo) and paths have been
created with root ownership. Your normal user isn't allowed to frob those.
Under Debian Squeeze, it appears that the
On 3/16/2011 4:21 AM, Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯 daxim-at-cpan.org |Catalyst/Allow to
home| wrote:
This is not a good idea. Instead configure the cpan options
`make_install_make_command` and `mbuild_install_build_command` to employ sudo.
http://p3rl.org/CPAN#Config_Variables
Just inserting sudo in
On 3/15/2011 1:38 AM, Octavian Rasnita orasnita-at-gmail.com |Catalyst/Allow to
home| wrote:
uri_for() escapes each component, but I guess that it doesn't escape it if it contains a
slash in it.
For example, you can do:
img src=[% c.uri_for('/static', 'ham and eggs.jpg').path %]
It will
On 3/15/2011 4:56 AM, Octavian Rasnita orasnita-at-gmail.com |Catalyst/Allow to
home| wrote:
uri_for() escapes only the chars which are not in the following list (from
URI.pm):
$reserved = q(;/?:@=+$,[]);
$mark = q(-_.!~*'());#'; emacs
$unreserved
On 3/15/2011 6:03 AM, Aristotle Pagaltzis pagaltzis-at-gmx.de |Catalyst/Allow
to home| wrote:
* John M. Dlugoszwxju46g...@snkmail.com [2011-03-15 08:10]:
img src=[% c.uri_for(/static/gallery,rec.dirname,rec.filename) %] alt=photo
/
That works (using Smart_URI settings to leave off the
Consider this TT fragment:
[% fname = rec.filename | uri %]
img src=[% c.uri_for(${directory}/${fname}) %] alt=photo /
There is no reason to suppose that the filename following URL naming conventions, and may
be something like ham eggs.jpeg. This in fact works as written, but I'm
On 3/9/2011 4:55 AM, asjo-at-koldfront.dk |Catalyst/Allow to home| wrote:
Catalyst doesn't need to specifically handle fragments because URI
objects do so, and Catalyst returns those.
That's what I ended up doing. With TT it was a little more awkward since it didn't chain
the calls:
On 3/8/2011 10:27 AM, Ashley Pond V apv-at-sedition.com |Catalyst/Allow to
home| wrote:
Well, the original message was:
How do I call uri_for_action and pass it the '#id' part? It's not an arg and
it's not part of the query string. This is called the fragment identifier in
the final URL.
I want to make one path in my app password protected, and a very simple way will be
fine. Also, while in development, I want to make the whole think password protected.
I thought I'd just use .htaccess. But, since this isn't really an appache directory
(except for static files), where would
Reading the FormFu documentation, I was referred to Template::Alloy.
After reading about that, I want to switch from TT to using that! So, if it's everything
it claims to be, why isn't that the default and used by all the examples I've seen?
Should I think twice about it?
--John
On 3/7/2011 9:34 AM, Ronald J Kimball rkimball-at-pangeamedia.com |Catalyst/Allow to
home| wrote:
On Sun, Mar 6, 2011 at 6:46 AM, John M. Dlugoszwxju46g...@snkmail.com wrote:
On 3/6/2011 5:28 AM, Andrew Rodland andrew-at-cleverdomain.org
|Catalyst/Allow to home| wrote:
Or, since you know
On 3/7/2011 1:35 PM, Ashley Pond V apv-at-sedition.com |Catalyst/Allow to
home| wrote:
Using the fragment is probably a bad idea. It's not supported by all
servers so it can end up lost on the backend depending on your setup.
-Ashley
I've never heard of a web server that didn't have
I'm supposing that there must be something in the request object that lets me know if
I'm serving to particular browsers, in particular to whatever version of IE. Then, in
some single place in the app, automatically digest that and stick a flag in the stash.
Now, the TT files can test for
How do I call uri_for_action and pass it the '#id' part? It's not an arg and it's not
part of the query string. This is called the fragment identifier in the final URL.
___
List: Catalyst@lists.scsys.co.uk
Listinfo:
-at-gmail.com |Catalyst/Allow
to home| wrote:
On 06.03.2011, at 11:56, John M. Dlugosz wrote:
I'm supposing that there must be something in the request object that lets me
know if I'm serving to particular browsers, in particular to whatever version
of IE. Then, in some single place in the app
On 3/6/2011 5:28 AM, Andrew Rodland andrew-at-cleverdomain.org |Catalyst/Allow to home|
wrote:
Or, since you know that what it generates *doesn't* have a fragment you could
always just $c-uri_for_action(...) . '#id' which will be perfectly valid
(although no longer a URI object).
I considered
What's the best form-generating/processing library for Catalyst, assuming I don't need
to worry about old baggage and can move forward with the latest and greatest stuff?
--John
___
List: Catalyst@lists.scsys.co.uk
Listinfo:
On 3/6/2011 8:06 AM, Charlie Garrison garrison-at-zeta.org.au |Catalyst/Allow to home|
wrote:
Good morning,
On 6/03/11 at 5:36 AM -0600, John M. Dlugosz wxju46g...@snkmail.com wrote:
I'd like to set flags based on what that contains, like send SVG images. Where would
I put that in MyApp so
On 3/5/2011 3:01 AM, Tomas Doran bobtfish-at-bobtfish.net |Catalyst/Allow to
home| wrote:
Ergo you can just do your work in the BUILD method for your model.
Thanks for that, and the example.
Just pass in the root you want the model to see as config, add an attribute, and the
value will
How do I send stuff to the console running the script/Appname_server.pl -d from a
component method?
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive:
I want to do something once ahead of time, not every time my Model is used by a page.
Where is the correct place to put code that will execute once during app set-up, and how
can it know what the configured root directory is?
Thanks,
--John
___
On 3/3/2011 1:58 AM, Octavian Rasnita orasnita-at-gmail.com |Catalyst/Allow to
home| wrote:
From: will trillich
Here's our current dev-to-deploy approach -- we use mercurial and a
three-step staging process:
I think that it could be helpful to add a page to the Cat site that
On 3/3/2011 11:28 AM, Cliff Green green-at-umdnj.edu |Catalyst/Allow to home|
wrote:
On 3/3/2011 11:11 AM, John M. Dlugosz wrote:
On 3/3/2011 9:24 AM, Cliff Green green-at-umdnj.edu |Catalyst/Allow to
home| wrote:
On 3/3/2011 9:27 AM, Mesdaq, Ali wrote:
I have been using Komodo for years
What's a good text editor to use for Catalyst/TT development?
The editor I really like for C++ doesn't handle XML well. I've been using Notepad++ for
windows, but the syntax highlighting doesn't understand mixing TT inside the base
language, and it has tabs only instead of multiple visible
On 3/2/2011 5:49 AM, Kieren Diment diment-at-gmail.com |Catalyst/Allow to
home| wrote:
Padre: http://padre.perlide.org/ is rated by some. Works everywhere Wx does.
Looks very interesting.
How do I set it for XML + TT syntax? Scintilla is also what Notepad++ uses, so it must be
a matter
On 3/2/2011 10:44 AM, Shlomi Fish shlomif-at-iglu.org.il |Catalyst/Allow to
home| wrote:
First of all, see:
http://perl-begin.org/IDEs-and-tools/
I'm personally using GVim, which is the GUI version of Vim (
Thanks for your tips. I see many of the things listed are for Perl development, and
On 3/2/2011 11:24 AM, Tomas Doran bobtfish-at-bobtfish.net |Catalyst/Allow to
home| wrote:
Installing to production servers via rsync / unison is insane, as there is exactly no
way of knowing what version the production server is on, with what bugs... Which means
that all bug reports become
On 3/2/2011 11:27 AM, Pedro Melo melo-at-simplicidade.org |Catalyst/Allow to
home| wrote:
Of course you can. You can include a file .version at the root created
with 'git describe --always' .version before you rsync, and then
include it on your test reports.
Nice tip. Thanks.
Say I want to use TT in the .css, so (for example) I can name my colors and other
repeated content easily.
I'm assuming that I can define a Path of some kind on a rule to serve those. Any recipes
to share?
More critically, I want the browser to know that it doesn't have to keep re-fetching
Técnico
*/DAIKON Integración y Desarrollo S.L./*
Telf: (+34) 91 188 08 28
Fax: (+34) 91 632 65 42
*www.daikon.es*
El 01/03/11 10:23, John M. Dlugosz escribió:
Say I want to use TT in the .css, so (for example) I can name my colors and
other repeated content easily.
I'm assuming that I can
On 3/1/2011 9:58 AM, Bill Moseley moseley-at-hank.org |Catalyst/Allow to home|
wrote:
At build time I minimize and compress css and js (and images) and combine
into single files grouped by page(s). They could be pre-processed by TT
very easily. The final file names include an MD5 of their
A module documented to put
Plugin::SmartURI
disposition hostless
/Plugin::SmartURI
in the myapp.conf file. But, what is the equivalent __PACKAGE__-config( syntax for the
MyApp.pm file? I can't find documentation on how the names are mapped, and I've even seen
different syntax in
On 2/25/2011 4:06 AM, Tomas Doran bobtfish-at-bobtfish.net |Catalyst/Allow to
home| wrote:
__PACKAGE__-meta-make_immutable;
1;
And you then call $c-model('Foo')-data;
The implementation of the 'data' method could then later be replaced by an attribute
(i.e. has data = ( is = 'ro', isa =
On 2/25/2011 9:30 AM, Ashley Pond V apv-at-sedition.com |Catalyst/Allow to
home| wrote:
What t0m suggested is perfectly fine but if you want to mimic the DBIC
API with a different engine, this example does that (superficially and
as a tutorial only): http://sedition.com/a/2739 Log file
I'm planning several web pages that will be the same except for the actual
content.
Rather than code the details in the TT template or prepare a list literally in
the Controller, I'm thinking that this ought to go into a Model.
But, it can just be a Perl declaration. Something like:
my
I just started trying Catalyst. I went through the Packt Publishing book, but
now want a more technical explanation with details. Any suggestions on what
documentation to read?
With the situation as set-up by default, I would write:
img src=/static/images/bad_logo.png /
to access a site
On 2/23/2011 5:41 AM, Carl Franks fireartist-at-gmail.com |Catalyst/Allow to
home| wrote:
On 23 February 2011 11:30, John M. Dlugoszwxju46g...@snkmail.com wrote:
I just started trying Catalyst. I went through the Packt Publishing book, but
now want a more technical explanation with
On 2/23/2011 6:26 AM, Octavian Rasnita orasnita-at-gmail.com |Catalyst/Allow to home|
wrote:
But you can create one or more directory with static files, for example /images, /js,
/css. These directories must be created under the root directory.
And of course, it is recommended to configure
81 matches
Mail list logo