[web2py] Clarification please on autocomplete widget...

2018-06-18 Thread 'jim kaubisch' via web2py-users
What am I misunderstanding... ?? Building a form with fields that really need to be autocompleted (potentially 1,000+ possible values). Looked at the book which says "two possible uses for the autocomplete widget: to autocomplete a field that takes a value from a *list* or to autocomplete a *

[web2py] Re: "unarchive" a record?

2018-06-18 Thread 'jim kaubisch' via web2py-users
Thanks for your inputs. Used it, checked to make sure the results were as I expected them to be. Good progress on this since then... On Tuesday, June 12, 2018 at 9:45:46 AM UTC-7, Anthony wrote: > > current.update_record(name=version.name, description=version.description) >> >> > And note, if you

[web2py] Re: CHANGE THE LOGIN FLASH MESSAGE

2018-06-18 Thread 黄祥
usually auth.settings is declare in models e.g. models/db.py best regards, stifan -- 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 messa

[web2py] Re: managing latin characters

2018-06-18 Thread Leonel Câmara
Web2py uses utf-8 everywhere by default, you don't need to worry about it. If you're smart you will use utf-8 in the database too and everything pretty much just works, otherwise you will just have to tell the DAL about the encoding the database uses using db_codec. -- Resources: - http://web2

[web2py] Re: wired transform

2018-06-18 Thread Leonel Câmara
I'm guessing you're asking in the wrong group, and I don't really use R. I'm guessing the problem is: cal = robjects.r(''vector'') Which according to the rpy2 documentation I've looked at for the first time should probably be: cal = robjects.r(''vector'')[0] -- Resources: - http://web2py.com

Re: [web2py] managing latin characters

2018-06-18 Thread Richard Vézina
It depends... If it coming from the form you have nothing to do... If you add them in your code as hardcoded value you have to encode them properly, you don't just do 'ton text en français' as it gonna fails... You always better work in english in your code anyway as it makes not much sens to work

[web2py] managing latin characters

2018-06-18 Thread Andrea Fae'
How to manage latin character, like italian character like è,é, à, ò If I want to insert for example à it "translate" to “/xe0153" How to wotk with this type of charater...Do I need to change from utf-8 to? Thanks -- Resources: - http://web2py.com - http://web2py.com/book (Documentation)

[web2py] Re: Select ALL products

2018-06-18 Thread Val K
You should perform an ajax request to pass model (id or name) to the controller that would perform corresponding query like db((db.stock.id == db.products.stock) & (db.products.model==request.args(0)) ).select(db.products.ALL) and return it back You can use the same controller to do it with t

[web2py] Re: CHANGE THE LOGIN FLASH MESSAGE

2018-06-18 Thread Ayron Rangel
Anthony, Will I use the auth.settings.login in the controller? or in the view?? -- 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 messag

Re: [web2py] Last version supporting Python 2.6

2018-06-18 Thread Carlos Cesar Caballero Díaz
Thank you so much!! Greetings. El 18/06/18 a las 11:28, Richard Vézina escribió: And previous version was : 2.14.6 On Mon, Jun 18, 2018 at 11:27 AM, Richard Vézina mailto:ml.richard.vez...@gmail.com>> wrote: Changelog file in web2py folder : *## 2.15.1-4* - pydal 17.08 *-

[web2py] wired transform

2018-06-18 Thread yifan li
1. vector= robjects.FloatVector([4,3,2,2,1,2,4,5]) 2. print("vector is: ",type(vector),vector) 3. cal = robjects.r(''' 4. vector 5. ''' 6. ) 7. print('this is type of cal', type(cal())) Hi all, I have encountered a very strange problem. I was trying to pass a python float list into R code

Re: [web2py] Last version supporting Python 2.6

2018-06-18 Thread Richard Vézina
And previous version was : 2.14.6 On Mon, Jun 18, 2018 at 11:27 AM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > Changelog file in web2py folder : > > *## 2.15.1-4* > - pydal 17.08 > *- dropped support for python 2.6* > - dropped web shell > - experimental python 3 support > - experimen

Re: [web2py] Last version supporting Python 2.6

2018-06-18 Thread Richard Vézina
Changelog file in web2py folder : *## 2.15.1-4* - pydal 17.08 *- dropped support for python 2.6* - dropped web shell - experimental python 3 support - experimental authapi for service login - allow ajax file uploads - more tests - more pep8 compliance - d3.js model visulization - improved schedule

[web2py] Last version supporting Python 2.6

2018-06-18 Thread Carlos Cesar Caballero Díaz
Hi guys, what was the last web2py version supporting Python 2.6? Greetings. -- 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 be

[web2py] Re: CHANGE THE LOGIN FLASH MESSAGE

2018-06-18 Thread Anthony
You can customize the login message via auth.messages.logged_in. However, you won't be able to include the username in that message because it will not be known until after the login. Instead, you could append a callback function to the auth.settings.login_onaccept list, and in that function, y

Re: [web2py] Is it possible to translate data in SQLFORM.grid?

2018-06-18 Thread Anthony
On Monday, June 18, 2018 at 7:50:23 AM UTC-4, Bruno Duarte Ramos wrote: > > Hi Anthony, actually I just want to translate the form on my view, like my > view was {{=T(form)}}. > Yes, but what exactly do you want translated in the form? Do you want the actual data values translated? If so, that d

Re: [web2py] Re: how do i import a module in my controller?

