[Bast-commits] r8078 - in ironman/IronMan-Web: . lib/IronMan/Web
lib/IronMan/Web/Controller lib/IronMan/Web/FeedDB
lib/IronMan/Web/FeedDB/Result lib/IronMan/Web/Model
grim at dev.catalyst.perl.org
grim at dev.catalyst.perl.org
Sat Dec 12 17:08:44 GMT 2009
Author: grim
Date: 2009-12-12 17:08:44 +0000 (Sat, 12 Dec 2009)
New Revision: 8078
Added:
ironman/IronMan-Web/lib/IronMan/Web/FeedDB.pm
ironman/IronMan-Web/lib/IronMan/Web/FeedDB/
ironman/IronMan-Web/lib/IronMan/Web/FeedDB/Result/
ironman/IronMan-Web/lib/IronMan/Web/FeedDB/Result/Feed.pm
ironman/IronMan-Web/lib/IronMan/Web/FeedDB/Result/FeedTagMap.pm
ironman/IronMan-Web/lib/IronMan/Web/FeedDB/Result/Posts.pm
ironman/IronMan-Web/lib/IronMan/Web/FeedDB/Result/Tag.pm
Modified:
ironman/IronMan-Web/Makefile.PL
ironman/IronMan-Web/lib/IronMan/Web/Controller/Archive.pm
ironman/IronMan-Web/lib/IronMan/Web/Model/FeedDB.pm
Log:
Added initial DBIC schemas.
Modified: ironman/IronMan-Web/Makefile.PL
===================================================================
--- ironman/IronMan-Web/Makefile.PL 2009-12-12 16:40:33 UTC (rev 8077)
+++ ironman/IronMan-Web/Makefile.PL 2009-12-12 17:08:44 UTC (rev 8078)
@@ -15,6 +15,7 @@
requires 'Data::UUID';
requires 'Email::Valid';
requires 'LWP::Simple';
+requires 'XML::Feed'
catalyst;
Modified: ironman/IronMan-Web/lib/IronMan/Web/Controller/Archive.pm
===================================================================
--- ironman/IronMan-Web/lib/IronMan/Web/Controller/Archive.pm 2009-12-12 16:40:33 UTC (rev 8077)
+++ ironman/IronMan-Web/lib/IronMan/Web/Controller/Archive.pm 2009-12-12 17:08:44 UTC (rev 8078)
@@ -26,6 +26,7 @@
$c->response->body('Matched IronMan::Web::Controller::Archive in Archive.');
}
+=head2 year
=head2 year
@@ -33,7 +34,8 @@
sub year :Path :Args(1) {
my ( $self, $c, $year ) = @_;
-
+
+ $c->res->body($c->model('FeedDB::Post')->count);
}
=head2 month
Added: ironman/IronMan-Web/lib/IronMan/Web/FeedDB/Result/Feed.pm
===================================================================
--- ironman/IronMan-Web/lib/IronMan/Web/FeedDB/Result/Feed.pm (rev 0)
+++ ironman/IronMan-Web/lib/IronMan/Web/FeedDB/Result/Feed.pm 2009-12-12 17:08:44 UTC (rev 8078)
@@ -0,0 +1,55 @@
+package IronMan::Web::FeedDB::Result::Feed;
+
+use strict;
+use warnings;
+
+use base 'DBIx::Class';
+
+__PACKAGE__->load_components("InflateColumn::DateTime", "Core");
+__PACKAGE__->table("feed");
+__PACKAGE__->add_columns(
+ "id",
+ {
+ data_type => "varchar",
+ default_value => undef,
+ is_nullable => 0,
+ size => 255,
+ },
+ "url",
+ {
+ data_type => "varchar",
+ default_value => undef,
+ is_nullable => 1,
+ size => 1024,
+ },
+ "link",
+ {
+ data_type => "varchar",
+ default_value => undef,
+ is_nullable => 1,
+ size => 1024,
+ },
+ "title",
+ {
+ data_type => "varchar",
+ default_value => undef,
+ is_nullable => 1,
+ size => 1024,
+ },
+ "owner",
+ {
+ data_type => "varchar",
+ default_value => undef,
+ is_nullable => 0,
+ size => 255,
+ },
+);
+__PACKAGE__->set_primary_key("id");
+
+
+# Created by DBIx::Class::Schema::Loader v0.04006 @ 2009-12-12 17:03:11
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XvrbWL3lFxQ3hF9jAHWYsQ
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
Added: ironman/IronMan-Web/lib/IronMan/Web/FeedDB/Result/FeedTagMap.pm
===================================================================
--- ironman/IronMan-Web/lib/IronMan/Web/FeedDB/Result/FeedTagMap.pm (rev 0)
+++ ironman/IronMan-Web/lib/IronMan/Web/FeedDB/Result/FeedTagMap.pm 2009-12-12 17:08:44 UTC (rev 8078)
@@ -0,0 +1,34 @@
+package IronMan::Web::FeedDB::Result::FeedTagMap;
+
+use strict;
+use warnings;
+
+use base 'DBIx::Class';
+
+__PACKAGE__->load_components("InflateColumn::DateTime", "Core");
+__PACKAGE__->table("feed_tag_map");
+__PACKAGE__->add_columns(
+ "feed",
+ {
+ data_type => "integer",
+ default_value => undef,
+ is_nullable => 0,
+ size => undef,
+ },
+ "tag",
+ {
+ data_type => "integer",
+ default_value => undef,
+ is_nullable => 0,
+ size => undef,
+ },
+);
+__PACKAGE__->set_primary_key("feed", "tag");
+
+
+# Created by DBIx::Class::Schema::Loader v0.04006 @ 2009-12-12 17:03:11
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PJeZ1P9VkVP5i1UlLCeR+Q
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
Added: ironman/IronMan-Web/lib/IronMan/Web/FeedDB/Result/Posts.pm
===================================================================
--- ironman/IronMan-Web/lib/IronMan/Web/FeedDB/Result/Posts.pm (rev 0)
+++ ironman/IronMan-Web/lib/IronMan/Web/FeedDB/Result/Posts.pm 2009-12-12 17:08:44 UTC (rev 8078)
@@ -0,0 +1,83 @@
+package IronMan::Web::FeedDB::Result::Posts;
+
+use strict;
+use warnings;
+
+use base 'DBIx::Class';
+
+__PACKAGE__->load_components("InflateColumn::DateTime", "Core");
+__PACKAGE__->table("posts");
+__PACKAGE__->add_columns(
+ "post_id",
+ {
+ data_type => "INTEGER",
+ default_value => undef,
+ is_nullable => 0,
+ size => undef,
+ },
+ "feed_id",
+ {
+ data_type => "varchar",
+ default_value => undef,
+ is_nullable => 0,
+ size => 255,
+ },
+ "url",
+ {
+ data_type => "varchar",
+ default_value => undef,
+ is_nullable => 0,
+ size => 1024,
+ },
+ "title",
+ {
+ data_type => "varchar",
+ default_value => undef,
+ is_nullable => 0,
+ size => 1024,
+ },
+ "posted_on",
+ {
+ data_type => "datetime",
+ default_value => undef,
+ is_nullable => 0,
+ size => undef,
+ },
+ "summary",
+ {
+ data_type => "varchar",
+ default_value => undef,
+ is_nullable => 1,
+ size => 2048,
+ },
+ "body",
+ {
+ data_type => "text",
+ default_value => undef,
+ is_nullable => 0,
+ size => undef,
+ },
+ "summary_filtered",
+ {
+ data_type => "varchar",
+ default_value => undef,
+ is_nullable => 1,
+ size => 2048,
+ },
+ "body_filtered",
+ {
+ data_type => "text",
+ default_value => undef,
+ is_nullable => 1,
+ size => undef,
+ },
+);
+__PACKAGE__->set_primary_key("post_id");
+
+
+# Created by DBIx::Class::Schema::Loader v0.04006 @ 2009-12-12 17:03:11
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PpAxoiyx5SmEz2fNIcmHVw
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
Added: ironman/IronMan-Web/lib/IronMan/Web/FeedDB/Result/Tag.pm
===================================================================
--- ironman/IronMan-Web/lib/IronMan/Web/FeedDB/Result/Tag.pm (rev 0)
+++ ironman/IronMan-Web/lib/IronMan/Web/FeedDB/Result/Tag.pm 2009-12-12 17:08:44 UTC (rev 8078)
@@ -0,0 +1,34 @@
+package IronMan::Web::FeedDB::Result::Tag;
+
+use strict;
+use warnings;
+
+use base 'DBIx::Class';
+
+__PACKAGE__->load_components("InflateColumn::DateTime", "Core");
+__PACKAGE__->table("tag");
+__PACKAGE__->add_columns(
+ "id",
+ {
+ data_type => "INTEGER",
+ default_value => undef,
+ is_nullable => 0,
+ size => undef,
+ },
+ "name",
+ {
+ data_type => "varchar",
+ default_value => undef,
+ is_nullable => 0,
+ size => 1024,
+ },
+);
+__PACKAGE__->set_primary_key("id");
+
+
+# Created by DBIx::Class::Schema::Loader v0.04006 @ 2009-12-12 17:03:11
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:DhEpdSW+sanBCzi+i6V5hw
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
Added: ironman/IronMan-Web/lib/IronMan/Web/FeedDB.pm
===================================================================
--- ironman/IronMan-Web/lib/IronMan/Web/FeedDB.pm (rev 0)
+++ ironman/IronMan-Web/lib/IronMan/Web/FeedDB.pm 2009-12-12 17:08:44 UTC (rev 8078)
@@ -0,0 +1,16 @@
+package IronMan::Web::FeedDB;
+
+use strict;
+use warnings;
+
+use base 'DBIx::Class::Schema';
+
+__PACKAGE__->load_namespaces;
+
+
+# Created by DBIx::Class::Schema::Loader v0.04006 @ 2009-12-12 17:03:11
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BiiJA44OQMWGE5P9CMdzyA
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
Modified: ironman/IronMan-Web/lib/IronMan/Web/Model/FeedDB.pm
===================================================================
--- ironman/IronMan-Web/lib/IronMan/Web/Model/FeedDB.pm 2009-12-12 16:40:33 UTC (rev 8077)
+++ ironman/IronMan-Web/lib/IronMan/Web/Model/FeedDB.pm 2009-12-12 17:08:44 UTC (rev 8078)
@@ -6,7 +6,7 @@
__PACKAGE__->config(
schema_class => 'IronMan::Schema',
connect_info => [
- 'dbi:SQLite:/home/castaway/plagger/subscriptions.db',
+ 'dbi:SQLite:/home/graeme/workspace/IronMan/ironman.db',
],
);
More information about the Bast-commits
mailing list