[Affelio-cvs 64] CVS update: affelio/apps/album

Back to archive index

Yoshihisa Fukuhara higef****@users*****
2005年 6月 20日 (月) 00:24:12 JST


Index: affelio/apps/album/Album.pm
diff -u affelio/apps/album/Album.pm:1.1 affelio/apps/album/Album.pm:1.2
--- affelio/apps/album/Album.pm:1.1	Sun Jun 19 18:14:17 2005
+++ affelio/apps/album/Album.pm	Mon Jun 20 00:24:12 2005
@@ -10,7 +10,7 @@
 use Jcode;
 use LWP::UserAgent;
 use HTTP::Request::Common qw(POST);
-use XML::RSS;
+#use XML::RSS;
 use AffelioApp;
 use HTML::Template;
 
@@ -386,43 +386,43 @@
 # 指定したエントリー分のRDFを取得します
 ##############################################
 
-sub getRSS {
-	my ($this, $entno) = @_;
-	unless ($entno) { $entno = 10; }
-
-	my $rss = new XML::RSS (version => '1.0');
-	$rss->channel(
-		title	=> "$this->{afap}->{af}->{user__nickname}'s Diary",
-		link	=> "$this->{afap}->{af}->{site__web_root}/apps/diary/list_diary.pl",
-		description => "$this->{afap}->{af}->{user__nickname}'s Affelio Diary",
-		dc => {
-			creator	=> $this->{afap}->{af}->{user__nickname}
-		}
-	);
-
-	my @entries = $this->getNewestEntries($entno);
-	foreach(@entries) {
-		my $time = $_->{timestamp};
-		my ($sec, $min, $hour, $mday, $mon, $year) = localtime($time);
-		$year += 1900; $mon += 1;
-		my $contents = $_->{contents};
-		$contents =~ s/<br \/>/\n/g;
-		$rss->add_item(
-			title		=> $_->{title},
-			link		=> "$this->{afap}->{af}->{site__web_root}/apps/diary/list_diary.pl?year=$year&amp;month=$mon&amp;day=$mday",
-			description	=> $contents,
-			dc => {
-				date	=> sprintf("%4d-%02d-%02dT%02d:%02d+09:00", $year, $mon, $mday, $hour, $min),
-				creator	=> $this->{afap}->{af}->{nickname},
-			},
-			trackback => {
-				ping => $this->{afap}->{af}->{site__web_root}."/apps/diary/tb/tb.cgi/$_->{id}",
-			}
-		);
-	}
+#sub getRSS {
+#	my ($this, $entno) = @_;
+#	unless ($entno) { $entno = 10; }
+
+#	my $rss = new XML::RSS (version => '1.0');
+#	$rss->channel(
+#		title	=> "$this->{afap}->{af}->{user__nickname}'s Diary",
+#		link	=> "$this->{afap}->{af}->{site__web_root}/apps/diary/list_diary.pl",
+#		description => "$this->{afap}->{af}->{user__nickname}'s Affelio Diary",
+#		dc => {
+#			creator	=> $this->{afap}->{af}->{user__nickname}
+#		}
+#	);
+
+#	my @entries = $this->getNewestEntries($entno);
+#	foreach(@entries) {
+#		my $time = $_->{timestamp};
+#		my ($sec, $min, $hour, $mday, $mon, $year) = localtime($time);
+#		$year += 1900; $mon += 1;
+#		my $contents = $_->{contents};
+#		$contents =~ s/<br \/>/\n/g;
+#		$rss->add_item(
+#			title		=> $_->{title},
+#			link		=> "$this->{afap}->{af}->{site__web_root}/apps/diary/list_diary.pl?year=$year&amp;month=$mon&amp;day=$mday",
+#			description	=> $contents,
+#			dc => {
+#				date	=> sprintf("%4d-%02d-%02dT%02d:%02d+09:00", $year, $mon, $mday, $hour, $min),
+#				creator	=> $this->{afap}->{af}->{nickname},
+#			},
+#			trackback => {
+#				ping => $this->{afap}->{af}->{site__web_root}."/apps/diary/tb/tb.cgi/$_->{id}",
+#			}
+#		);
+#	}
 	
-	return $rss->as_string;
-}
+#	return $rss->as_string;
+#}
 
 
 ##############################################


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