[pve-devel] r5738 - in pve-access-control/trunk: . PVE
svn-commits at proxmox.com
svn-commits at proxmox.com
Tue Mar 22 06:59:51 CET 2011
Author: dietmar
Date: 2011-03-22 06:59:50 +0100 (Tue, 22 Mar 2011)
New Revision: 5738
Modified:
pve-access-control/trunk/ChangeLog
pve-access-control/trunk/PVE/RPCEnvironment.pm
Log:
* PVE/RPCEnvironment.pm (set_result_count): a way to set the total
number of results - we use that for the ExtJS paging grid.
Modified: pve-access-control/trunk/ChangeLog
===================================================================
--- pve-access-control/trunk/ChangeLog 2011-03-21 09:39:45 UTC (rev 5737)
+++ pve-access-control/trunk/ChangeLog 2011-03-22 05:59:50 UTC (rev 5738)
@@ -1,3 +1,8 @@
+2011-03-22 Proxmox Support Team <support at proxmox.com>
+
+ * PVE/RPCEnvironment.pm (set_result_count): a way to set the total
+ number of results - we use that for the ExtJS paging grid.
+
2011-03-21 Proxmox Support Team <support at proxmox.com>
* PVE/RPCEnvironment.pm (active_workers): immediately move finished
Modified: pve-access-control/trunk/PVE/RPCEnvironment.pm
===================================================================
--- pve-access-control/trunk/PVE/RPCEnvironment.pm 2011-03-21 09:39:45 UTC (rev 5737)
+++ pve-access-control/trunk/PVE/RPCEnvironment.pm 2011-03-22 05:59:50 UTC (rev 5738)
@@ -37,7 +37,7 @@
$msg = $ec ? "failed ($ec)" : "interrupted ($ic)";
$pri = 'err';
}
- my $tlist= active_workers($upid);
+ my $tlist = active_workers($upid);
PVE::Cluster::broadcast_tasklist($tlist);
my $task;
foreach my $t (@$tlist) {
@@ -271,6 +271,18 @@
return $self->{client_ip};
}
+sub set_result_count {
+ my ($self, $count) = @_;
+
+ $self->{result_count} = $count;
+}
+
+sub get_result_count {
+ my ($self) = @_;
+
+ return $self->{result_count};
+}
+
sub set_language {
my ($self, $lang) = @_;
More information about the pve-devel
mailing list