[vhffs-dev] [890] Bye bye get_title, get_label is now used everywhere ( both were used and returned the same values, my mad)

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 890
Author:   gradator
Date:     2007-09-10 02:08:08 +0000 (Mon, 10 Sep 2007)

Log Message:
-----------
Bye bye get_title, get_label is now used everywhere (both were used and returned the same values, my mad)

Modified Paths:
--------------
    trunk/vhffs-api/src/Vhffs/Group.pm
    trunk/vhffs-api/src/Vhffs/Services/Cvs.pm
    trunk/vhffs-api/src/Vhffs/Services/DNS.pm
    trunk/vhffs-api/src/Vhffs/Services/Mail.pm
    trunk/vhffs-api/src/Vhffs/Services/MailingList.pm
    trunk/vhffs-api/src/Vhffs/Services/Mysql.pm
    trunk/vhffs-api/src/Vhffs/Services/Pgsql.pm
    trunk/vhffs-api/src/Vhffs/Services/Repository.pm
    trunk/vhffs-api/src/Vhffs/Services/Svn.pm
    trunk/vhffs-api/src/Vhffs/Services/Web.pm
    trunk/vhffs-api/src/Vhffs/User.pm
    trunk/vhffs-panel/admin/moderation.pl
    trunk/vhffs-panel/group/history.pl
    trunk/vhffs-public/group.pl
    trunk/vhffs-robots/src/mailinglist_create.pl


Modified: trunk/vhffs-api/src/Vhffs/Group.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Group.pm	2007-09-09 05:04:48 UTC (rev 889)
+++ trunk/vhffs-api/src/Vhffs/Group.pm	2007-09-10 02:08:08 UTC (rev 890)
@@ -374,12 +374,6 @@
     return $self->{'groupname'};
 }
 
-sub get_title
-{
-    my $self = shift;
-    return $self->{'groupname'};
-}
-
 sub get_gid
 {
     my $self = shift;

Modified: trunk/vhffs-api/src/Vhffs/Services/Cvs.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Services/Cvs.pm	2007-09-09 05:04:48 UTC (rev 889)
+++ trunk/vhffs-api/src/Vhffs/Services/Cvs.pm	2007-09-10 02:08:08 UTC (rev 890)
@@ -182,12 +182,6 @@
 	$self->{'cvsroot'} = $value;
 }
 
-sub get_title
-{
-	my $self = shift;
-	return $self->{'cvsroot'};
-}
-
 sub get_type
 {
 	return 'cvs';

Modified: trunk/vhffs-api/src/Vhffs/Services/DNS.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Services/DNS.pm	2007-09-09 05:04:48 UTC (rev 889)
+++ trunk/vhffs-api/src/Vhffs/Services/DNS.pm	2007-09-10 02:08:08 UTC (rev 890)
@@ -1055,14 +1055,6 @@
     return $self->{'ttl'};
 }
 
-
-
-sub get_title
-{
-    my $self = shift;
-    return $self->{'domain'};
-}
-
 sub get_type
 {
 	return 'dns';

Modified: trunk/vhffs-api/src/Vhffs/Services/Mail.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Services/Mail.pm	2007-09-09 05:04:48 UTC (rev 889)
+++ trunk/vhffs-api/src/Vhffs/Services/Mail.pm	2007-09-10 02:08:08 UTC (rev 890)
@@ -393,12 +393,6 @@
     return $self->{domain};
 }
 
