Questions tagged [flask-appbuilder]

Simple and rapid application development framework, built on top of Flask. includes detailed security, auto CRUD generation for your models, google charts and much more.

Simple and rapid application development framework, built on top of Flask. includes detailed security, auto CRUD generation for your models, google charts and much more.

https://github.com/dpgaspar/Flask-AppBuilder

157 questions
1
vote
0 answers

SQLAlchemy "'None' has no attribute 'label'"

I've read all the other posts regarding enums and SQLAlchemy such as this one but when I create an example based on them I get the error 'None' has no attribute 'label'. What is the error in the following code? I have no experience with Flask or…
Konrad Höffner
  • 11,100
  • 16
  • 60
  • 118
1
vote
0 answers

Flask-AppBuilder AttributeError: 'tuple' object has no attribute 'columns'

I have a class "catalogue" in my database with multiple columns. Flask-AppBuilder however seems to miss them, as it throws AttributeError: 'tuple' object has no attribute 'columns'. The table has 4 columns and it works fine if I specify them…
Konrad Höffner
  • 11,100
  • 16
  • 60
  • 118
1
vote
0 answers

Flask App Builder - override field's widget

Extending a ModelView is it possible to override a field's widget? There is option to specify the widget type for edit_form_extra_fields or add_form_extra_fields. add_form_extra_fields = { 'extra': TextField(gettext('Extra Field'), …
Ahamed Mustafa M
  • 3,069
  • 1
  • 24
  • 34
1
vote
1 answer

Airflow Google OAuth login redirects to 127.0.0.1:8080 instead of domain name

I'm running Airflow 1.10.10 with latest Flask AppBuilder. I've setup the webserver_config.py to use the AUTH_OAUTH as AUTH_TYPE and set up my provider appropriately. I've allowed my domain name as Authorized URI on the Google Console and that works…
KayleMaster
  • 331
  • 2
  • 13
1
vote
2 answers

Airflow RBAC UI cannot toggle DAGS with error "the CSRF token is missing"

On Airflow version 1.10.9 I am not able to switch on/off the DAGS using the RBAC UI. Airflow shows: INFO - The CSRF token is missing In chrome tools I can see the CSRF token is not sent with the http request.
Brackl1
  • 79
  • 1
  • 10
1
vote
0 answers

Airflow Plugin with FAB: route to login page if session is expired

I have written an Airflow plugin which extends the Airflow webserver UI. Flask Appbuilder (www_rbac) is used. When the user session is expired and the user tries to access a route in my plugin where authentication is required, he gets an error…
herrjeh42
  • 2,782
  • 4
  • 35
  • 47
1
vote
0 answers

Flask-appbuilder model column default value set from g.user does not work

In my application I would like all tables save and read data by Company Id. All tables have FK to Company Id. I've override Login and Registration views to Login by providing Company, User and Password. Company Id is shown in "g.user.cia_id_fk"…
Marcelo
  • 11
  • 1
1
vote
0 answers

How do I redirect my FLASK app after checking if the SESSION is still ACTIVE?

I've declared my own security manager and inside of this I was trying to use a before_request to check and then redirect to the login page if the session had expire for the app. However, every time the session is expired and the before request runs…
Brent
  • 177
  • 2
  • 9
1
vote
2 answers

Flask-Appbuilder - User security role required in View

If the current user role = admin then show all the records in the table. If not, then limit the rows by created user. I can get the user name if I define a function in the View Class, but need it before the list is constructed. See source code…
mowensa
  • 11
  • 5
1
vote
0 answers

Custom FileUpload

I'm using flask-appbuilder to upload CSV files and then run some actions based on these files. I need to have a FileColumn with some specific features: * Checking the format of the uploaded CSV file * Sorting the file before storing it's reference…
Tibô
  • 11
  • 3
1
vote
2 answers

'AnonymousUserMixin' object has no attribute 'roles' error in Airflow Webserver when using LDAP with Flask-AppBuilder RBAC

I'm trying to integrate Airflow Webserver authentication with the Flask-AppBuilder RBAC available in Airflow 1.10.0, but no matter the configuration settings I try, I get an AttributeError: 'AnonymousUserMixin' object has no attribute 'roles'.…
Soren B
  • 73
  • 3
  • 9
1
vote
1 answer

MyIndexView error in theme example does not work in Flask-AppBuilder

I implemented steps 1, 2 and 3 from the "Changing the index" section of this page https://flask-appbuilder.readthedocs.io/en/latest/customizing.html?highlight=theme. I get the following error: \app__init__.py", line 4, in from app.index import…
1
vote
0 answers

Apache Superset redirecting to IP in production

I have a superset application which I have dockerized based on the docker instructions(https://superset.incubator.apache.org/installation.html#start-with-docker). It works fine locally but keeps redirecting to the containers ip in production. I have…
acquayefrank
  • 474
  • 5
  • 21
1
vote
0 answers

How to run flask appbuilder with uWSGI and Nginx

I build a web server with flask appbuilder,i can run this project by command: python3 run.py or fabmanage run,but it always No response when not interaction after some hours,So i try to run it with Nginx. Here is my config: uwsgi.ini: [uwsgi] base…
1
vote
2 answers

Flask-AppBuilder equivalent of SQLite WHERE clause to filter column data

I'm new to Flask and have started designing a front end for an inventory management database using Flask-AppBuilder. I have created several models and have have managed to display my sqlite data in tables using Flask-AppBuilder's views. However, I…
Alex B
  • 1,092
  • 1
  • 14
  • 39