Update of /var/cvs/Geeklog-2.x/Geeklog-2.x/system
In directory iowaoutdoors:/tmp/cvs-serv21666/system
Modified Files:
AccountManagerSoap.php DefaultAccountManager.php
Log Message:
Added some debug logging to DefaultAccountManager and
AccountManagerSoap classes.
Fixed two bugs in AccountManagerSoap :: listUsers() method
that were preventing it from returning data.
Index: AccountManagerSoap.php
============================================================
=======
RCS file:
/var/cvs/Geeklog-2.x/Geeklog-2.x/system/AccountManagerSoap.p
hp,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** AccountManagerSoap.php 7 Aug 2006 04:04:47 -0000 1.5
--- AccountManagerSoap.php 8 Aug 2006 03:53:07 -0000 1.6
***************
*** 42,46 ****
**/
class Geeklog_AccountManagerSoap extends
Geeklog_PluginSoapServiceBase {
!
/**
* Create a new user account using the specified
information. The user_id field of the user object is
ignored.
--- 42,46 ----
**/
class Geeklog_AccountManagerSoap extends
Geeklog_PluginSoapServiceBase {
!
/**
* Create a new user account using the specified
information. The user_id field of the user object is
ignored.
***************
*** 121,133 ****
self::requireAuthentication($auth);
try {
! $sourceData =
self::__getManager()->listUsers();
foreach ($sourceData as $row) {
! $row['password'] = '';
}
! return $sourceData;
} catch (AccountManagerException $amx) {
throw new Exception('Account Manager
Exception: ' . $amx->getMessage());
}
}
--- 121,141 ----
self::requireAuthentication($auth);
try {
! $sourceData =
self::__getManager()->listUsers();
+ $ret = array();
+
+
self::getLogger()->log('AccountManagerSoap::listUsers,
underlying query returned ' . count($sourceData) . "
items.", PEAR_LOG_DEBUG);
foreach ($sourceData as $row) {
! $row->setPassword('');
!
self::getLogger()->log('AccountManagerSoap::listUsers,
converting ' . $row->getUserName(), PEAR_LOG_DEBUG);
! $ret[] = & Gl2UserSoap ::
fromPropelClass($row);
}
+
self::getLogger()->log('AccountManagerSoap::listUsers,
converted return array contains ' . count($ret) . "
items.", PEAR_LOG_DEBUG);
! return $ret;
} catch (AccountManagerException $amx) {
throw new Exception('Account Manager
Exception: ' . $amx->getMessage());
+ } catch (Exception $ex) {
+ throw new Exception('Exception: ' .
$ex->getMessage());
}
}
Index: DefaultAccountManager.php
============================================================
=======
RCS file:
/var/cvs/Geeklog-2.x/Geeklog-2.x/system/DefaultAccountManage
r.php,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** DefaultAccountManager.php 7 Aug 2006 04:04:47 -0000 1.13
--- DefaultAccountManager.php 8 Aug 2006 03:53:08 -0000 1.14
***************
*** 180,183 ****
--- 180,185 ----
$dao = &Geeklog_DAO::singleton();
$sourceArray = $dao->find('getUsers');
+
+
self::getLogger()->Log("DefaultAccountManager::list
Users returning ".count($sourceArray) . "
items.", PEAR_LOG_DEBUG);
return $sourceArray;
}
_______________________________________________
geeklog2-cvs mailing list
geeklog2-cvs lists.geeklog.net
http://lists.geeklog.net/mailman/listinfo/geeklog2-cvs
|