[freeside-commits] freeside/httemplate/edit/process part_export.cgi, 1.8.2.1, 1.8.2.2 svc_domain.cgi, 1.5.2.1, 1.5.2.2

Richard Siddall rsiddall at wavetail.420.am
Fri May 15 12:43:08 PDT 2009


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

Modified Files:
      Tag: FREESIDE_1_7_BRANCH
	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.8.2.1
retrieving revision 1.8.2.2
diff -u -d -r1.8.2.1 -r1.8.2.2
--- part_export.cgi	13 Jan 2008 21:36:09 -0000	1.8.2.1
+++ part_export.cgi	15 May 2009 19:43:06 -0000	1.8.2.2
@@ -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.5.2.1
retrieving revision 1.5.2.2
diff -u -d -r1.5.2.1 -r1.5.2.2
--- svc_domain.cgi	13 Jan 2008 21:36:09 -0000	1.5.2.1
+++ svc_domain.cgi	15 May 2009 19:43:06 -0000	1.5.2.2
@@ -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