Re: [cgiapp] RFC: CGI::Application::RunModeCache

2004-05-12 Thread Sam Tregar
On Thu, 13 May 2004, Cees Hek wrote: Memoize is mainly used in persistant environments. Although many people use mod_perl or SpeedyCGI with C::A, we are talking about CGI::Application, so a disk based cache makes sense as a default. Memoize can do disk-based caching. From the docs: tie

Re: [htmltmpl] Whitespace (linefeed) suppression?

2004-05-11 Thread Sam Tregar
On Tue, 11 May 2004, Mark Fuller wrote: It seems like there should be a way to express TMPL_COMMENT tmpl_if comment/tmpl_if Then don't define comment. Compare to the POD =begin comment convention which is very similar. But, more importantly, it seems like something is missing in H::T

Re: [htmltmpl] Whitespace (linefeed) suppression?

2004-05-11 Thread Sam Tregar
On Tue, 11 May 2004, Mark Fuller wrote: I don't think you're saying this, but doesn't your decision ultimately mean legibility of the template is outside the scope of H::T? On the one hand you're saying H::T does exactly what you tell it to do. On the other hand, if you write it legibly but

Re: [htmltmpl] warning_on_bad_params

2004-05-11 Thread Sam Tregar
On Wed, 12 May 2004, Gabor Szabo wrote: I asked this a couple of days ago with no response. I'd really appreciate your feedback. Sorry about that. I meant to reply but got distracted. When we put the pages online I'd like to be sure they won't crash because of bad params but I'd like to

[htmltmpl] ANNOUNCE: Krang v1.018 Released

2004-05-10 Thread Sam Tregar
Krang v1.018 is now available. Notable changes in this release: - Krang will keep working if you to delete the 'admin' user. A new hidden 'system' account is now used by automated tasks. - The permissions system is now applied throughout the UI. - The publish_check() method is

Re: [htmltmpl] Executing code after print $template-output

2004-05-10 Thread Sam Tregar
On Mon, 10 May 2004, Todd wrote: Trying closing STDOUT after the call to output. You really don't want to do that in mod_perl... -sam --- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola,

[cgiapp] ANNOUNCE: Krang v1.018 Released

2004-05-10 Thread Sam Tregar
Krang v1.018 is now available. Notable changes in this release: - Krang will keep working if you to delete the 'admin' user. A new hidden 'system' account is now used by automated tasks. - The permissions system is now applied throughout the UI. - The publish_check() method is

ANNOUNCE: Krang v1.018 Released

2004-05-10 Thread Sam Tregar
Krang v1.018 is now available. Notable changes in this release: - Krang will keep working if you to delete the 'admin' user. A new hidden 'system' account is now used by automated tasks. - The permissions system is now applied throughout the UI. - The publish_check() method is

Re: [htmltmpl] Select/option How to set selected?

2004-05-03 Thread Sam Tregar
On Mon, 3 May 2004, Mark Fuller wrote: By way of suggestion, the way HTML::Template has various __first__, __last__, __counter__ helper fields, I wish there were a way to inform a loop of a special value used to indicate the row that should get the selected attribute. It seems like there's a

ANNOUNCE: Krang v1.017 Released

2004-04-30 Thread Sam Tregar
Krang v1.017 is now available. Notable changes in this release: - A major performance speedup for previewing and publishing is now in place. Links to stories and media which are unchanged since their last publish will no longer trigger publishing. - The category chooser now

Re: [htmltmpl] H::T::EXPR and H::T::JIT at the same time

2004-04-24 Thread Sam Tregar
On Fri, 23 Apr 2004, Steven Bauer wrote: Is it possible to instantiate a template that uses both H::T:Expr and H::T:JIT at the same time? Try reading the docs for HTML::Template::JIT. It mentions the status of HTML::Template::Expr support. -sam

Re: FAIL XML-Validator-Schema-1.06 ppc-darwin-thread-multi 7.2.0

2004-04-22 Thread Sam Tregar
On Thu, 22 Apr 2004 [EMAIL PROTECTED] wrote: t/02yaml# No tests run! dubious Test returned status 255 (wstat 65280, 0xff00) This usually means you have a broken XML::SAX installation. Run this to see a list of available XML::SAX parsers: perl -MXML::SAX -e 'print $_-{Name}\n

Re: FAIL XML-Validator-Schema-1.06 sun4-solaris-thread-multi 2.8

2004-04-22 Thread Sam Tregar
On Thu, 22 Apr 2004, Thurn, Martin wrote: # Failed test (t/02yaml.t at line 15) restriction.yml: block 8 Illegal value '' in element three, not in allowed list (1, 0, true, false) # Looks like you failed 1 tests of 480. Attempt to free unreferenced scalar: SV 0xfce668 during

Re: FAIL XML-Validator-Schema-1.06 i686-linux 2.4.13

