Re: [web2py] Re: Web2py with python 3.8.5
Hello, I'm trying to convert my web2py apps to Ubuntu 20.4 / apache2/wsgi using python 3.8.5, and as I'm not an IT expert, the only way I found was to change the import instructions in a series of modules. I am aware I shouldn't do this, but I couldn't find any alternative... I would apreciate
Re: [web2py] How to sort a smartgrid with your own custom sorted id list
Have you tried the orderby option of the smartgrid? Example of conctent: orderby = dict(t_prj_doc_item= [ db.t_prj_doc_item.f_sequence, db.t_prj_doc_item.id]), Le mardi 23 juin 2020 à 00:48:54 UTC+2, roge...@gmail.com a écrit : > The only thing that comes to mind is to put your sort data into th
[web2py] modules: NameError("name 'reload' is not defined",)
I have an issue saving my modues with the last version of web2py. Is there something I do wrong? Context: Ubuntu 18.04 / web2py version 2.20.4 / python 3.6.9 How to reproduce this issue (a bug??) with a simple example: In the applications examples, create a module (for instance empty.py) Then
[web2py] Re: Here's how to run Web2Py on IBM BlueMix
with the web2py built-in > web server, which will work but is not intended for heavy production loads. > You might want to inquire with IBM Cloud how you can serve a Python web app > with a more robust server. > > Anthony > > On Wednesday, July 4, 2018 at 12:03:31 PM UTC-4, Serg
[web2py] Re: Here's how to run Web2Py on IBM BlueMix
July 4, 2018 Hello, At first, thanks to all of you for the web2py and all the the dynamic that you generate around this project! Here is one link to store a recipe could be here for deploying web2py on IBM Cloud (new name of Bluemix): https://developer.ibm.com/recipes/tutorials/category/web-de
[web2py] grid: top + button: how to adapt dynamically & translate the title 'add record to database' ?
Hello, The following codes changes dynamically the title of the button on the top left of the form in English. But when I switch to another language (exemple FR), I get the French translation of 'Add record to database', and not the translation of what I have placed in the title of this button.
Re: [web2py] Re: Email from text field while preserving the text format
: message = (my_text_field_content, '' + my_text_field_content + '') All the other variables must of course been filled in as usual. Hoping this can help some members of the community, Serge 2017-06-21 8:08 GMT+02:00 Serge Bourgeois : > > > Le mardi 20 juin 2017
[web2py] Re: Email from text field while preserving the text format
Le mardi 20 juin 2017 18:24:43 UTC+2, Serge Bourgeois a écrit : > > > I like web2py for the good balance between simplicity and completeness. > Most of the time, when I have a question, I can find a response googeling. > Today not... > > I could cope with attachments, but
Re: [web2py] Email from text field while preserving the text format
ay have from a normal browser. So having the right presentation everywhere > is more difficult to achieve than a regular web page. > > Good Luck > > Richard > > On Tue, Jun 20, 2017 at 12:24 PM, Serge Bourgeois > wrote: > >> >> I like web2py for the good
[web2py] Email from text field while preserving the text format
I like web2py for the good balance between simplicity and completeness. Most of the time, when I have a question, I can find a response googeling. Today not... I could cope with attachments, but I'm still struggling with rich text fields for the email body. Using BeautifulSoup.BeautifulSoup(my
[web2py] Re: Smartgrid: get the ID of the just inserted row
Thanks! oncreate is working perfectly! Le mardi 27 octobre 2015 11:54:46 UTC+1, Serge Bourgeois a écrit : > > > When creating a new record with smartgrid, the the 'onvalidation' > function cannot give the form.vars.id is since the record is not created > yet.
[web2py] Smartgrid: get the ID of the just inserted row
When creating a new record with smartgrid, the the 'onvalidation' function cannot give the form.vars.id is since the record is not created yet. I understand that the onvalidation para allow to control what happens before the form is accepted, but I confess I couldnt' find a kind of 'after_v
Re: [web2py] Re: ckeditor : how to make read only, how to remove the toolbar in a dynamic way
tion to make the field editable) else (ckeditor.widget(db.my_table.my_text_field, value, **{'_id': 'ckeditor_row_%s' % row.id,'_name':'my_text_field_row_%s' % row.id, '_disabled' : 'disabled' })) Hope this can help... Serge Le mardi 3 février 2015
Re: [web2py] Re: ckeditor : how to make read only, how to remove the toolbar in a dynamic way
'module', >> Field('id', 'id', readable=False), >> ... >> Field('description', 'text', widget=CKEditor.widget) >> ) >> >> So to do what you're suggesting, I change it to: >> >>
Re: [web2py] Re: ckeditor : how to make read only, how to remove the toolbar in a dynamic way
7;, 'text', widget=CKEditor.widget) > ) > > So to do what you're suggesting, I change it to: > > def hideable_ckeditor_widget(): > return SQLFORM.widgets.text.widget if 'new' in request.args or 'edit' > in request.args else CKEditor.widge
Re: [web2py] ckeditor : how to make read only, how to remove the toolbar in a dynamic way
in stead of 'now' and 'edit', read 'new' or 'edit' ... 2015-02-01 10:25 GMT+01:00 Serge Bourgeois : > I just implemented the ckeditor plugin. It looks great, but I need help > (example if possible) showing how to hide the ckeditor toolbar for some &g
[web2py] ckeditor : how to make read only, how to remove the toolbar in a dynamic way
I just implemented the ckeditor plugin. It looks great, but I need help (example if possible) showing how to hide the ckeditor toolbar for some text fields, for instance in a controller with a smartgrid, where request.args does not contain 'now' nor 'edit'. Thanks in advance ! Serge -- Resourc
[web2py] file transfer from client to server with @service.soap and store on server
Hello, I am looking for support to interface 2 web2py applications via @service.soap app1: is running on portable device, has a table with a field (Field('f_assest', type 'upload')), used to store files such as jpeg, zip or pdf files. This app1 can run on stand alone, not connected device, but, w
[web2py] Re: Direct editing inside a grid
e='records',replace=None) return dict (form = form) Hope this can help... Le jeudi 17 juillet 2014 21:57:12 UTC+2, Anthony a écrit : > > I don't have time to look into it, but seeing some code and a traceback > might help. > > Anthony > > On Thursday, July 17
[web2py] Re: Direct editing inside a grid
able out of the box, though it would be nice. > > Anthony > > On Thursday, July 17, 2014 10:25:20 AM UTC-4, Serge Bourgeois wrote: >> >> Hello, >> >> In order to simplify the user interface of basic controller functions, I >> want to offer direct editing in
[web2py] Direct editing inside a grid
Hello, In order to simplify the user interface of basic controller functions, I want to offer direct editing in SQLFORM.smartgrid, using the same widgets (string, options, uploads, ...) than those available in create or edit. Maybe, I missed the point in the doc? Thank you for any advice. Se
[web2py] how to leave mobile interface testing...
Sorry for this stupid question: where is the option to stop testing mobile interface on a normal PC? In other words how to get back to a 'normal' interface once you tried the mob interface? Thanks in advance . Serge -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -
[web2py] smartgrid : editing a subtable containing field representation creates an internal error
Hi, I have an issue I cannot resolve. As I am not an expert, this is probably a personal bug (a 'stupid error'...). Thank in advance for any help. Here is how this happens... 1. My db model has 2 tables and 2 rendering functions... def render_company(f_company = None, row = None): myreturn
Re: [web2py] Re: redirecting to localhost or 127.0.0.1
y, June 14, 2013 4:26:21 AM UTC-4, Serge Bourgeois wrote: >> >> >> I tought that localhost and 127.0.0.1 were equivalent, but it looks not. >> I 'd like to understand the difference. >> >> After auth authentification in a CAS, the system redirects correcty to
Re: [web2py] Re: version2.5.1:Approximative date of version correcting smartgrid with links to several tables
problem with smartgrid in 2.5.1? > > > On Monday, 17 June 2013 03:08:02 UTC-5, Serge Bourgeois wrote: >> >> At first, thanks a lot for the fantastic work around Web2py. Each time a >> new version come, I iplemented it with excitation... >> The last version
[web2py] version2.5.1:Approximative date of version correcting smartgrid with links to several tables
At first, thanks a lot for the fantastic work around Web2py. Each time a new version come, I iplemented it with excitation... The last version 2.5.1 came with a regression in smartgrid functionalities. As I use smartgird in many situation, I'd like to know approximatively when the correction is
[web2py] redirecting to localhost or 127.0.0.1
I tought that localhost and 127.0.0.1 were equivalent, but it looks not. I 'd like to understand the difference. After auth authentification in a CAS, the system redirects correcty to localhost:8000/myapp/default/index. Now, in a controller action, if I redirect again, for instance to 127.0.0.
[web2py] How to display field containing html tags in viewer using the {{=}}python instruction?
My question is certainly trivial, but I cannot find any answer on the web... I try to display a field (let's say myfield)containing html tags in viewer using {{=myfield}}. Example of content:
28 matches