[freeside-commits] freeside/FS/FS/part_export sqlradius.pm, 1.31, 1.32
Ivan,,,
ivan at wavetail.420.am
Sun May 18 15:42:58 PDT 2008
Update of /home/cvs/cvsroot/freeside/FS/FS/part_export
In directory wavetail.420.am:/tmp/cvs-serv28674/FS/FS/part_export
Modified Files:
sqlradius.pm
Log Message:
on upgrade, automatically seed from sqlradius databases, and start freeside-sqlradius-radacctd by default
Index: sqlradius.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_export/sqlradius.pm,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- sqlradius.pm 28 Dec 2007 01:41:23 -0000 1.31
+++ sqlradius.pm 18 May 2008 22:42:56 -0000 1.32
@@ -718,5 +718,27 @@
return 'skipped';
}
+###
+#class methods
+###
+
+sub all_sqlradius {
+ #my $class = shift;
+
+ #don't just look for ->can('usage_sessions'), we're sqlradius-specific
+ # (radiator is supposed to be setup with a radacct table)
+ #i suppose it would be more slick to look for things that inherit from us..
+
+ my @part_export = ();
+ push @part_export, qsearch('part_export', { 'exporttype' => $_ } )
+ foreach qw(sqlradius sqlradius_withdomain radiator);
+ @part_export;
+}
+
+sub all_sqlradius_withaccounting {
+ my $class = shift;
+ grep { ! $_->option('ignore_accounting') } $class->_part_export_sqlradius;
+}
+
1;
More information about the freeside-commits
mailing list