Re: [web2py] Re: DAL reference to table define after

2018-12-14 Thread António Ramos
Nop :) Em qui, 13 de dez de 2018 às 17:02, Leonel Câmara escreveu: > Are you not using lazy tables? > > -- > 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 Issu

[web2py] no-email edit in profile

2018-12-14 Thread Simon Riek
Hello everyone, i recently updated from 2.16.x to 2.17.2. A commit in April introduced "table_user['email'].writable = False" into the profile form of Auth. Since I need the email to be editable I have to implement my own profile form just for this single line. Wouldn't it make sense to cont

[web2py] Issue with login_bare and custom tables

2018-12-14 Thread Ben Duncan
Can someone review and possible add this to a merge if accepted: Issue Custom auth tables break login_bare: def login_bare(self, username, password, ident = None): """ Logins user as specified by username (or email) and password If you use a custom auth user table and

Re: [web2py] lgoin_bare WTF???

2018-12-14 Thread Richard Vézina
I would suggest you to use the new way of customizing auth tables : """ The simplest way is to add extra fields: ## after auth = Auth(db) auth.settings.extra_fields['auth_user']= [ Field('address'), Field('city'), Field('zip'), Field('phone')] ## before auth.define_tables(username=True)

Re: [web2py] Re: Bug in tools.py

2018-12-14 Thread Richard Vézina
Note that import string if it would be necessary would have to be deal with in _compat module where web2py sort out compatibility issue between python2 and 3 : https://github.com/web2py/web2py/blob/master/gluon/_compat.py I am pretty sure the .strip() problem you describe would had be sorted since

[web2py] Need to integrate paytm payment gateway in my app

2018-12-14 Thread Arindam Dasgupta
Hi, I need to integrate the paytm payment gateway in my application . For that I have already created an account and have for the test api and production api details. Test API details include : Test Merchant ID Test Account Secret Key Production API details include : Merchant ID Merchant Key Websit

Re: [web2py] How do I import Libraries in Web2py

2018-12-14 Thread Arindam Dasgupta
Hi, I am takling about how to install libraries in python anywhere cloud just like I would open command prompt in my local machine and use the command "python -m pip install XXX" in order to install a certain package locally. Where do I do the same thing after logging in to www.pythonanywhere.com?

[web2py] Re: no-email edit in profile

2018-12-14 Thread Leonel Câmara
You can have my function. I think this problem was caused by CAS, but there were other problems, namely that it would not check the new email again if it required verification. Anyway you can have my function. def change_email(): from gluon.utils import web2py_uuid from gluon.tools impor

Re: [web2py] How do I import Libraries in Web2py

2018-12-14 Thread Ben Duncan
https://help.pythonanywhere.com/pages/InstallingNewModules/ You will have to use a bash console ... *Ben Duncan* DBA / Chief Software Architect Mississippi State Supreme Court Electronic Filing Division On Fri, Dec 14, 2018 at 10:10 AM Arindam Dasgupta wrote: > Hi, > I am takling about how to

Re: [web2py] How do I import Libraries in Web2py

2018-12-14 Thread Arindam Dasgupta
Thanks Ben, thats exactly what I was asking for. Best Regards, Arindam On Dec 14, 2018 10:08 PM, "Ben Duncan" wrote: > https://help.pythonanywhere.com/pages/InstallingNewModules/ > > You will have to use a bash console ... > > *Ben Duncan* > DBA / Chief Software Architect > Mississippi State Su

Re: [web2py] Need to integrate paytm payment gateway in my app

2018-12-14 Thread sandeep patel
@Arindam, I have made a PayuMoney payment gateway for web2py apps. if you need help on that please let me know. Thanks SP On Fri, Dec 14, 2018 at 9:36 PM Arindam Dasgupta wrote: > Hi, > I need to integrate the paytm payment gateway in my application . For that > I have already created an accou

[web2py] Re: Need to integrate paytm payment gateway in my app

2018-12-14 Thread Dave S
On Friday, December 14, 2018 at 8:06:18 AM UTC-8, Arindam Dasgupta wrote: > > Hi, > I need to integrate the paytm payment gateway in my application . For that > I have already created an account and have for the test api and production > api details. > Test API details include : > Test Merchant

[web2py] ¿How to show in comment property string from a function?

