Skip to content

WebPresentationSpecEng

Victor Agroskin edited this page Mar 13, 2014 · 5 revisions

Sample code for web page construction is now in the repository.

  1. Download .15926 Editor 1.5alpha from the link provided on the home page.

  2. Install Flask http://flask.pocoo.org/ and Tornado http://www.tornadoweb.org/en/stable/ before running .15926 Editor 1.5alpha.

  3. Download from this repository to extensions folder GoogleExt extension. Copy patterns_external.py to patterns folder.

  4. Run the Editor and enable an extension. Restart the Editor if asked.

  5. Create a new data source or add some sample data source and open it in the data panel.

  6. Go to Web in the Main Menu and select "Start/Stop google web preview".

  7. Access http://localhost:5000/ in your browser.

  8. Fill the form From: Sokolniki, Moscow, Russia, 107014 To: Stantsiya Biryulyovo-Tovarnaya, Moscow, Russia, 117546

Press the button.

Navigate between route page and stop pages.

Try another query, or access the data source in the Editor.

To understand how it works:

  • Read Flask documentation.

  • Look at extension code in webview.py after the comment string #good code begins.

  • Look at web page templates in the templates subfolder of the extension.

Clone this wiki locally