Cédric Krier
4eacdc96e2
Add get, in_ and contains method to PYSON
...
issue9576
review319911002
2020-09-24 22:56:58 +02:00
Cédric Krier
f7d2c114dc
Add support for UTC Date for testing purpose
...
The tests may depend on the timezone of the browser so we need a way to write
tests as UTC only.
issue9577
review298511002
2020-09-09 23:25:24 +02:00
Cédric Krier
523fdbca0d
Support PYSON comparison of date and datetime
...
issue4879
review270061002
2020-09-05 22:59:38 +02:00
Cédric Krier
c20ef88a21
Prepare pyson result when encoding PYSON statement
...
The object returned by the pyson method must also be prepared before being
jsonified.
issue9234
review327191003
2020-05-19 18:47:53 +02:00
Cédric Krier
692fbccb2f
Check statement types in Greater PYSON
...
issue9002
review276711002
2020-02-04 18:30:04 +01:00
Cédric Krier
397cd88db9
Add start value to PYSON Date and DateTime
...
This enable the customization of the starting point for delta operations.
issue8561
review264041002
2019-09-20 11:36:05 +02:00
Sergi Almacellas Abellana
e0d7f0e933
Support dot notation on PYSON Eval
...
issue8528
review287841003
2019-09-19 14:11:30 +02:00
Cédric Krier
35e082d2a5
Evaluate DateTime PYSON in UTC
...
issue8165
review70591002
2019-03-08 18:38:16 +01:00
Cédric Krier
b64ba85821
Add pyson TimeDelta
...
issue7351
review47651002
2018-08-18 17:19:33 +02:00
Cédric Krier
67e05614c2
Implicit conversion to boolean in PYSON statement
...
issue7528
review58281002
2018-07-10 16:57:15 +02:00
Cédric Krier
64aed7f483
Use valueOf to compare moment in PYSON Equal
...
issue7187
review44081002
2018-04-09 10:45:46 +02:00
Cédric Krier
11486416c4
Make PYSON widget works for Object and Array
...
- eval object as statement
- generalise toString from PYSON
- do not modify the value because of different encoding
issue7105
review46311002
2018-04-03 16:44:24 +02:00
Cédric Krier
88643f1491
Use valueOf Number to convert to Boolean
...
issue6746
review37671002
2017-09-07 21:03:12 +02:00
Diego Abad
da43bf0673
Prepare pyson expression before encode when use date and datetime fields
...
Moment library implements its own toJSON
function returning string format:
http://momentjs.com/docs/#/displaying/as-json/
As moment object has toJSON function
the replacer used to stringify pyson
expressions never receive a moment object
because it is dumped before.
It is needed to prepare pyson object
as same design as Sao.rpc.prepareObject
issue6027
review31701002
2016-11-26 19:43:00 +01:00
Cédric Krier
24b522c7fc
Make Bool PYSON evaluate to false empty Time and TimeDelta
...
As Time and TimeDelta are moment Object, Bool should specially evaluate those
instances.
issue5993
review25781002
2016-10-31 17:20:44 +01:00
Xavier Codinas
c6d021edf0
Add PYSON widget
...
issue4631
review20901002
2016-10-31 13:42:13 +01:00
Sergi Almacellas Abellana
4894953e36
Add string representation of PYSON statements
...
issue5952
review32681002
2016-10-21 11:55:53 +02:00
Sergi Almacellas Abellana
d6b3ae4ba0
Add noeval to PYSONDecoder
...
issue1616
review25491002
2016-09-13 10:15:42 +02:00
Cédric Krier
50afb5b695
Allow null in Greater/Less PYSON
...
issue5711
review25501002
2016-07-19 07:43:04 +07:00
Sergi Almacellas Abellana
17b87cebac
Handle null values in pyson encode
...
issue5594
review18181002
2016-06-03 11:18:51 +02:00
Cédric Krier
f3aa2a82ea
Fix PYSON.Equal with Array
...
In javascript, Array comparison doesn't work with '=='. It should use the
Sao.common.compare.
issue5474
review18001002
2016-04-15 14:09:35 +07:00
Cédric Krier
5174e196ca
Fix PYSON to test moment object instead of Date instance
2015-03-27 15:38:58 +01:00
Cédric Krier
0f80f7a5e2
Use bootstrap instead of jquery-ui
...
- use bower for dependencies
- use moment for date
- use bootstrap-datetimepicker
review11821002
2015-02-06 00:32:51 +01:00
Cédric Krier
d9748b0651
Fix PYSON evaluation of Date and DateTime on last days of the month
...
If the current day doesn't exist in the month set then javascript switch to the
next month. So to prevent this switch, the date must have a day which always
exists.
There is no test because this misbehavior depends on the current date.
2014-05-30 12:20:51 +02:00
Cédric Krier
193a3d9381
Add Len to PYSON
...
issue3692
review3681002
2014-02-27 12:38:29 +01:00
Cédric Krier
d10b366a27
Add constructor for Date and DateTime
...
It is needed to be able to differentiate Date and DateTime because Javascript
as only a datetime object named Date.
review1115003
2013-10-03 11:11:25 +02:00
Cédric Krier
dfacdde775
Use bitwise for indexOf test and replace old jQuery.inArray
2013-08-08 19:43:30 +02:00
Cédric Krier
6bacf786a3
Fix PYSON and JSON for null value
2013-04-18 18:14:00 +02:00
Cédric Krier
4b8cc1895b
Fix month computation in PYSON to comply with javascript strange setMonth() range
2013-02-04 15:06:39 +01:00
Cédric Krier
76e0b1a15d
Move source from js to src
2013-01-07 15:06:42 +01:00