2004-04-22 Thread Sam Tregar
On Thu, 22 Apr 2004 [EMAIL PROTECTED] wrote: t/02yaml# No tests run! This usually means you have a broken XML::SAX installation. Run this to see a list of available XML::SAX parsers: perl -MXML::SAX -e 'print $_-{Name}\n for @{XML::SAX-parsers||[]};' Here's what I get:

Re: FAIL XML-Validator-Schema-1.06 i686-linux 2.4.13

2004-04-22 Thread Sam Tregar
On Thu, 22 Apr 2004, David Wheeler wrote: $ perl -MXML::SAX -e 'print $_-{Name}\n for @{XML::SAX-parsers||[]};' could not find ParserDetails.ini in /usr/local/lib/perl5/site_perl/5.8.0/XML/SAX Yeah, that's a broken XML::SAX install alright. The easiest way to fix it is probably to reinstall

[htmltmpl] ANN: Krang v1.016 Released

2004-04-20 Thread Sam Tregar
Krang v1.016 in now available. Changes in this release: - Added support for FreeBSD 4.9 and Debian Linux. - Fixed bugs. Detailed change-log here: http://krang.sf.net/docs/changelog.html Krang is an Open Source web-publisher / content-management system designed for large-scale

Re: [cgiapp] Using Exception::Class with Login module

2004-04-16 Thread Sam Tregar
On Fri, 16 Apr 2004, dfs dsf wrote: Firstly I've read the documentation for Exception::Class on the cpan site but didn't get it quite right, to be right after reading the document I'm confused about how to use the module. I'm confused about how to read that sentence! I guess you found the

Re: [cgiapp] CGI::Application and POE

2004-04-15 Thread Sam Tregar
On Thu, 15 Apr 2004, Cory Trese wrote: I am working on creating a POE HTTP server that provides the ability to host a set of CGI::Application objects in a standalone web server. I've looked at POE a couple times, but I never could figure out why anyone would use it. What advantage does a POE

Re: free software and open source

2004-04-11 Thread Sam Tregar
On Sun, 11 Apr 2004, Saurabh Data wrote: Can anyone in your own words clarify the difference between open source and free software. Don't take our words for it, get it from the Gnu's mouth: http://www.gnu.org/philosophy/free-software-for-freedom.html -sam -- MySQL General Mailing List

[htmltmpl] ANN: Krang v1.015 Released

2004-04-08 Thread Sam Tregar
Krang v1.015 in now available. Changes in this release: - Added support for Gentoo Linux, Fedora Core and FreeBSD. - Upgraded Apache and mod_perl to their latest releases. - Fixed numerous bugs and portability problems. - Improved documentation. Detailed change-log here:

Re: [cgiapp] Splitting large projects.

2004-04-08 Thread Sam Tregar
On Thu, 8 Apr 2004, John Day wrote: I am starting a new project today which is going to be bigger, and I would like to break things up. But if I put the run modes into modules of their own how do they get access to the params and to the CGI query for example? You might be interested in

[cgiapp] ANN: Krang v1.015 Released

2004-04-08 Thread Sam Tregar
Krang v1.015 in now available. Changes in this release: - Added support for Gentoo Linux, Fedora Core and FreeBSD. - Upgraded Apache and mod_perl to their latest releases. - Fixed numerous bugs and portability problems. - Improved documentation. Detailed change-log here:

ANN: Krang v1.015 Released

2004-04-08 Thread Sam Tregar
Krang v1.015 in now available. Changes in this release: - Added support for Gentoo Linux, Fedora Core and FreeBSD. - Upgraded Apache and mod_perl to their latest releases. - Fixed numerous bugs and portability problems. - Improved documentation. Detailed change-log here:

ANN: Krang v1.014 Released

2004-04-02 Thread Sam Tregar
Krang v1.014, the first public release, is now available. Krang is an Open Source web-publisher / content-management system designed for large-scale magazine-style websites. It is a 100% Perl application using Apache/mod_perl and MySQL, as well as numerous CPAN modules. Krang provides a

[cgiapp] Krang v1.014 Released

2004-03-31 Thread Sam Tregar
Krang v1.014, the first public release, is now available. Krang is an Open Source web-publisher / content-management system designed for large-scale magazine-style websites. It is a 100% Perl application using Apache/mod_perl and MySQL, as well as numerous CPAN modules. Krang provides a

Re: [htmltmpl] global_vars, TMPL_LOOPs and query()

2004-02-25 Thread Sam Tregar
On Wed, 25 Feb 2004, petersm wrote: Anywho, I'm not sure if this is a bug or if I'm not not understanding how it is supposed to work. The problem I am having is that when 'global_vars' is turned on any vars that are inside of TMPL_LOOPS show up when I get the vars back from a query(). But

Re: [htmltmpl] shared_cache with H::T::E

