[COMMIT LOGREPORT] service/all/lib/config-spec lire.xml.in, 1.18, 1.19

Joost van Baal vanbaal at users.sourceforge.net
Tue Mar 25 20:23:11 CET 2008


Update of /cvsroot/logreport/service/all/lib/config-spec
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv5796/all/lib/config-spec

Modified Files:
	lire.xml.in 
Log Message:
Contribution by Konstantinos Koukopoulos, as per

 To: LogReport Development List
 Subject: Re: patch for Report Job name in lire(1)
 Date: Tue, 20 Sep 2005 15:19:49 +0300
 Message-Id: <200509201519.50107.Software.Lire at noc.edunet.gr>

stating

 It has been noted that lire(1) allows you to incorrectly use spaces and other
 characters to name a Report Job. Also, although the sidebar in lire(1) notes
 that you must only use alphanumerics, hyphens and underscores, this is not
 mentioned in the user manual. I've attached a patch against cvs which:

 a) adds a <warning> to doc/user_manual.dbx
 b) adds two lines to all/lib/Lire/UI/StringWidget.pm so that the TextEntry
 dialog uses the 'valid-re' attribute of <lrcsml:string>
 c) added a regexp to all/lib/config-spec/lire.xml.in to be used for the Report
 Job name field.



Index: lire.xml.in
===================================================================
RCS file: /cvsroot/logreport/service/all/lib/config-spec/lire.xml.in,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- lire.xml.in	4 Mar 2005 16:46:22 -0000	1.18
+++ lire.xml.in	27 Feb 2008 14:26:57 -0000	1.19
@@ -533,7 +533,7 @@
     <lrcsml:summary>ReportJobs configured in the current
       store.</lrcsml:summary>
     <lrcsml:object name="report_job" class="Lire::ReportJob" label="name">
-      <lrcsml:string name="name">
+      <lrcsml:string name="name" valid-re="/^[\w-]+$/">
         <lrcsml:summary>Name of the ReportJob.</lrcsml:summary>
         <lrcsml:description>
           <para>It is needed to identify the report jobs for Lire to



More information about the Commit mailing list