I've been evaluating pylons and so far I really like the framework ... well, ummm, except for one problem. I've noticed that when running my a web app I'm building, relations that are defined in ORM mapper are not working very well at all. In fact the number of items in a relation varies arbitrarily in subsequent calls to read-only controller - although the actual data in the DB remains the same (testing with sqlite and postgres), the data mapping is unstable.
I'm using sql-alchemy, but I've built other SA apps and never experienced the problem before. (Also oddly, I cannot reproduce the issue when doing identical queries through a shell started with `paster shell`). I've written up a very watered down application (SimpleApp) which I was able to use in reproducing the issue. If anyone would like to help, you can grab the source to this from subversion: $ svn co http://svn.xix.python-hosting.com/subprojects/pylons/simple- app SimpleApp (You can also just browse the source at http://xix.python-hosting.com/browser/subprojects/pylons/simple-app/) Please read over: simpapp/models/__init__.py simpapp/controllers/people.py To reproduce (after initializing and starting server with paster command): 1. Navigate to http://localhost:5000/ 2. Add a new Person (e.g. "Guido Van Rossum") 3. Click "edit" next to person to go to edit page 4. Add some nicknames (e.g. "Guido", "GVR", "BDFL") 5. Click reload several times (at least 10) on edit page 6. Notice that number of nicknames on the page varies. Thanks for your help in advance. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
