dabodemo Commit Revision 442 Date: 2006-10-31 18:52:40 -0800 (Tue, 31 Oct 2006) Author: paul
Changed: _U trunk/__version__.py UU trunk/db/autoCreateTable.py _U trunk/lib/__init__.py _U trunk/reports/invoice.py _U trunk/tutorial/autoBindEvents.py _U trunk/tutorial/browseDataSet.py _U trunk/tutorial/classBasedExample.py _U trunk/tutorial/dynamicProps.py _U trunk/tutorial/fieldValidation.py _U trunk/tutorial/sizerExample.py
Log: End of lines to native for several dabodemo files.
Diff:
Property changes on: trunk/__version__.py ___________________________________________________________________ Name: svn:eol-style + native
Modified: trunk/db/autoCreateTable.py =================================================================== --- trunk/db/autoCreateTable.py 2006-11-01 01:59:08 UTC (rev 441) +++ trunk/db/autoCreateTable.py 2006-11-01 02:52:40 UTC (rev 442) @@ -1,29 +1,29 @@ -import dabo -from dabo.db import dTable -import dabo.biz.dAutoBizobj as autobiz - -def main(): - #Connect to database - ci = dabo.db.dConnectInfo(DbType="SQLite", Database="act.db") - conn = dabo.db.dConnection(ci) - - class table1(autobiz): - def getTable(self): - t = dTable(Name="table1") - t.addField(Name="id", DataType="int", Size=8, IsPK=True) - return t - - class table2(autobiz): - def getTable(self): - t = dTable(Name="table2") - t.addField(Name="id", DataType="int", Size=8, IsPK=True) - t.addField(Name="data", DataType="string", Size=25) - t.addIndex(Name="idx_data", Fields="data") - return t - - dabo.biz.setupAutoBiz(conn, (table1, table2)) - dabo.biz.autoCreateTables() - -if __name__ == "__main__": - main() +import dabo +from dabo.db import dTable +import dabo.biz.dAutoBizobj as autobiz + +def main(): + #Connect to database + ci = dabo.db.dConnectInfo(DbType="SQLite", Database="act.db") + conn = dabo.db.dConnection(ci) + + class table1(autobiz): + def getTable(self): + t = dTable(Name="table1") + t.addField(Name="id", DataType="int", Size=8, IsPK=True) + return t + + class table2(autobiz): + def getTable(self): + t = dTable(Name="table2") + t.addField(Name="id", DataType="int", Size=8, IsPK=True) + t.addField(Name="data", DataType="string", Size=25) + t.addIndex(Name="idx_data", Fields="data") + return t + + dabo.biz.setupAutoBiz(conn, (table1, table2)) + dabo.biz.autoCreateTables() + +if __name__ == "__main__": + main() \ No newline at end of file
Property changes on: trunk/db/autoCreateTable.py ___________________________________________________________________ Name: svn:eol-style + native
Property changes on: trunk/lib/__init__.py ___________________________________________________________________ Name: svn:eol-style + native
Property changes on: trunk/reports/invoice.py ___________________________________________________________________ Name: svn:eol-style + native
Property changes on: trunk/tutorial/autoBindEvents.py ___________________________________________________________________ Name: svn:eol-style + native
Property changes on: trunk/tutorial/browseDataSet.py ___________________________________________________________________ Name: svn:eol-style + native
Property changes on: trunk/tutorial/classBasedExample.py ___________________________________________________________________ Name: svn:eol-style + native
Property changes on: trunk/tutorial/dynamicProps.py ___________________________________________________________________ Name: svn:eol-style + native
Property changes on: trunk/tutorial/fieldValidation.py ___________________________________________________________________ Name: svn:eol-style + native
Property changes on: trunk/tutorial/sizerExample.py ___________________________________________________________________ Name: svn:eol-style + native
©2006 Paul McNett |