Commit 6813f166 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Merge branch '18-inline-alert' into 'master'

Add the helper function inline_alert.

* Close #18

See merge request !14
parents cdb15395 91d2a81e
......@@ -7,6 +7,7 @@ import subprocess
import tempfile
from constant import INLINE_ALERT
from gluon import current
from gluon.dal import Row, Table
from gluon.http import HTTP
......@@ -708,6 +709,20 @@ def get_where_query(table):
return query
def inline_alert(title, msg):
"""Return a javascript instruction to generate an alert window.
Args:
title (str): title of the window
msg (str): message display in the alert window
Returns:
str
"""
return INLINE_ALERT % (title, msg)
def is_foreign_field(field):
"""Return ``True`` when the ``field`` is a reference field.
......
......@@ -15,7 +15,7 @@ Ext.define('App', {
* The version of the plugin
* @property {String}
*/
version: '0.7.2',
version: '0.7.3dev',
/**
* The name of the application
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment