request for CPAN ID

2001-06-19 Thread Mark Stosberg


Hello,

T.J. Mather <[EMAIL PROTECTED]> has recently uploaded a module called
"Data::FormValidator", which contains a number of patches that I
contributed. T.J. has asked that I take over maintenence of this module.
The first step in this process is for me to get a CPAN ID. 

Here's my info:

name: Mark Stosberg
email: [EMAIL PROTECTED]
homepage: http://mark.stosberg.com/
user-id: MARKSTOS

Please let me know if I can answer further questions. 

  -mark

http://mark.stosberg.com/



Re: Namespace for an application?

2001-06-28 Thread Mark Stosberg


> We could, alternatively, use Tracker.  I like that cause its less typing.

I prefer Apps::Tracker for being more descriptive. 

  -mark

http://mark.stosberg.com/



Re: FW: problem with using HTML::FormValidator

2001-09-07 Thread Mark Stosberg


Hello again Maryana,

It appears that you are not following the format of the example given
below, 
which is the cause of you error. You have the right idea about how to
call an 
anonymous subroutine (like this: \&subroutine ). Here's a test script
with the
syntax you are looking for:
###
use Data::FormValidator;
use strict;

my $input_profile = 
{
   optional => [ qw( my_field other_field) ],
   constraints => {
  my_field => {
constraint => \&custom_constraint,
params => [ qw( my_field other_field ) ],
   } 
   }
};

my $validator = new Data::FormValidator({default => $input_profile});

my $input_hashref = {   
my_field => 'toast', 
other_field => 'jam',
};

sub custom_constraint {
my ($my_field, $other_fields) = @_;
return  if ($my_field eq $other_fields);

}

my  ($valids, $missings, $invalids, $unknowns) = 
$validator->validate($input_hashref, 'default');

use Data::Dumper; 
print "valid: ". Dumper ($valids);
print "missing: ". Dumper ($missings);
print "invalid: ". Dumper ($invalids);




Maryana Osipchuk wrote:
> 
> Hi, Mark!
> 
> Thanx for answer - it's partly help me to resolve my problem (now I use 
>Data::FormValidator). Tnx for so usefull module ;o)
> 
> But to call my function I need do it in that way:
> 
> p1 => {
>   constraint => \&main::valid_equiv,
>   params => [ qw (p1 p2)],
>   },
> when I try to call it (as described in docs, where cc_number name of builtin 
>validator)
> 
> p1 => {
>   constraint => "valid_equiv",
>   params => [ qw (p1 p2)],
>   },
> 
> I receive an error:
> Undefined subroutine &Data::FormValidator::valid_valid_equiv called at 
>C:/Perl/lib/Data/FormValidator.pm line 579.
> There are no samples in docs how to call external subroutine.
> 
> Tnx a lot for answer ;-)
> 
> --
> Maryana
> 
> - message  
> 
> > Hello Maryana,
> >
> > First, if you just learning HTML::FormValidator, I suggest looking into
> > Data::FormValidator. It contains all the old functions plus a few new features.
> >
> > In your case, I think your solution may be found an example in the
> > documentation which looks like this:
> >
> > {
> > customer_infos => {
> >  constraints => {
> > cc_no  => {  constraint  => "cc_number",
> >  params  => [ qw( cc_no cc_type ) ],
> > },
> > }
> > }
> >
> >
> > # cc_no is the field name with the constraint
> > # cc_number is the custom function
> >
> >-mark

-- 
 . . . . . . . . . . . . . . . . . . . . . . . . . .
   Mark Stosberg  Principal Developer  
   [EMAIL PROTECTED]   Summersault, LLC 
   v: 765-939-9301 ext 223website development  
 . . . . . http://www.summersault.com/ . . . . . . .



Re: FW: problem with using HTML::FormValidator

2001-09-06 Thread Mark Stosberg


> -- Forwarded Message
> From: "Maryana Osipchuk" <[EMAIL PROTECTED]>
> When I try using this one (as constraint rule - my own function)
> --
> p1 => {
>   constraints => valid_equiv,
>   params => [qw (p1 p2)]
>   }
> valid_equiv as &main::valid_equiv
> --
> I receive an error(something like that):
> 'Undefined subroutine &HTML::FormValidator::valid_ called at
> C:/Perl/lib/HTML/FormValidator.pm line 401'

Hello Maryana,

First, if you just learning HTML::FormValidator, I suggest looking into
Data::FormValidator. It contains all the old functions plus a few new features.

In your case, I think your solution may be found an example in the
documentation which looks like this:

{
customer_infos => {
 constraints => {
cc_no  => {  constraint  => "cc_number",
 params  => [ qw( cc_no cc_type ) ],
},
}
}


# cc_no is the field name with the constraint
# cc_number is the custom function

   -mark



Interested in feedback on what to do with CGI::SQL.pm

2000-08-16 Thread Mark Stosberg


Hello,

  I've developed a module of routines that I find useful when working
with CGI.pm and SQL databases through DBI.pm, and I'm interested in
sharing the work with others in whatever ways might be appropriate.
  Code and documentation are available here for review:
http://summersault.com/software/cascade/cgi_sql/  

  Currently it facilities easily inserting and updating from the CGI.pm
param system, building a form selection widget from the database, and
building a SQL search over multiple fields based on a keyword form
field. 

  I posted an initial version on perlmonks.org, which returned almost no
feedback, and also on the dbi-users mailing list, which also had very
little feedback. I attempted to post the announcement in the
comp.infosystems.www.authoring.cgi newsgroup but had difficulty doing
so. Granted, both posts have been up for just a few days so far, but
frequently the net responds quickly. 

  Here are my questions for you: I'm interested in possibly having this
on CPAN, but only it's appropriate. Do you have suggestions on other
places I could post the code, or how I could present it better, to get
more feedback? 

  Also, I'm interested in using an appropriate namespace whether it ends
up on CPAN or not. As far as I can tell there is not another module that
is trying to the same thing. Do you have recommendations for ones might
integrate with? If you think this is a good standalone module, do think
CGI::SQL.pm is appropriate and do you have other suggestions?

  I hope that's not too many questions! I appreciate you help. 

-mark
  
personal website }  Summersault Website Development
http://mark.stosberg.com/{  http://www.summersault.com/



need help changing primary maintainer for some CGI.pm related modules

2014-05-19 Thread Mark Stosberg


Hello,



Lincoln Stein and I are trying to set up Lee Johnson (copied) as the
new primary maintainer of CGI.pm



We have given him all the module namespaces that we own, but there are
three that somehow neither of us are the primary maintainer for, yet
they are in the distribution.



I'm not sure of the history, but I believe the intent is for them to
have same owners as the rest of the CGI.pm distribution.



Could you make LEEJO a primary maintainer for the following name
spaces, or at least add him as CO-MAINT, for parity with myself and
Lincoln?



  CGI::Apache (owned by P5P)

  CGI::Carp (owned by CGIP)

  CGI::Push (owned by P5P)



Thanks,



Mark (aka MARKSTOS)


Re: need help changing primary maintainer for some CGI.pm related modules

2014-05-20 Thread Mark Stosberg
Sounds perfect. 

Thanks, Ron!

Mark

On Mon, May 19, 2014, at 03:10 PM, Ron Savage wrote:
> Hi All
> 
> Made LEEJO primary maintainer of CGI::Apache.
> Made LEEJO primary maintainer of CGI::Push.
> LEEJO seems to be now the owner of CGI::Carp.
> 
> Let us know if that's ok.
> 
> -- 
> Ron Savage
> savage.net.au