diff --git a/VERSION b/VERSION index 658e666a..6949496f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.4.4-stable+timestamp.2013.03.18.16.59.25 +Version 2.4.4-stable+timestamp.2013.03.18.17.33.31 diff --git a/applications/admin/static/css/web2py_bootstrap.css b/applications/admin/static/css/web2py_bootstrap.css index ee752b4b..9fe1a041 100644 --- a/applications/admin/static/css/web2py_bootstrap.css +++ b/applications/admin/static/css/web2py_bootstrap.css @@ -102,6 +102,7 @@ td.w2p_fl,td.w2p_fc {padding:0;} ==============================================================*/ /* because web2py handles this via js */ +textarea { width:90%} .hidden{visibility:visible;} /* right folder for bootstrap black images/icons */ [class^="icon-"],[class*=" icon-"]{ diff --git a/applications/examples/static/css/web2py_bootstrap.css b/applications/examples/static/css/web2py_bootstrap.css index ee752b4b..9fe1a041 100644 --- a/applications/examples/static/css/web2py_bootstrap.css +++ b/applications/examples/static/css/web2py_bootstrap.css @@ -102,6 +102,7 @@ td.w2p_fl,td.w2p_fc {padding:0;} ==============================================================*/ /* because web2py handles this via js */ +textarea { width:90%} .hidden{visibility:visible;} /* right folder for bootstrap black images/icons */ [class^="icon-"],[class*=" icon-"]{ diff --git a/applications/welcome/static/css/web2py_bootstrap.css b/applications/welcome/static/css/web2py_bootstrap.css index ee752b4b..9fe1a041 100644 --- a/applications/welcome/static/css/web2py_bootstrap.css +++ b/applications/welcome/static/css/web2py_bootstrap.css @@ -102,6 +102,7 @@ td.w2p_fl,td.w2p_fc {padding:0;} ==============================================================*/ /* because web2py handles this via js */ +textarea { width:90%} .hidden{visibility:visible;} /* right folder for bootstrap black images/icons */ [class^="icon-"],[class*=" icon-"]{ diff --git a/gluon/validators.py b/gluon/validators.py index 92f8021a..238fd418 100644 --- a/gluon/validators.py +++ b/gluon/validators.py @@ -2229,14 +2229,14 @@ class IS_DATE(Validator): def __call__(self, value): ovalue = value if isinstance(value, datetime.date): - if timezone is not None: + if self.timezone is not None: value = value - datetime.timedelta(seconds=self.timezone*3600) return (value, None) try: (y, m, d, hh, mm, ss, t0, t1, t2) = \ time.strptime(value, str(self.format)) value = datetime.date(y, m, d) - if timezone is not None: + if self.timezone is not None: value = value - datetime.timedelta(seconds=self.timezone*3600) return (value, None) except: @@ -2254,7 +2254,7 @@ class IS_DATE(Validator): if year < 1900: year = 2000 d = datetime.date(year, value.month, value.day) - if timezone is not None: + if self.timezone is not None: d = d + datetime.timedelta(seconds=self.timezone*3600) return d.strftime(format) @@ -2303,7 +2303,7 @@ class IS_DATETIME(Validator): (y, m, d, hh, mm, ss, t0, t1, t2) = \ time.strptime(value, str(self.format)) value = datetime.datetime(y, m, d, hh, mm, ss) - if timezone is not None: + if self.timezone is not None: value = value - datetime.timedelta(seconds=self.timezone*3600) return (value, None) except: @@ -2322,7 +2322,7 @@ class IS_DATETIME(Validator): year = 2000 d = datetime.datetime(year, value.month, value.day, value.hour, value.minute, value.second) - if timezone is not None: + if self.timezone is not None: d = d + datetime.timedelta(seconds=self.timezone*3600) return d.strftime(format)