[freeside-commits] freeside/FS/FS/part_export sqlradius.pm, 1.25.2.6, 1.25.2.7
Ivan,,,
ivan at wavetail.420.am
Sun May 18 15:42:59 PDT 2008
Update of /home/cvs/cvsroot/freeside/FS/FS/part_export
In directory wavetail.420.am:/tmp/cvs-serv28676/FS/FS/part_export
Modified Files:
Tag: FREESIDE_1_7_BRANCH
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.25.2.6
retrieving revision 1.25.2.7
diff -u -d -r1.25.2.6 -r1.25.2.7
--- sqlradius.pm 28 Dec 2007 01:32:49 -0000 1.25.2.6
+++ sqlradius.pm 18 May 2008 22:42:56 -0000 1.25.2.7
@@ -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