[freeside-commits] freeside/httemplate/edit/process part_export.cgi, 1.9, 1.10 svc_domain.cgi, 1.6, 1.7

Richard Siddall rsiddall at wavetail.420.am
Fri May 15 12:41:36 PDT 2009


Update of /home/cvs/cvsroot/freeside/httemplate/edit/process
In directory wavetail.420.am:/tmp/cvs-serv23002/httemplate/edit/process

Modified Files:
	part_export.cgi svc_domain.cgi 
Log Message:
Simple domain registration at Tucows OpenSRS using an export based on Net::OpenSRS.
When a domain is added and the export runs, it will register the domain or
initiate a transfer.  You can also choose no action.
There's currently no provision for revoking domains or renewing
registrations.
Depending on the settings at OpenSRS, orders may look like they've succeeded
in Freeside but actually be queued pending input by the reseller at OpenSRS.
The part_export CGIs were modified to allow a multi-valued select to be used
to control which TLDs are enabled for registration.


Index: part_export.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/process/part_export.cgi,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- part_export.cgi	13 Jan 2008 21:35:53 -0000	1.9
+++ part_export.cgi	15 May 2009 19:41:33 -0000	1.10
@@ -16,7 +16,8 @@
 #fixup options
 #warn join('-', split(',',$cgi->param('options')));
 my %options = map {
-  my $value = $cgi->param($_);
+  my @values = $cgi->param($_);
+  my $value = scalar(@values) > 1 ? join (' ', @values) : $values[0];
   $value =~ s/\r\n/\n/g; #browsers? (textarea)
   $_ => $value;
 } split(',', $cgi->param('options'));

Index: svc_domain.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/process/svc_domain.cgi,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- svc_domain.cgi	13 Jan 2008 21:35:53 -0000	1.6
+++ svc_domain.cgi	15 May 2009 19:41:34 -0000	1.7
@@ -18,8 +18,8 @@
 my $new = new FS::svc_domain ( {
   map {
     $_, scalar($cgi->param($_));
-  #} qw(svcnum pkgnum svcpart domain action purpose)
-  } ( fields('svc_domain'), qw( pkgnum svcpart action purpose ) )
+  #} qw(svcnum pkgnum svcpart domain action)
+  } ( fields('svc_domain'), qw( pkgnum svcpart action ) )
 } );
 
 my $error = '';



More information about the freeside-commits mailing list