There is this one:
http://sourceforge.net/projects/zips/files/#files
Not sure how up to date it is since it appears to have been last updated in
2005.
---
Steve Comrie
Ron Savage wrote ..
Hi Folks
For a home-use module, I use American postal data from ZipCodeWorld
http
then you let the person into the system, otherwise, kick
them back to the login screen.
---
Steve Comrie
Lyle wrote:
Hi All,
I know a lot of sites have a check box for remember me or what not.
But I'm trying to figure out a safe way to do this. Saving the
username and password in cookies
Brilliant.
Sam Tregar wrote:
CHANGES
- First release!
DESCRIPTION
This module provides protection against a user calling a runmode
too frequently. A typical use-case might be a contact form that
sends email. d like to allow your users to send you messages, but
thou-
Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/
http://marc.theaimsgroup.com/?l=cgiappr=1w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Steve Comrie
LEAD SOFTWARE ARCHITECT | OCTANE
T: 416.977.2525
F
-
Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/
http://marc.theaimsgroup.com/?l=cgiappr=1w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Steve Comrie
be working properly. Hopefully you can get an idea of one
way to do simple run-mode access / restrictions from my working examples.
---
Steve Comrie
Prakash Inuganti (pinugant) wrote:
Hi,
How do I restrict user access to certain run modes based on user role.
E.g:
$self-param('role' = 'Employee
it with
some pod, etc.
Anyone else that has more suggestions, feedback or features let me know
before i come out with a full release.
--
Steve Comrie
LEAD SOFTWARE ARCHITECT | OCTANE
T: 416.977.2525
F: 416.977.8481
355 ADELAIDE ST. W. SUITE 1B
TORONTO, ONTARIO M5V 1S2
WWW.OCTANE.TO http
There's also the added benefit that you can call params in list context
to get an array containing all the information you have stored in
params() which can make debugging a little bit easier.
I understand that the purpose of the param method is to give me a way to
store variables in $self
, but Andrew was right, $self may not be a hash, it could be an
array, and it could be something very different in Perl 6.
--
Steve Comrie
-
Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/
http
haha, might have also been me. I have a dummy file called
1millioncharacters.txt which (surprise, surprise) contains nothing but
like a milltions x's.
sorry .. :-)
---
Steve Comrie
Eric wrote:
At 08:59 AM 4/28/2005, Cees Hek wrote:
On 4/28/05, Wojciech Pietron [EMAIL PROTECTED] wrote:
But I
http://yapc.org/America/index.shtml
Speakers haven't been announced yet (the call for submissions just
passed). But I was wondering if anyone on the list was planning on or
thinking about going.
--
Steve Comrie
LEAD SOFTWARE ARCHITECT | OCTANE
T: 416.977.2525
F: 416.977.8481
355 ADELAIDE ST. W
directly back to the
edit record page.
Now, that page could use a simple block of javascript code to add the new
group to the drop-down menu so that the user could select the group, save
the record and be done.
---
Steve Comrie
-mode. Make
it very simple for each run-mode to access the correct formatter without
having to know specifically which one it is accessing.
Hope that helps.
---
Steve Comrie
Hello all,
I'm facing the refactoring of a cgi-app/html-template based site to
support multiple languages, and I'd like
much, but I hope that I succeeded in giving
you a better impression of templates and how they can help you (in
combination with C::A) to make your work a little easier, more enjoyable and
hopefully a little more profitable :-)
---
Steve Comrie
- Please excuse the run-on sentences and typo's, I
by the way, so we could probably
help get it to official status were some of us to install and test it.
Steve Comrie
LEAD SOFTWARE ARCHITECT | OCTANE
T: 416.977.2525
F: 416.977.8481
355 ADELAIDE ST. W. SUITE 1B
TORONTO, ONTARIO M5V 1S2
WWW.OCTANE.TO
.
A little extra processor time jumping between two languages? Definitely.
Worth while to be able to use small blocks of C::A code inside an HTML page?
I think so, but I'll leave that up to you.
---
Steve Comrie
-
Web Archive
person in the world with this particular
challenge (or brain damage to not come up with a pure perl solution). Please
use with caution :)
---
Steve Comrie
-
Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net
without having to duplicate code.
Hope that helps
---
Steve Comrie
- Original Message -
From: punkish [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 09, 2004 11:25 AM
Subject: [cgiapp] a question about the order of operations
I read OrderOfOperations at
http
with (which is currently almost the case anyways :p )
---
Steve Comrie
-
Web Archive: http://www.mail-archive.com/[EMAIL PROTECTED]/
http://marc.theaimsgroup.com/?l=cgiappr=1w=2
To unsubscribe, e-mail: [EMAIL PROTECTED
not on
that side of my app) to protect other web files based on user access, if I
did, I might end up incorporating part of your solution into mine :-)
---
Steve Comrie
-
Web Archive: http://www.mail-archive.com/[EMAIL PROTECTED
Too early to write code :-)
Take a look at HTML::FillInForm
Then, use a my %vars = $cgi-Vars() to get all the params into a hash, and
use that hash with HTML::FillInForm to re-populate all the field values in
your form.
---
Steve Comrie
- Original Message -
From: Michael Lackhoff
that helps
---
Steve Comrie
__SECOND__ that's helped out in a few sticky situations,
as well as __MIDDLE__ and __THIRD__ (gets added twice) for when I want to
split some loop content between 2 or 3 columns, basically to let me call a
tmpl_if name='__MIDDLE__'/tdtd/tmpl_if to split the columns.
---
Steve Comrie
- Original
I've never checked, but I wouldn't be surprised if the archive worked on a
weekly cron.
Since today is the 14th and judging by the timestamps of the messages in the
archive, I wouldn't be surprised if it gets updated in the next 2 or 3
hours.
---
Steve Comrie
Hi all
I'm after a message sent
solution. Gimmie a bit of time.
---
Steve Comrie
-
Web Archive: http://www.mail-archive.com/[EMAIL PROTECTED]/
http://marc.theaimsgroup.com/?l=cgiappr=1w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
good point .. i'm slow on the draw this morning ..
At which point you should do a use XML::Simple.
There may be some use statements inside of XML::Simple that are not
being
found, because they are looking for XML::Simple::foo, not
Mylib::XML::Simple::foo.
and drop files onto the server (if possible ..
this idea has other applications to, if we could just get past the u/p
authentication problem)
thanks for reading my ramble ot post.
---
steve comrie
-
Web Archive: http
start
ringing, and the rest of you programmers are anything like me, you hate it
when your phone rings too :)
---
Steve Comrie
-
Web Archive: http://www.mail-archive.com/[EMAIL PROTECTED]/
http
(tab) || tab1;
$self-prerun_mode( show_' . $tab );
}
}
Hope that helps.
For more information on using cgiapp_prerun, cgiapp_postrun etc, take a look
at my tutorial on the CGI::App Wiki:
http://twiki.med.yale.edu/twiki2/bin/view/CGIapp/OrderOfOperations
---
Steve Comrie
Technically, and I'm not saying it's the cleanest or prettiest solution, but
wouldn't it be possible just to set another cookie with the same name to
expire now after you've set the cookie earlier in the code.
Granted the header would look something like
- Set Cookie A : Expire 1 month
- Set
Xavier,
Have you tried
sub cgiapp_postrun
{
my $self= shift;
my $html= shift;
return 'h3' . $$html . '/h3';
}
Is that the functionality that you're looking for? To surround everything in
an h3 tag?
sub cgiapp_postrun {
my $self = shift;
my $output_ref = shift;
Bill,
This article on evolt.org, while dealing specifically with PHP Apache as
opposed to Perl / CGI::App, has some good suggestions, and plenty of
comments from other people on creating clean search engine friendly URLS
with whatever programming language you're using.
around this same challenge.
---
Steve Comrie
- Original Message -
From: Mark Stosberg [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, October 06, 2003 10:31 PM
Subject: [cgiapp] Re: URL Encryption
On 2003-10-06, Steve Comrie [EMAIL PROTECTED] wrote:
I know there's a couple
article to find out at what points in the instance of a CGI::App run that
you can access the current run-mode.
http://twiki.med.yale.edu/twiki2/bin/view/CGIapp/OrderOfOperations
---
Steve Comrie
-
Web Archive: http://www.mail
Basically
there's no reason random end users should ever know what your code is
written in.
It's trivial for a capable attacker to determine OS/http Server/script
language. The point is not the language, per se, but the abilities of the
script writer and the server administrator. Using
feedback, additions, corrections or otherwise to any of
the documents added.
Enjoy!
---
Steve Comrie
-
Web Archive: http://www.mail-archive.com/[EMAIL PROTECTED]/
http://marc.theaimsgroup.com/?l=cgiappr=1w=2
Sorry bout that folks .. some how replied to the wrong email .. that one was just
headed for Peter.
I think you're looking for the 'Content-disposition' header here. By
setting it to inline, it suggests to the browser to view it inline,
instead of prompting to save it.
I've had success using the following header:
Content-Type: application/octetstream\n
Content-Disposition: attachment;
You had asked for a way to send the PDF a few pieces at a time to
avoid having the entire file in memory at once. Setting
'$ENV{CGI_APP_RETURN_ONLY}', in combination with passing 'none' into
header_type(), does exactly that :-)
Eric, I think you're confusing me with Steve Hay, who originally
Andy,
I structure my templates like:
/[projectdir]/templates/modulename/*.tmpl
/[projectdir]/templates/modulename2/*.tmpl
Each module has a $modulename variable in it, so that load_tmpl()
automatically knows which directory to use when looking for templates.
Taking this a step further, I also
* sorry if your receiving this twice, I sent it this morning but it never
came through on the list *
Andy,
I structure my templates like:
/[projectdir]/templates/modulename/*.tmpl
/[projectdir]/templates/modulename2/*.tmpl
Each module has a $modulename variable in it, so that load_tmpl()
You could have a cgiapp_prerun in your superclass, and also have one in
your
application module. If you want both to be executed, then you just have
to
remember to call $self-SUPER::cgiapp_prerun() in the cgiapp_prerun of
your
application modules. This can give you great flexibility. YMMV
By paragraph I assume you mean textarea
- Are you submitting the form via post or get?
- Does your server have an obnoxiously low post / get maximum request
length?
- Is there JavaScript involved?
I have a form paragraph that once it has more than 1975 characters in
it, the submit button on
form name=registrationForm method=post
action=/cgi-bin/registration.cgi?rm=registerNewUser
. some stuff
input type=submit value=Register name=submitButton /
/form
To the best of my knowledge most web servers will not pass parameters
properly this way, and if one does, it's not the
Scott,
Try this instead
sub cgiapp_prerun
{
$self-prerun_mode('redirect_to_perl') if( $req_not_met );
}
sub redirect_to_perl
{
my $self= shift;
$self-header_props (-uri = 'http://www.perl.com/');
$self-header_type ('redirect');
return 1;
}
The prerun_mode() method is
if we pushed it a couple steps further to an add-on template management
module. Just a suggestion though, which would require a more global look at
how people are currently using load_tmpl() and what modifications that may
added in their own super classes.
On Sun, 15 Jun 2003, Steve Comrie wrote
This bit of logic would probably be better implemented at the individual
super class level since load_tmpl() is a method that is generally expected
to be over loaded anyways. It's a great idea, but already many people use
different template modules and different individual methods for deciding
Mark,
You could try using htmltidy (http://tidy.sourceforge.net/), although I
don't imagine it would be as straight forward as Sam's solution.
I use tidy for our in-house CMS to clean up pages after they've been written
to file, but before they're made live.
Very useful! Thanks Sam. Slightly
In CGI::Application as long as you are using the $self-query() method to
grab the your $cgi object you are not doing multiple queries.
CGI::App needs to reads the 'rm' value from the cgi object so that it knows
which run-mode to call. Therefore it must load a new instance of CGI.pm (or
to return a response, and then have the
server alone continue to work in the background.
I've admitedly not had much experience with this side of server
functionality, so any pointers or tips would be appreciated.
Steve Comrie
50 matches
Mail list logo