Skip to main content

The project intend to or extendig the capabilities of flask in order to read and write data directely to tryton.

Project description

** FlaskTrytonWTF This project is intend to be used for extendig the capabilities of flask in order to read and write data directely to tryton

issiue/info: info@omniasolutions.eu

You can use this extention like a normal FlaskForm Just remember to add trytonObject and the field that you like to see in your input form we also inser the subbit button in and if its pressed we write date into tryton

from FlaskTrytonWTF import FTWTF
...
...
...
class MyTrytonForm(FTWTF.TFlaskForm):
    trytonObject = tryton.pool.get('my.tryton.object')
    tryton_fields = {'field_1': {},
                     'field_2': {},
                     'field_3': {}
                     }
    submitLable = "Submit"
@app.route('/input_form', methods=['GET', 'POST'])
@tryton.transaction()
def input_form():
    form = MyTrytonForm()
    if form.validate_on_submit():
        data_submitted = form.trytonSubmit() # DO NOT FORGET TO CALL THE TRYTON SUBMIT IN ORDER DO FLUSH THE DATA
                                             # ALSO THE DATA SUBMITTED IS RETURNED AS DICTIONAY OF VALUES 
                                             # SO YOU CAN USE IF !!
        return render_template('show_input_confirmation.html', title='Conferma', form=data_submitted)
    return render_template('nuovo_citadin.html', form=form)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

FlaskTrytonWTF-0.0.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

FlaskTrytonWTF-0.0.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file FlaskTrytonWTF-0.0.1.tar.gz.

File metadata

  • Download URL: FlaskTrytonWTF-0.0.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.3

File hashes

Hashes for FlaskTrytonWTF-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9618a839bbf2d2fa0e32cc4a1145d4c63fcaf06b7767ad3df05db1f9326831ef
MD5 da45eb6ac04b1608f9c9d1caa3012686
BLAKE2b-256 ac7c08db03ccd14d9a50cb58e9b499aaebcf3ea72187ca90aafe8c1227d8b623

See more details on using hashes here.

File details

Details for the file FlaskTrytonWTF-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: FlaskTrytonWTF-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.3

File hashes

Hashes for FlaskTrytonWTF-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 da47721c6844a2dc1e36bc72fa67fa636cb6204239c7a20a1ae735d2a753cdad
MD5 487cee176f731b668a55bd8458aad03e
BLAKE2b-256 6e1212357ccbb8d5af1f90b274e74a7e7d2b548d1a600b270212da680d2fe21a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page