Les wrote:
>
>   class Person(Base):
>     __tablename__ = 'People'
>
>     id          = Column(Integer, primary_key=True)
>     firstName   = Column(String(30))
>     lastName    = Column(String(30))
>     dateCreated = Column(DateTime, default=datetime.date.today)
>
>     def __init__(self, firstName, lastName):

######### typo vvvv #########

>       self.firstname = firstName

############### ^^^^ #########

>       self.lastName = lastName
>       self.dateCreated = datetime.date.today()
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to