You can also try the examples:
43 | Example 1 (Default) 44 |45 | Example2 (Drag&Drop) 46 |
├── pyforms_web ├── controls │ ├── __init__.py │ ├── control_dir.py │ ├── control_email.py │ ├── control_password.py │ ├── control_organogram.py │ ├── control_search.py │ ├── control_html.py │ ├── control_querycards.py │ ├── control_file.py │ ├── control_img.py │ ├── control_float.py │ ├── control_decimal.py │ ├── control_piechart.py │ ├── control_simplelabel.py │ ├── control_label.py │ ├── control_checkbox.py │ ├── control_textarea.py │ ├── control_multipleupload.py │ ├── control_codemirror.py │ ├── control_menu.py │ ├── control_progress.py │ ├── control_fileupload.py │ ├── control_calendar.py │ ├── control_text.py │ ├── control_integer.py │ ├── control_boundingslider.py │ ├── control_template.py │ ├── control_button.py │ ├── control_playerjs.py │ ├── control_breadcrumb.py │ ├── control_slider.py │ ├── control_datetime.py │ ├── control_date.py │ ├── control_multiplechecks.py │ ├── control_itemslist.py │ ├── control_image.py │ ├── control_multipleselection.py │ ├── control_emptywidget.py │ ├── control_tree.py │ ├── control_feed.py │ ├── control_barschart.py │ ├── control_linechart.py │ ├── control_checkboxlist.py │ ├── control_timeout.py │ └── control_visvis.py ├── widgets │ ├── __init__.py │ └── django │ │ ├── __init__.py │ │ └── utils.py ├── web │ ├── fixtures │ │ ├── __init__.py │ │ └── conf-allauth-site.json │ ├── management │ │ ├── __init__.py │ │ ├── commands │ │ │ └── __init__.py │ │ └── pyforms_app_template.py │ ├── templatetags │ │ └── __init__.py │ ├── middleware │ │ ├── __init__.py │ │ └── apps_2_update.py │ ├── __init__.py │ ├── static │ │ ├── filer │ │ │ ├── php │ │ │ │ └── readme.txt │ │ │ ├── assets │ │ │ │ └── fonts │ │ │ │ │ └── jquery.filer-icons │ │ │ │ │ ├── jquery-filer.eot │ │ │ │ │ ├── jquery-filer.ttf │ │ │ │ │ └── jquery-filer.woff │ │ │ ├── examples │ │ │ │ ├── default │ │ │ │ │ ├── js │ │ │ │ │ │ └── custom.js │ │ │ │ │ ├── php │ │ │ │ │ │ └── form_upload.php │ │ │ │ │ └── index.html │ │ │ │ └── dragdrop │ │ │ │ │ ├── php │ │ │ │ │ ├── ajax_remove_file.php │ │ │ │ │ └── ajax_upload_file.php │ │ │ │ │ └── index.html │ │ │ ├── bower.json │ │ │ ├── package.json │ │ │ └── index.html │ │ ├── jquery-ui │ │ │ ├── images │ │ │ │ ├── ui-icons_444444_256x240.png │ │ │ │ ├── ui-icons_555555_256x240.png │ │ │ │ ├── ui-icons_777620_256x240.png │ │ │ │ ├── ui-icons_777777_256x240.png │ │ │ │ ├── ui-icons_cc0000_256x240.png │ │ │ │ └── ui-icons_ffffff_256x240.png │ │ │ ├── LICENSE.txt │ │ │ └── package.json │ │ ├── pyformsjs │ │ │ ├── ControlProgress.js │ │ │ ├── ControlOrganogram.js │ │ │ ├── ControlPassword.js │ │ │ ├── ControlEmail.js │ │ │ ├── ControlHtml.js │ │ │ ├── ControlImg.js │ │ │ ├── ControlText.js │ │ │ ├── ControlImage.js │ │ │ ├── ControlLabel.js │ │ │ ├── ControlFloat.js │ │ │ ├── ControlSimpleLabel.js │ │ │ ├── ControlTemplate.js │ │ │ ├── ControlInteger.js │ │ │ ├── ControlTextArea.js │ │ │ ├── ControlDir.js │ │ │ ├── ControlMenu.js │ │ │ ├── ControlButton.js │ │ │ ├── ControlBoundingSlider.js │ │ │ ├── ControlBreadcrumb.js │ │ │ ├── ControlCheckBox.js │ │ │ ├── ControlFile.js │ │ │ ├── ControlCodeMirror.js │ │ │ ├── ControlDateTime.js │ │ │ ├── ControlDate.js │ │ │ ├── ControlCalendar.js │ │ │ ├── ControlSlider.js │ │ │ ├── ControlEmptyWidget.js │ │ │ ├── ControlCombo.js │ │ │ ├── ControlTimeout.js │ │ │ ├── ControlPlayer.js │ │ │ └── ControlTree.js │ │ ├── treant │ │ │ └── Treant.css │ │ ├── timeline │ │ │ ├── event.js │ │ │ ├── track.js │ │ │ └── graph.js │ │ ├── jquery.flowchart │ │ │ ├── flowchart.jquery.json │ │ │ ├── package.json │ │ │ ├── MIT-LICENSE.txt │ │ │ └── jquery.flowchart.min.css │ │ ├── codemirror │ │ │ └── autorefresh.js │ │ ├── jqplot │ │ │ └── plugins │ │ │ │ └── jqplot.mobile.js │ │ └── jquery.json-2.4.min.js │ ├── templates │ │ └── pyforms-dependencies.html │ └── urls.py ├── appmanager.py ├── settings.py ├── __init__.py └── organizers.py ├── tutorials ├── tutorial_advance_db │ ├── lockfile.txt │ ├── tutorial_apps │ │ ├── __init__.py │ │ └── apps │ │ │ ├── __init__.py │ │ │ ├── titles_app.py │ │ │ ├── deptemp_app.py │ │ │ ├── salaries_app.py │ │ │ ├── deptmanager_app.py │ │ │ ├── departments_app.py │ │ │ └── employees_app.py │ ├── tutorial_advance_db │ │ ├── __init__.py │ │ ├── asgi.py │ │ ├── wsgi.py │ │ └── urls.py │ ├── apps-cache │ │ └── None- │ │ │ ├── tutorial-deptemp-app.app │ │ │ ├── tutorial-titles-app.app │ │ │ ├── tutorial-employees-app.app │ │ │ ├── tutorial-departments-app.app │ │ │ ├── tutorial-deptmanager-app.app │ │ │ ├── a3da156a8-0837-4538-ac9b-8b21542085e3.app │ │ │ ├── a52acb200-4a59-44d0-8191-8af0b42cc08e.app │ │ │ ├── a5410d357-c910-41e8-931f-317b5c13dffa.app │ │ │ ├── a55274747-4a12-4ecc-b436-29f03107c29a.app │ │ │ └── ab4682e34-c3fe-4b0c-a345-95fee1dcee19.app │ └── manage.py └── tutorial_inheritance │ ├── lockfile.txt │ ├── tutorial │ ├── __init__.py │ └── apps │ │ ├── inheritance_v3.py │ │ ├── __init__.py │ │ ├── multiple_inheritance.py │ │ ├── inheritance.py │ │ ├── app_two.py │ │ ├── open_inheritancev3.py │ │ ├── inheritance_v2.py │ │ └── app_one.py │ ├── tutorial_inheritance │ ├── __init__.py │ ├── asgi.py │ ├── wsgi.py │ └── urls.py │ ├── db.sqlite3 │ ├── local_settings.py │ └── manage.py ├── docs ├── source │ ├── local_settings.py │ ├── orquestra │ │ ├── customize.rst │ │ ├── orquestra-layers.drawio │ │ └── orquestra-layout.drawio │ ├── _static │ │ └── imgs │ │ │ ├── rtd.png │ │ │ ├── star.png │ │ │ ├── demo-app.png │ │ │ ├── pyforms.jpg │ │ │ ├── basewidget.png │ │ │ ├── db-apps-1.png │ │ │ ├── db-apps-2.png │ │ │ ├── first-app.png │ │ │ ├── model-edit.png │ │ │ ├── model-view.png │ │ │ ├── orquestra.jpg │ │ │ ├── controls │ │ │ ├── date.png │ │ │ ├── file.png │ │ │ ├── text.png │ │ │ ├── button.png │ │ │ ├── image.png │ │ │ ├── label.png │ │ │ ├── player.png │ │ │ ├── slider.png │ │ │ ├── calendar.png │ │ │ ├── checkbox.png │ │ │ ├── combobox.png │ │ │ ├── datetime.png │ │ │ ├── integer.png │ │ │ ├── linechart.png │ │ │ ├── password.png │ │ │ ├── textarea.png │ │ │ ├── fileupload.png │ │ │ ├── autocomplete.png │ │ │ ├── boundingslider.png │ │ │ └── multiselection.png │ │ │ ├── model-admin.png │ │ │ ├── pyforms-gui.jpg │ │ │ ├── pyforms-web.jpg │ │ │ ├── pyforms-web-com.png │ │ │ ├── orquestra-layers.png │ │ │ ├── orquestra-layout.png │ │ │ ├── pyforms-layers-web.png │ │ │ ├── pyforms-terminal.jpg │ │ │ ├── pyforms-web-small.jpg │ │ │ ├── terminal-example.png │ │ │ ├── pyforms-layers-terminal.png │ │ │ ├── pyforms-terminal-small.jpg │ │ │ ├── apps-inheritance │ │ │ ├── app-one.png │ │ │ ├── app-two.png │ │ │ ├── inheritance.png │ │ │ ├── inheritance_v2.png │ │ │ ├── inheritance_v3.png │ │ │ └── multiple-inheritance.png │ │ │ ├── formsets-segment-sidebyside.png │ │ │ ├── web-example-computervisionalgorithm.png │ │ │ └── terminal-example-computervisionalgorithm.png │ ├── api-reference │ │ ├── javascript │ │ │ ├── basewidget.rst │ │ │ ├── index.rst │ │ │ ├── controls.rst │ │ │ └── pyforms.rst │ │ ├── python │ │ │ ├── index.rst │ │ │ ├── basewidget.rst │ │ │ └── widgets │ │ │ │ └── django.rst │ │ └── overview.rst │ └── getting-started │ │ ├── apps-permissions.rst │ │ └── advance-db.rst ├── Makefile └── make.bat ├── .gitmodules ├── readthedocs.yml ├── .gitignore ├── environment.yml └── pyforms ├── dialogs.py ├── settings.py ├── controls.py ├── basewidget.py └── __init__.py /pyforms_web/controls/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pyforms_web/widgets/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pyforms_web/web/fixtures/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pyforms_web/web/management/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pyforms_web/web/templatetags/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tutorials/tutorial_advance_db/lockfile.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tutorials/tutorial_inheritance/lockfile.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pyforms_web/web/management/commands/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tutorials/tutorial_inheritance/tutorial/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pyforms_web/appmanager.py: -------------------------------------------------------------------------------- 1 | def start_app(ClassObject): pass -------------------------------------------------------------------------------- /tutorials/tutorial_advance_db/tutorial_apps/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tutorials/tutorial_advance_db/tutorial_advance_db/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tutorials/tutorial_inheritance/tutorial_inheritance/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/source/local_settings.py: -------------------------------------------------------------------------------- 1 | SETTINGS_PRIORITY = 0 2 | PYFORMS_MODE = 'WEB' 3 | -------------------------------------------------------------------------------- /pyforms_web/web/middleware/__init__.py: -------------------------------------------------------------------------------- 1 | from .middleware import PyFormsMiddleware -------------------------------------------------------------------------------- /pyforms_web/web/__init__.py: -------------------------------------------------------------------------------- 1 | from pyforms_web.web.applications import ApplicationsLoader -------------------------------------------------------------------------------- /docs/source/orquestra/customize.rst: -------------------------------------------------------------------------------- 1 | ******************** 2 | Customize the layout 3 | ******************** 4 | -------------------------------------------------------------------------------- /pyforms_web/web/static/filer/php/readme.txt: -------------------------------------------------------------------------------- 1 | [PHP] Uploader 0.4 2 | https://github.com/CreativeDream/php-uploader 3 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "orquestra"] 2 | path = orquestra 3 | url = https://github.com/UmSenhorQualquer/orquestra.git 4 | -------------------------------------------------------------------------------- /docs/source/_static/imgs/rtd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/rtd.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/star.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/star.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/demo-app.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/demo-app.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/pyforms.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/pyforms.jpg -------------------------------------------------------------------------------- /docs/source/_static/imgs/basewidget.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/basewidget.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/db-apps-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/db-apps-1.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/db-apps-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/db-apps-2.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/first-app.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/first-app.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/model-edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/model-edit.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/model-view.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/model-view.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/orquestra.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/orquestra.jpg -------------------------------------------------------------------------------- /docs/source/_static/imgs/controls/date.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/controls/date.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/controls/file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/controls/file.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/controls/text.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/controls/text.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/model-admin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/model-admin.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/pyforms-gui.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/pyforms-gui.jpg -------------------------------------------------------------------------------- /docs/source/_static/imgs/pyforms-web.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/pyforms-web.jpg -------------------------------------------------------------------------------- /tutorials/tutorial_inheritance/db.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/tutorials/tutorial_inheritance/db.sqlite3 -------------------------------------------------------------------------------- /docs/source/_static/imgs/controls/button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/controls/button.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/controls/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/controls/image.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/controls/label.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/controls/label.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/controls/player.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/controls/player.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/controls/slider.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/controls/slider.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/pyforms-web-com.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/pyforms-web-com.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/controls/calendar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/controls/calendar.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/controls/checkbox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/controls/checkbox.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/controls/combobox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/controls/combobox.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/controls/datetime.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/controls/datetime.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/controls/integer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/controls/integer.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/controls/linechart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/controls/linechart.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/controls/password.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/controls/password.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/controls/textarea.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/controls/textarea.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/orquestra-layers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/orquestra-layers.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/orquestra-layout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/orquestra-layout.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/pyforms-layers-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/pyforms-layers-web.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/pyforms-terminal.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/pyforms-terminal.jpg -------------------------------------------------------------------------------- /docs/source/_static/imgs/pyforms-web-small.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/pyforms-web-small.jpg -------------------------------------------------------------------------------- /docs/source/_static/imgs/terminal-example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/terminal-example.png -------------------------------------------------------------------------------- /docs/source/api-reference/javascript/basewidget.rst: -------------------------------------------------------------------------------- 1 | *************** 2 | BaseWidget 3 | *************** 4 | 5 | .. js:autoclass:: BaseWidget 6 | :members: -------------------------------------------------------------------------------- /docs/source/_static/imgs/controls/fileupload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/controls/fileupload.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/controls/autocomplete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/controls/autocomplete.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/controls/boundingslider.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/controls/boundingslider.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/controls/multiselection.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/controls/multiselection.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/pyforms-layers-terminal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/pyforms-layers-terminal.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/pyforms-terminal-small.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/pyforms-terminal-small.jpg -------------------------------------------------------------------------------- /docs/source/_static/imgs/apps-inheritance/app-one.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/apps-inheritance/app-one.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/apps-inheritance/app-two.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/apps-inheritance/app-two.png -------------------------------------------------------------------------------- /pyforms_web/widgets/django/__init__.py: -------------------------------------------------------------------------------- 1 | from .modeladmin import ModelAdminWidget 2 | from .modelform import ModelFormWidget 3 | from .modelviewform import ModelViewFormWidget -------------------------------------------------------------------------------- /docs/source/_static/imgs/apps-inheritance/inheritance.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/apps-inheritance/inheritance.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/formsets-segment-sidebyside.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/formsets-segment-sidebyside.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/apps-inheritance/inheritance_v2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/apps-inheritance/inheritance_v2.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/apps-inheritance/inheritance_v3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/apps-inheritance/inheritance_v3.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/web-example-computervisionalgorithm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/web-example-computervisionalgorithm.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/apps-inheritance/multiple-inheritance.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/apps-inheritance/multiple-inheritance.png -------------------------------------------------------------------------------- /pyforms_web/web/static/jquery-ui/images/ui-icons_444444_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/pyforms_web/web/static/jquery-ui/images/ui-icons_444444_256x240.png -------------------------------------------------------------------------------- /pyforms_web/web/static/jquery-ui/images/ui-icons_555555_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/pyforms_web/web/static/jquery-ui/images/ui-icons_555555_256x240.png -------------------------------------------------------------------------------- /pyforms_web/web/static/jquery-ui/images/ui-icons_777620_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/pyforms_web/web/static/jquery-ui/images/ui-icons_777620_256x240.png -------------------------------------------------------------------------------- /pyforms_web/web/static/jquery-ui/images/ui-icons_777777_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/pyforms_web/web/static/jquery-ui/images/ui-icons_777777_256x240.png -------------------------------------------------------------------------------- /pyforms_web/web/static/jquery-ui/images/ui-icons_cc0000_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/pyforms_web/web/static/jquery-ui/images/ui-icons_cc0000_256x240.png -------------------------------------------------------------------------------- /pyforms_web/web/static/jquery-ui/images/ui-icons_ffffff_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/pyforms_web/web/static/jquery-ui/images/ui-icons_ffffff_256x240.png -------------------------------------------------------------------------------- /docs/source/_static/imgs/terminal-example-computervisionalgorithm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/docs/source/_static/imgs/terminal-example-computervisionalgorithm.png -------------------------------------------------------------------------------- /tutorials/tutorial_advance_db/apps-cache/None-/tutorial-deptemp-app.app: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/tutorials/tutorial_advance_db/apps-cache/None-/tutorial-deptemp-app.app -------------------------------------------------------------------------------- /tutorials/tutorial_advance_db/apps-cache/None-/tutorial-titles-app.app: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/tutorials/tutorial_advance_db/apps-cache/None-/tutorial-titles-app.app -------------------------------------------------------------------------------- /readthedocs.yml: -------------------------------------------------------------------------------- 1 | # .readthedocs.yml 2 | 3 | build: 4 | image: latest 5 | 6 | python: 7 | version: 3.6 8 | 9 | formats: 10 | - epub 11 | - pdf 12 | 13 | conda: 14 | file: environment.yml 15 | -------------------------------------------------------------------------------- /tutorials/tutorial_advance_db/apps-cache/None-/tutorial-employees-app.app: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/tutorials/tutorial_advance_db/apps-cache/None-/tutorial-employees-app.app -------------------------------------------------------------------------------- /docs/source/api-reference/javascript/index.rst: -------------------------------------------------------------------------------- 1 | ************ 2 | Javascript 3 | ************ 4 | 5 | 6 | 7 | .. toctree:: 8 | :titlesonly: 9 | 10 | basewidget 11 | controls 12 | pyforms 13 | -------------------------------------------------------------------------------- /pyforms_web/web/fixtures/conf-allauth-site.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "model": "sites.Site", 4 | "pk": 1, 5 | "fields": { 6 | "domain": "localhost", 7 | "name": "MySite" 8 | } 9 | } 10 | ] -------------------------------------------------------------------------------- /pyforms_web/web/static/filer/assets/fonts/jquery.filer-icons/jquery-filer.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/pyforms_web/web/static/filer/assets/fonts/jquery.filer-icons/jquery-filer.eot -------------------------------------------------------------------------------- /pyforms_web/web/static/filer/assets/fonts/jquery.filer-icons/jquery-filer.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/pyforms_web/web/static/filer/assets/fonts/jquery.filer-icons/jquery-filer.ttf -------------------------------------------------------------------------------- /tutorials/tutorial_advance_db/apps-cache/None-/tutorial-departments-app.app: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/tutorials/tutorial_advance_db/apps-cache/None-/tutorial-departments-app.app -------------------------------------------------------------------------------- /tutorials/tutorial_advance_db/apps-cache/None-/tutorial-deptmanager-app.app: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/tutorials/tutorial_advance_db/apps-cache/None-/tutorial-deptmanager-app.app -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | docs/build/ 3 | 4 | *.pyc 5 | 6 | docs/\.DS_Store 7 | 8 | \.DS_Store 9 | 10 | PyForms_Web\.egg-info/ 11 | 12 | build/ 13 | 14 | dist/ 15 | 16 | tutorials/tutorial_inheritance/apps-cache/ 17 | -------------------------------------------------------------------------------- /pyforms_web/web/static/filer/assets/fonts/jquery.filer-icons/jquery-filer.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/pyforms_web/web/static/filer/assets/fonts/jquery.filer-icons/jquery-filer.woff -------------------------------------------------------------------------------- /environment.yml: -------------------------------------------------------------------------------- 1 | name: pyforms-web-environment 2 | channels: 3 | - defaults 4 | dependencies: 5 | - python=3.6 6 | - pip: 7 | - sphinx-rtd-theme 8 | - sphinx-js 9 | - recommonmark 10 | - pyforms-web 11 | -------------------------------------------------------------------------------- /pyforms_web/web/static/filer/examples/default/js/custom.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function(){ 2 | 3 | $('#filer_input').filer({ 4 | showThumbs: true, 5 | addMore: true, 6 | allowDuplicates: false 7 | }); 8 | 9 | }); 10 | -------------------------------------------------------------------------------- /tutorials/tutorial_inheritance/local_settings.py: -------------------------------------------------------------------------------- 1 | SETTINGS_PRIORITY = 0 # Will define this settings file as priority. Will override all the settings with lower priority. 2 | PYFORMS_MODE = 'WEB' # Will configure pyforms to run as WEB mode. -------------------------------------------------------------------------------- /pyforms/dialogs.py: -------------------------------------------------------------------------------- 1 | from confapp import conf 2 | 3 | 4 | if conf.PYFORMS_MODE=='GUI': 5 | from pyforms_gui.dialogs.csv_parser import CsvParserDialog 6 | 7 | 8 | elif conf.PYFORMS_MODE=='TERMINAL': 9 | class CsvParserDialog(object): pass -------------------------------------------------------------------------------- /tutorials/tutorial_advance_db/apps-cache/None-/a3da156a8-0837-4538-ac9b-8b21542085e3.app: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/tutorials/tutorial_advance_db/apps-cache/None-/a3da156a8-0837-4538-ac9b-8b21542085e3.app -------------------------------------------------------------------------------- /tutorials/tutorial_advance_db/apps-cache/None-/a52acb200-4a59-44d0-8191-8af0b42cc08e.app: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/tutorials/tutorial_advance_db/apps-cache/None-/a52acb200-4a59-44d0-8191-8af0b42cc08e.app -------------------------------------------------------------------------------- /tutorials/tutorial_advance_db/apps-cache/None-/a5410d357-c910-41e8-931f-317b5c13dffa.app: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/tutorials/tutorial_advance_db/apps-cache/None-/a5410d357-c910-41e8-931f-317b5c13dffa.app -------------------------------------------------------------------------------- /tutorials/tutorial_advance_db/apps-cache/None-/a55274747-4a12-4ecc-b436-29f03107c29a.app: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/tutorials/tutorial_advance_db/apps-cache/None-/a55274747-4a12-4ecc-b436-29f03107c29a.app -------------------------------------------------------------------------------- /tutorials/tutorial_advance_db/apps-cache/None-/ab4682e34-c3fe-4b0c-a345-95fee1dcee19.app: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UmSenhorQualquer/pyforms-web/HEAD/tutorials/tutorial_advance_db/apps-cache/None-/ab4682e34-c3fe-4b0c-a345-95fee1dcee19.app -------------------------------------------------------------------------------- /pyforms_web/web/static/filer/examples/dragdrop/php/ajax_remove_file.php: -------------------------------------------------------------------------------- 1 | 9 | -------------------------------------------------------------------------------- /docs/source/api-reference/python/index.rst: -------------------------------------------------------------------------------- 1 | ******* 2 | Python 3 | ******* 4 | 5 | .. module:: pybpod_web.basewidget.BaseWidget 6 | :synopsis: entities 7 | 8 | .. toctree:: 9 | :titlesonly: 10 | 11 | basewidget 12 | controls 13 | widgets/django 14 | -------------------------------------------------------------------------------- /pyforms_web/web/templates/pyforms-dependencies.html: -------------------------------------------------------------------------------- 1 | {% for file_url in cssfiles %} 2 | {% endfor %} 3 | {% for file_url in jsfiles %} 4 | {% endfor %} -------------------------------------------------------------------------------- /pyforms_web/controls/control_dir.py: -------------------------------------------------------------------------------- 1 | from pyforms_web.controls.control_base import ControlBase 2 | import simplejson 3 | 4 | class ControlDir(ControlBase): 5 | 6 | def init_form(self): 7 | return "new ControlDir('{0}', {1})".format( self._name, simplejson.dumps(self.serialize()) ) 8 | -------------------------------------------------------------------------------- /pyforms_web/controls/control_email.py: -------------------------------------------------------------------------------- 1 | from pyforms_web.controls.control_text import ControlText 2 | import simplejson 3 | 4 | class ControlEmail(ControlText): 5 | 6 | def init_form(self): 7 | return """new ControlEmail('{0}', {1})""".format( 8 | self._name, 9 | simplejson.dumps(self.serialize()) 10 | ) -------------------------------------------------------------------------------- /pyforms_web/web/static/pyformsjs/ControlProgress.js: -------------------------------------------------------------------------------- 1 | class ControlProgress extends ControlBase{ 2 | 3 | init_control(){ 4 | this.jquery_place().replaceWith("
"); 5 | if(this.properties.required) this.set_required(); 6 | }; 7 | } -------------------------------------------------------------------------------- /pyforms_web/controls/control_password.py: -------------------------------------------------------------------------------- 1 | from pyforms_web.controls.control_base import ControlBase 2 | import simplejson 3 | 4 | class ControlPassword(ControlBase): 5 | 6 | def init_form(self): 7 | return """new ControlPassword('{0}', {1})""".format( 8 | self._name, 9 | simplejson.dumps(self.serialize()) 10 | ) -------------------------------------------------------------------------------- /tutorials/tutorial_inheritance/tutorial/apps/inheritance_v3.py: -------------------------------------------------------------------------------- 1 | from .inheritance_v2 import HeritageV2 2 | from confapp import conf 3 | 4 | class HeritageV3(HeritageV2): 5 | 6 | UID = 'heritage-v3' 7 | TITLE = 'Heritage v3' 8 | 9 | ORQUESTRA_MENU_ORDER = 6 10 | 11 | LAYOUT_POSITION = conf.ORQUESTRA_NEW_WINDOW -------------------------------------------------------------------------------- /docs/source/api-reference/javascript/controls.rst: -------------------------------------------------------------------------------- 1 | *************** 2 | Controls 3 | *************** 4 | 5 | 6 | Every Control implemented in Python as a **javascript class** responsible for handling the Control in the client side. All these controls inherit from the ControlBase class. 7 | 8 | .. js:autoclass:: ControlBase 9 | :members: -------------------------------------------------------------------------------- /tutorials/tutorial_inheritance/tutorial/apps/__init__.py: -------------------------------------------------------------------------------- 1 | from .app_one import AppOne 2 | from .app_two import AppTwo 3 | from .multiple_inheritance import MultipleHeritage 4 | from .inheritance import Heritage 5 | from .inheritance_v2 import HeritageV2 6 | from .inheritance_v3 import HeritageV3 7 | from .open_inheritancev3 import OpenHeritageV3 -------------------------------------------------------------------------------- /tutorials/tutorial_advance_db/tutorial_apps/apps/__init__.py: -------------------------------------------------------------------------------- 1 | from .departments_app import DepartmentsAdminApp 2 | from .deptemp_app import DeptEmpAdminApp 3 | from .deptmanager_app import DeptManagerAdminApp 4 | from .employees_app import EmployeesAdminApp 5 | from .salaries_app import SalariesAdminApp 6 | from .titles_app import TitlesAdminApp 7 | -------------------------------------------------------------------------------- /pyforms/settings.py: -------------------------------------------------------------------------------- 1 | # !/usr/bin/python3 2 | # -*- coding: utf-8 -*- 3 | 4 | 5 | import logging, os, sys 6 | 7 | if 'terminal_mode' in sys.argv: 8 | PYFORMS_MODE = 'TERMINAL' 9 | else: 10 | PYFORMS_MODE = os.environ.get('PYFORMS_MODE', 'GUI') 11 | 12 | PYFORMS_LOG_FILENAME = 'pyforms.log' 13 | PYFORMS_LOG_HANDLER_FILE_LEVEL = logging.INFO 14 | PYFORMS_LOG_HANDLER_CONSOLE_LEVEL = logging.INFO -------------------------------------------------------------------------------- /pyforms_web/controls/control_organogram.py: -------------------------------------------------------------------------------- 1 | from pyforms_web.controls.control_base import ControlBase 2 | import simplejson 3 | 4 | class ControlOrganogram(ControlBase): 5 | 6 | def __init__(self, *args, **kwargs): 7 | super().__init__(*args, **kwargs) 8 | 9 | def init_form(self): return "new ControlOrganogram('{0}', {1})".format( self._name, simplejson.dumps(self.serialize()) ) 10 | -------------------------------------------------------------------------------- /pyforms_web/controls/control_search.py: -------------------------------------------------------------------------------- 1 | from pyforms_web.controls.control_base import ControlBase 2 | import simplejson 3 | 4 | class ControlSearch(ControlBase): 5 | 6 | def __init__(self, *args, **kwargs): 7 | super().__init__(*args, **kwargs) 8 | 9 | def init_form(self): 10 | return """new ControlSearch('{0}', {1})""".format( 11 | self._name, 12 | simplejson.dumps(self.serialize()) 13 | ) 14 | -------------------------------------------------------------------------------- /tutorials/tutorial_inheritance/tutorial/apps/multiple_inheritance.py: -------------------------------------------------------------------------------- 1 | from .app_one import AppOne 2 | from .app_two import AppTwo 3 | 4 | class MultipleHeritage(AppOne, AppTwo): 5 | 6 | UID = 'multiple-heritage' 7 | TITLE = 'Multiple heritage' 8 | 9 | ORQUESTRA_MENU_ORDER = 1 10 | 11 | def __init__(self, *args, **kwargs): 12 | super().__init__(*args, **kwargs) 13 | 14 | -------------------------------------------------------------------------------- /pyforms/controls.py: -------------------------------------------------------------------------------- 1 | from confapp import conf 2 | 3 | try: 4 | 5 | if conf.PYFORMS_MODE in ['GUI']: 6 | 7 | from pyforms_gui.allcontrols import * 8 | 9 | elif conf.PYFORMS_MODE in ['TERMINAL']: 10 | 11 | from pyforms_terminal.allcontrols import * 12 | 13 | elif conf.PYFORMS_MODE in ['WEB']: 14 | 15 | from pyforms_web.allcontrols import * 16 | 17 | except: 18 | 19 | from pyforms_web.allcontrols import * 20 | -------------------------------------------------------------------------------- /tutorials/tutorial_inheritance/tutorial/apps/inheritance.py: -------------------------------------------------------------------------------- 1 | from pyforms.controls import ControlTextArea 2 | from .app_one import AppOne 3 | 4 | class Heritage(AppOne): 5 | 6 | UID = 'heritage' 7 | TITLE = 'Heritage' 8 | 9 | ORQUESTRA_MENU_ORDER = 4 10 | 11 | def __init__(self, *args, **kwargs): 12 | super().__init__(*args, **kwargs) 13 | 14 | self._table = ControlTextArea('Values') 15 | -------------------------------------------------------------------------------- /pyforms_web/widgets/django/utils.py: -------------------------------------------------------------------------------- 1 | import collections 2 | 3 | def get_fieldsets_strings(l): 4 | #lookup on all the structer of the fieldsets for the strings on it 5 | if not isinstance(l, collections.Iterable): return [] 6 | res = [] 7 | for e in l: 8 | if isinstance(e, str): res.append(e) 9 | elif isinstance(e, dict): 10 | for key, item in e.items(): 11 | res += get_fieldsets_strings(item) 12 | else: 13 | res += get_fieldsets_strings(e) 14 | return res 15 | -------------------------------------------------------------------------------- /pyforms_web/controls/control_html.py: -------------------------------------------------------------------------------- 1 | from pyforms_web.controls.control_base import ControlBase 2 | import simplejson 3 | 4 | class ControlHtml(ControlBase): 5 | 6 | def init_form(self): 7 | return """new ControlHtml('{0}', {1})""".format( 8 | self._name, 9 | simplejson.dumps(self.serialize()) 10 | ) 11 | 12 | def deserialize(self, properties): 13 | self._label = properties.get('label','') 14 | self._help = properties.get('help','') 15 | self._visible = properties.get('visible',True) -------------------------------------------------------------------------------- /pyforms_web/settings.py: -------------------------------------------------------------------------------- 1 | 2 | 3 | PYFORMS_WEB_APPS_TIMEOUT = 3600*48 4 | 5 | 6 | PYFORMS_APPS = {} 7 | 8 | LAYOUT_NEW_WINDOW = 2 9 | 10 | PYFORMS_DEBUG = False 11 | 12 | try: 13 | import os 14 | from django.conf import settings 15 | 16 | PYFORMS_WEB_APPS_CACHE_DIR = os.path.join(settings.BASE_DIR,'apps-cache') 17 | PYFORMS_WEB_LOCKFILE = os.path.join(settings.BASE_DIR,'lockfile.txt') 18 | except: 19 | PYFORMS_WEB_APPS_CACHE_DIR = 'apps-cache' 20 | PYFORMS_WEB_LOCKFILE = 'lockfile.txt' -------------------------------------------------------------------------------- /pyforms_web/controls/control_querycards.py: -------------------------------------------------------------------------------- 1 | from pyforms_web.controls.control_querylist import ControlQueryList 2 | from django.apps import apps 3 | from django.db.models.constants import LOOKUP_SEP 4 | from django.core.exceptions import FieldDoesNotExist 5 | from django.utils.encoding import force_text 6 | import simplejson 7 | 8 | 9 | class ControlQueryCards(ControlQueryList): 10 | 11 | 12 | def init_form(self): return "new ControlQueryCards('{0}', {1})".format( self._name, simplejson.dumps(self.serialize()) ) 13 | -------------------------------------------------------------------------------- /docs/source/api-reference/javascript/pyforms.rst: -------------------------------------------------------------------------------- 1 | *************** 2 | PyformsManager 3 | *************** 4 | 5 | .. note:: 6 | 7 | Located in the **pyforms.js** file. 8 | 9 | .. js:autoclass:: PyformsManager 10 | :members: 11 | 12 | 13 | ******************** 14 | Other functions 15 | ******************** 16 | 17 | .. note:: 18 | 19 | Located in the **pyforms-hub.js** file. 20 | 21 | .. js:autofunction:: error_msg 22 | 23 | .. js:autofunction:: run_application 24 | 25 | .. js:autofunction:: pyforms_checkhash -------------------------------------------------------------------------------- /tutorials/tutorial_advance_db/tutorial_advance_db/asgi.py: -------------------------------------------------------------------------------- 1 | """ 2 | ASGI config for tutorial_advance_db project. 3 | 4 | It exposes the ASGI callable as a module-level variable named ``application``. 5 | 6 | For more information on this file, see 7 | https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ 8 | """ 9 | 10 | import os 11 | 12 | from django.core.asgi import get_asgi_application 13 | 14 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'tutorial_advance_db.settings') 15 | 16 | application = get_asgi_application() 17 | -------------------------------------------------------------------------------- /tutorials/tutorial_advance_db/tutorial_advance_db/wsgi.py: -------------------------------------------------------------------------------- 1 | """ 2 | WSGI config for tutorial_advance_db project. 3 | 4 | It exposes the WSGI callable as a module-level variable named ``application``. 5 | 6 | For more information on this file, see 7 | https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/ 8 | """ 9 | 10 | import os 11 | 12 | from django.core.wsgi import get_wsgi_application 13 | 14 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'tutorial_advance_db.settings') 15 | 16 | application = get_wsgi_application() 17 | -------------------------------------------------------------------------------- /tutorials/tutorial_inheritance/tutorial_inheritance/asgi.py: -------------------------------------------------------------------------------- 1 | """ 2 | ASGI config for tutorial_inheritance project. 3 | 4 | It exposes the ASGI callable as a module-level variable named ``application``. 5 | 6 | For more information on this file, see 7 | https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ 8 | """ 9 | 10 | import os 11 | 12 | from django.core.asgi import get_asgi_application 13 | 14 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'tutorial_inheritance.settings') 15 | 16 | application = get_asgi_application() 17 | -------------------------------------------------------------------------------- /tutorials/tutorial_inheritance/tutorial_inheritance/wsgi.py: -------------------------------------------------------------------------------- 1 | """ 2 | WSGI config for tutorial_inheritance project. 3 | 4 | It exposes the WSGI callable as a module-level variable named ``application``. 5 | 6 | For more information on this file, see 7 | https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/ 8 | """ 9 | 10 | import os 11 | 12 | from django.core.wsgi import get_wsgi_application 13 | 14 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'tutorial_inheritance.settings') 15 | 16 | application = get_wsgi_application() 17 | -------------------------------------------------------------------------------- /pyforms_web/__init__.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python 2 | # -*- coding: utf-8 -*- 3 | 4 | __author__ = "Ricardo Ribeiro" 5 | __credits__ = ["Ricardo Ribeiro"] 6 | __license__ = 'GNU GPLv3' 7 | __version__ = "4.2.0" 8 | __maintainer__ = "Ricardo Ribeiro" 9 | __email__ = "ricardojvr@gmail.com" 10 | __status__ = "Development" 11 | 12 | 13 | from confapp import conf; 14 | conf += 'pyforms_web.settings' 15 | 16 | #force the load of the local settings if exists 17 | try: 18 | import local_settings 19 | conf += local_settings 20 | except: 21 | pass 22 | -------------------------------------------------------------------------------- /pyforms_web/controls/control_file.py: -------------------------------------------------------------------------------- 1 | from pyforms_web.controls.control_base import ControlBase 2 | import simplejson 3 | 4 | 5 | class ControlFile(ControlBase): 6 | 7 | def init_form(self): 8 | return "new ControlFile('{0}', {1})".format( self._name, simplejson.dumps(self.serialize()) ) 9 | 10 | def open_file_browser(self): 11 | 12 | from pyforms_web.web.filesbrowser import FilesBrowserApp 13 | self._win = FilesBrowserApp(file_selected_event=self.__update_filepath) 14 | 15 | def __update_filepath(self, filename): 16 | self.value = filename 17 | self._win.close() 18 | -------------------------------------------------------------------------------- /pyforms_web/controls/control_img.py: -------------------------------------------------------------------------------- 1 | from pyforms_web.controls.control_base import ControlBase 2 | import simplejson 3 | 4 | class ControlImg(ControlBase): 5 | 6 | def init_form(self): 7 | return """new ControlImg('{0}', {1})""".format( 8 | self._name, 9 | simplejson.dumps(self.serialize()) 10 | ) 11 | 12 | 13 | def serialize(self): 14 | res = super(ControlImg, self).serialize() 15 | if self.value is None: 16 | res.update({'value':''}) 17 | else: 18 | res.update({'value':str(self.value)}) 19 | return res -------------------------------------------------------------------------------- /pyforms_web/controls/control_float.py: -------------------------------------------------------------------------------- 1 | from pyforms_web.controls.control_base import ControlBase 2 | import simplejson 3 | 4 | class ControlFloat(ControlBase): 5 | 6 | def init_form(self): 7 | return """new ControlFloat('{0}', {1})""".format( 8 | self._name, 9 | simplejson.dumps(self.serialize()) 10 | ) 11 | 12 | 13 | def deserialize(self, properties): 14 | """ 15 | Serialize the control data. 16 | 17 | :param dict properties: Serialized data to load. 18 | """ 19 | super().deserialize(properties) 20 | 21 | self.value = float( 22 | properties.get('value', None) 23 | ) -------------------------------------------------------------------------------- /pyforms_web/controls/control_decimal.py: -------------------------------------------------------------------------------- 1 | from pyforms_web.controls.control_base import ControlBase 2 | import simplejson, decimal 3 | 4 | class ControlDecimal(ControlBase): 5 | 6 | def init_form(self): 7 | return """new ControlFloat('{0}', {1})""".format( 8 | self._name, 9 | simplejson.dumps(self.serialize()) 10 | ) 11 | 12 | 13 | def deserialize(self, properties): 14 | """ 15 | Serialize the control data. 16 | 17 | :param dict properties: Serialized data to load. 18 | """ 19 | str_val = properties.get('value', None) 20 | self.value = decimal.Decimal(str_val) if str_val else None 21 | -------------------------------------------------------------------------------- /pyforms_web/controls/control_piechart.py: -------------------------------------------------------------------------------- 1 | import datetime 2 | from pyforms_web.controls.control_base import ControlBase 3 | import simplejson 4 | 5 | class ControlPieChart(ControlBase): 6 | 7 | def __init__(self, *args, **kwargs): 8 | super(ControlPieChart, self).__init__(*args, **kwargs) 9 | 10 | def init_form(self): return "new ControlPieChart('{0}', {1})".format( self._name, simplejson.dumps(self.serialize()) ) 11 | 12 | 13 | 14 | 15 | def deserialize(self, properties): 16 | ControlBase.deserialize(self, properties) 17 | self.legend = properties[u'legend'] 18 | self.value = properties[u'value'] 19 | -------------------------------------------------------------------------------- /pyforms_web/controls/control_simplelabel.py: -------------------------------------------------------------------------------- 1 | from pyforms_web.controls.control_base import ControlBase 2 | import simplejson 3 | 4 | class ControlSimpleLabel(ControlBase): 5 | def __init__(self, *args, **kwargs): 6 | self._css = '' 7 | super().__init__(*args, **kwargs) 8 | 9 | def init_form(self): 10 | return """new ControlSimpleLabel('{0}', {1})""".format( 11 | self._name, 12 | simplejson.dumps(self.serialize()) 13 | ) 14 | 15 | def deserialize(self, properties): pass 16 | 17 | def serialize(self): 18 | res = super().serialize() 19 | if self.value: 20 | res.update({'value': "'; 20 | if(this.properties.value!=null || this.properties.value!=undefined) 21 | html += this.properties.value; 22 | html += '
'; 23 | html += 'jQuery.filer - Simple HTML5 file uploader, a plugin tool for jQuery which change completely file input and make it with multiple file selection, drag&drop support, different validations, thumbnails, icons, instant upload, print-screen upload and many other features and options.
36 | 37 |'; 27 | print_r($info); 28 | echo ''; 29 | } 30 | 31 | if($data['hasErrors']){ 32 | $errors = $data['errors']; 33 | print_r($errors); 34 | } 35 | ?> 36 | -------------------------------------------------------------------------------- /pyforms_web/web/static/jquery-ui/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery-ui", 3 | "title": "jQuery UI", 4 | "description": "A curated set of user interface interactions, effects, widgets, and themes built on top of the jQuery JavaScript Library.", 5 | "version": "1.12.1", 6 | "homepage": "http://jqueryui.com", 7 | "author": { 8 | "name": "jQuery Foundation and other contributors", 9 | "url": "https://github.com/jquery/jquery-ui/blob/1.12.1/AUTHORS.txt" 10 | }, 11 | "main": "ui/widget.js", 12 | "maintainers": [ 13 | { 14 | "name": "Scott González", 15 | "email": "scott.gonzalez@gmail.com", 16 | "url": "http://scottgonzalez.com" 17 | }, 18 | { 19 | "name": "Jörn Zaefferer", 20 | "email": "joern.zaefferer@gmail.com", 21 | "url": "http://bassistance.de" 22 | }, 23 | { 24 | "name": "Mike Sherov", 25 | "email": "mike.sherov@gmail.com", 26 | "url": "http://mike.sherov.com" 27 | }, 28 | { 29 | "name": "TJ VanToll", 30 | "email": "tj.vantoll@gmail.com", 31 | "url": "http://tjvantoll.com" 32 | }, 33 | { 34 | "name": "Felix Nagel", 35 | "email": "info@felixnagel.com", 36 | "url": "http://www.felixnagel.com" 37 | }, 38 | { 39 | "name": "Alex Schmitz", 40 | "email": "arschmitz@gmail.com", 41 | "url": "https://github.com/arschmitz" 42 | } 43 | ], 44 | "repository": { 45 | "type": "git", 46 | "url": "git://github.com/jquery/jquery-ui.git" 47 | }, 48 | "bugs": "https://bugs.jqueryui.com/", 49 | "license": "MIT", 50 | "scripts": { 51 | "test": "grunt" 52 | }, 53 | "dependencies": {}, 54 | "devDependencies": { 55 | "commitplease": "2.3.0", 56 | "grunt": "0.4.5", 57 | "grunt-bowercopy": "1.2.4", 58 | "grunt-cli": "0.1.13", 59 | "grunt-compare-size": "0.4.0", 60 | "grunt-contrib-concat": "0.5.1", 61 | "grunt-contrib-csslint": "0.5.0", 62 | "grunt-contrib-jshint": "0.12.0", 63 | "grunt-contrib-qunit": "1.0.1", 64 | "grunt-contrib-requirejs": "0.4.4", 65 | "grunt-contrib-uglify": "0.11.1", 66 | "grunt-git-authors": "3.1.0", 67 | "grunt-html": "6.0.0", 68 | "grunt-jscs": "2.1.0", 69 | "load-grunt-tasks": "3.4.0", 70 | "rimraf": "2.5.1", 71 | "testswarm": "1.1.0" 72 | }, 73 | "keywords": [] 74 | } 75 | -------------------------------------------------------------------------------- /pyforms_web/controls/control_tree.py: -------------------------------------------------------------------------------- 1 | from pyforms_web.controls.control_base import ControlBase 2 | import simplejson 3 | 4 | class TreeNode(object): 5 | 6 | node_id_counter = 0 7 | 8 | def __init__(self, name, parent=None, icon=None): 9 | TreeNode.node_id_counter += 1 10 | 11 | self.childs = [] 12 | self.name = name 13 | self.parent = parent 14 | self.icon = icon 15 | self.node_id = str(TreeNode.node_id_counter) 16 | 17 | if parent is not None: 18 | parent.childs.append(self) 19 | 20 | def to_dict(self): 21 | data = {'name': self.name, 'icon': self.icon, 'node_id': self.node_id} 22 | data['childs'] = [child.to_dict() for child in self.childs] 23 | return data 24 | 25 | 26 | 27 | class ControlTree(ControlBase): 28 | 29 | def __init__(self, *args, **kwargs): 30 | self.root = TreeNode('Root') 31 | super().__init__(*args, **kwargs) 32 | 33 | def init_form(self): 34 | return "new ControlTree('{0}', {1})".format( self._name, simplejson.dumps(self.serialize()) ) 35 | 36 | def create_child(self, name, parent=None, icon=None): 37 | if parent is None: parent = self.root 38 | return TreeNode(name, parent, icon) 39 | 40 | def find_node_id(self, node_id, node=None): 41 | if node_id is None: return None 42 | 43 | if node.node_id==node_id: 44 | return node 45 | else: 46 | for n in node.childs: 47 | res = self.find_node_id(node_id, n) 48 | if res: return res 49 | return None 50 | 51 | 52 | def serialize(self): 53 | data = super().serialize() 54 | data.update({ 55 | 'root': self.root.to_dict(), 56 | 'value': self._value.node_id if self._value else None 57 | }) 58 | return data 59 | 60 | 61 | def deserialize(self, properties): 62 | if properties.get('value', None): 63 | properties['value'] = self.find_node_id( 64 | properties.get('value', None), 65 | self.root 66 | ) 67 | 68 | super().deserialize(properties) 69 | -------------------------------------------------------------------------------- /pyforms_web/web/static/filer/examples/dragdrop/php/ajax_upload_file.php: -------------------------------------------------------------------------------- 1 | upload($_FILES['files'], array( 6 | 'limit' => 10, //Maximum Limit of files. {null, Number} 7 | 'maxSize' => 10, //Maximum Size of files {null, Number(in MB's)} 8 | 'extensions' => null, //Whitelist for file extension. {null, Array(ex: array('jpg', 'png'))} 9 | 'required' => false, //Minimum one file is required for upload {Boolean} 10 | 'uploadDir' => '../../../uploads/', //Upload directory {String} 11 | 'title' => array('name'), //New file name {null, String, Array} *please read documentation in README.md 12 | 'removeFiles' => true, //Enable file exclusion {Boolean(extra for jQuery.filer), String($_POST field name containing json data with file names)} 13 | 'replace' => false, //Replace the file if it already exists {Boolean} 14 | 'perms' => null, //Uploaded file permisions {null, Number} 15 | 'onCheck' => null, //A callback function name to be called by checking a file for errors (must return an array) | ($file) | Callback 16 | 'onError' => null, //A callback function name to be called if an error occured (must return an array) | ($errors, $file) | Callback 17 | 'onSuccess' => null, //A callback function name to be called if all files were successfully uploaded | ($files, $metas) | Callback 18 | 'onUpload' => null, //A callback function name to be called if all files were successfully uploaded (must return an array) | ($file) | Callback 19 | 'onComplete' => null, //A callback function name to be called when upload is complete | ($file) | Callback 20 | 'onRemove' => null //A callback function name to be called by removing files (must return an array) | ($removed_files) | Callback 21 | )); 22 | 23 | if($data['isComplete']){ 24 | $files = $data['data']; 25 | 26 | echo json_encode($files['metas'][0]['name']); 27 | } 28 | 29 | if($data['hasErrors']){ 30 | $errors = $data['errors']; 31 | echo json_encode($errors); 32 | } 33 | 34 | exit; 35 | ?> 36 | -------------------------------------------------------------------------------- /pyforms_web/web/static/jquery.flowchart/jquery.flowchart.min.css: -------------------------------------------------------------------------------- 1 | .flowchart-container{position:relative;overflow:hidden}.flowchart-links-layer,.flowchart-operators-layer,.flowchart-temporary-link-layer{position:absolute;top:0;left:0;width:100%;height:100%}.flowchart-operator-inputs .flowchart-operator-connector-arrow,.flowchart-operator-inputs .flowchart-operator-connector-small-arrow{left:-1px}.flowchart-operators-layer,.flowchart-temporary-link-layer{pointer-events:none}.flowchart-temporary-link-layer{display:none}.flowchart-link,.flowchart-operator{cursor:default}.flowchart-operator-connector{position:relative;padding-top:5px;padding-bottom:5px}.flowchart-operator-connector-label{font-size:small}.flowchart-operator-inputs .flowchart-operator-connector-label{margin-left:14px}.flowchart-operator-outputs .flowchart-operator-connector-label{text-align:right;margin-right:5px}.flowchart-operator-connector-arrow{width:0;height:0;border-top:10px solid transparent;border-bottom:10px solid transparent;border-left:10px solid #ccc;position:absolute;top:0}.flowchart-operator-connector-small-arrow{width:0;height:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid transparent;position:absolute;top:5px;pointer-events:none}.flowchart-operator-connector:hover .flowchart-operator-connector-arrow{border-left:10px solid #999}.flowchart-operator-outputs .flowchart-operator-connector-arrow{right:-10px}.flowchart-operator-outputs .flowchart-operator-connector-small-arrow{right:-7px}.unselectable{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.flowchart-operator{position:absolute;width:140px;border:1px solid #CCC;background:#FAFAFA;pointer-events:initial}.flowchart-operator.hover{border-color:#999}.flowchart-operator.selected{border-color:#555}.flowchart-operator .flowchart-operator-title{width:100%;padding:5px;font-weight:700;box-sizing:border-box;border-bottom:1px solid #DDD;background:#F0F0F0;height:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:move}.flowchart-operator .flowchart-operator-inputs-outputs{display:table;width:100%;margin-top:5px;margin-bottom:5px}.flowchart-default-operator .flowchart-operator-outputs,.flowchart-operator .flowchart-operator-inputs{display:table-cell;width:50%} -------------------------------------------------------------------------------- /pyforms_web/web/static/jqplot/plugins/jqplot.mobile.js: -------------------------------------------------------------------------------- 1 | /** 2 | * jqplot.jquerymobile plugin 3 | * jQuery Mobile virtual event support. 4 | * 5 | * Version: 1.0.9 6 | * Revision: d96a669 7 | * 8 | * Copyright (c) 2011 Takashi Okamoto 9 | * jqPlot is currently available for use in all personal or commercial projects 10 | * under both the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL 11 | * version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html) licenses. This means that you can 12 | * choose the license that best suits your project and use it accordingly. 13 | * 14 | * Although not required, the author would appreciate an email letting him 15 | * know of any substantial use of jqPlot. You can reach the author at: 16 | * chris at jqplot dot com or see http://www.jqplot.com/info.php . 17 | * 18 | * If you are feeling kind and generous, consider supporting the project by 19 | * making a donation at: http://www.jqplot.com/donate.php . 20 | * 21 | */ 22 | (function($) { 23 | function postInit(target, data, options){ 24 | this.bindCustomEvents = function() { 25 | this.eventCanvas._elem.bind('vclick', {plot:this}, this.onClick); 26 | this.eventCanvas._elem.bind('dblclick', {plot:this}, this.onDblClick); 27 | this.eventCanvas._elem.bind('taphold', {plot:this}, this.onDblClick); 28 | this.eventCanvas._elem.bind('vmousedown', {plot:this}, this.onMouseDown); 29 | this.eventCanvas._elem.bind('vmousemove', {plot:this}, this.onMouseMove); 30 | this.eventCanvas._elem.bind('mouseenter', {plot:this}, this.onMouseEnter); 31 | this.eventCanvas._elem.bind('mouseleave', {plot:this}, this.onMouseLeave); 32 | if (this.captureRightClick) { 33 | this.eventCanvas._elem.bind('vmouseup', {plot:this}, this.onRightClick); 34 | this.eventCanvas._elem.get(0).oncontextmenu = function() { 35 | return false; 36 | }; 37 | } 38 | else { 39 | this.eventCanvas._elem.bind('vmouseup', {plot:this}, this.onMouseUp); 40 | } 41 | }; 42 | this.plugins.mobile = true; 43 | } 44 | $.jqplot.postInitHooks.push(postInit); 45 | })(jQuery); -------------------------------------------------------------------------------- /docs/source/getting-started/advance-db.rst: -------------------------------------------------------------------------------- 1 | ****************************************** 2 | From SQL to Django models' apps 3 | ****************************************** 4 | 5 | This example demonstrates how to start from a raw database and end up with the forms to manage it in few steps. 6 | 7 | .. note:: 8 | 9 | This examples is based on the code available at the folder tutorials/tutorial_advance_db 10 | 11 | 12 | 13 | First of all start your django project: 14 | 15 | .. code:: console 16 | 17 | > django-admin startproject tutorial_advance_db 18 | 19 | Configure your django app settings.py file to point your database and include the pyforms configurations. 20 | 21 | .. code:: python 22 | 23 | ... 24 | 25 | INSTALLED_APPS = [ 26 | 'tutorial', 27 | 28 | 'orquestra', 29 | 'pyforms_web.web', 30 | 'jfu', 31 | 32 | 'django.contrib.admin', 33 | 'django.contrib.auth', 34 | 'django.contrib.contenttypes', 35 | 'django.contrib.sessions', 36 | 'django.contrib.messages', 37 | 'django.contrib.staticfiles', 38 | ] 39 | 40 | MIDDLEWARE = [ 41 | 'django.middleware.security.SecurityMiddleware', 42 | 'django.contrib.sessions.middleware.SessionMiddleware', 43 | 'django.middleware.common.CommonMiddleware', 44 | 'django.middleware.csrf.CsrfViewMiddleware', 45 | 'django.contrib.auth.middleware.AuthenticationMiddleware', 46 | 'django.contrib.messages.middleware.MessageMiddleware', 47 | 'django.middleware.clickjacking.XFrameOptionsMiddleware', 48 | 'pyforms_web.web.middleware.PyFormsMiddleware' 49 | ] 50 | ... 51 | 52 | Enter in the project folder and create the tutorial app: 53 | 54 | .. code:: console 55 | 56 | > cd tutorial_advance_db 57 | > mkdir tutorial 58 | 59 | 60 | Generate the Django models from your SQL database. 61 | 62 | .. code:: console 63 | 64 | > python manage.py inspectdb > tutorial/models.py 65 | 66 | Generate the Pyforms apps to manage the models by executing the next command: 67 | 68 | .. code:: console 69 | 70 | > python manage.py export_pyforms_apps tutorial 71 | 72 | Run migrations and execute the django project: 73 | 74 | .. code:: console 75 | 76 | > python manage.py migrate 77 | > python manage.py runserver -------------------------------------------------------------------------------- /pyforms_web/web/static/pyformsjs/ControlEmptyWidget.js: -------------------------------------------------------------------------------- 1 | class ControlEmptyWidget extends ControlBase{ 2 | 3 | 4 | //////////////////////////////////////////////////////////////////////////////// 5 | 6 | init_control(){ 7 | var widget_html = ''; 8 | if( this.properties.html!==undefined ) widget_html = Base64.decode(this.properties.html); 9 | 10 | 11 | var html = "
jQuery.filer - Simple HTML5 file uploader, a plugin tool for jQuery which change completely file input and make it with multiple file selection, drag&drop support, different validations, thumbnails, icons, instant upload, print-screen upload and many other features and options.
44 |Demos | Documentation | Support
45 |jQuery.filer - Simple HTML5 file uploader, a plugin tool for jQuery which change completely file input and make it with multiple file selection, drag&drop support, different validations, thumbnails, icons, instant upload, print-screen upload and many other features and options.
49 |Demos | Documentation | Support
50 |