[jira] [Updated] (AIRFLOW-3363) Plugin templates not rendered by Flask appbuilder's baseview

2018-11-19 Thread Ran Zvi (JIRA)


 [ 
https://issues.apache.org/jira/browse/AIRFLOW-3363?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ran Zvi updated AIRFLOW-3363:
-
Description: 
Hello, we're having issues with the new F.A.B plugins (rbac), the documentation 
lacks the import for *{{AppBuilderBaseView}}*{{:}}

 
{code:java}
# Creating a flask appbuilder BaseView
 class TestAppBuilderBaseView(AppBuilderBaseView):
 @expose("/")
 def test(self):
 return self.render("test_plugin/test.html", content="Hello galaxy!"){code}
 However after a bit of digging I found out it is probably imported from F.A.B
{code:java}
from flask_appbuilder import BaseView as AppBuilderBaseView{code}
 

The next issue is that the class lacks a *{{render}}* function and F.A.B only 
provides a *{{render_template}}* function which ignores the 
*{{plugins_folder}}*  definition in *{{airflow.cfg}}* and the Blueprint's 
*{{template_folder}}* definition in the plugin's code.

We've found out that in F.A.B's *{{Environment}}* Object created by Airflow the 
only location defined for template location is under *{{www_rbac}}*{{.}}

We're unable to make any progress due to this Bug, does anyone know how to  

Thanks in advance!

  was:
Hello, I'm having issues with the new F.A.B plugins, the documentation lacks 
the import for `AppBuilderBaseView`, However after a bit of digging I found out 
it is probably `from flask_appbuilder import BaseView as AppBuilderBaseView`.

The next issue is that the class lacks a `render` function and F.A.B only 
provides a `render_template` function which uses a preconfigured path for the 
`template` folder which isn't under the airflow `plugins` folder.

 

Thabks in advance!


> Plugin templates not rendered by Flask appbuilder's baseview
> 
>
> Key: AIRFLOW-3363
> URL: https://issues.apache.org/jira/browse/AIRFLOW-3363
> Project: Apache Airflow
>  Issue Type: Bug
>  Components: plugins
>Affects Versions: 1.10.0
> Environment: Docker 
>Reporter: Ran Zvi
>Priority: Major
>
> Hello, we're having issues with the new F.A.B plugins (rbac), the 
> documentation lacks the import for *{{AppBuilderBaseView}}*{{:}}
>  
> {code:java}
> # Creating a flask appbuilder BaseView
>  class TestAppBuilderBaseView(AppBuilderBaseView):
>  @expose("/")
>  def test(self):
>  return self.render("test_plugin/test.html", content="Hello galaxy!"){code}
>  However after a bit of digging I found out it is probably imported from F.A.B
> {code:java}
> from flask_appbuilder import BaseView as AppBuilderBaseView{code}
>  
> The next issue is that the class lacks a *{{render}}* function and F.A.B only 
> provides a *{{render_template}}* function which ignores the 
> *{{plugins_folder}}*  definition in *{{airflow.cfg}}* and the Blueprint's 
> *{{template_folder}}* definition in the plugin's code.
> We've found out that in F.A.B's *{{Environment}}* Object created by Airflow 
> the only location defined for template location is under *{{www_rbac}}*{{.}}
> We're unable to make any progress due to this Bug, does anyone know how to  
> Thanks in advance!



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Created] (AIRFLOW-3363) Plugin templates not rendered by Flask appbuilder's baseview

2018-11-18 Thread Ran Zvi (JIRA)
Ran Zvi created AIRFLOW-3363:


 Summary: Plugin templates not rendered by Flask appbuilder's 
baseview
 Key: AIRFLOW-3363
 URL: https://issues.apache.org/jira/browse/AIRFLOW-3363
 Project: Apache Airflow
  Issue Type: Bug
  Components: plugins
Affects Versions: 1.10.0
 Environment: Docker 
Reporter: Ran Zvi


Hello, I'm having issues with the new F.A.B plugins, the documentation lacks 
the import for `AppBuilderBaseView`, However after a bit of digging I found out 
it is probably `from flask_appbuilder import BaseView as AppBuilderBaseView`.

The next issue is that the class lacks a `render` function and F.A.B only 
provides a `render_template` function which uses a preconfigured path for the 
`template` folder which isn't under the airflow `plugins` folder.

 

Thabks in advance!



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)