RE: The Template Toolkit (Re: Templating Systems)

2000-07-29 Thread Ian Kallen
XForm sounds just like something I need actually, can any of the XSLT tools transform it? In perl, of course, XML::XSLT, Sablotron (which doesn't compile on FreeBSD btw, feh!)? Yesterday, Dmitry Beransky <[EMAIL PROTECTED]> frothed and gesticulated...: > That's where the XForm may come quite ha

Re: How to use warnings in Apache::ASP?

2000-07-29 Thread Joshua Chamas
Philip Mak wrote: > > I just tried doing the global.asa thing, but I realized another problem. > Recently, I installed a new version of perl on my system (upgraded 5.00503 > to 5.6). Something went wrong though; Apache::ASP is still using the old > version of perl. If I run /usr/bin/perl, /usr/lo

Re: How to use warnings in Apache::ASP?

2000-07-29 Thread Philip Mak
On Sat, 29 Jul 2000, Joshua Chamas wrote: > > Is there a way to make it so that all Apache::ASP scripts on my site have > > "use warnings;" on by default (something analogous to PerlSetVar Strict 1 > > and use strict;)? Or do I just have to put "use warnings;" in every file? > > What does it do?

Re: The Template Toolkit (Re: Templating Systems)

2000-07-29 Thread Joshua Chamas
Dmitry Beransky wrote: > > At 09:58 AM 7/24/00, mgraham wrote: > >For instance, I would like a backend web application to be able to > >learn about form fields from the template tags: > > > > [% input type='text' name='email' required=1 > >validate_as='email_address' %] > > That's where the XF

Re: Templating system

2000-07-29 Thread Perrin Harkins
On Fri, 28 Jul 2000, Drew Taylor wrote: > Andy Wardley wrote: > > > > And the REALLY, REALLY smart ones (i.e. TT2) can write the Perl code to > > disk for persistance of compiled templates. That way, the templates > > never need to be re-compiled (i.e. from TT syntax to Perl code) unless > > you

Re: Feature sets [was Re: Templating System]

2000-07-29 Thread Perrin Harkins
On Fri, 28 Jul 2000, Drew Taylor wrote: > After all this discussion, what would benefit me most in choosing my > next template system would be a concise central repository of the > features & benefits for the major template systems (TT, Apache::ASP, > Embperl, Mason, & HTML::Template come to mind

Re: was Re: template kit..... - now session handling

2000-07-29 Thread Joshua Chamas
Greg & Gerald, I wanted to bring an important issue that came up with Apache::ASP, how will you deal with search engines indexing the session-ids in the URL? In Apache::ASP, this is handled a couple of ways, first the session-id is stored as a query string param, not in the path to give a h

Re: Apache::Session : DBI->Too many connections

2000-07-29 Thread Bryan McGuire
Mysql accepts a maximum of 100 connections. This probably means you have MaxClients set at a number larger than this. If you are serving all of your files, including static html and graphics, through one mod_perl enabled apache, run the top command and prepare to pick your jaw off the floor. mod_p

Re: Apache::ASP, Session Management and the Fun

2000-07-29 Thread Joshua Chamas
"Issam W. Alameh" wrote: > > Hello, > I am having a lot of fun with Apache::ASP and the session management with it > and I really recommend any body who hasn't used it to try it, Just for FUN. > > I have a question here, has any body stored sessions in mysql with > Apache::ASP. what is the pros

Re: How to use warnings in Apache::ASP?

2000-07-29 Thread Joshua Chamas
Philip Mak wrote: > > Is there a way to make it so that all Apache::ASP scripts on my site have > "use warnings;" on by default (something analogous to PerlSetVar Strict 1 > and use strict;)? Or do I just have to put "use warnings;" in every file? > > I searched the nodeworks.com/asp site (keywo

require bug?

2000-07-29 Thread Philip Mak
I noticed that the following bit of code does not work properly: require 'test.pl'; chdir '..'; require 'test.pl'; Even though the second require is trying to load a different file, perl thinks that it is the same file and therefore doesn't require it again (I had to use the 'do' command instead

Overriding print in cgi scripts

2000-07-29 Thread Chetan Patil
Hello, We have a large code base printing header, body and footers to the STDOUT from the cgi scripts. Since all these are print statements, we have to go to extreme measures to make sure we donot print the content more than once. To clean things up (or at least start at it), we want to be able to

Re: template kit.....

2000-07-29 Thread Denton River
Ofcourse i can use different pieces of software,, But that was not my point I *want* to have the session management in the same kit becouse it´s convinient. I have to tell my team what software to use and maby even teach them how to use it, I find it alot easier to do this with one kit. Best reg

general question regarding sessions

2000-07-29 Thread me
I came to a web application development(modperl) in a middle way. The existing session management is basically save pairs of info(user:xxx...) into a /tmp file named clientip-random#-random#-timestamp, and use a similar format cookie to find corresponding session in /tmp to do authentication.

Re: Templating system

2000-07-29 Thread Matt Sergeant
On Sat, 29 Jul 2000, Leslie Mikesell wrote: > According to Gerald Richter: > > > > > > The TT parser uses Perl regexen and an LALR state machine. > > > > Embperl's parser have used from the startup only C code, maybe that's the > > reason why the time this takes (compared to the rest of the requ

Apache::ASP, Session Management and the Fun

2000-07-29 Thread Issam W. Alameh
Hello, I am having a lot of fun with Apache::ASP and the session management with it and I really recommend any body who hasn't used it to try it, Just for FUN. I have a question here, has any body stored sessions in mysql with Apache::ASP. what is the pros and cons of doing that and How . Any Ex

Apache::Session : DBI->Too many connections

2000-07-29 Thread Frédéric Schwien
Hi , I am using Perl 5.6.0 whith MySql 3.22.32 , Apache 1.3.12 , modperl 1.24 . On our Production Server , Apache error logs are showing sometimes : [Thu Jun 8 14:53:34 2000] [error] DBI->connect failed: Too many connections at /usr/local/lib/perl5/site_perl/5.6.0/Apache/Session/ DBIStor

How to use warnings in Apache::ASP?

2000-07-29 Thread Philip Mak
Is there a way to make it so that all Apache::ASP scripts on my site have "use warnings;" on by default (something analogous to PerlSetVar Strict 1 and use strict;)? Or do I just have to put "use warnings;" in every file? I searched the nodeworks.com/asp site (keyword warning/warnings) as well as

Re: was Re: template kit..... - now session handling

2000-07-29 Thread Greg Cope
Gerald Richter wrote: > > Hi Greg, > > > > As far as I am aware (please someone prove me wrong!) the does not > > appear to be such a module. > > > > I meant the module your are about to write :-) > > > > > Please send me ideas / thoughs and I'll have a go. > > > > Embperl currently goes the w

Re: Templating system

2000-07-29 Thread Leslie Mikesell
According to Gerald Richter: > > > > The TT parser uses Perl regexen and an LALR state machine. > > Embperl's parser have used from the startup only C code, maybe that's the > reason why the time this takes (compared to the rest of the request) never > was an issue for me... Is there any way for

Re: was Re: template kit..... - now session handling

2000-07-29 Thread Ian Kallen
Today, Greg Cope <[EMAIL PROTECTED]> frothed and...: > I posted about a generic URL mangeler / cookie session handler a few > days ago. > > Allthough this is not rocket science - I've writen a URI transhandler > that will put the session id into pnotes, and if cookies are off will do > a redirec

Apache::PerlVINC makes Apache segfault

2000-07-29 Thread Patrick
Hi all, (debian potato) apache-ssl : 1.3.9.13-2 modperl : 1.21.2309-1 perl : 5.005 Apache::PerlVINC : 0.01 compiled by myself As recommended in the guide, i'm trying to use Apache::PerlVINC since I have 3 virtualhosts, and the same sets of modules for all three (same namespace), in three se

Re: was Re: template kit..... - now session handling

2000-07-29 Thread Ian Kallen
Today, Greg Cope <[EMAIL PROTECTED]> frothed and...: > one of your parents sister. The only major issue is that I cannot > appear to use posted values as they appear to get lost in the redirect > (Clues wanted !). Redirecting a POST request? Yup, expediency often requires violating the HTTP s

Re: Is there a module for getting / setting a Session-ID

2000-07-29 Thread JoshNarins
I have fully implemented URL munging and Cookie support, but SERIOUS troubles start to arise when you start adding the notion of secure sessions. I have done it, but it isn't pretty. Basically, there are three types of pages. Normal, Secure, and Secure (but you don't need a Secure Url Munging).

RE: was Re: template kit..... - now session handling

2000-07-29 Thread Gerald Richter
Hi Greg, > > As far as I am aware (please someone prove me wrong!) the does not > appear to be such a module. > I meant the module your are about to write :-) > > Please send me ideas / thoughs and I'll have a go. > Embperl currently goes the way that it sets up a tied hash at load time (so it

Re: was Re: template kit..... - now session handling

2000-07-29 Thread Greg Cope
Gerald Richter wrote: > > Hi Greg, > > > > > Can I recommend you write a simple, standalone module that everyone can > > use and not just an embperl solution - I'd be willing to help (or write > > it) if people send me their wants / ideas, and then flame my code when I > > think its ready! > > >

RE: Templating system

2000-07-29 Thread Gerald Richter
> > The TT parser uses Perl regexen and an LALR state machine. Embperl's parser have used from the startup only C code, maybe that's the reason why the time this takes (compared to the rest of the request) never was an issue for me... Gerald

RE: was Re: template kit..... - now session handling

2000-07-29 Thread Gerald Richter
Hi Greg, > > Can I recommend you write a simple, standalone module that everyone can > use and not just an embperl solution - I'd be willing to help (or write > it) if people send me their wants / ideas, and then flame my code when I > think its ready! > I would be happy if there is an standalon

Re: template kit.....

2000-07-29 Thread Greg Cope
Tom Brown wrote: > > On Fri, 28 Jul 2000, Paul J. Lucas wrote: > > > On Fri, 28 Jul 2000, Denton River wrote: > > > > > Its been a long time since i have done a jobb without using sessions. I would > > > really like to have this feature included in the kit im using and i think > > > alot of deve

was Re: template kit..... - now session handling

2000-07-29 Thread Greg Cope
Gerald Richter wrote: > > > I sure think that this template discussion is > > intresting, forms autofill is one thing but another > > thing that i think would be neat is if the kit could > > do session handling, like the Apache::ASP. Can embperl > > or mason do this fancy stuff. > > > > Embperl

Re: Is there a module for getting / setting a Session-ID

2000-07-29 Thread Greg Cope
jeff wrote: > > The mod_perl eagle book has a good section on saving state information > using session ids. And it's not necessarily mod_perl based. Thanks Jeff. I've some code based on parts of the state section - speifically the ideas of URL mungling. Greg > > -- > Jeff Saenz > [EMAIL PROT

Re: [ANNOUNCE] Apache::Dispatch

2000-07-29 Thread Matt Sergeant
On Fri, 28 Jul 2000, Geoffrey Young wrote: > hi Matt... > > I can't access my normal email from home, so forgive > the non-quoting of your message... :) > > the way I set it up, when running in DispatchMode = > Safe (the default, which I didn't mention in the > docs), you wouldn't be able to ca

Re: Templating system

2000-07-29 Thread Ask Bjoern Hansen
On Thu, 27 Jul 2000, Paul J. Lucas wrote: > On Thu, 27 Jul 2000, Matt Sergeant wrote: > > > > > http://www.best.com/~pjl/software/html_tree/ > > > Aside from the GPL, it does looks nice. > > What's wrong with the GPL? It's open-source and free of cost. > What more do you w

Re: Templating system

2000-07-29 Thread Andy Wardley
> But you have to recompile the Perl code, which normaly takes more time, then > compiling the template to the Perl code. I don't think that this will gain > very much speed. (Maybe in case of TT this is more important, because it has > to first translate his own language to Perl code, while other

Re: Feature sets [was Re: Templating System]

2000-07-29 Thread Frank D. Cringle
Ken Williams <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] (Frank D. Cringle) wrote: > > > >This sounds dreadfully microsoftian. Trashcan: check; Bouncing > >paperclip: check. > > Well yeah, if you choose features that nobody cares about, then nobody will > care whether the package supports th

Re: The Template Toolkit (Re: Templating Systems)

2000-07-29 Thread David Hodgkinson
"mgraham" <[EMAIL PROTECTED]> writes: > > Andy Wardley wrote: > > * The Template Toolkit is *ONLY* a template system. This is a Good > > Thing. It processes text (HTML, Latex, POD, etc). You can use it > > under Apache/mod_perl, in stand-alone CGI scripts, or in other > > environments e

Re: template kit.....

2000-07-29 Thread Tom Brown
On Fri, 28 Jul 2000, Paul J. Lucas wrote: > On Fri, 28 Jul 2000, Denton River wrote: > > > Its been a long time since i have done a jobb without using sessions. I would > > really like to have this feature included in the kit im using and i think > > alot of developers are with me on this one. >