[Rt-commit] r19533 - in rt/3.999/trunk: . lib/RT

sunnavy at bestpractical.com sunnavy at bestpractical.com
Thu May 7 03:23:11 EDT 2009


Author: sunnavy
Date: Thu May  7 03:23:11 2009
New Revision: 19533

Added:
   rt/3.999/trunk/lib/RT/Config.pm
      - copied, changed from r19526, /rt/3.999/trunk/etc/RT_Config.pm
Modified:
   rt/3.999/trunk/   (props changed)
   rt/3.999/trunk/etc/RT_Config.pm

Log:
 r20870 at sunnavys-mb (orig r19317):  sunnavy | 2009-04-21 19:55:40 +0800
 move RT_Config.pm to lib/RT/Config.pm


Modified: rt/3.999/trunk/etc/RT_Config.pm
==============================================================================

Copied: rt/3.999/trunk/lib/RT/Config.pm (from r19526, /rt/3.999/trunk/etc/RT_Config.pm)
==============================================================================
--- /rt/3.999/trunk/etc/RT_Config.pm	(original)
+++ rt/3.999/trunk/lib/RT/Config.pm	Thu May  7 03:23:11 2009
@@ -1,22 +1,4 @@
 package RT::Config;
-=head1 NAME
-
-RT::Config
-
-=for testing
-
-use RT::Config;
-
-=cut
-
-=head1 WARNING
-
-NEVER EDIT RT_Config.pm.
-
-Instead, copy any sections you want to change to F<RT_SiteConfig.pm> and edit them there.
-
-=cut
-
 =head1 Base Configuration
 
 =over 4
@@ -79,14 +61,14 @@
 
 set(minimum_password_length => "5");
 
-=item C<$Timezone>
+=item C<time_zone>
 
-C<$Timezone> is used to convert times entered by users into GMT and back again
-It should be set to a timezone recognized by your local unix box.
+C<time_zone> is used to convert times entered by users into GMT and back again
+It should be set to a time zone recognized by L<DateTime::TimeZone>.
 
 =cut
 
-set($Timezone , 'US/Eastern');
+set(time_zone => 'America/New_York');
 
 =back
 
@@ -108,6 +90,28 @@
 
 set(use_sql_for_acl_checks => undef);
 
+=item C<full_text_search>
+
+Full text search (FTS) without indexes is slow operation and by default is
+disabled at all. To enable FTS set key 'enabled' to true value.
+
+Setup of indexes and filling them with data requires different steps for
+different database back-ends. Use F<sbin/rt-setup-fulltext-index> helper
+for quick start. This script creates required structures in the DB and
+gives some ideas on next steps.
+
+=cut
+
+set( full_text_search =>
+    {
+        enable  => 0,
+        indexed => 0,
+
+        #    Table   => 'AttachmentsIndex',
+        #    Column  => 'ftsindex',
+    }
+);
+
 =back
 
 =head1 Incoming Mail Gateway Configuration
@@ -616,17 +620,7 @@
 set(log_dir => '');
 set(log_to_file_named => "rt.log");    #log to rt.log
 
-=item C<$LogStackTraces>
-
-If set to a log level then logging will include stack
-traces for messages with level equal to or greater than
-specified.
-
-=cut
-
-set($LogStackTraces, '');
-
-=item C<@LogToSyslogConf>
+=item C<log_to_syslog_conf>
 
 On Solaris or UnixWare, set to ( socket => 'inet' ).  Options here
 override any other options RT passes to L<Log::Dispatch::Syslog>.
@@ -1220,18 +1214,19 @@
 
 =item C<date_time_format>
 
-You can choose date and time format.  See "Output formatters"
-section in perldoc F<lib/RT/Date.pm> for more options.  This option can
-be overridden by users in their preferences.
+You can choose date and time format. This takes a L<DateTime/strftime> format
+specification. See L<DateTime/strftime_Patterns> for a full list of variables.
+
+This option can be overridden by users in their preferences.
+
 Some examples:
 
-C<set($DateTimeFormat, { Format => 'ISO', Seconds => 0 });>
-C<set($DateTimeFormat, 'RFC2822');>
-C<set($DateTimeFormat, { Format => 'RFC2822', Seconds => 0, DayOfWeek => 0 });>
+C<set(date_time_format => '%a, %d %b %y %h:%m:%s %z');> # RFC2822
+C<set(date_time_format => '%y-%m-%d %h:%m:%s');> # ISO
 
 =cut
 
-set($DateTimeFormat, 'DefaultFormat');
+set(date_time_format => '%Y-%m-%d %H:%M:%S');
 
 # Next two options are for Time::ParseDate
 


More information about the Rt-commit mailing list