[Rt-commit] r10538 - in rt/branches/3.999-DANGEROUS: etc lib/RT lib/RT/Model

ruz at bestpractical.com ruz at bestpractical.com
Mon Jan 28 16:48:47 EST 2008


Author: ruz
Date: Mon Jan 28 16:48:46 2008
New Revision: 10538

Modified:
   rt/branches/3.999-DANGEROUS/etc/initialdata
   rt/branches/3.999-DANGEROUS/lib/RT/Model/Template.pm
   rt/branches/3.999-DANGEROUS/lib/RT/URI.pm
   rt/branches/3.999-DANGEROUS/lib/RT/URI/fsck_com_rt.pm

Log:
* lowering fixes

Modified: rt/branches/3.999-DANGEROUS/etc/initialdata
==============================================================================
--- rt/branches/3.999-DANGEROUS/etc/initialdata	(original)
+++ rt/branches/3.999-DANGEROUS/etc/initialdata	Mon Jan 28 16:48:46 2008
@@ -228,11 +228,11 @@
     { Queue       => '0',
       name        => 'Blank',                                             # loc
       Description => 'A blank template',                                  # loc
-      Content     => '', },
+      content     => '', },
     {  Queue       => '0',
        name        => 'Autoreply',                                         # loc
        Description => 'Default Autoresponse template',                     # loc
-       Content     => 'Subject: AutoReply: {$Ticket->Subject}
+       content     => 'Subject: AutoReply: {$Ticket->Subject}
 
 
 Greetings,
@@ -263,7 +263,7 @@
     {  Queue       => '0',
        name        => 'Transaction',                     # loc
        Description => 'Default transaction template',    # loc
-       Content     => 'RT-Attach-Message: yes
+       content     => 'RT-Attach-Message: yes
 
 
 {$Transaction->created_as_string}: Request {$Ticket->id} was acted upon.
@@ -285,7 +285,7 @@
       Queue       => '0',
       name        => 'Admin Correspondence',                     # loc
       Description => 'Default admin correspondence template',    # loc
-      Content     => 'RT-Attach-Message: yes
+      content     => 'RT-Attach-Message: yes
 
 
 <URL: {RT->config->get(\'WebURL\')}Ticket/Display.html?id={$Ticket->id} >
@@ -297,7 +297,7 @@
     {  Queue       => '0',
        name        => 'Correspondence',                          # loc
        Description => 'Default correspondence template',         # loc
-       Content     => 'RT-Attach-Message: yes
+       content     => 'RT-Attach-Message: yes
 
 {$Transaction->content()}
 '
@@ -306,7 +306,7 @@
     {  Queue       => '0',
        name        => 'Admin comment',                           # loc
        Description => 'Default admin comment template',          # loc
-       Content     =>
+       content     =>
 'Subject: [comment] {my $s=($Transaction->Subject||$Ticket->Subject); $s =~ s/\\[comment\\]//g; $s =~ s/^Re//i; $s;}
 
 
@@ -320,7 +320,7 @@
     {  Queue       => '0',
        name        => 'Status Change',                                     # loc
        Description => 'Ticket status changed',                             # loc
-       Content     => 'Subject: Status Changed to: {$Transaction->new_value}
+       content     => 'Subject: Status Changed to: {$Transaction->new_value}
 
 
 {RT->config->get(\'WebURL\')}Ticket/Display.html?id={$Ticket->id}
@@ -334,7 +334,7 @@
       Queue       => '0',
       name        => 'Resolved',                 # loc
       Description => 'Ticket Resolved',          # loc
-      Content     => 'Subject: Resolved: {$Ticket->Subject}
+      content     => 'Subject: Resolved: {$Ticket->Subject}
 
 According to our records, your request has been resolved. If you have any
 further questions or concerns, please respond to this message.
@@ -344,7 +344,7 @@
        name        => "New Pending Approval",    # loc
        Description =>
          "Notify Owners and AdminCcs of new items pending their approval", # loc
-       Content => 'Subject: New Pending Approval: {$Ticket->Subject}
+       content => 'Subject: New Pending Approval: {$Ticket->Subject}
 
 Greetings,
 
@@ -363,7 +363,7 @@
        name        => "Approval Passed",    # loc
        Description =>
          "Notify Owner of their ticket has been approved by some approver", # loc
-       Content => 'Subject: Ticket Approved: {$Ticket->Subject}
+       content => 'Subject: Ticket Approved: {$Ticket->Subject}
 
 Greetings,
 
@@ -375,7 +375,7 @@
        name        => "All Approvals Passed",    # loc
        Description =>
          "Notify Owner of their ticket has been approved by all approvers", # loc
-       Content => 'Subject: Ticket Approved: {$Ticket->Subject}
+       content => 'Subject: Ticket Approved: {$Ticket->Subject}
 
 Greetings,
 
@@ -386,7 +386,7 @@
        name        => "Approval Rejected",    # loc
        Description =>
          "Notify Owner of their rejected ticket", # loc
-       Content => 'Subject: Ticket Rejected: {$Ticket->Subject}
+       content => 'Subject: Ticket Rejected: {$Ticket->Subject}
 
 Greetings,
 
@@ -396,7 +396,7 @@
     {  Queue       => 0,
        name        => "Forward",    # loc
        Description => "Heading of a forwarded message", # loc
-       Content => q{
+       content => q{
 
 This is forward of transaction #{ $Transaction->id } of a ticket #{ $Ticket->id }
 }
@@ -405,7 +405,7 @@
        name        => "Error: public key",    # loc
        Description =>
          "Inform user that he has problems with public key and couldn't recieve encrypted content", # loc
-       Content => q{Subject: We have no your public key or it's wrong
+       content => q{Subject: We have no your public key or it's wrong
 
 You received this message as we have no your public PGP key or we have a problem with your key. Inform the administrator about the problem.
 }
@@ -414,7 +414,7 @@
        name        => "Error to RT owner: public key",    # loc
        Description =>
          "Inform RT owner that user(s) have problems with public keys", # loc
-       Content => q{Subject: Some users have problems with public keys
+       content => q{Subject: Some users have problems with public keys
 
 You received this message as RT has problems with public keys of the following user:
 {
@@ -427,7 +427,7 @@
        name        => "Error: no private key",    # loc
        Description =>
          "Inform user that we received an encrypted email and we have no private keys to decrypt", # loc
-       Content => q{Subject: we received message we cannot decrypt
+       content => q{Subject: we received message we cannot decrypt
 
 You sent an encrypted message with subject '{ $Message->head->get('Subject') }',
 but we have no private key it's encrypted to.
@@ -439,7 +439,7 @@
        name        => "Error: bad GnuPG data",    # loc
        Description =>
          "Inform user that a message he sent has invalid GnuPG data", # loc
-       Content => q{Subject: We received a message we cannot handle
+       content => q{Subject: We received a message we cannot handle
 
 You sent us a message that we cannot handle due to corrupted GnuPG signature or encrypted block. we get the following error(s):
 { foreach my $msg ( @Messages ) {
@@ -451,7 +451,7 @@
        name        => "passwordChange",    # loc
        Description =>
          "Inform user that his password has been reset", # loc
-       Content => q{Subject: [{RT->config->get('rtname')}] password reset
+       content => q{Subject: [{RT->config->get('rtname')}] password reset
 
 Greetings,
 

Modified: rt/branches/3.999-DANGEROUS/lib/RT/Model/Template.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/Model/Template.pm	(original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/Model/Template.pm	Mon Jan 28 16:48:46 2008
@@ -41,7 +41,7 @@
     column
         TranslationOf => max_length is 11,
         type is 'int(11)', default is '0';
-    column Content     => type is 'blob',     default is '';
+    column content     => type is 'blob',     default is '';
     column LastUpdated => type is 'datetime', default is '';
     column
         LastUpdatedBy => max_length is 11,
@@ -153,9 +153,9 @@
 
 =head2 Create
 
-Takes a paramhash of Content, Queue, name and Description.
+Takes a paramhash of content, Queue, name and Description.
 name should be a unique string identifying this Template.
-Description and Content should be the template's title and content.
+Description and content should be the template's title and content.
 Queue should be 0 for a global template and the queue # for a queue-specific 
 template.
 
@@ -168,7 +168,7 @@
 sub create {
     my $self = shift;
     my %args = (
-        Content     => undef,
+        content     => undef,
         Queue       => 0,
         Description => '[no description]',
         Type => 'Action',    #By default, template are 'Action' templates
@@ -200,7 +200,7 @@
     }
 
     my $result = $self->SUPER::create(
-        Content     => $args{'Content'},
+        content     => $args{'content'},
         Queue       => $args{'Queue'},
         Description => $args{'Description'},
         name        => $args{'name'},

Modified: rt/branches/3.999-DANGEROUS/lib/RT/URI.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/URI.pm	(original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/URI.pm	Mon Jan 28 16:48:46 2008
@@ -178,9 +178,9 @@
 
 # }}}
 
-# {{{ Scheme
+# {{{ scheme
 
-=head2 Scheme
+=head2 scheme
 
 Returns a local object id for this content.  You are expected to know
 what sort of object this is the id of
@@ -189,7 +189,7 @@
 
 sub scheme {
     my $self = shift;
-    return ( $self->resolver->Scheme );
+    return ( $self->resolver->scheme );
 
 }
 

Modified: rt/branches/3.999-DANGEROUS/lib/RT/URI/fsck_com_rt.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/URI/fsck_com_rt.pm	(original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/URI/fsck_com_rt.pm	Mon Jan 28 16:48:46 2008
@@ -66,7 +66,7 @@
 sub local_uri_prefix {
     my $self = shift;
 
-    my $prefix = $self->Scheme . "://" . RT->config->get('organization');
+    my $prefix = $self->scheme . "://" . RT->config->get('organization');
 
     return ($prefix);
 }
@@ -179,7 +179,7 @@
 
 }
 
-=head2 Scheme
+=head2 scheme
 
 Return the URI scheme for RT records
 


More information about the Rt-commit mailing list