Update of /cvsroot/openinteract/OpenInteract2/pkg/comments/OpenInteract2/App
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15802/pkg/comments/OpenInteract2/App
Modified Files:
Comments.pm
Log Message:
update core packages to include App improvements
Index: Comments.pm
===================================================================
RCS file: /cvsroot/openinteract/OpenInteract2/pkg/comments/OpenInteract2/App/Comments.pm,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Comments.pm 1 Mar 2005 03:28:42 -0000 1.1
--- Comments.pm 10 Mar 2005 01:24:58 -0000 1.2
***************
*** 1,4 ****
--- 1,6 ----
package OpenInteract2::App::Comments;
+ # $Id$
+
use strict;
use base qw( Exporter OpenInteract2::App );
***************
*** 8,14 ****
@OpenInteract2::App::Comments::EXPORT = qw( install );
! sub get_brick_name {
! return 'comments';
! }
# Not a method, just an exported sub
--- 10,14 ----
@OpenInteract2::App::Comments::EXPORT = qw( install );
! my $NAME = 'comments';
# Not a method, just an exported sub
***************
*** 21,24 ****
--- 21,41 ----
}
+ sub new {
+ return OpenInteract2::App->new( $NAME );
+ }
+
+ sub get_brick {
+ require OpenInteract2::Brick;
+ return OpenInteract2::Brick->new( $NAME );
+ }
+
+ sub get_brick_name {
+ return $NAME;
+ }
+
+ OpenInteract2::App->register_factory_type( $NAME => __PACKAGE__ );
+
+ 1;
+
__END__
|