User: sits    
  Date: 06/06/20 23:00:56

  Modified:    .        codestriker.conf
               doc      codestriker.sgml
               lib/Codestriker/Model MetricStats.pm
               template/en/default createproject.html.tmpl
                        createtopic.html.tmpl editcomment.html.tmpl
                        editproject.html.tmpl listprojects.html.tmpl
                        listtopics.html.tmpl metricsreport.html.tmpl
                        search.html.tmpl viewtopic.html.tmpl
                        viewtopiccomments.html.tmpl viewtopicinfo.html.tmpl
                        viewtopicproperties.html.tmpl
  Log:
  * Update documentation to discuss $topic_text_encoding setting in
    codestriker.conf file.
  
  * The raw metrics CSV download wasn't decoding the topic text and
    project names correctly for non-ASCII names.  This how now been
    fixed.
  
  * Updated help links on all pages.
  
  
  
  Index: codestriker.conf
  ===================================================================
  RCS file: /cvsroot/codestriker/codestriker/codestriker.conf,v
  retrieving revision 1.84
  retrieving revision 1.85
  diff -u -r1.84 -r1.85
  --- codestriker.conf  21 Jun 2006 04:58:48 -0000      1.84
  +++ codestriker.conf  21 Jun 2006 06:00:47 -0000      1.85
  @@ -176,10 +176,10 @@
        # It is also important that the user account running the
        # webserver process has permission to access to the snapshot
        # view.
  -     'clearcase:c:\\stuff\\view_name\\vob_name',
  +     'clearcase:c:\\stuff\\view_name\\vob_name'
   
        # The next example is a repository based off a ClearCase dynamic view.
  -     'clearcase:dyn:c:\\stuff\\dynamic_view_name\\vob_name'
  +     # 'clearcase:dyn:c:\\stuff\\dynamic_view_name\\vob_name'
       );
   
   # A mapping of repository URLs to names.  In any screen where a
  @@ -395,9 +395,10 @@
   #                    }
   };
   
  -# Character encoding to use when reading topic text.  Default is UTF-8
  -# but this can be over-ridden here.  List of example encoding names
  -# can be seen here: http://perldoc.perl.org/Encode/Supported.html.
  +# Character encoding to use when reading topic text.  Default is utf8
  +# (compatible with ASCII) if not set, but this can be over-ridden here.
  +# List of example encoding names can be retrieved from the following
  +# URL: http://perldoc.perl.org/Encode/Supported.html.
   #$topic_text_encoding = 'utf8';
   #$topic_text_encoding = 'gb2312';
   
  
  
  
  
  
  Index: codestriker.sgml
  ===================================================================
  RCS file: /cvsroot/codestriker/codestriker/doc/codestriker.sgml,v
  retrieving revision 1.58
  retrieving revision 1.59
  diff -u -r1.58 -r1.59
  --- codestriker.sgml  21 Jun 2006 04:58:49 -0000      1.58
  +++ codestriker.sgml  21 Jun 2006 06:00:50 -0000      1.59
  @@ -36,7 +36,9 @@
           against the review comments.  Once all reviewers have
           finished, the author has all review comments available in a
           structured fashion.  All information is stored in a relational
  -        database, which Codestriker can search over.
  +        database, which Codestriker can search over.  All text is
  +        stored internally as UTF-8, which supports reviews in
  +        all major languages.
         </para>
         <para>
           Special support is provided for integration with 
  @@ -760,6 +762,27 @@
        </para>
         </sect2>
         <sect2>
  +        <title>Topic Text Encoding</title>
  +     <para>
  +       Codestriker stores the topic text, description and comments
  +          as UTF-8.  When creating a topic, Codestriker needs to be
  +          told what encoding your files are stored in.  By default,
  +          Codestriker assumes it is UTF-8 (compatible with ASCII).
  +          If your source code files are stored in another encoding
  +          (for example, gb2312 for a Chinese team), this needs to be
  +          specified in the <varname>$topic_text_encoding</varname>
  +          variable.
  +       <programlisting>
  +# Character encoding to use when reading topic text.  Default is utf8
  +# (compatible with ASCII) if not set, but this can be over-ridden here.
  +# List of example encoding names can be retrieved from the following
  +# URL: http://perldoc.perl.org/Encode/Supported.html.
  +#$topic_text_encoding = 'utf8';
  +#$topic_text_encoding = 'gb2312';
  +       </programlisting>
  +     </para>
  +      </sect2>
  +      <sect2>
           <title>Deployment Options</title>
        <para>
          There are a number of other options which affect how
  @@ -1193,7 +1216,7 @@
          should be able to install it by typing:
   <programlisting>
   C:\> ppm
  -PPM> rep add theory http://theoryx5.uwinnipeg.ca/ppmpackages
  +PPM> rep add theory 