2018-06-18 Thread Anthony
On Monday, June 18, 2018 at 7:41:34 AM UTC-4, elisha bere wrote: > > python 3 is already installed on my computer > To run web2py with Python 3 you must (a) download the source version of web2py (the binary versions for Mac and Windows include their own Python 2 interpreters -- they do not use y

[web2py] Re: WEB2PY CAS with basic auth

2018-06-18 Thread Ben Hagen
I have filed an issue for this: https://github.com/web2py/web2py/issues/1938 Maybe someone can point me in the right direction how it could be fixed. Am Mittwoch, 23. Mai 2018 16:19:02 UTC+2 schrieb Ben Hagen: > > Sorry yeah I truncated the URL in this message for privacy. In fact it > does look

[web2py] CHANGE THE LOGIN FLASH MESSAGE

2018-06-18 Thread Ayron Rangel
Guys, How do I change the response.flash message when I log in? Every time when I'm login, appears just "Logged In", i want to change this message to Welcome ' username'. Regards, Ayron Rangel -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2

[web2py] Re: Select ALL products

2018-06-18 Thread Ayron Rangel
Massime, I would like it to show on the "modal" the list of all models products equal to the table row. Ex.: I have in my first row of the table all products with the model A (in query i'm using group by = 'db(query).select(db.products.ALL, db.stock.ALL,count,somar, groupby=db.products.model')

[web2py] fabfile update on web2py 2.16.1

2018-06-18 Thread 黄祥
seems the fabfile.py won't work, must change the code *e.g. * from fabric.api import * ... the_rest_of_the_code ... into from fabric import Connection ... the_rest_of_the_code ... and test it *ref:* http://www.fabfile.org best regards, stifan -- Resources: - http://web2py.com - http://web2py.

[web2py] Re: HOW DO I SET UP EMAIL RESET SETTIONGS IN MY MODELS ?

2018-06-18 Thread 黄祥
pls use either the value itself or the appconfig file *e.g. value* *models/db.py* mail.settings.server = 'logging' if request.is_local else 'smtp.gmail.com:587' *e.g.appconfig file* *models/db.py* mail.settings.server = 'logging' if request.is_local else configuration.get('smtp.server') *private

Re: [web2py] Is it possible to translate data in SQLFORM.grid?

2018-06-18 Thread 黄祥
perhaps you can achieve it using label=T() e.g. table.field.label = T('Field') best regards, stifan -- 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 r

Re: [web2py] Is it possible to translate data in SQLFORM.grid?

2018-06-18 Thread Bruno Duarte Ramos
Hi Anthony, actually I just want to translate the form on my view, like my view was {{=T(form)}}. 2018-06-15 10:09 GMT-03:00 Anthony : > On Thursday, June 14, 2018 at 10:37:55 AM UTC-4, Bruno Duarte Ramos wrote: >> >> Hello, >> >> Is is possible translate a data in a SQLFORM? >> >> Where my contr

Re: [web2py] Re: how do i import a module in my controller?

2018-06-18 Thread elisha bere
python 3 is already installed on my computer On 18 June 2018 at 13:08, Anthony wrote: > On Monday, June 18, 2018 at 6:56:30 AM UTC-4, elisha bere wrote: >> >> i am using python 2 i guess , i do not know how i can use python 3 >> > > http.client is Python 3 only (it is called httplib in Python 2

Re: [web2py] Re: how do i import a module in my controller?

2018-06-18 Thread Anthony
On Monday, June 18, 2018 at 6:56:30 AM UTC-4, elisha bere wrote: > > i am using python 2 i guess , i do not know how i can use python 3 > http.client is Python 3 only (it is called httplib in Python 2). Are you sure that's the module you want -- the Python docs note that it is not typically used

Re: [web2py] Re: how do i import a module in my controller?

2018-06-18 Thread elisha bere
i am using python 2 i guess , i do not know how i can use python 3 On 18 June 2018 at 12:52, Anthony wrote: > Are you using Python 2 or Python 3? What does your import statement look > like? > > Anthony > > On Monday, June 18, 2018 at 3:41:07 AM UTC-4, elisha bere wrote: >> >> i want to import h

[web2py] Re: how do i import a module in my controller?

2018-06-18 Thread Anthony
Are you using Python 2 or Python 3? What does your import statement look like? Anthony On Monday, June 18, 2018 at 3:41:07 AM UTC-4, elisha bere wrote: > > i want to import http.client and it it giving me an error 'exceptions.ImportError'> (ImportError("Cannot import module > 'applications.fpr

[web2py] HOW DO I SET UP EMAIL RESET SETTIONGS IN MY MODELS ?

2018-06-18 Thread elisha bere
# create all tables needed by auth, maybe add a list of extra fields # - auth.settings.extra_fields['auth_user'] = [] auth.define_tables(username=False, signature=False) # -

[web2py] Re: Geolocation: how to execute js script (navigator.geolocation, ecc) before controller code?

2018-06-18 Thread Fabio Ceccarani
Thanks Donald, I will look itseem very interesting. Fabio Il giorno domenica 17 giugno 2018 23:02:08 UTC+2, Donald McClymont ha scritto: > > You could have a look at this - > https://github.com/DonaldMcC/gdms/blob/master/views/default/user.html > > It integrates a javascript geolocation plu

[web2py] how do i import a module in my controller?

2018-06-18 Thread elisha bere
i want to import http.client and it it giving me an error (ImportError("Cannot import module 'applications.fproject.modules.http'",), ) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/is

Re: [web2py] Re: Making my custom layouts

2018-06-18 Thread elisha bere
ok thank you On 15 June 2018 at 04:03, Massimo Di Pierro wrote: > Look also the layout that comes with the welcome app (layout.html). Look > at the {{}} tags in there. Than take any web page you want and add the > same {{...}} tags. > {{include}} is the most important as it determine the inc