Got this slightly bizzare issue with Sphinx where it finds a file and will build it but then it doesn't seem to actually include it in the toctree. Any tips on how to debug this?
I have a function which registers a blue print in Python Flask:
def register_blueprints(app):
from api.auth.views import bp as auth_bp
app.register_blueprint(auth_bp)
Each of these API resources are stored in sub folders on my disk, but the number of resources in my app is starting to grow. So, I'd like to bundle all my resource sub directories inside a parent directory named 'api'.. I thought I could just create the new 'api' directory and place the above function body inside its __init__.py file
So ATM I have auth directory which self contains all my code. But, to register the blue print, I have that register_blueprints function as posted above which, using the current app object, registers the blue print. Yeh? \
But, I have about 10 resources so that function is looking a bit disgusting in my main run.py file.. So I wondered whether it be better to encapsulate all the services into an API directory where they can all be instantiated and then finally created in my run.py file with a single call?
I haven't coded with qt or pyside in a long time, take a look and see if there is a "show_all() method instead of just "show". It is possible that show is not propagating through all of the controls on the form. Still looking over code, but that's the first thing I seen. I do most of my work in PyGObject (Gtk) and there is a significant difference between those two methods.
Again not totally sure about the api, but I am not seeing where you actually add the layout to the window. am I just missing that? I see you add a control to the layout, but does the layout actually get added to the window?
class Bar:
def __get__(self, instance, owner):
if instance is None:
return self
return lambda arg1: print(instance, arg1)
class Foo:
bar = Bar()
f = Foo()
f.bar('hello')