> I know how to query the database, and to add a new database entry. > But I really wanna know where my helper code goes. My idea is that > there is a function addCustomer() in the Customer class, but I > tried this out and it didnt work. Any suggestions or examples how > to proceed? if in the class, it ought to be a classmethod, alternative constructor of sorts. helper code - when would be that executed? if at creation, but not at load-from-db, just put in the __init__...
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---