Hello,

it looks like I'm stuck and need a little help here....

I'm here right now: 
http://wiki.pylonshq.com/display/pylonsdocs/Using+SQLAlchemy+with+Pylons

the last thing that worked out successfully was creation of the tables: paster 
setup-app development.ini

Next, when tables are created in MySQL, I tried to do:

mr_jones = Person()
mr_jones.name = 'Mr Jones'
meta.Session.save(mr_jones)
meta.Session.commit()
... in python shell that I opened in myapp directory.

>>> myp=Person()
>>> myp.name="Mr Jones"
>>> meta.Session.save(myp)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'NoneType' object has no attribute 'save'

trying to fix situation Iimported:

>>> from helloworld.model import *
>>> from helloworld import meta

still the same problem...

thank you for help,

Vadim


_________________________________________________________________
Life on your PC is safer, easier, and more enjoyable with Windows Vista®. 
http://clk.atdmt.com/MRT/go/127032870/direct/01/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to