[web2py] Re: Login - message "invalid email" - on mobil
Hi Massimo sorry for the late response. I found the error. It's the smartphone ... not me :-) As usual the smartphone will propose the email address when I start to type and as usual I take it. But, I don't know why, at the end of the address is a space. Looks like the login procedure not accepts a email address with space. A email address with space in the middle of the text is invalid. But I think it would be nice to omit spaces at the end or at the start. Best regards Beat Am Samstag, 22. Oktober 2016 01:37:54 UTC+2 schrieb Massimo Di Pierro: > > I have no idea. I do not see why login would be different from a > smartphone. I use it all the time and it works fine. Perhaps capitalization > of the email? > > > On Wednesday, 19 October 2016 07:07:24 UTC-5, Beat Kohler wrote: >> >> Hi Massimo >> Thanks for your response. But I not understand your answer. Perhaps my >> question was not clear. Login with the email address works fine on a >> desktop. Same URL - same login procedure on a smartphone I get the message >> "invalid email" and this as mentioned on an pythomanywhere published >> application. >> Regards >> Beat >> >> -- 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 Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: Login - message "invalid email" - on mobil
Hi Massimo Thanks for your response. But I not understand your answer. Perhaps my question was not clear. Login with the email address works fine on a desktop. Same URL - same login procedure on a smartphone I get the message "invalid email" and this as mentioned on an pythomanywhere published application. Regards Beat -- 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 Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Login - message "invalid email" - on mobil
Hi guys I published a POC app on pythonanywhere.com Authentification procedure works fine on the desktop. But on a mobil I got the message "Invalid email" even the email address is correct and already registered . Anybody has an idea what's wrong? Thanks for your help! Beat -- 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 Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] "invalid email" for mobile login
Hi experts! On the login screen I get the message "invalid email" for a correct email address. But this only when I try to login with my mobile phone. This even in our local WiFi. Same login procedure is working properly on the desktop. The email address is already registred (auth.user) What goes wrong. Thanks for any help. Beat -- 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 Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: SMARTGRID and linked_tables - no buttons to edit, delete - only view
Thanks Anthony ... yes - authorization topic... how easy .. Best regards Beat Am Samstag, 6. Juni 2015 05:27:17 UTC+2 schrieb Massimo Di Pierro: and the latter option is very unsafe. On Friday, 5 June 2015 09:32:13 UTC-5, Anthony wrote: You either have to be logged in or set user_signature=False. Anthony On Friday, June 5, 2015 at 12:26:00 AM UTC-4, Beat Kohler wrote: Hey guys! on a SMARTGRID I added a linked_table argument. ... no I have only the view button left. No way to modify neither the parent nor the child. What goes wrong.. sorry, what I made wrong? Coding: grid = SQLFORM.smartgrid(db.CUSTOMER, linked_tables=['CUST_PEOPLE'], editable=True) (the editable argument I added later ... no effect) Table definitions: db.define_table(CUSTOMER, Field(CUSTNAME, string, length=30, label=T(Customer Name), notnull=True, default=None), Field(DESCRIPTION, text, label=T(Customer Description), notnull=True, default=None), Field(COMMUNICATION, text, label=T(Access Description), notnull=True, default=None), Field(LOGINNET, text, label=T(Login Network), notnull=True, default=None), Field(DOCU, upload, label=T(Documentation Access)), Field(DOCU2, upload, label=T(Documentation Access 2)), Field(DOCU3, upload, label=T(Documentation Access 3)), migrate=True, format='%(CUSTNAME)s') db.define_table(CUST_PEOPLE, Field(id_CUSTOMER, db.CUSTOMER), Field(NAME, string, label=T(Name of Contact), length=80, notnull=True, default=None), Field(JOB_POSITION, string, label=T(Job Position), length=80, notnull=True, default=None), Field(EMAIL, string, length=30, label=T(Email), notnull=True, default=None, requires=IS_EMAIL()), Field(TEL, string, length=80, label=T(Telephone), notnull=True, default=None), migrate=True) Thanks for your help Beat -- 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 Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] SMARTGRID wirh linked_tables shows only the view buttons
Hy guys! I use a SMARTGRID with a linked_table argument. But only the view button is displayed on item level. This on level parent and child. Even adding the argument editable=True has no impact - anyway this is already default. Thanks for help! Beat -- 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 Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] SMARTGRID and linked_tables - no buttons to edit, delete - only view
Hey guys! on a SMARTGRID I added a linked_table argument. ... no I have only the view button left. No way to modify neither the parent nor the child. What goes wrong.. sorry, what I made wrong? Coding: grid = SQLFORM.smartgrid(db.CUSTOMER, linked_tables=['CUST_PEOPLE'], editable=True) (the editable argument I added later ... no effect) Table definitions: db.define_table(CUSTOMER, Field(CUSTNAME, string, length=30, label=T(Customer Name), notnull=True, default=None), Field(DESCRIPTION, text, label=T(Customer Description), notnull=True, default=None), Field(COMMUNICATION, text, label=T(Access Description), notnull=True, default=None), Field(LOGINNET, text, label=T(Login Network), notnull=True, default=None), Field(DOCU, upload, label=T(Documentation Access)), Field(DOCU2, upload, label=T(Documentation Access 2)), Field(DOCU3, upload, label=T(Documentation Access 3)), migrate=True, format='%(CUSTNAME)s') db.define_table(CUST_PEOPLE, Field(id_CUSTOMER, db.CUSTOMER), Field(NAME, string, label=T(Name of Contact), length=80, notnull=True, default=None), Field(JOB_POSITION, string, label=T(Job Position), length=80, notnull=True, default=None), Field(EMAIL, string, length=30, label=T(Email), notnull=True, default=None, requires=IS_EMAIL()), Field(TEL, string, length=80, label=T(Telephone), notnull=True, default=None), migrate=True) Thanks for your help Beat -- 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 Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: Foreign key
Hi Derek... you are right ... this is it.. works as designed: Just modified the definition for the MATERIALS; added format...: db.define_table(MATERIALS, Field http://127.0.0.1:8000/examples/global/vars/Field(MATNR, string, length=18, notnull=True, default=None), Field http://127.0.0.1:8000/examples/global/vars/Field(MAKTX, string, length=30, notnull=True, default=None), Field http://127.0.0.1:8000/examples/global/vars/Field(MEINS, string, length=5, notnull=True, default=None), Field http://127.0.0.1:8000/examples/global/vars/Field(WERKS, string, length=5, notnull=True, default=None*), format='%(MATNR)s')* Thanks a lot Beat Am Mittwoch, 30. April 2014 20:02:08 UTC+2 schrieb Derek: According to the documentation, you can't. Have you tried using a 'represent' on the 'materials' table to show the matnr instead of the id? On Wednesday, April 30, 2014 7:47:30 AM UTC-7, Beat Kohler wrote: I am on the way to develop a small purchase requisition application. The main idea is: the user select from a list of materials a material number and enter the quantity. Finally he will confirm his requisition and send it to a external system. To create the purchase requisitions I use a simple smartgrid. My problem is now that in the requisition table instead of the material number only the id of the related table is stored. Here my definitions: *db.py* *- Materials* db.define_table(MATERIALS, Field(MATNR, string, length=18, notnull=True, default=None), and more *- Purchase requistions* db.define_table(BANFTEMP, Field(Pippo, db.auth_user, default=auth.user_id, writable=False, update=auth.user_id), * Field(MATNR_MATERIALS, db.MATERIALS, default=db.MATERIALS.MATNR, update=db.MATERIALS.MATNR)*, . and more .. db.BANFTEMP.MATNR_MATERIALS.requires=IS_IN_DB(db, db.MATERIALS.id, '%(MATNR)s') *default.py* grid = SQLFORM.grid(db.BANFTEMP) How I can convince WEB2PY to store the MATNR and not the id in BANFTEMP.MATNR_MATERIALS ?? Any help is welcome an a free beer offered (if you stay in Switzerland :-) ) Beat -- 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 Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Foreign key
I am on the way to develop a small purchase requisition application. The main idea is: the user select from a list of materials a material number and enter the quantity. Finally he will confirm his requisition and send it to a external system. To create the purchase requisitions I use a simple smartgrid. My problem is now that in the requisition table instead of the material number only the id of the related table is stored. Here my definitions: *db.py* *- Materials* db.define_table(MATERIALS, Field(MATNR, string, length=18, notnull=True, default=None), and more *- Purchase requistions* db.define_table(BANFTEMP, Field(Pippo, db.auth_user, default=auth.user_id, writable=False, update=auth.user_id), * Field(MATNR_MATERIALS, db.MATERIALS, default=db.MATERIALS.MATNR, update=db.MATERIALS.MATNR)*, . and more .. db.BANFTEMP.MATNR_MATERIALS.requires=IS_IN_DB(db, db.MATERIALS.id, '%(MATNR)s') *default.py* grid = SQLFORM.grid(db.BANFTEMP) How I can convince WEB2PY to store the MATNR and not the id in BANFTEMP.MATNR_MATERIALS ?? Any help is welcome an a free beer offered (if you stay in Switzerland :-) ) Beat -- 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 Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Import of a package
I installed a package (not a single module) with easy_install. The installation works fine with Python (2.7). The package can be imported and used without any problems. Inside web2py the import failed: cannot import module. As a workaround I placed the package folder in the site-packages folder. But still no success.. Web2py-Version: 2.8.2 Plattform:windows 7 Python Version: 2.7 What is wrong in the paradies?? Thanks for any help Beat -- 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 Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.