2004-02-25 Thread Sam Tregar
On Thu, 26 Feb 2004, Mathew Robertson wrote: What is the reason that H::T::E cant use a shared cache? It's missing code to make it work. -sam --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps Web services

Re: [htmltmpl] shared_cache with H::T::E

2004-02-25 Thread Sam Tregar
On Thu, 26 Feb 2004, Mathew Robertson wrote: any ideas...? I'd like to have a go at implementing it, as I think it would be a worthwhile addition... Why? I'm not a fan of shared_cache, personally. It's no faster than file_cache and total pain to adminster. I generally work in

Re: [htmltmpl] shared_cache with H::T::E

2004-02-25 Thread Sam Tregar
On Thu, 26 Feb 2004, Mathew Robertson wrote: We also use Apache/mod_perl. The reason is that quite often there will be 20 instances of Apache running (ie we get may requests per second). I'd like to reduce the memory usage a bit. And yes I know that running H::T::E is slow, but speed is

Re: [htmltmpl] Re: bounce messages

2004-02-24 Thread Sam Tregar
On Fri, 20 Feb 2004, Puneet Kishor wrote: to the list manager -- please take all instances of schuckert off the list (hopefully there is only one). Then if schukert starts missing H:T list messages, she/he will re-join. Done. -sam ---

Re: [htmltmpl] extended TMPL_IF / UNLESS syntax

2004-02-19 Thread Sam Tregar
On Fri, 20 Feb 2004, Mathew Robertson wrote: I often find myself generating template code such as: TMPL_UNLESS error TMPL_UNLESS print TMPL_IF some_var do something... /TMPL_IF /TMPL_UNLESS /TMPL_UNLESS When I see stuff like that I go into my

Re: [htmltmpl] Free Htmltemplate: Java implementation of HTML::Template

2004-02-18 Thread Sam Tregar
On Wed, 18 Feb 2004, Hrvoje Niksic wrote: Allow me to announce the availability of a Java implementation of HTML::Template. The home page is at: http://htmltemplate.inet.hr/ Wow, great work! I love the website and your excellent documentation. Feel free to make announcements of new

Re: [htmltmpl] Free Htmltemplate: Java implementation of HTML::Template

2004-02-18 Thread Sam Tregar
On Wed, 18 Feb 2004, [iso-8859-2] Hrvoje Nik?i? wrote: Good point, I really should back up such a claim with numbers. I originally didn't go out of my way to make Htmltemplate very fast, I simply coded it the obvious way. But then I did some benchmarks and, to my surprise, found it to be a

Re: [htmltmpl] Script under mod_perl occasionally gets garbage opening template

2004-02-17 Thread Sam Tregar
On Mon, 16 Feb 2004, Andy Pearce wrote: HTML::Template-new() : Unknown or unmatched TMPL construct (T0B5 This is an indication that you have a broken Perl install, most likely 5.8.0 or 5.8.1 on Redhat 8 or Redhat 9. Upgrade to 5.8.3 and this problem will go away. -sam

Re: [cgiapp] [ANNOUNCE] CGI::Application::Session 0.03

2004-02-11 Thread Sam Tregar
On Wed, 11 Feb 2004, Cees Hek wrote: Here is the simplest example of how to use this module: use base qw(CGI::Application); use CGI::Application::Session; I love the idea, but this usage seems a little suspect to me. It reminds me of Time::Piece::MySQL, which also adds methods to a class

Re: [cgiapp] [ANNOUNCE] CGI::Application::Session 0.03

2004-02-11 Thread Sam Tregar
On Wed, 11 Feb 2004, Cees Hek wrote: Interestingly enough, that is actually where I got the motivation to do it this way :) I did search around to see if there were any critisisms of this approach, but I couldn't find anything concrete. Do you have any reasons why it is a bad idea to use

Re: [htmltmpl] New Template Object based on Existing one

2004-02-09 Thread Sam Tregar
On Mon, 9 Feb 2004, Chris Faust wrote: That associate seemed like the way to go, when I tried that I get the H:T error attempt to set parameter 'items_loop' with a scalar - parameter is not a TMPL_VAR! Interesting. I've never tried to associate one template with another one, but I would

Re: [cgiapp] Re: Writing the CGI::Application book

2004-01-25 Thread Sam Tregar
On Sun, 25 Jan 2004, Richard Dice wrote: I honestly couldn't disagree more. [deletia] Class::DBI could indeed be underpowered to handle the kind of complicated cases that you describe. [ Could Tangram be the answer there, though? It has much more evolved object relationship mapping

Re: [cgiapp] Re: Writing the CGI::Application book

2004-01-25 Thread Sam Tregar
On Sun, 25 Jan 2004, Cees Hek wrote: Did you know you can do the same thing in just a few lines of Perl code? And those lines will be a lot easier to debug and maintain later (see reference to my cursing colleague for proof!). You can get the data in a few lines of code, but you can't

