On Friday, June 3, 2016 at 9:30:10 AM UTC-7, PRACHI VAKHARIA wrote:
>
>
>
>
>
>
> *Great! What are some of the major updates in 2.14.4 – that we users
> should note or be aware of?*
>
## 2.14.6
- Increased test coverage (thanks Richard)
- Fixed some newly discovered security issues in
*Great! What are some of the major updates in 2.14.4 – that we users
should note or be aware of?*
*On Tuesday, 12 April 2016 17:29:26 UTC-4, Massimo Di Pierro wrote:*
> *web2py 2.14.4 is out.*
>
> It fixes some a problem with CAS and some style issues with examples.
> It also includes
Humm this
requires[0] = validators.IS_EMPTY_OR(requires[0], null='' if field in
('string', 'text', 'password') else None)
Should be
requires[0] = validators.IS_EMPTY_OR(requires[0], null='' if field_type in
('string', 'text', 'password') else None)
--
Resources:
- http://web2py.com
-
You are right. I have a problem with strings now, but empty field for
integer is inserted as null at least. So I reverted this piece of code to
version 2.13.4 like this and now is everything like it was, and shoud be.
"""
if field.unique:
requires.insert(0,
That doesn't make any sense Adam. You say your field is an integer, so
null='' if field in ('string', 'text', 'password') else None
is the same as
null=None
Which is the default value for null in IS_EMPTY_OR()
So your change shouldn't have many any difference whatsoever, note that by
I isolated the problem in gluon/dal.py (line: 79) and with this change it
works fine in postgresql.
if (field.notnull or field.unique) and not field_type in excluded_fields
:
requires.insert(0, validators.IS_NOT_EMPTY())
elif not field.notnull and not field.unique and requires:
PYTDS is now DBAPI 2.0 compliant, which means you can now use it with
Web2py. It's fully python not dependent on any installed libraries, for
your MSSQL needs. That means you can use this in pypy or ironpython as
well...
On Tuesday, April 12, 2016 at 2:29:26 PM UTC-7, Massimo Di Pierro wrote:
Adam can we see some code? Possibly in another topic.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are
No. It has no default values. It worked fine in 2.13.x versions.
Dana ponedjeljak, 2. svibnja 2016. u 20:22:56 UTC+2, korisnik Leonel Câmara
napisao je:
>
> Adam does that field have a default=0 there?
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
-
Adam does that field have a default=0 there?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the
I have problem with empty field that should be inserted in db as NULL
(None), but 0 (zero) is inserted. Even when I declare form.vars.fo = None
(in validation routine), zero is inserted. Why?
Dana utorak, 12. travnja 2016. u 23:29:26 UTC+2, korisnik Massimo Di Pierro
napisao je:
>
> web2py
I am a new user. With both the 2.9 (stable) and this latest I cannot get
the KPAX cms to run. web2py seems ok and the KPAX installs with no errors.
This is on a Macbook Pro running Yosemite with bundled Python 2.7. Thanks
for your help.
On Tuesday, April 12, 2016 at 5:29:26 PM UTC-4,
On Monday, April 25, 2016 at 9:39:00 PM UTC-7, Ben Lawrence wrote:
>
> Does the shell still work or is it just me who cannot work it?
> Whenever I place anything in the .../admin/shell/index/welcome, it just
> prints "None"
>
>
The web shell is deprecated, I think. The command line shell still
Does the shell still work or is it just me who cannot work it?
Whenever I place anything in the .../admin/shell/index/welcome, it just
prints "None"
On Tuesday, April 12, 2016 at 2:29:26 PM UTC-7, Massimo Di Pierro wrote:
>
> web2py 2.14.4 is out.
>
> It fixes some a problem with CAS and some
I didn't have time to investigate though it won't start with :
python web2py.py -S welcome -M
But once it has been started with the launcher :
python web2py.py
It start with the previous command...
To reproduce, unzip 2.14.4 and try the first command.
Richard
On Wed, Apr 13, 2016 at 5:31
On Wednesday, April 13, 2016 at 1:41:12 PM UTC-7, Alex Glaros wrote:
>
> was this below left out of layout.html? I just see the word "include"
> there but nothing to include
>
> {{block header}}
>
>
> {{if response.title:}}
> {{=response.title}}
>
was this below left out of layout.html? I just see the word "include"
there but nothing to include
{{block header}}
{{if response.title:}}
{{=response.title}}
{{=response.subtitle or ''}}
{{pass}}
{{end}}
thanks,
Alex Glaros
--
I just did some tests. It still saves empty strings as null when using
SQLFORM or CRUD and the string field has default=''. But when using
db.table.insert the empty string is stored.
On Tuesday, April 12, 2016 at 3:29:26 PM UTC-6, Massimo Di Pierro wrote:
>
> web2py 2.14.4 is out.
>
> It fixes
On Tuesday, April 12, 2016 at 2:29:26 PM UTC-7, Massimo Di Pierro wrote:
>
> web2py 2.14.4 is out.
>
> It fixes some a problem with CAS and some style issues with examples.
> It also includes (and passes) a lot of new tests.
>
> Thanks to Richard Vezina, Simone and Leonel for doing most of the
19 matches
Mail list logo