Re: [web2py] Email from text field while preserving the text format

2017-06-20 Thread Serge Bourgeois
Hello Richards, Thanks for reading my question. I'll try to clarify what I do and what I need. I have a table with a text field. Using a SQLFORM.smartgrid, I use the ckeditor widget to populate this field, in order to get the data presented in a nice format (including for titles, email

Re: [web2py] Email from text field while preserving the text format

2017-06-20 Thread Richard Vézina
Hello Serge, It not clear what you are doing exactly, do you mean you parse text with BeautifulSoup before input it into the database field? And what is unacceptable? About 1, I think previous question would help understand better the issue. About 2, I don't see why it wouldn't work... But as I

[web2py] Re: Auth_membership issues

2017-06-20 Thread Anthony
Be sure to read the relevant documentation: http://web2py.com/books/default/chapter/29/09/access-control#Authorization. You need to create an "admin" group and make sure you are a member of it. Anthony On Tuesday, June 20, 2017 at 11:13:15 AM UTC-4, Maurice Waka wrote: > > I tried this code

Re: [web2py] Re: Why do I get a blank screen on view

2017-06-20 Thread Anthony
On Tuesday, June 20, 2017 at 11:25:20 AM UTC-4, Maurice Waka wrote: > > I did this: > replies = db().select(db.answers.ALL, orderby=auth.user.id) > orderby must be a Field object, not an integer value. > > could it be because am using the same local ip(127.0.0.8000) address when > trying out

[web2py] Re: smartgrid tampering with url in browser

2017-06-20 Thread Anthony
Have you tried user_signature=True? On Tuesday, June 20, 2017 at 6:42:11 AM UTC-4, T.R.Rajkumar wrote: > > I have this page from the edit button of the child. > > http://127.0.0.1:8000/web_ocms/amc/new_contract/amc_master/amc_details.amc_id/17/edit/amc_details/10 > Here 17 is the id of the

[web2py] Email from text field while preserving the text format

2017-06-20 Thread Serge Bourgeois
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

[web2py] Re: New site on web2py

2017-06-20 Thread Massimo Di Pierro
Nice site. congratulations! On Wednesday, 14 June 2017 08:36:18 UTC-5, Ian Ryder wrote: > > Hi all, not sure if it's OK to do this - slap me down if not! > > We're just about to launch a new tool / site based on web2py - > https://www.wherecani.live > > Any feedback appreciated and if it's

[web2py] Re: web2py 2.15.1

2017-06-20 Thread Massimo Di Pierro
Make a PR On Friday, 16 June 2017 10:05:48 UTC-5, Oasis Agano wrote: > > I think that *flatpickr* should be the default datetime picker for the > next Web2py it looks awesome > > On Monday, June 5, 2017 at 10:39:11 AM UTC+2, Karoly Kantor wrote: >> >> Dear Massimo, >> >> I saw your question in

[web2py] Re: Auto Complete Forms

2017-06-20 Thread Raul Monares
Take a look at the AJAX function http://www.web2py.com/books/default/chapter/29/11/jquery-and-ajax#The-ajax-function You could assing to trigger it on blur On Tuesday, June 20, 2017 at 10:01:06 AM UTC-6, Rodrigo Corvalan wrote: > > > Dear I am new to web2py I would like to know if it is

Re: [web2py] Auth_membership issues

2017-06-20 Thread Maurice Waka
:) Thanks On Tue, Jun 20, 2017 at 6:50 PM, Richard Vézina wrote: > Hmm this is very old code... Do you have a "admin" group? and if you do, > are your user a member of this group?? > > Note : This code shouldn't be used, as you should manipulate user group > and

Re: [web2py] Re: KWEB on Raspberry-pi Zero, can't login to admin page

2017-06-20 Thread Massimo Di Pierro
No idea. Maybe KWEB has cookies disabled? On Sunday, 11 June 2017 05:40:38 UTC-5, Stef Mientki wrote: > > thanks Massimo, > > but I know the password, because I can get to the admin pages if I use > another browser. > > So the combination of the KWEB browser and Web2py behaves strange and I >

