[Affelio-cvs 822] CVS update: affelio/lib/Affelio/SNS

Back to archive index

Tadashi Okoshi slash****@users*****
2005年 12月 10日 (土) 08:07:38 JST


Index: affelio/lib/Affelio/SNS/FriendManager.pm
diff -u affelio/lib/Affelio/SNS/FriendManager.pm:1.13 affelio/lib/Affelio/SNS/FriendManager.pm:1.14
--- affelio/lib/Affelio/SNS/FriendManager.pm:1.13	Sat Dec 10 04:55:07 2005
+++ affelio/lib/Affelio/SNS/FriendManager.pm	Sat Dec 10 08:07:38 2005
@@ -14,7 +14,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #
-# $Id: FriendManager.pm,v 1.13 2005/12/09 19:55:07 slash5234 Exp $
+# $Id: FriendManager.pm,v 1.14 2005/12/09 23:07:38 slash5234 Exp $
 
 package Affelio::SNS::FriendManager;
 {
@@ -581,6 +581,9 @@
 	my %param = @_;
 
 	my $af = $self->{af};
+	my $where = $param{where};
+	my $where_block ="";
+	if($where ne ""){ $where_block = "WHERE $where";}
 	my $sort = $param{sort};
 	if($sort eq ""){ $sort = "uid";}
 	my $order = $param{order};
@@ -588,7 +591,7 @@
 
 	##############################
 	#retrieve all friend records from DB
-	my $query = "SELECT uid, af_id, nickname, timestamp, password, intro, option_pid, lastupdated, f2list, last_news_in, last_news_out FROM AFuser_CORE_friends order by $sort $order";
+	my $query = "SELECT uid, af_id, nickname, timestamp, password, intro, option_pid, lastupdated, f2list, last_news_in, last_news_out FROM AFuser_CORE_friends  $where_block  order by $sort $order";
 	my $sth;
 	eval{
 	    $sth = $af->getDB->prepare($query);
Index: affelio/lib/Affelio/SNS/Handshaker_c.pm
diff -u affelio/lib/Affelio/SNS/Handshaker_c.pm:1.11 affelio/lib/Affelio/SNS/Handshaker_c.pm:1.12
--- affelio/lib/Affelio/SNS/Handshaker_c.pm:1.11	Sat Dec 10 07:14:09 2005
+++ affelio/lib/Affelio/SNS/Handshaker_c.pm	Sat Dec 10 08:07:38 2005
@@ -14,7 +14,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #
-# $Id: Handshaker_c.pm,v 1.11 2005/12/09 22:14:09 slash5234 Exp $
+# $Id: Handshaker_c.pm,v 1.12 2005/12/09 23:07:38 slash5234 Exp $
 
 package Affelio::SNS::Handshaker_c;
 {
@@ -73,11 +73,9 @@
 	    throw Affelio::exception::NetworkException("XML-RPC Error: " . $result->{message});
 	}
 
-	debug_print("get_news: OK : $result->{message}\n");
-	debug_print("get_news: OK : [$result->{flerror}]\n");
+	debug_print("C::get_news: OK : $result->{message}\n");
+	debug_print("C::get_news: OK : [$result->{flerror}]\n");
 	return $result;
-
-
     }
 
     #################################################################
Index: affelio/lib/Affelio/SNS/Handshaker_s.pm
diff -u affelio/lib/Affelio/SNS/Handshaker_s.pm:1.26 affelio/lib/Affelio/SNS/Handshaker_s.pm:1.27
--- affelio/lib/Affelio/SNS/Handshaker_s.pm:1.26	Sat Dec 10 05:50:51 2005
+++ affelio/lib/Affelio/SNS/Handshaker_s.pm	Sat Dec 10 08:07:38 2005
@@ -14,7 +14,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #
-# $Id: Handshaker_s.pm,v 1.26 2005/12/09 20:50:51 slash5234 Exp $
+# $Id: Handshaker_s.pm,v 1.27 2005/12/09 23:07:38 slash5234 Exp $
 
 ########################################################################
 #package Affelio::SNS::Handshaker_s::Util;
@@ -105,7 +105,7 @@
 	#FORMAT
 	#   datetime appname title description creator
 	#   datetime appname title link
-	my $ret="20051201123456\ndiary\ntitle\nhttp://www.asahi.com"; 
+	my $ret="20051201123456\ndiary\ntitle\ndesc\ncreator\nhttp://www.asahi.com"; 
 
 	return {
 	    flerror => XMLRPC::Data->type('boolean', 0),


Affelio-cvs メーリングリストの案内
Back to archive index