2018-12-14 Thread isi_jca
Hi! Is possible to get data (a string) in this mammer? tpaciente.idarticulo.comment= lambda row : myfunction(row.idarticulo) In the grid form from view, it is show " at 0x7f604fce2aa0>" Can anybody help me?. Thanks in advanced. -- Resources: - http://web2py.com - http://web2py.com/book (Do

[web2py] Re: Need to integrate paytm payment gateway in my app

2018-12-14 Thread Dave S
On Friday, December 14, 2018 at 1:47:26 PM UTC-8, Dave S wrote: > > > > On Friday, December 14, 2018 at 8:06:18 AM UTC-8, Arindam Dasgupta wrote: >> >> Hi, >> I need to integrate the paytm payment gateway in my application . For >> that I have already created an account and have for the test api

[web2py] Re: ¿How to show in comment property string from a function?

2018-12-14 Thread Dave S
On Friday, December 14, 2018 at 1:52:54 PM UTC-8, isi_jca wrote: > > Hi! > > Is possible to get data (a string) in this mammer? > > > tpaciente.idarticulo.comment= lambda row : myfunction(row.idarticulo) > > In the grid form from view, it is show " at > 0x7f604fce2aa0>" > > Can anybody help me?.

Re: [web2py] lgoin_bare WTF???

2018-12-14 Thread Anthony
You should not define custom Auth tables that break the existing Auth functionality. If you need a "group" table to be used outside the context of Auth, then simply name it something other than "auth_group". Otherwise, keep the standard auth_group fields and simply add extra fields that you nee

[web2py] Re: Issue with login_bare and custom tables

2018-12-14 Thread Anthony
This should not be necessary. If you need to customize Auth tables, you must do so in a manner that does not break existing Auth functionality. Note, the problem you are having would not be limited to login_bare, but to the standard .login() method as well. We do not want to complicate the Auth

[web2py] performance / linked tables / smartgrid

2018-12-14 Thread Jota Pin
Dear all, [I posted my first message some days ago and did not saw it appearing on the list, so I re-post, sorry] I am developing a small-scale app, basically for +-15 users with tables around 1000-1 lines, except for one: post-codes (50). The app works fine with up to ~5000 postco

[web2py] DATE & TIME FORMAT | How To?

2018-12-14 Thread womanium
How to have custom Date & Time Picker and formats on the View side? 24 Hour Clock > *12 Hour Clock (AM/PM)* Time Format > only *HH:MM* Is it possible to set the format in the Models file or specify in the Controller? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: DATE & TIME FORMAT | How To?

2018-12-14 Thread 黄祥
had you try format in validators ? *ref:* http://web2py.com/books/default/chapter/29/07/forms-and-validators#Date-and-time-validators best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.go

[web2py] Re: performance / linked tables / smartgrid

2018-12-14 Thread Anthony
What is db.t_codespostaux.f_representationfield (it's not in your model), and most importantly, have you created a database index on that field (will help with the autocomplete search)? Exactly at what point does the process crash -- as soon as you load the addresses_manage page? If so, I suspe

Re: [web2py] Re: Need to integrate paytm payment gateway in my app

2018-12-14 Thread Arindam Dasgupta
Hi Sandeep, I chose paytm gateway because I know it will work in India. Also I did not find resources for PayUMoney in the internet. Please share with me how to integrate payumoney in web2py apps . It will do perfectly fine for me. I appreciate your generous help truly. Best Regards, Arindam On S

Re: [web2py] Re: Need to integrate paytm payment gateway in my app

2018-12-14 Thread Arindam Dasgupta
@Dave , I learnt that stripe dont support payments from India. So Stripe will not be useful for me. I also tried for Google pay , but the information provided in the manual you mentioned above is not sufficient. I already made a merchant account in google (https://merchants.google.com) and I even h

[web2py] Web2py- PayUMoney Secure Online Payment Gateway.

2018-12-14 Thread sandeep patel
Hello All, I have customized PayUmoney python SDK for the Web2py user. This app can in integrate with any web2py app and customize according to your needs. Thanks Sandeep Patel -- Resources: - http://web2py.com - htt

Re: [web2py] Re: Need to integrate paytm payment gateway in my app

2018-12-14 Thread sandeep patel
@Arindam Please go through this . On Sat, Dec 15, 2018 at 9:06 AM Arindam Dasgupta wrote: > @Dave , I learnt that stripe dont support payments from India. So Stripe > will not be useful for me. I also tried for Google pay , but the >