mdipierro
d93a13ca46
restoring commented tests
2019-01-01 22:13:54 -08:00
mdipierro
7216003eb6
to_native missing, why this was not failing locally
2019-01-01 22:10:53 -08:00
mdipierro
e16becb6a9
fixed pre-existing bug in handling delimiters in templates
2019-01-01 21:51:29 -08:00
mdipierro
ca6014e6e2
fixed another import in pydal.validators
2019-01-01 20:47:48 -08:00
mdipierro
64315dac4a
fixed missed variable
2019-01-01 20:42:21 -08:00
mdipierro
fed82e0007
more flexibility in template
2019-01-01 20:37:11 -08:00
mdipierro
174c1fb31d
fixed template reader
2019-01-01 20:34:17 -08:00
mdipierro
089013c40e
added missing import
2019-01-01 18:39:09 -08:00
mdipierro
5e0f6c19bf
fixed print in template
2019-01-01 18:28:24 -08:00
mdipierro
1fff3fc237
fixed get_digest in pydal
2019-01-01 18:10:03 -08:00
mdipierro
32a8a15187
fixed import of validators
2019-01-01 17:39:50 -08:00
mdipierro
b42a3a968f
fixed more imports
2019-01-01 17:18:25 -08:00
mdipierro
d3666ee79a
fixed scheduler import
2019-01-01 16:54:17 -08:00
mdipierro
cfa0d742fc
fixed py3 imports in pydal
2019-01-01 16:32:37 -08:00
mdipierro
b3d92e8c7d
ipaddress
2019-01-01 16:24:25 -08:00
mdipierro
e8860233a0
moved scheduler and validator into pydal
2019-01-01 16:01:04 -08:00
mdipierro
019cad9640
modular template
2019-01-01 15:09:06 -08:00
mdipierro
cef31f1277
fixed submodule reference
2018-12-09 19:25:57 -08:00
mdipierro
040966850c
fixed submodule reference
2018-12-09 19:08:52 -08:00
mdipierro
79b2685fba
fixed autocomplete widget feature, thanks Paolo
2018-12-09 19:02:33 -08:00
mdipierro
a87ee9a966
changed pydal
2018-12-09 18:59:46 -08:00
mdipierro
3ee6ddb081
allow 0 to be an id, thanks Paolo
2018-12-09 18:53:45 -08:00
mdipierro and GitHub
4b587c45df
Merge pull request #2061 from Faelysse/master
...
[Py3] Open shell executed files in binary mode, fixes #2060
2018-12-05 20:49:48 -08:00
mdipierro and GitHub
134d9a11c8
Merge pull request #2059 from erbalito/master
...
resolves #2058
2018-12-05 20:49:16 -08:00
Faelysse
08f04814ba
Open shell executed files in binary mode, fixes #2060
...
Non-ASCII characters in executed files caused a crash, this fixes such
behaviour.
2018-12-03 16:14:05 +01:00
erbalito and GitHub
178f48799a
Merge branch 'master' into master
2018-11-26 11:46:59 -03:00
erbalito and GitHub
109206e721
Merge pull request #1 from erbalito/erbalito-patch-1
...
fixes #2058
2018-11-26 11:43:38 -03:00
erbalito and GitHub
9d8fce0687
fixes #2058
...
I've modified redis_cache.py to be able to optionally provide an application name to RedisCache constructor. This makes possible to share cache between different web2py applications if needed.
2018-11-21 09:40:19 -03:00
mdipierro and GitHub
5368a14c43
Merge pull request #2054 from vinyldarkscratch/validators/image_aspect_ratio
...
Add aspect ratio to IS_IMAGE() validator
2018-11-18 11:09:52 -08:00
mdipierro and GitHub
f119f1fcb2
Merge pull request #2053 from boriscougar/patch-1
...
redis_scheduler failing
2018-11-18 11:09:26 -08:00
mdipierro and GitHub
c52e75624c
Merge pull request #2055 from erbalito/patch-1
...
Update redis_cache.py to allow sharing cache between applications
2018-11-18 11:06:20 -08:00
erbalito and GitHub
66f6549817
Update redis_cache.py to allow sharing cache between different applications
...
I'm not sure if this would help someone else. I've always had this scenario where some of my web2py applications share the models, and therefore, need to share the cache (I use Redis). In the past I've asked if there was any possibility to share cache between applications, but I got no answers:
https://groups.google.com/forum/#!searchin/web2py/share$20cache$20application%7Csort:date/web2py/iNCzMq8ADnw/ufyPBWajBQAJ
Anyway, I've noticed that I could make a simple change to redis_cache.py to achieve what I was looking for: I've added the optional argument "application" to RedisCache(). If you inspect the RedisCache() code, you will notice that previously it was forced to use current.request.application for the instance_name. With this simple change I did, it's possible to provide an application name to the RedisCache() constructor.
This has worked like a charm for my specific scenario, and I think I can say that it has backwards compatibility. Still, if this proposal isn't accepted, I would like to hear about some alternative to share cache between applications. Thanks!
2018-11-14 12:47:04 -03:00
Vinyl Darkscratch
62df950f50
Add aspect ratio validation tests
2018-11-03 21:17:13 -08:00
Vinyl Darkscratch
7318d28f1a
Add aspect ratio to IS_IMAGE() validator
2018-11-03 21:06:43 -08:00
Boris Aramis Aguilar Rodríguez and GitHub
a79ad25001
redis_scheduler failing
...
redis_scheduler failed when calculating next_run_time (method total_seconds() belongs to timedelta)
2018-11-01 15:04:22 -06:00
mdipierro and GitHub
bf27c8c394
Merge pull request #2048 from timnyborg/patch-3
...
Allow custom json encoder
2018-11-01 08:24:53 -07:00
mdipierro and GitHub
bbaf151f25
Merge pull request #2047 from kvanzuijlen/fix_issues_for_python3
...
'unique_key' shouldn't be saved as bytes
2018-11-01 08:24:27 -07:00
mdipierro and GitHub
41448926cb
Merge pull request #2045 from veiko99/traceback_errors
...
Fixes python3 traceback errors
2018-11-01 08:23:02 -07:00
mdipierro and GitHub
2fa6b644ad
Merge pull request #2043 from timnyborg/patch-2
...
fix selectable breaking with custom formstyle
2018-11-01 08:21:42 -07:00
mdipierro and GitHub
9824ead2e7
Merge pull request #2041 from rif/master
...
fix recaptcha2 for python3
2018-11-01 08:21:11 -07:00
mdipierro and GitHub
eefdd6f887
Merge pull request #2040 from d3im/master
...
fix plugin.html view to work with python3
2018-11-01 08:19:54 -07:00
mdipierro and GitHub
623bbc4349
Merge pull request #2034 from timnyborg/patch-1
...
correct rendering of jsonrpcerrors
2018-11-01 08:19:32 -07:00
mdipierro and GitHub
f307d32288
Merge pull request #2033 from cbenhagen/patch-1
...
Fix basic_auth with Python 3
2018-11-01 08:19:00 -07:00
mdipierro and GitHub
eaa34a7f9f
Merge pull request #2032 from rayluo/generic-csv
...
Create generic.csv
2018-11-01 08:18:35 -07:00
Tim Nyborg and GitHub
77a5c01ac9
Allow custom json encoder
...
This lets an application use a custom JSONEncoder when making jsonrpc calls (to automatically handle, say, serialization of datetime, or Decimal, or custom classes).
e.g.:
import json, datetime, decimal
class ExtendedEncoder(json.JSONEncoder):
def default(self, obj):
if isinstance(obj, datetime.datetime):
return obj.isoformat()
if isinstance(obj, decimal.Decimal):
return str(obj)
return super(ExtendedEncoder, self).default(obj)
api = ServerProxy(address, version='2.0', encoder=ExtendedEncoder)
2018-10-29 15:16:28 +00:00
Koen van Zuijlen
ec41d49454
'unique_key' shouldn't be saved as bytes
2018-10-29 13:47:35 +01:00
Koen van Zuijlen
2be479fc9f
Merge branch 'master' into fix_issues_for_python3
2018-10-29 13:47:06 +01:00
Veiko Aasa
5887e43248
Fixes #1829
2018-10-20 13:58:41 +03:00
Veiko Aasa
c5e1ddea20
Fixes #1998
2018-10-20 13:54:04 +03:00
Tim Nyborg and GitHub
aca4947927
fix selectable breaking with custom formstyle
...
the recently added elif results in a 'function is not iterable' exception if you have a custom formstyle function
2018-10-19 16:36:13 +01:00