[freeside-commits] freeside/bin generate-table-module,1.4,1.4.2.1
Ivan,,,
ivan at wavetail.420.am
Tue Feb 19 01:10:16 PST 2008
Update of /home/cvs/cvsroot/freeside/bin
In directory wavetail.420.am:/tmp/cvs-serv23210/bin
Modified Files:
Tag: FREESIDE_1_7_BRANCH
generate-table-module
Log Message:
fix this to generate more wiki-friendly column list
Index: generate-table-module
===================================================================
RCS file: /home/cvs/cvsroot/freeside/bin/generate-table-module,v
retrieving revision 1.4
retrieving revision 1.4.2.1
diff -u -d -r1.4 -r1.4.2.1
--- generate-table-module 8 Mar 2006 10:05:01 -0000 1.4
+++ generate-table-module 19 Feb 2008 09:10:14 -0000 1.4.2.1
@@ -31,10 +31,12 @@
if ( $line =~ /^=item\s+field\s+-\s+description\s*$/ ) {
foreach my $column ( $dbdef_table->columns ) {
- print DEST "=item $column - ";
- print DEST "primary key"
- if $column eq $primary_key;
- print DEST "\n\n";
+ print DEST "=item $column\n\n";
+ if ( $column eq $primary_key ) {
+ print DEST "primary key\n\n";
+ } else {
+ print DEST "$column\n\n";
+ }
}
next;
More information about the freeside-commits
mailing list