[web2py] Auto Complete Forms

2017-06-20 Thread Rodrigo Corvalan
Dear I am new to web2py I would like to know if it is possible to auto complete a form from an input. This would be so. I would like to load the product code and autocomplete the rest of the form through a query.

Re: [web2py] Auth_membership issues

2017-06-20 Thread Richard Vézina
Hmm this is very old code... Do you have a "admin" group? and if you do, are your user a member of this group?? Note : This code shouldn't be used, as you should manipulate user group and membership with auth.add_group(), auth.add_membership(), auth.del_membership() and all others auth methods

Re: [web2py] Re: Why do I get a blank screen on view

2017-06-20 Thread Maurice Waka
I did this: replies = db().select(db.answers.ALL, orderby=auth.user.id) could it be because am using the same local ip(127.0.0.8000) address when trying out different users and get the same result? On Sat, Jun 17, 2017 at 8:25 PM, Anthony wrote: > auth.user_id is the id

[web2py] Auth_membership issues

2017-06-20 Thread Maurice Waka
I tried this code found here . When it comes to logging in, i get an error: Not Authorized, none. When using @auth.requires_login(), it works. What could I be doing wrong? I need to register as admin.

Re: [web2py] Re: Prettydate ,Translate issue

2017-06-20 Thread António Ramos
Ohh it only happens in the 1 week , 1 day , 1 hour.. because when it finds 2 it goes to plural Better than nothing... thank you Leonel .. 2017-06-20 15:29 GMT+01:00 Leonel Câmara : > What do you mean? There's no bug here Ramos. You just need to translate > both the

[web2py] Re: Prettydate ,Translate issue

2017-06-20 Thread Leonel Câmara
What do you mean? There's no bug here Ramos. You just need to translate both the singular and plural e.g.: 1 week ago 1 semana atrás %d weeks ago %d semanas atrás -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] Re: Prettydate ,Translate issue

2017-06-20 Thread António Ramos
how do i singularize prettydate? 2017-06-20 14:42 GMT+01:00 Leonel Câmara : > How is that a bug? There's a special case for the singular as prettydate > is not using pluralisation. > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > -

[web2py] Re: Prettydate ,Translate issue

2017-06-20 Thread Leonel Câmara
How is that a bug? There's a special case for the singular as prettydate is not using pluralisation. -- 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

[web2py] Prettydate ,Translate issue

2017-06-20 Thread António Ramos
Hello this is my code {{=prettydate(event["events"]["at"],T)}} but in the translator for portuguese i see that 2 bugs any help ? [image: Imagem inline 1] [image: Imagem inline 2] -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

[web2py] Re: smartgrid links

2017-06-20 Thread T.R.Rajkumar
Thank you Anthony. I will do the same. -- 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 Google

[web2py] smartgrid tampering with url in browser

2017-06-20 Thread T.R.Rajkumar
I have this page from the edit button of the child. http://127.0.0.1:8000/web_ocms/amc/new_contract/amc_master/amc_details.amc_id/17/edit/amc_details/10 Here 17 is the id of the master and 10 is the id of the child. I have set common_filter in controller so that the records of master and child

[web2py] Re: Edit grid/smartgrid problem

2017-06-20 Thread T.R.Rajkumar
If you are creating the form in html then for update forms you must add a hidden input with name id and set to the edit records id. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: problem with gluon.contrib.simplejson.loads JSONDecodeError

2017-06-20 Thread Alessio Varalta
I think is a little bug of web2py or the proxy I restart the server and make a new installation of the application and works On Thursday, 15 June 2017 10:44:56 UTC+2, Dave S wrote: > > > > On Tuesday, June 13, 2017 at 8:44:28 AM UTC-7, Alessio Varalta wrote: >> >> I send my data with this