http://theoryx5.uwinnipeg.ca/cgi-bin/ppmserver?urn:/PPMServer58
   PPM> install mod_perl
   </programlisting>
             Note mod_perl has known to be a little flaky under Windows.
  
  
  
  
  
  Index: MetricStats.pm
  ===================================================================
  RCS file: 
/cvsroot/codestriker/codestriker/lib/Codestriker/Model/MetricStats.pm,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- MetricStats.pm    21 Dec 2004 23:02:58 -0000      1.11
  +++ MetricStats.pm    21 Jun 2006 06:00:52 -0000      1.12
  @@ -10,6 +10,7 @@
   package Codestriker::Model::MetricStats;
   
   use strict;
  +use Encode qw(decode_utf8);
   
   use Codestriker::DB::DBI;
   
  @@ -258,6 +259,10 @@
            WHERE topic.id = ? AND 
                  topic.projectid = project.id',{}, $topicid);
   
  +    # Decode topic title and project name.
  +    $basic_topic_info[2] = decode_utf8($basic_topic_info[2]);
  +    $basic_topic_info[5] = decode_utf8($basic_topic_info[5]);
  +
       if ($basic_topic_info[3] < @Codestriker::topic_states) {
        $basic_topic_info[3] = 
            @Codestriker::topic_states[$basic_topic_info[3]];
  
  
  
  
  
  Index: createproject.html.tmpl
  ===================================================================
  RCS file: 
/cvsroot/codestriker/codestriker/template/en/default/createproject.html.tmpl,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- createproject.html.tmpl   19 Jun 2005 11:26:52 -0000      1.21
  +++ createproject.html.tmpl   21 Jun 2006 06:00:53 -0000      1.22
  @@ -1,7 +1,7 @@
   [%# Screen for the create project form. #%]
   
   [% PROCESS header.html.tmpl version = version displaymenu = 1
  -                            closehead = 1 help = "x357.html" %]
  +                            closehead = 1 help = "x367.html" %]
   
   [%# Display any "feedback" to the user if necessary. #%]
   [% IF feedback != '' %]
  
  
  
  
  
  Index: createtopic.html.tmpl
  ===================================================================
  RCS file: 
/cvsroot/codestriker/codestriker/template/en/default/createtopic.html.tmpl,v
  retrieving revision 1.47
  retrieving revision 1.48
  diff -u -r1.47 -r1.48
  --- createtopic.html.tmpl     15 Jun 2006 07:12:38 -0000      1.47
  +++ createtopic.html.tmpl     21 Jun 2006 06:00:55 -0000      1.48
  @@ -1,7 +1,7 @@
   [%# Screen for the create topic form. #%]
   
   [% PROCESS header.html.tmpl version = version displaymenu = 1 
  -                            closehead = 1 help = "x381.html" %]
  +                            closehead = 1 help = "x391.html" %]
   
   [%# Display any "feedback" to the user if necessary. #%]
   [% IF feedback != '' %]
  
  
  
  
  
  Index: editcomment.html.tmpl
  ===================================================================
  RCS file: 
/cvsroot/codestriker/codestriker/template/en/default/editcomment.html.tmpl,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- editcomment.html.tmpl     11 Aug 2005 12:04:55 -0000      1.21
  +++ editcomment.html.tmpl     21 Jun 2006 06:00:55 -0000      1.22
  @@ -118,7 +118,7 @@
   
   [%# Screen for the add comment form. #%]
   
  -[% PROCESS header.html.tmpl displaymenu = 0 version = version help = 
"x488.html#ADD-COMMENT" %]
  +[% PROCESS header.html.tmpl displaymenu = 0 version = version help = 
"x501.html#ADD-COMMENT" %]
   
   <table border="0" cellpadding="5" cellspacing="0" width="100%">
   <tr class="tlh">
  
  
  
  
  
  Index: editproject.html.tmpl
  ===================================================================
  RCS file: 
/cvsroot/codestriker/codestriker/template/en/default/editproject.html.tmpl,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- editproject.html.tmpl     19 Jun 2005 11:26:52 -0000      1.22
  +++ editproject.html.tmpl     21 Jun 2006 06:00:55 -0000      1.23
  @@ -1,7 +1,7 @@
   [%# Screen for the edit project form. #%]
   
   [% PROCESS header.html.tmpl version = version displaymenu = 1 
  -                            closehead = 1 help = "x357.html" %]
  +                            closehead = 1 help = "x367.html" %]
   
   
   <script language="JavaScript">
  
  
  
  
  
  Index: listprojects.html.tmpl
  ===================================================================
  RCS file: 
/cvsroot/codestriker/codestriker/template/en/default/listprojects.html.tmpl,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- listprojects.html.tmpl    19 Jun 2005 11:26:52 -0000      1.20
  +++ listprojects.html.tmpl    21 Jun 2006 06:00:55 -0000      1.21
  @@ -1,7 +1,7 @@
   [%# Display a list of projects #%]
   
   [% PROCESS header.html.tmpl version = version displaymenu = 1 
  -                            closehead = 1 help = "x357.html" %]
  +                            closehead = 1 help = "x367.html" %]
   
   [%# Display any "feedback" to the user if necessary. #%]
   [% IF feedback != '' %]
  
  
  
  
  
  Index: listtopics.html.tmpl
  ===================================================================
  RCS file: 
/cvsroot/codestriker/codestriker/template/en/default/listtopics.html.tmpl,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- listtopics.html.tmpl      19 Jun 2005 11:26:52 -0000      1.36
  +++ listtopics.html.tmpl      21 Jun 2006 06:00:55 -0000      1.37
  @@ -1,7 +1,7 @@
   [%# Screen for show a list of topics. #%]
   
   [% PROCESS header.html.tmpl version = version displaymenu = 1 
  -                            closehead = 1 help = "x326.html" %]
  +                            closehead = 1 help = "x336.html" %]
   
   [%# Display any "feedback" to the user if necessary. #%]
   [% IF feedback != '' %]
  
  
  
  
  
  Index: metricsreport.html.tmpl
  ===================================================================
  RCS file: 
/cvsroot/codestriker/codestriker/template/en/default/metricsreport.html.tmpl,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- metricsreport.html.tmpl   19 Jun 2005 11:26:52 -0000      1.15
  +++ metricsreport.html.tmpl   21 Jun 2006 06:00:55 -0000      1.16
  @@ -1,7 +1,7 @@
   [%# Screen for the metrics report. #%]
   
   [% PROCESS header.html.tmpl version = version displaymenu = 1 
  -                            closehead = 1 help ="x678.html"  %]
  +                            closehead = 1 help ="x689.html"  %]
   
   <!-- "" -->
   
  
  
  
  
  
  Index: search.html.tmpl
  ===================================================================
  RCS file: 
/cvsroot/codestriker/codestriker/template/en/default/search.html.tmpl,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- search.html.tmpl  19 Jun 2005 11:26:52 -0000      1.31
  +++ search.html.tmpl  21 Jun 2006 06:00:55 -0000      1.32
  @@ -1,7 +1,7 @@
   [%# Screen for search topics. #%]
   
   [% PROCESS header.html.tmpl version = version displaymenu = 1 
  -                            closehead = 1 help = "x642.html" %]
  +                            closehead = 1 help = "x653.html" %]
   
   <H1>Topic search</H1>
   
  
  
  
  
  
  Index: viewtopic.html.tmpl
  ===================================================================
  RCS file: 
/cvsroot/codestriker/codestriker/template/en/default/viewtopic.html.tmpl,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- viewtopic.html.tmpl       19 Jun 2005 11:26:52 -0000      1.35
  +++ viewtopic.html.tmpl       21 Jun 2006 06:00:55 -0000      1.36
  @@ -8,7 +8,7 @@
       customised. #%]
   
   [% PROCESS viewtopicheader.html.tmpl version = version 
  -   help = "x490.html#VIEW-TOPIC" topicview = 1 topicproperties = 0
  +   help = "x501.html#VIEW-TOPIC" topicview = 1 topicproperties = 0
      topiccomments = 0 topicinfo = 0 closehead = 0 %]
   
   <p>
  
  
  
  
  
  Index: viewtopiccomments.html.tmpl
  ===================================================================
  RCS file: 
/cvsroot/codestriker/codestriker/template/en/default/viewtopiccomments.html.tmpl,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- viewtopiccomments.html.tmpl       27 Jul 2005 04:13:09 -0000      1.25
  +++ viewtopiccomments.html.tmpl       21 Jun 2006 06:00:55 -0000      1.26
  @@ -4,7 +4,7 @@
   [% USE FormatWhitespace tabwidth = tabwidth %]
   
   [% PROCESS viewtopicheader.html.tmpl version = version
  -   help = "x588.html" topicview = 0 topicproperties = 0 topiccomments = 1
  +   help = "x599.html" topicview = 0 topicproperties = 0 topiccomments = 1
      topicinfo = 0 closehead = 1 %]
   
   <SCRIPT type="text/javascript">
  
  
  
  
  
  Index: viewtopicinfo.html.tmpl
  ===================================================================
  RCS file: 
/cvsroot/codestriker/codestriker/template/en/default/viewtopicinfo.html.tmpl,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- viewtopicinfo.html.tmpl   19 Jun 2005 11:26:52 -0000      1.21
  +++ viewtopicinfo.html.tmpl   21 Jun 2006 06:00:55 -0000      1.22
  @@ -4,11 +4,11 @@
   
   [% PROCESS viewtopicheader.html.tmpl version = version topicview = 0
      topicproperties = 0 topiccomments = 0 topicinfo = 1 closehead = 1
  -   help = "x623.html" %]
  +   help = "x634.html" %]
    
   [%# Create a form to allow the topic's metrics to be changed #%]
   [% SET metric_input_exists = 0 %]
  -<form method="post" enctype="application/x-www-form-urlencoded" name="form">
  +<form method="post" enctype="multipart/form-data" name="form" 
accept-charset="UTF-8">
   
   <input type="hidden" name="action" value="edit_topic_metrics" />
   <input type="hidden" name="topic" value="[% topic %]" />
  
  
  
  
  
  Index: viewtopicproperties.html.tmpl
  ===================================================================
  RCS file: 
/cvsroot/codestriker/codestriker/template/en/default/viewtopicproperties.html.tmpl,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- viewtopicproperties.html.tmpl     21 Jun 2006 04:58:49 -0000      1.22
  +++ viewtopicproperties.html.tmpl     21 Jun 2006 06:00:55 -0000      1.23
  @@ -5,7 +5,7 @@
   
   [% PROCESS viewtopicheader.html.tmpl version = version topicview = 0
      topiccomments = 0 topicinfo = 0 topicproperties = 1 closehead = 1
  -   help = "x610.html" %]
  +   help = "x621.html" %]
   
   <script type="text/javascript">
   <!--
  
  
  


_______________________________________________
Codestriker-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/codestriker-commits

Reply via email to