Re: [cgiapp] Another framework: CGI::Application::Plus

2004-01-21 Thread Sam Tregar
On Tue, 20 Jan 2004, Domizio Demichelis wrote: Good grief. This module offers nothing but syntactic sugar, The syntactic sugar it's just a plus among the others. The features that it implements make it possible the other more useful modules in the distribution. I see absolutely nothing in

Re: [cgiapp] Another framework: CGI::Application::Plus

2004-01-16 Thread Sam Tregar
On Mon, 12 Jan 2004, Mark Stosberg wrote: All the details are here: http://search.cpan.org/~domizio/CGI-Application-Plus-1.02/ Good grief. This module offers nothing but syntactic sugar, but it's not even a sub-class! Compounding this mistake, the author apparently has very little time to

Re: [htmltmpl] H::T in mod_perl (probably FAQs)

2003-12-10 Thread Sam Tregar
On Wed, 10 Dec 2003, Emanuele wrote: Apache::Request has a param() method that behaves much like the one from CGI.pm query object, so it should work... But unfortunately the only 'associate' example showed in the H::T pod uses (only) CGI, hence my question. That depends on how similar

Re: [htmltmpl] Re: H::T future

2003-12-09 Thread Sam Tregar
On Tue, 9 Dec 2003, Lance A. Brown wrote: # we allow tags like this in our templates that will define values # to be set as parameters # TMPL_VALUE NAME=name VALUE=value My eyes! It burns! Arrrgh... -sam --- This

Re: [htmltmpl] enhancements to H::T

2003-12-09 Thread Sam Tregar
On Tue, 9 Dec 2003, Mathew Robertson wrote: - TMPL_ELSIF tag, eg TMPL_ELSIF somevar I've certainly had a lot of requests for this feature, but I'm still reluctant to include it. I think it would only enable people to build even more complex logic into their templates, which is not generally a

RE: [htmltmpl] enhancements to H::T

2003-12-09 Thread Sam Tregar
On Tue, 9 Dec 2003, Paulsen, Brian wrote: This is trivially done in a filter, so there's no reason to add it to the core code. Agreed, but I think one thing that might be useful is to include a filter package that has some of the commonly requested filters. Sounds like a good idea. When

Re: [htmltmpl] xml complant tags

2003-12-08 Thread Sam Tregar
On Mon, 8 Dec 2003, paul POULAIN wrote: For instance, h::t tags are not html valid TMPL_VAR name=X is NOT valid. It should be : TMPL_VAR name=X/. You mean XML valid right? HTML::Template has nothing to do with XML so of course it's not valid XML! Is it possible to add this feature in a

Re: H::T future (was Re: [htmltmpl] xml complant tags)

2003-12-08 Thread Sam Tregar
On Mon, 8 Dec 2003, Puneet Kishor wrote: speaking of which, I have often wondered what could be improved in H-T, and have failed to come up with anything. It just seems to be that perfect program that does perfectly what it said to do. Simple to install and understand, well-documented, and

Re: [cgiapp] Perl Advent Calendar

2003-12-08 Thread Sam Tregar
On Sun, 7 Dec 2003, Cees Hek wrote: I just noticed that CGI::Application is the module being showcased on the Perl Advent Calendar today. http://perladvent.org/2003/8th/ Very cool. But couldn't it be the 'Eight Nights of Perl'? All this Christmas stuff really freaks me out. -sam

Re: FAIL XML-Validator-Schema-1.05 sun4-solaris 2.8

2003-11-15 Thread Sam Tregar
On Fri, 14 Nov 2003, Jost Krieger wrote: t/02yaml# No tests run! dubious Test returned status 255 (wstat 65280, 0xff00) Let me guess... You don't have a working XML::SAX install either, right? What's up with CPANPLUS that it'll let you get this far even though XML::SAX is in

Re: FAIL XML-Validator-Schema-1.05 i686-linux 2.4.13

2003-11-15 Thread Sam Tregar
On Fri, 14 Nov 2003, David Wheeler wrote: You should use plan skip_all if you're not going to run any tests. Right. $ perl -MData::Dumper -MXML::SAX -e 'print Dumper(XML::SAX-parsers)' could not find ParserDetails.ini in /usr/local/lib/perl5/site_perl/5.8.0/XML/SAX $VAR1 = []; It looks

Re: FAIL XML-Validator-Schema-1.05 i686-linux 2.4.13

2003-11-15 Thread Sam Tregar
On Fri, 14 Nov 2003 [EMAIL PROTECTED] wrote: t/02yaml# No tests run! dubious Test returned status 255 (wstat 65280, 0xff00) Can you give me a: make test TEST_VERBOSE=1 TEST_FILES=t/02yaml.t Someone else reported a similar problem and the output looked like what you'd get if

