I'm pleased to announce the release of Moya 0.5.14. Moya is a web application platform written in Python.

This release is an accumulation of bug-fixes and modest features. Here is a highlight:

  • Cross Site Request Forgery (CSRF) protection was added to Moya Forms. CSRF is a class of exploits that involve making a request on behalf of a user, for malicious purposes. Moya protects against this using established techniques that check that the submitted form was generated by the site itself. This will be done automatically and doesn't require any changes to form code.

  • Added thread support to Moya Code. If you want code to run in a thread, wrap it in a <thread> tag. With no parameters, the code inside the thread will run in parallel until completion. If you add the dst parameter, and reference that value in your code, it will block until the thread has completed.

  • Added <system-call> tag to invoke external applications.

  • Added {% lorem %} template tag to easily generate lorem ipsum text in templates.

  • Added db:decimal tag for decimal fields in db models.

  • Added <db:property> tag which adds properties based on expressions to models. It is used in the auth lib, so you can do user.full_name which combines the first_name and last_name fields.

  • Added forupdate to <db:query>, which issues a FOR UPDATE in the generated SQL.

  • Added a number of parameters to the table library to dynamically hide columns / cells and set cell alignment. The Tables library can now pack a lot of punch.

  • Added linkify parameter to the text markup type, which turns URLs in to links in addition to adding line breaks. For example: {% markup content as 'text' set linkify=yes %}.

  • Added token: modifier to generate a random token which generates a random alphanumeric token. For example; token:16, creates a random token of 16 characters.

  • Added hidelabel parameter to form fields, which hides the label, but renders it in the markup for screen readers.

Moya can be installed via PIP, or by installing the code from GitHub.

Other than the tags, which are auto-generated, the documentation hasn't yet caught up with some of the new features. I will be working on the docs in the next few weeks.

For more details on recent changes, see CHANGES.txt.

For a complete working Moya project see Bean Counter or Notes.

Recent Posts

Moya 0.6.0 Released

I'm happy to announce the release of Moya version 0.6.0. This version contains a number of new […]

Creating a Wiki with Moya - Screencast

I'm starting a series of screencasts on how do build a web application in Moya. In part 1, I show […]

Moya 0.5.14 Released

I'm pleased to announce the release of Moya 0.5.14. Moya is a web application platform written in […]

Moya Context Python Interface

The Context class is an interesting data-structure Moya uses to implement much of the features of […]

Moya 0.5.12 released!

Moya 0.5.12 was recently released. Moya is a language and web application server built in Python. […]

Moya discussion group

I've just create a Google discussion group for Moya. Sign up if you are interested in this project. […]

Moya Package Index

Just live is Moya Package Index, a site where you can find and download packages for Moya. If […]

Encrypted Notes with Moya

Encrypted Notes is an application written in Moya, and only the second Moya website online (the […]

A BrainF*** interpreter written in Moya

Have you heard of Brainf***? It's an esoteric programming language, with only 8 commands. It's […]

Moya is a new web development platform written in Python

In this post I'm going to try and pitch Moya to you, Dragon's Den style. Moya has been my hobby […]

Markdown in Posts

This is actually my second post, I deleted the first post because I changed the default markup from […]