Re: [Tutor] question about "hiding" a function/method in a class

2005-06-03 Thread Alan G
> Maybe it's not a "schema" exactly. > > |Table Name|Fields |Type |Size|Primary Key|Not Null|Unique|Foreign Key| ... > > |'s represent each cell. It's just a way to organize your thoughts, and have > something a little more readable than an SQ script for a DB schema. There's been > less than 20

Re: [Tutor] question about "hiding" a function/method in a class

2005-06-03 Thread Mike Hansen
Alan G wrote: >>I haven't done much OO in Python yet. For various web apps we write, > > we usually > >>write up a DB schema in a spreadsheet. > > > Wow! How exactly do you represent a schema in a spreadsheet? > I confess I cannot conceive of such a thing. Can you send a > representative sampl

Re: [Tutor] question about "hiding" a function/method in a class

2005-06-03 Thread Alan G
> I haven't done much OO in Python yet. For various web apps we write, we usually > write up a DB schema in a spreadsheet. Wow! How exactly do you represent a schema in a spreadsheet? I confess I cannot conceive of such a thing. Can you send a representative sample to illustrate? > create the ta

Re: [Tutor] question about "hiding" a function/method in a class

2005-06-03 Thread Mike Hansen
> Subject: > Re: [Tutor] question about "hiding" a function/method in a class > From: > Kent Johnson <[EMAIL PROTECTED]> > Date: > Fri, 03 Jun 2005 09:45:20 -0400 > > CC: > tutor@python.org > > > Mike Hansen wrote: > >>

Re: [Tutor] question about "hiding" a function/method in a class

2005-06-03 Thread Kent Johnson
Mike Hansen wrote: > class DBField(object): > def __init__(self, fieldName): > self.fieldName = fieldName > self.type = "" > self.size = 0 > self.notNull = False > self.unique = False > self.references = "" > self.default = "" > >

[Tutor] question about "hiding" a function/method in a class

2005-06-03 Thread Mike Hansen
I haven't done much OO in Python yet. For various web apps we write, we usually write up a DB schema in a spreadsheet. Then we write the sql script that would create the tables in the database. I thought it would be neat to save the spreadsheet as a csv file and have python write the sql script.