-sub get_title
-{
-	my $self = shift;
-	return $self->{'domain'};
-}
-
 sub get_type
 {
 	return 'mail';

Modified: trunk/vhffs-api/src/Vhffs/Services/MailingList.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Services/MailingList.pm	2007-09-09 05:04:48 UTC (rev 889)
+++ trunk/vhffs-api/src/Vhffs/Services/MailingList.pm	2007-09-10 02:08:08 UTC (rev 890)
@@ -574,12 +574,6 @@
 
 
 
-sub get_title
-{
-    my $self = shift;
-    return $self->{local_part} . "\@" . $self->{domain};
-}
-
 sub get_type
 {
     return 'mailinglist';

Modified: trunk/vhffs-api/src/Vhffs/Services/Mysql.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Services/Mysql.pm	2007-09-09 05:04:48 UTC (rev 889)
+++ trunk/vhffs-api/src/Vhffs/Services/Mysql.pm	2007-09-10 02:08:08 UTC (rev 890)
@@ -177,12 +177,6 @@
     return $self->{dbname};
 }
 
-sub get_title
-{
-	my $self = shift;
-	return $self->{'dbname'};
-}
-
 sub get_type
 {
 	return 'mysql';

Modified: trunk/vhffs-api/src/Vhffs/Services/Pgsql.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Services/Pgsql.pm	2007-09-09 05:04:48 UTC (rev 889)
+++ trunk/vhffs-api/src/Vhffs/Services/Pgsql.pm	2007-09-10 02:08:08 UTC (rev 890)
@@ -181,12 +181,6 @@
 	return $self->{'dbname'};
 }
 
-sub get_title
-{
-	my $self = shift;
-	return $self->{'dbname'};
-}
-
 sub get_type
 {
 	return 'pgsql';

Modified: trunk/vhffs-api/src/Vhffs/Services/Repository.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Services/Repository.pm	2007-09-09 05:04:48 UTC (rev 889)
+++ trunk/vhffs-api/src/Vhffs/Services/Repository.pm	2007-09-10 02:08:08 UTC (rev 890)
@@ -227,12 +227,6 @@
 	return $self->{name};
 }
 
-sub get_title
-{
-	my $self = shift;
-	return $self->{'name'};
-}
-
 sub get_type
 {
 	return 'repository';

Modified: trunk/vhffs-api/src/Vhffs/Services/Svn.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Services/Svn.pm	2007-09-09 05:04:48 UTC (rev 889)
+++ trunk/vhffs-api/src/Vhffs/Services/Svn.pm	2007-09-10 02:08:08 UTC (rev 890)
@@ -191,12 +191,6 @@
     return $self->{'reponame'};
 }
 
-sub get_title
-{
-    my $self = shift;
-    return $self->{'reponame'};
-}
-
 sub get_type
 {
 	return 'svn';

Modified: trunk/vhffs-api/src/Vhffs/Services/Web.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Services/Web.pm	2007-09-09 05:04:48 UTC (rev 889)
+++ trunk/vhffs-api/src/Vhffs/Services/Web.pm	2007-09-10 02:08:08 UTC (rev 890)
@@ -140,12 +140,6 @@
     return $self->{servername};
 }
 
-sub get_title
-{
-	my $self = shift;
-	return $self->{'servername'};
-}
-
 sub get_type
 {
 	return 'web';

Modified: trunk/vhffs-api/src/Vhffs/User.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/User.pm	2007-09-09 05:04:48 UTC (rev 889)
+++ trunk/vhffs-api/src/Vhffs/User.pm	2007-09-10 02:08:08 UTC (rev 890)
@@ -392,12 +392,6 @@
     return $self->{'username'};
 }
 
-sub get_title
-{
-    my $self = shift;
-    return $self->{'username'};
-}
-
 sub get_firstname
 {
     my $self = shift;

Modified: trunk/vhffs-panel/admin/moderation.pl
===================================================================
--- trunk/vhffs-panel/admin/moderation.pl	2007-09-09 05:04:48 UTC (rev 889)
+++ trunk/vhffs-panel/admin/moderation.pl	2007-09-10 02:08:08 UTC (rev 890)
@@ -99,7 +99,7 @@
 
 			my $object = Vhffs::ObjectFactory::fetch_object( $vhffs , $_->{object_id} );
 			$subtemplate->param( TYPE => Vhffs::Functions::type_string_from_type_id( $_->{type} ) );
-			$subtemplate->param( NAME => $object->get_title );
+			$subtemplate->param( NAME => $object->get_label );
 
 			$subtemplate->param( OWNER	=> $user->get_username);
 

Modified: trunk/vhffs-panel/group/history.pl
===================================================================
--- trunk/vhffs-panel/group/history.pl	2007-09-09 05:04:48 UTC (rev 889)
+++ trunk/vhffs-panel/group/history.pl	2007-09-10 02:08:08 UTC (rev 890)
@@ -108,7 +108,7 @@
 			$subtemplate->param( DATE => $datestr );
 			$subtemplate->param( TYPE => Vhffs::Functions::type_string_from_type_id( $history->{$_}{type} ) );
 			my $object = Vhffs::ObjectFactory::fetch_object( $vhffs , $history->{$_}{object_id} );
-			$subtemplate->param( NAME => $object->get_title );
+			$subtemplate->param( NAME => $object->get_label );
 			$subtemplate->param( EVENT => $history->{$_}{message} );
 			$output .= $subtemplate->output;
 		}

Modified: trunk/vhffs-public/group.pl
===================================================================
--- trunk/vhffs-public/group.pl	2007-09-09 05:04:48 UTC (rev 889)
+++ trunk/vhffs-public/group.pl	2007-09-10 02:08:08 UTC (rev 890)
@@ -213,7 +213,7 @@
 			   	 	$subtemplate = new HTML::Template::Expr(
 		                        filename => $templatedir."/public/misc/list-part.tmpl",
                 		        functions => { obfuscate_email => \&obfuscate_email } );
-			    		$subtemplate->param( LISTNAME => $_->get_title );
+			    		$subtemplate->param( LISTNAME => $_->get_label );
 					$subtemplate->param( DOMAIN => $_->get_domain );
 					$subtemplate->param( LOCALPART => $_->get_localpart );
 			    		$subtemplate->param( ARCHIVESURL => $mailinglistconfig->{'url_archives'} );

Modified: trunk/vhffs-robots/src/mailinglist_create.pl
===================================================================
--- trunk/vhffs-robots/src/mailinglist_create.pl	2007-09-09 05:04:48 UTC (rev 889)
+++ trunk/vhffs-robots/src/mailinglist_create.pl	2007-09-10 02:08:08 UTC (rev 890)
@@ -50,11 +50,11 @@
 	$ml->set_status( Vhffs::Constants::ACTIVATED );
 	if( $ml->commit < 0 )
 	{
-		Vhffs::Robots::vhffs_log( sprintf( "Cannot create list %s", $ml->get_title ), $vhffs);
+		Vhffs::Robots::vhffs_log( sprintf( "Cannot create list %s", $ml->get_label ), $vhffs);
 	}
 	else
 	{
-		Vhffs::Robots::vhffs_log( sprintf( "Create list %s", $ml->get_title ), $vhffs);
+		Vhffs::Robots::vhffs_log( sprintf( "Create list %s", $ml->get_label ), $vhffs);
 	}
 }
 


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/