Skip to content

Commit

Permalink
docs class diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgaspar committed Mar 18, 2015
1 parent a5ed4f8 commit d5ecc66
Show file tree
Hide file tree
Showing 8 changed files with 80 additions and 2 deletions.
Binary file modified docs/_build/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/_build/doctrees/views.doctree
Binary file not shown.
22 changes: 22 additions & 0 deletions docs/_build/html/_sources/views.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,28 @@ Additionally you can have granular security (method access security) that can be
The views documented on this chapter are the building blocks of F.A.B, but the juicy part is on the next chapter
with ModelView, ChartView and others.

Class View Diagram Tree
-----------------------

All class views tree reflect functionality each layer is responsible for a certain goal. You will be essentially using
BaseViews, IndexViews and the leafs ModelView, chart views and form views.

.. image:: ./images/fab_object_view_diag.png
:width: 100%

Next is a summary explanation of each class:

:BaseView: Collects all the exposed methods, creates the Flask blueprint and registers the URLs, initializes base permissions.
:UtilView: Implements exposes **back** for special back UI functionality.
:IndexView: Special view for rendering the index page.
:SimpleFormView: Subclass it to render WTForms.
:PublicFormView: Same as SimpleFormView but with public access only.
:BaseModelView: Class responsible for an initial datamodel layer, implements search form and filters.
:BaseChartView: Basic chart view functionality.
:GroupByChartView: Subclass it to render Google charts with group by queries.



BaseView
--------

Expand Down
2 changes: 1 addition & 1 deletion docs/_build/html/searchindex.js

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions docs/_build/html/views.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@
role="menu"
aria-labelledby="dLabelLocalToc"><ul>
<li><a class="reference internal" href="#">Base Views</a><ul>
<li><a class="reference internal" href="#class-view-diagram-tree">Class View Diagram Tree</a></li>
<li><a class="reference internal" href="#baseview">BaseView</a></li>
<li><a class="reference internal" href="#simpleformview">SimpleFormView</a></li>
</ul>
Expand Down Expand Up @@ -192,6 +193,36 @@ <h1>Base Views<a class="headerlink" href="#base-views" title="Permalink to this
(take a look at <a class="reference internal" href="security.html"><em>Security</em></a> for more detail).</p>
<p>The views documented on this chapter are the building blocks of F.A.B, but the juicy part is on the next chapter
with ModelView, ChartView and others.</p>
<div class="section" id="class-view-diagram-tree">
<h2>Class View Diagram Tree<a class="headerlink" href="#class-view-diagram-tree" title="Permalink to this headline"></a></h2>
<p>All class views tree reflect functionality each layer is responsible for a certain goal. You will be essentially using
BaseViews, IndexViews and the leafs ModelView, chart views and form views.</p>
<a class="reference internal image-reference" href="_images/fab_object_view_diag.png"><img alt="_images/fab_object_view_diag.png" src="_images/fab_object_view_diag.png" style="width: 100%;" /></a>
<p>Next is a summary explanation of each class:</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">BaseView:</th><td class="field-body">Collects all the exposed methods, creates the Flask blueprint and registers the URLs, initializes base permissions.</td>
</tr>
<tr class="field-even field"><th class="field-name">UtilView:</th><td class="field-body">Implements exposes <strong>back</strong> for special back UI functionality.</td>
</tr>
<tr class="field-odd field"><th class="field-name">IndexView:</th><td class="field-body">Special view for rendering the index page.</td>
</tr>
<tr class="field-even field"><th class="field-name">SimpleFormView:</th><td class="field-body">Subclass it to render WTForms.</td>
</tr>
<tr class="field-odd field"><th class="field-name">PublicFormView:</th><td class="field-body">Same as SimpleFormView but with public access only.</td>
</tr>
<tr class="field-even field"><th class="field-name">BaseModelView:</th><td class="field-body">Class responsible for an initial datamodel layer, implements search form and filters.</td>
</tr>
<tr class="field-odd field"><th class="field-name">BaseChartView:</th><td class="field-body">Basic chart view functionality.</td>
</tr>
<tr class="field-even field"><th class="field-name" colspan="2">GroupByChartView:</th></tr>
<tr class="field-even field"><td>&nbsp;</td><td class="field-body">Subclass it to render Google charts with group by queries.</td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="baseview">
<h2>BaseView<a class="headerlink" href="#baseview" title="Permalink to this headline"></a></h2>
<p>All views inherit from this class.
Expand Down
Binary file added docs/images/fab_object_view_diag.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions docs/views.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,32 @@ Additionally you can have granular security (method access security) that can be
The views documented on this chapter are the building blocks of F.A.B, but the juicy part is on the next chapter
with ModelView, ChartView and others.

Class View Diagram Tree
-----------------------

All class views tree reflect functionality each layer is responsible for a certain goal. You will be essentially using
BaseViews, IndexViews and the leafs ModelView, chart views and form views.

.. image:: ./images/fab_object_view_diag.png
:width: 100%

Next is a summary explanation for each class:

:BaseView: Collects all the exposed methods, creates the Flask blueprint and registers the URLs, initializes base permissions.
:UtilView: Implements exposes **back** for special back UI functionality.
:IndexView: Special view for rendering the index page.
:SimpleFormView: Subclass it to render WTForms.
:PublicFormView: Same as SimpleFormView but with public access only.
:BaseModelView: Class responsible for an initial datamodel layer, implements search form and filters.
:BaseChartView: Basic chart view functionality.
:GroupByChartView: Subclass it to render Google charts with group by queries.
:DirectByChartView: Subclass it to render Google charts with queries.
:BaseCRUDView: Implement base functionality for add, edit, delete, creates all forms.
:RestCRUDView: Exposes the JSON REST API for CRUD methods and more.
:ModelView: Subclass it to render your views based on models, with complete CRUD UI functionality.



BaseView
--------

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ app.directive('abModelTable', function($compile, ApiService, loadingManager, ale
$scope.page = 0;
$scope.base_url = $scope.base;


function init() {
loadingManager.loading();
ApiService.getInfo($scope.base_url).then(function(data) {
Expand Down

0 comments on commit d5ecc66

Please sign in to comment.