wiki:DeveloperGuidelines/Tips

Version 130 (modified by Pat Tressel, 8 years ago) ( diff )

--

DeveloperGuidelines

Tips

Python debugging

Reserved Keywords

Web2Py

HTML, CSS, and Javascript debugging

Each of the major browsers has tools available for viewing HTML page structure and form data, Javascript code, CSS. Some also support Javascript debugging, including setting breakpoints and viewing values in variables.

  • Firefox: Install the Firebug plugin. Start Firebug by clicking the bug icon in the upper right. After the tools open in the lower half of the page, load the page you want to debug.
  • Internet Explorer: Open the IE developer tools with F12, or Tools (gear icon) -> F12 Developer Tools. Note that you can test behavior of pages under earlier versions of IE by setting your current IE to behave as earlier versions. In the developer tools menu bar, click Browser Mode and select the desired version.

Other tools that may be of interest:

JavaScript

jQuery

Ext

HTML/CSS

SQL

Test queries on multiple databases:

Basics of Design:

Language:

More Advanced:

XSLT: XML, XSL, XPath

We use XSLT (Extensible Stylesheet Language Transformations) to convert external structured data, such as CSV files, spreadsheets, GIS data, and CAP messages into internal S3XML format, and from there to create Eden database entries, and also to export Eden data into external data formats.

XSL Stylesheets are themselves XML documents that specify a conversion between one data format and another. XPath (XML Path Language) is used to select elements from the source document to act on.

The stylesheets for various data formats are found in the directory: eden/static/formats

Support for XSLT is provided by lxml, which is a Python wrapper for libxml2 and libxslt. This currently supports the XML 1.0 standard, not 2.0, and there are functions available in 2.0 that are not in 1.0, so be aware of this when you are consulting XML / XSLT references.

Online references

Books

Mike Kay, XSLT Programmer's Reference, WROX Press

Tools

Try out your xsl stylesheets with: xsltransform.py

Visualization

Misc


DeveloperGuidelines

Note: See TracWiki for help on using the wiki.