[freeside-commits] freeside/eg export_template.pm,1.6,1.7
Ivan,,,
ivan at wavetail.420.am
Wed Sep 7 02:37:28 PDT 2005
Update of /home/cvs/cvsroot/freeside/eg
In directory wavetail:/tmp/cvs-serv22331/eg
Modified Files:
export_template.pm
Log Message:
add cpanel export
Index: export_template.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/eg/export_template.pm,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- export_template.pm 24 Mar 2004 14:17:29 -0000 1.6
+++ export_template.pm 7 Sep 2005 09:37:26 -0000 1.7
@@ -56,6 +56,24 @@
ref($err_or_queue) ? '' : $err_or_queue;
}
+#these two are optional
+# fallback for svc_acct will change and restore password
+sub _export_suspend {
+ my( $self, $svc_something ) = (shift, shift);
+ $err_or_queue = $self->myexport_queue( $svc_something->svcnum,
+ 'suspend', $svc_something->username );
+ ref($err_or_queue) ? '' : $err_or_queue;
+}
+
+sub _export_unsuspend {
+ my( $self, $svc_something ) = (shift, shift);
+ $err_or_queue = $self->myexport_queue( $svc_something->svcnum,
+ 'unsuspend', $svc_something->username );
+ ref($err_or_queue) ? '' : $err_or_queue;
+}
+
+###
+
#a good idea to queue anything that could fail or take any time
sub myexport_queue {
my( $self, $svcnum, $method ) = (shift, shift, shift);
@@ -79,3 +97,10 @@
#do things with $username
}
+sub myexport_suspend { #subroutine, not method
+}
+
+sub myexport_unsuspend { #subroutine, not method
+}
+
+
More information about the freeside-commits
mailing list