Re: [sqlalchemy] Importing module from another subdirectory [UPDATE 2]

2019-04-17 Thread Rich Shepard
On Wed, 17 Apr 2019, Rich Shepard wrote: Getting closer. Added a blank __init.py__ in the models/ subdirectory. Now I'm looking for the proper syntax to import the relevant class within that module. So more work on my part. I'm moving this thread to the python mail list; it's a python

Re: [sqlalchemy] Importing module from another subdirectory [UPDATE]

2019-04-17 Thread Rich Shepard
On Wed, 17 Apr 2019, Rich Shepard wrote: What is the proper syntax to import models as m a in a view module, e.g., activities.py? The syntax, 'import model as m' fails because it is not in the same subdirectory as the importing module. Getting closer. Added a blank __init.py__ in the models/

[sqlalchemy] Tkinter search dialog box for model row

2019-04-17 Thread Rich Shepard
My web search for an existing Tkinter search dialog box found nothing. I'm looking for a pointer to a module or method if one exists. In this application the user needs to find database rows based on two class columns: lname and fname and display results in the appropriate data entry dialog

[sqlalchemy] Importing module from another subdirectory

2019-04-17 Thread Rich Shepard
My application intends to follow the MVC pattern. The model.py module is ../model/model.py while the Tkinter views are in ../views/. Both are relative to the application's main directory: bustrac/ README.rst bustrac.py* controller/ images/ model/ scripts/ views/ What is the

Re: [sqlalchemy] Commands out of sync; you can't run this command now

2019-04-17 Thread Jonathan Vanasco
On Wednesday, April 17, 2019 at 4:36:30 AM UTC-4, tonthon wrote: > > May the scoped_session factory, used in both services (web and celery), > may cause such a problem ? > Apologies for my earlier reply, that would only affect exceptions in Celery. I do suggest checking your Celery code to

Re: [sqlalchemy] Commands out of sync; you can't run this command now

2019-04-17 Thread tonthon
Yes, celery is running in a separate service. The objects are never passed from the web app to the celery service, only ids are passed, Objects are then retrieved on the celery side. May the scoped_session factory, used in both services (web and celery), may cause such a problem ? Le