Compare commits

..

4 Commits

Author SHA1 Message Date
mdipierro
853beae9c6 R-2.9.9 2014-09-08 08:12:37 -05:00
mdipierro
94aab906d5 fixed serialization of Storage objects 2014-09-08 08:10:58 -05:00
mdipierro
bb3909a944 Merge pull request #490 from ilvalle/grid-fix
fix web2py.js with show_if and grid
2014-09-08 08:02:44 -05:00
ilvalle
7fa8f1fa08 fix web2py.js with show_if and grid 2014-09-05 16:17:36 +02:00
7 changed files with 26 additions and 9 deletions

View File

@@ -30,7 +30,7 @@ update:
echo "remember that pymysql was tweaked"
src:
### Use semantic versioning
echo 'Version 2.9.8-stable+timestamp.'`date +%Y.%m.%d.%H.%M.%S` > VERSION
echo 'Version 2.9.9-stable+timestamp.'`date +%Y.%m.%d.%H.%M.%S` > VERSION
### rm -f all junk files
make clean
### clean up baisc apps

View File

@@ -1 +1 @@
Version 2.9.8-stable+timestamp.2014.09.06.23.09.41
Version 2.9.9-stable+timestamp.2014.09.08.08.12.34

View File

@@ -545,8 +545,11 @@
};
$('[data-show-trigger]', target).each(function () {
var name = $(this).attr('data-show-trigger');
if(!triggers[name]) triggers[name] = [];
triggers[name].push($(this).attr('id'));
// The field exists only when creating/editing a row
if ($('#' + name).length) {
if(!triggers[name]) triggers[name] = [];
triggers[name].push($(this).attr('id'));
}
});
for(var name in triggers) {
$('#' + name, target).change(show_if).keyup(show_if);

View File

@@ -545,8 +545,11 @@
};
$('[data-show-trigger]', target).each(function () {
var name = $(this).attr('data-show-trigger');
if(!triggers[name]) triggers[name] = [];
triggers[name].push($(this).attr('id'));
// The field exists only when creating/editing a row
if ($('#' + name).length) {
if(!triggers[name]) triggers[name] = [];
triggers[name].push($(this).attr('id'));
}
});
for(var name in triggers) {
$('#' + name, target).change(show_if).keyup(show_if);

View File

@@ -545,8 +545,11 @@
};
$('[data-show-trigger]', target).each(function () {
var name = $(this).attr('data-show-trigger');
if(!triggers[name]) triggers[name] = [];
triggers[name].push($(this).attr('id'));
// The field exists only when creating/editing a row
if ($('#' + name).length) {
if(!triggers[name]) triggers[name] = [];
triggers[name].push($(this).attr('id'));
}
});
for(var name in triggers) {
$('#' + name, target).change(show_if).keyup(show_if);

View File

@@ -13,6 +13,7 @@ Provides:
"""
import cPickle
import copy_reg
import gluon.portalocker as portalocker
__all__ = ['List', 'Storage', 'Settings', 'Messages',
@@ -129,6 +130,12 @@ class Storage(dict):
values = self.getlist(key)
return values[-1] if values else default
def pickle_storage(s):
return Storage, (dict(s),)
copy_reg.pickle(Storage, pickle_storage)
PICKABLE = (str, int, long, float, bool, list, dict, tuple, set)

View File

@@ -2710,7 +2710,8 @@ class Auth(object):
extra_fields = [
Field("password_two", "password", requires=IS_EQUAL_TO(
request.post_vars.get(passfield,None),
error_message=self.messages.mismatched_password))]
error_message=self.messages.mismatched_password),
label=current.T("Confirm Password"))]
else:
extra_fields = []
form = SQLFORM(table_user,