Re: FAIL XML-Validator-Schema-1.05 i686-linux 2.4.13

2003-11-15 Thread Sam Tregar
On Fri, 14 Nov 2003, David Wheeler wrote: $ perl -MXML::SAX -le 'print XML::SAX-VERSION' 0.12 Looks alright. How about: perl -MData::Dumper -MXML::SAX -e 'print Dumper(XML::SAX-parsers)' Could be you have no parsers installed. That would run no tests, I think. Maybe I should stick in an

Re: FAIL XML-Validator-Schema-1.05 darwin 6.8

2003-11-13 Thread Sam Tregar
On Thu, 13 Nov 2003 [EMAIL PROTECTED] wrote: t/02yaml# No tests run! dubious Test returned status 255 (wstat 65280, 0xff00) Well, that's weird. Can I get a: make test TEST_FILES=t/02yaml.t TEST_VERBOSE=1 Also, does it work outside of CPANPLUS? I've seen cases before where

Re: FAIL XML-Validator-Schema-1.05 darwin 6.8

2003-11-13 Thread Sam Tregar
On Thu, 13 Nov 2003, Yuval Kogman wrote: [eris:~/XML-Validator-Schema-1.05] nothingmuch% make test TEST_FILES=t/02yaml.t TEST_VERBOSE=1 PERL_DL_NONLAZY=1 /usr/bin/perl -MExtUtils::Command::MM -e test_harness(1, 'blib/lib', 'blib/arch') t/02yaml.t t/02yamlCan't locate

Re: [cgiapp] hierarchical H::T presentation

2003-10-28 Thread Sam Tregar
On Tue, 28 Oct 2003 [EMAIL PROTECTED] wrote: I have looked at the H::T list archives, and cannot find an answer other than I think it can be done with callbacks. As an aside - what is the new host of the H::T list? I only get a response from mailer-daemon at vanguard. The new list is on

Re: [cgiapp] hierarchical H::T presentation

2003-10-28 Thread Sam Tregar
On Tue, 28 Oct 2003 [EMAIL PROTECTED] wrote: Which could possibly be collapsed to ... $template-param( stuff = [ { openlevel = 1, title = 'foo', url = 'foo.html', }, {

Re: [htmltmpl] A valid reason for template support for select lists?

2003-10-19 Thread Sam Tregar
On Sun, 19 Oct 2003, Mark Fuller wrote: I just found html::template and it's exactly what I was looking for. The only thing that is a minor shortcoming for me is the inability to do option select lists. I understand the emphasis on keeping a template a template (and languages separate). But,

Re: [htmltmpl] Phalanx and HTML::Template

2003-10-19 Thread Sam Tregar
On Mon, 20 Oct 2003, Gabor Szabo wrote: 2) use Test::More for these new tests. Why? That would add a new dependency for the module. I got enough flak when I started using Test.pm! That's true and I was a bit worried about it but Test::More is already in 5.8.0 and based on a

Re: FAIL XML-Validator-Schema-1.04 sun4-solaris 2.8

2003-10-07 Thread Sam Tregar
On Tue, 7 Oct 2003, Jost Krieger wrote: t/02yaml# No tests run! Huh, that's odd. Can you run this and send me the output: perl -MXML::SAX -MData::Dumper -e 'print Dumper(XML::SAX-parsers)' I added code to skip XML::SAX::RTF after your last report. Is it possible XML::SAX::RTF is

Re: FAIL XML-Validator-Schema-1.02 sun4-solaris 2.8

2003-10-02 Thread Sam Tregar
On Wed, 2 Oct 2003, Josts Smokehouse wrote: # Failed test (t/02yaml.t at line 15) all.yml: block 1 No _parse_* routine defined on this driver (if it a filter, remember to set the Parent property) [XML::SAX::RTF=HASH(0x78b994)] at /usr/local/perl/lib/site_perl/5.8.0/XML/SAX/Base.pm

Re: FAIL XML-Validator-Schema-1.02 sun4-solaris 2.8

2003-10-02 Thread Sam Tregar
On Wed, 1 Oct 2003, Sam Tregar wrote: On Wed, 2 Oct 2003, Josts Smokehouse wrote: # Failed test (t/02yaml.t at line 15) all.yml: block 1 No _parse_* routine defined on this driver (if it a filter, remember to set the Parent property) [XML::SAX::RTF=HASH(0x78b994)] at /usr

Re: FAIL XML-Validator-Schema-1.00 darwin 6.6

2003-09-26 Thread Sam Tregar
On Fri, 26 Sep 2003 [EMAIL PROTECTED] wrote: foo.yml: block 1 Unrecognized element '' found. at /usr/local/lib/perl5/site_perl/5.8.0/darwin/XML/LibXML/SAX.pm line 63 This means you're using XML::LibXML, right? I've only tested it with the XML::Parser SAX parser. Could you try that? It

Re: FAIL XML-Validator-Schema-1.00 darwin 6.6

2003-09-26 Thread Sam Tregar
On Fri, 26 Sep 2003, Sam Tregar wrote: On Fri, 26 Sep 2003 [EMAIL PROTECTED] wrote: foo.yml: block 1 Unrecognized element '' found. at /usr/local/lib/perl5/site_perl/5.8.0/darwin/XML/LibXML/SAX.pm line 63 This means you're using XML::LibXML, right? I've only tested it with the XML

Re: [htmltmpl] Nested __counter__

2003-09-25 Thread Sam Tregar
On Thu, 25 Sep 2003, Wojciech Pietron wrote: I have two nested loops. Is there a way to get the value of outer TMPL_VAR NAME=__counter__ from inner loop? No there isn't. But it should be easy to create your own __counter__ workalike and access it normally with global_vars set. -sam

Re: [htmltmpl] H::T dies with utf8 templates in perl-5.8.0-88

2003-09-22 Thread Sam Tregar
On Mon, 22 Sep 2003, Brandon Bowersox wrote: HTML::Template 2.6 dies with templates stored by Perl as UTF-8 under perl-5.8.0-88 packaged by RedHat. Again, H::T is victim of buggy Unicode. Don't bother trying to fix HTML::Template, Perl 5.8 is broken by Redhat 8 and 9's default locale

Re: [htmltmpl] Nested loops and __first__

2003-09-14 Thread Sam Tregar
On Sat, 13 Sep 2003, Karen J. Cravens wrote: I've got a __first__ that isn't acting the way I expect it... it's always false. I'm wondering if that's happening because I've got global_vars on and it's the inner loop of a two-loop nest. I'm betting it is, but I'm hoping someone will tell me

Re: [htmltmpl] CCI::App/H::T fatal exception handler

2003-08-18 Thread Sam Tregar
On Mon, 18 Aug 2003, Bill Catlan wrote: Is there a way to output a Web page from within the CGI::App framework using H::T upon a fatal error? Doe it matter if the fatal exception called die or generated an Error exception? This is obviously a question for the CGI::Application mailing-list.

[htmltmpl] WebGUI - an HTML::Template CMS/app-server?

2003-08-09 Thread Sam Tregar
Hey all. Is there anyone on the list with experience using or developing WebGUI (http://www.plainblack.com/webgui)? The marketing materials lead me to believe it is a CMS with some application server capabilities. It seems to use HTML::Template as its primary templating mechanism, and includes

Re: [htmltmpl] Suggestion: sub param to return $self

2003-07-29 Thread Sam Tregar
On Tue, 29 Jul 2003, Ron Savage wrote: If param() did this, it would allow calls to be chained, something like: $tmpl - param(x = $other_tmpl - param(y = z) - output() ); Returning $self from mutators considered harmful (by me): http://perlmonks.org/index.pl?node_id=265284 Yes, I have

Re: [htmltmpl] Global Vars - not for all variables

2003-07-29 Thread Sam Tregar
On 30 Jul 2003, simran wrote: If global vars was turned on, then the first_name variable in the loop would be inherited and would default to simran when unset!!! Are you sure? I thought the way global_vars worked would only inherit the value if the variable wasn't set inside the loop at all.

Re: [htmltmpl] Global Vars - not for all variables

2003-07-29 Thread Sam Tregar
On 30 Jul 2003, simran wrote: Right you are... what you mentioned is indeed the case... but looking back at my real world application examples... i have found data structures such as: my $data = [ { first_name = john, last_name = 'Smith' }, { first_name = james, last_name = 'Paul' },

Re: [cgiapp] Redirection in CGI::App using mod_perl

2003-07-28 Thread Sam Tregar
On 27 Jul 2003, Jamie Krasnoo wrote: # this needs to be either Apache::OK or Apache::REDIRECT # depending on what the application does. return Apache::OK; Perhaps you could examine the state of header_type after run() returns. If the app wanted to redirect then it would

RE: templating system opinions (axkit?)

2003-07-23 Thread Sam Tregar
On Wed, 23 Jul 2003, Hauck, William B. wrote: What i've done is just use completely external html files with html-compliant comments indicating the data field. (example !-- APPNAME_USER_FIRST_NAME --). My application just reads in the html on startup and does a series of substition

Re: [htmltmpl] Clashing with Class::Phrasebook::SQL

2003-07-22 Thread Sam Tregar
On Tue, 22 Jul 2003, Andrew Barilla wrote: I tried implementing Class::Phrasebook::SQL on a site I'm working on which was already using HTML::Template. Once I started using the Phrasebook, my Templates stopped working and gave the following error: HTML::Template-new() : Unknown or

Re: query challanged newbie

2003-07-22 Thread Sam Tregar
On Tue, 22 Jul 2003, Larry Brown wrote: Table alpha: id int(3) not null auto_increment, name char(12) not null, Table bravo: afrom int(3) not null, ato int(3) not null, in the php variable coming in I have fred and need to run a query to get george. You just need to join from alpha

Re: query challanged newbie

2003-07-22 Thread Sam Tregar
On Wed, 23 Jul 2003, Sam Tregar wrote: SELECT a2.name FROM alpha AS a1, bravo AS b, alpha AS a2 WHERE a1.name = 'fred' AND a1.id = b.afrom AND b.ato = b.id; Whoops, that last line should read: b.ato = a2.id; -sam -- MySQL General Mailing List

Re: templating system opinions

2003-07-21 Thread Sam Tregar
On Sun, 20 Jul 2003, Dave Rolsky wrote: OTOH, if you were to try to replicate some of Mason's more powerful features with H::T, like autohandlers, inheritance, etc., then I'm sure that'd bring H::T's speed down to Mason's level ;) I wouldn't be too sure. I implemented a lot of that stuff to

Re: templating system opinions

2003-07-21 Thread Sam Tregar
On Mon, 21 Jul 2003, Dave Rolsky wrote: On Mon, 21 Jul 2003, Sam Tregar wrote: I wouldn't be too sure. I implemented a lot of that stuff to add HTML::Template support to Bricolage and it's still much faster than Mason. A lot as in _all_ of it, or a lot as in autohandlers

Re: [htmltmpl] H::T for discussion forum

2003-07-03 Thread Sam Tregar
On Thu, 3 Jul 2003, Ron Savage wrote: I've just emulated, for a customer, a tree inside a HTML table, with 1 'row' of the tree on each row of the table, by using Image::Magick aka Graphics::Magick to create little images - blank, 'L' shaped - to simulate connexions between nodes and to offset

Re: [cgiapp] C::A and mod_perl handlers

2003-06-21 Thread Sam Tregar
On Sat, 21 Jun 2003, Christopher Hicks wrote: On Thu, 19 Jun 2003, Sam Tregar wrote: Of course, you'll still want to write some real mod_perl handlers for authentication, logging, etc. But making your content handler a mod_perl handler is, in my experience, more trouble than it's worth

[cgiapp] cgiapp_postrun and HTML::Lint

2003-06-13 Thread Sam Tregar
Are you wondering what to do with the new cgiapp_postrun() method? I wrote up a description of how I used it to integrate HTML::Lint (an HTML syntax checked) into my application: http://use.perl.org/~samtregar/journal/12793 Enjoy! -sam

Re: [htmltmpl] Storing Templates In Databases

2003-06-10 Thread Sam Tregar
On Tue, 10 Jun 2003, Adam Gent wrote: I was wondering if anyone has stored the templates in a database before, instead of in files, and if it worked well. Bricolage (http://bricolage.cc) stores template files in its database and works with HTML::Template. However, it deploys templates to the

Re: [cgiapp] book?

2003-06-04 Thread Sam Tregar
On Tue, 3 Jun 2003, Bob Hicks wrote: Is there a book that goes over cgi-applicaiton in depth (like the Mason book)? I wouldn't call it in-depth, but my book (Writing Perl Modules for CPAN) contains a chapter on CGI::Application. The book was edited by the author of CGI::Application, so you

Re: [htmltmpl] Param( ) Method and Default= Attribute ... ?

2003-05-29 Thread Sam Tregar
On Wed, 28 May 2003, Cory Trese wrote: From my tests, it seems as if the call to param( 'doc' ); does not return the value of a TMPL_VAR's default attribute. That's the intended behavior. If it worked differently you wouldn't be able to tell the difference between a parameter already set and

Re: [htmltmpl] getting the value of a param inside a loop withparam() or query()

2003-04-05 Thread Sam Tregar
On Thu, 27 Mar 2003, Brian McCain wrote: I know I can retrieve the value of a param using: my $value = $template-param('PARAM'); ...and that I can retrieve the type of a var (named 'BEE' in this case) inside a loop (named 'EXAMPLE_LOOP' in this case) like so: $type = $template-query(name =

Re: [cgiapp] CGI::Application::Light 0.1

2003-02-14 Thread Sam Tregar
On Fri, 14 Feb 2003, Brett Sanger wrote: While I have nothing against H::T, he didn't say speed was his number one goal, just important enough to avoid unused features. I assumed it was pretty important since he reimplemented both CGI.pm and CGI::Application and then did benchmarks to show how

Re: [cgiapp] CGI::Application::Light 0.1

2003-02-14 Thread Sam Tregar
On Fri, 14 Feb 2003, Brett Sanger wrote: Okay, now you've got me curious. I've never delved into the internals, so correct me if any of my assumptions are wrong: 1) Both H::T and TT compile a template into perl code, and cache this perl code to disk. Incorrect. HTML::Template compiles to

Re: [htmltmpl] order of params reported by param() and query()

2003-02-11 Thread Sam Tregar
On Tue, 11 Feb 2003, Brandon Bowersox wrote: It appears that neither query() param() return the list of parameters in the order that they appear in the template file. (Example below.) That's true. How can I do this? Am I missing a special option or a feature? You can't. The parameter

Re: [htmltmpl] H::T GUIDE FOR WEB DESIGNERS

2003-02-10 Thread Sam Tregar
On Mon, 10 Feb 2003, Chisel Wright wrote: What I was wondering was if there are any guides in existence along the lines of H::T for web designers. An intro, example of some simple tag usage (so they can spot thos hard-to-find H::T tags :-) - you get the idea. I don't believe there is, but it

Re: [htmltmpl] Trimming whitespace

2003-02-07 Thread Sam Tregar
On Fri, 7 Feb 2003, Drew Taylor wrote: Is there a way to trim the extra whitespace\newlines from the final output? I didn't notice anything in the docs so I thought I'd ask here. HTML::Clean works for some people. In general I don't let it bother me. It's just a few extra bytes and the

Re: [htmltmpl] HTML::Template

2003-02-01 Thread Sam Tregar
On Sat, 1 Feb 2003, Irubin Consulting wrote: I believe my problem is in the way that I handle data from the db and transfer it to HTML::Template's param function. I believe you are wrong. Most database applications have their bottlenecks in the code that interacts with the database, not in

Re: [htmltmpl] applying post filters to HTML::Template processing?

2003-01-31 Thread Sam Tregar
On Thu, 30 Jan 2003, Timothy Appnel wrote: Here is the snag. I need to provide a designer that ability to apply any one or more of a number of filters that could occur post processing -- lowercase, strip tags, encode xml etc. Trying to predict and create every possible combination to pass

Re: [htmltmpl] problem with param()

2003-01-24 Thread Sam Tregar
On Fri, 24 Jan 2003, Brian Bittman wrote: i'm fairly new to perl, but i understand it now, except for this error: basically i have a call to $template-param(ProjectLoop = \@loop_data); and the script inexplicably dies there, What's the error message? -sam

Re: [htmltmpl] Running into problems IIS 5.0 (Win2K) and H:T:Expr

2003-01-21 Thread Sam Tregar
On Tue, 21 Jan 2003, Jeff Pelkey wrote: I just moved up to IIS 5.0 on a Win2K machine and I am having problems running using H:T:Expr. I am currently running H:T v2.6 and H:T:E v.04. The code is the same except for adding ::Expr then the code gives a Cannot find server or DNS Error message.

Re: [htmltmpl] HTML-Pager and Netscape

2002-12-12 Thread Sam Tregar
On Thu, 12 Dec 2002, Jeff Pelkey wrote: I am testing some code I hope to release Q1 and in doing some testing with various browsers found that Netscape browsers had a couple of different problems. Where the code runs great on IE 5 and higher and I have even saved the html output as

[PATCH] Two fixes for DBI::ProfileData

2002-12-02 Thread Sam Tregar
The attached patch fixes two bugs in my code spotted by Tim. First, the unescaping of keys with literal '\n' and '\r' in DBI::ProfileData was broken. Second, the broken test marked XXX fix me in t/42prof_data.t has been repaired. It was using the count field as an identifier for the record when

Re: FAIL Config-ApacheFormat-1.0 i386-linux 2.4.16-6mdksmp

2002-11-25 Thread Sam Tregar
Something is broken, yes? There's no error message! -sam On Mon, 25 Nov 2002, Automated Perl Test Account wrote: -- This is an error report generated automatically by CPANPLUS, version . Below is the error stack during 'make test': Additional comments:

Re: Module submission Config::ApacheFormat

2002-11-24 Thread Sam Tregar
On Sun, 24 Nov 2002, brian d foy wrote: Apache::ConfigFile suffers from a complete lack of tests and a rather clumsy API. Also, it doesn't support quoted strings correctly. those things should be fixed. That sounds like a good idea. However, I took a look through the code

Re: [htmltmpl] ANNOUNCE: Bricolage 1.4.5

2002-11-13 Thread Sam Tregar
On Wed, 13 Nov 2002, Brian McCain wrote: I don't mean to be picky, but how is this not grossly off-topic, bordering on spam? Not at all! Bricolage supports HTML::Template. If this is on-topic, does that mean that those of us working on commercial content management systems based on

Re: Can't set unrecognized attribute (Profile)

2002-10-28 Thread Sam Tregar
On 28 Oct 2002, Jeff Boes wrote: Can't set DBI::db=HASH(0x8efe548)-{Profile}: unrecognised attribute or invalid value I believe this will be fixed in the next version of DBI. Tim accepted a patch from me to fix this problem. You can find the patch here:

<    1   2   3   4   5   6   7   8   >