[web2py] Bug? uploaded file is deleted by delete_record() even if record versioning enabled

2019-10-19 Thread 'jim kaubisch' via web2py-users
As expected, when RECORD VERSIONING is enabled, a db record deletion causes the RECORD to be archived with all the record contents maintained rather than being deleted. And if the record is reactivated, all the record contents are restored However, if the record has an upload field and autodel

[web2py] Re: Is it possible to change the auto-generated key used to cache an specific URL?

2019-10-19 Thread Lisandro
I've opened an issue because I think it could be a bug: https://github.com/web2py/web2py/issues/2266 I'll try to suggest a fix. El viernes, 18 de octubre de 2019, 21:16:17 (UTC-3), Lisandro escribió: > > When using @cache.action in controller functions, the key used for storing > the content is

[web2py] How do I pass image link to js/view?

2019-10-19 Thread Maurice Waka
I need to pass the image link from the controller to js controller function(): imgs = [""] view page code. return sendMessage(`{{=imgs}}{{=XML(test_text,sanitize=True)}}`) So far i'm getting only a string as previously stated. If I insert the string directly, then i'm able to view t

Re: [web2py] How to insert/pass image to view using js

2019-10-19 Thread Maurice Waka
Hello I need to pass the image link from the controller to js controller function(): imgs = [""] view page code. return sendMessage(`{{=imgs}}{{=XML(test_text,sanitize=True)}}`) so far i'm getting only a string as previously stated. If I insert the string directly, then i'm able to view th

Re: [web2py] How to insert/pass image to view using js

2019-10-19 Thread Maurice Waka
This seems to work return sendMessage(`{{=XML(test_text,sanitize=True)}}`) On Sat, Oct 19, 2019 at 12:23 PM Maurice Waka wrote: > Hello > I'm trying to pass an image to view from db or static files using js. > I' trying to create an iteration that can pass a text or image or video to > the v

[web2py] How to insert/pass image to view using js

2019-10-19 Thread Maurice Waka
Hello I'm trying to pass an image to view from db or static files using js. I' trying to create an iteration that can pass a text or image or video to the view, so far being able to pass only text to view. The code below : $(function() { var getMessageText, mes