[web2py] Redirect from web2py to flask only if user is logged in

2020-11-16 Thread clara
web2py. This is more of a sysadmin question, but if someone can give me some hint on this, I would really appreciate it. Thanks, Clara -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py

[web2py] web2py crash - Pickle

2020-09-15 Thread clara
d cookies. I read the thread on this but didn't find a solution. I am using Python 3.7.3 Web2py: Version 2.18.5-stable+timestamp.2019.04.08.04.22.03 OS: Windows 10 Any help will be really appreciated. I need to get the server back up. Thanks, Clara -- Resources: - http://web2py.com - http://web2py.c

Re: [web2py] Re: Session / Originating IP

2020-07-08 Thread Clara Ferrando
Hello José, Thanks for your reply. I think you are right. I was somewhat confused because on mobile I notice the web2py application asks me to re-login almost daily. Not sure why yet... Regards, Clara On Wed, Jul 8, 2020 at 4:59 PM Jose C wrote: > I haven't looked into the code specifica

[web2py] Session / Originating IP

2020-07-07 Thread clara
, but my mobile operator has assigned me a different IP address, would web2py "re-use" yesterday's session ? Or start a brand-new session? In other words, what role does IP information play in the session database, is it only informative? Thanks in advance for your help, Clara --

[web2py] CAS - Apache - SSL error

2020-05-30 Thread clara
, Clara -- 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&q

[web2py] Re: py4web translations

2020-02-18 Thread clara
) > # in view [[=T(message)]] > > or > > @unauthenticated > def index(): > return dict(message="hello world") > > and it is all automatic. Need the latest common.py from scaffold. > > > On Monday, 17 February 2020 19:08:05 UTC-8, clara wrote: >>

[web2py] py4web translations

2020-02-17 Thread clara
Hi, I just tried using translations in a template in py4web: [[ =T('some text') ]] but it doesn't work. I tried importing T in the template but then I got: "No module named 'yatl.common'" Probably I am overlooking something... Any help will be appreciated! Thanks, Clara --

[web2py] maintain session accross applications / LDAP

2019-09-26 Thread clara
guidance? Thanks in advance, clara -- 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] Splitting long controller file

2019-08-21 Thread clara
Hello, Maybe this may sound trivial (bear with me, please) but here is my question: I have a long controller module that I would want to split up or make more manageable . Most of the functions in this controllers are controller functions called from the frontend. Now, I guess I could

Re: [web2py] Re: SSL on Windows / Python 3.6.5 not working

2019-04-23 Thread Clara Ferrando
Hello Joao, Thanks for your reply. I tried it, disabled Windows defender but I am still getting the same error... It does not happen with Python 2.7 though. Maybe Python 3 socket module could be causing the issue? I am open to all suggestions. Thanks, Clara On Tue, Apr 23, 2019, 5:52 AM João

[web2py] SSL on Windows / Python 3.6.5 not working

2019-04-22 Thread clara
-a passwException in thread Thread-2: Traceback (most recent call last): File "c:\Python36\Lib\threading.py", line 916, in _bootstrap_inner self.run() File "C:\Users\Clara\projects\connectcap2\web2py\gluon\rocket.py", line 1268, in run conn = Connection(*conn)

[web2py] Re: Customize multiselect widget

2016-08-18 Thread clara
Hello Donald, I just wanted you to know that I integrated the your code and it all worked out of the box. I also added some JS to initialize the checkboxes and it is all working fine. Many thanks again! Clara El martes, 16 de agosto de 2016, 20:14:18 (UTC-3), Donald McClymont escribió: >

Re: [web2py] Re: Customize multiselect widget

2016-08-16 Thread Clara Ferrando
Hello Donald, Thanks a lot for your detailed answer! I am going to try it; it seems to be exactly what I need and from your instructions, it should be simple to set up. I really appreciate your help! :-) Best regards, Clara On Tue, Aug 16, 2016 at 8:14 PM, Donald McClymont <donal

[web2py] Customize multiselect widget

2016-08-13 Thread clara
er, I would also need to "append" the widget information to the submit data. I will appreciate any hints or suggestions on this. Best regards, Clara -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code

[web2py] Re: Request vars - basic question

2015-02-21 Thread clara
mentioned simplejson in the thread and that made me test simplejson import instead. Thanks all for help and ideas! It is awesome to get such a group of experts coming out to help :) Best, Clara . El viernes, 20 de febrero de 2015, 15:19:55 (UTC-3), clara escribió: Hello, I am making

[web2py] Re: Request vars - basic question

2015-02-20 Thread clara
will keep looking into it. If anyone has any ideas or tests, I will try them. Thanks again, C. El viernes, 20 de febrero de 2015, 15:19:55 (UTC-3), clara escribió: Hello, I am making an Ajax call and calling a controller with the json data I need to process in the controller. The problem I am

[web2py] Request vars - basic question

2015-02-20 Thread clara
object anymore so a loads method will fail. It is a string object and if I try to eval(it) I get an error. So even when the data is right there I can not use it in the controller. Any ideas will be more than welcome! (The controller and its print outs are shown bellow.) Thanks, Clara def test

Re: [web2py] Re: Best and simpler approach to Inline editing / deleting / appending (jqGrid, Jeditable,etc)

2015-02-13 Thread Clara Ferrando
Hello, Thanks all for the support and suggestions. I was able to get the slice using Jqgrid working ( http://www.web2pyslices.com/slice/show/1714/jqgrid-viewing-and-updating-data). But I will take a look at the Massimo and Michael suggestions. Thanks again, Clara On Feb 11, 2015 1:25 PM

[web2py] Best and simpler approach to Inline editing / deleting / appending (jqGrid, Jeditable,etc)

2015-02-07 Thread clara
to some compact solution which I am not sure it exist that would have the functionality of current *SQLFORM.smartgrid* but in addition to it: inline editable fields and deletable/appendable records. I will greatly appreciate any input on this. Best regards, Clara -- Resources: - http

[web2py] Re: Component with argument example

2014-12-15 Thread clara
(the owner ID, for the example model) to the component. Thanks, Clara El domingo, 14 de diciembre de 2014 23:43:24 UTC-3, Anthony escribió: The grid makes use of URL args, so if the base URL of the grid action also includes args, you must tell the grid to preserve those extra-grid args via its

[web2py] Re: Component with argument example

2014-12-15 Thread clara
) updates to the largest ID (it looks like the last grid in the view). If I refresh the view, everything is in order. Do I need to do something else? Could this be a bug? I can send the code in if needed. Thanks again for the great support. Clara El lunes, 15 de diciembre de 2014 12:19:36 UTC-3

Re: [web2py] Re: Component with argument example

2014-12-15 Thread Clara Ferrando
('default','pet_component.load',args=ids[i], ajax=True)}} {{pass}} Let me know if you find something. Thanks a lot. Clara On Mon, Dec 15, 2014 at 2:50 PM, Anthony abasta...@gmail.com wrote: Probably need to see the code. On Monday, December 15, 2014 12:36:16 PM UTC-5, clara wrote: Hello

Re: [web2py] Re: Component with argument example

2014-12-15 Thread clara
(q,args=request.args[:1],csv=False*,formname = form+str(itemid)*) return locals() And this solved the problem! Now when I add a record to any of the grids and save it, the grid reloads filtering by owner and and the new record is shown . Thanks for the great support! Clara El lunes, 15 de

[web2py] Component with argument example

2014-12-14 Thread clara
the component in another action adding to the action's HTML: {{=LOAD('default','component_action.load',args=2, ajax=True)}} Is there anything awefully wrong in this? I will appreciate your help. Thanks! Clara -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http

[web2py] Re: Custom validator - pass record id to validator for update operations

2014-12-02 Thread clara
Hello Andrew, It does make sense! I was actually passing one of the record fields to my validator instead of the record ID I could just have passed the id and then have access to any field in the record. Thanks a lot ! Clara El lunes, 1 de diciembre de 2014 12:20:11 UTC-3, Andrew Buchan

[web2py] Custom validator - pass record id to validator for update operations

2014-12-01 Thread clara
the actual record being updated to adjust the logic in this cases. I could get this information through ._before_update method, but how would I pass it to the validator ? I am not sure if this is the best way to do it. I will appreciate any help on this matter! Best regards, Clara -- Resources

[web2py] Re: pythonanywhere

2014-11-11 Thread clara
Hello Dave. No, these CDNs are outside the hosting domain and hence are not fetched by my site if served as https. Regards, Clara El lunes, 10 de noviembre de 2014 23:22:00 UTC-3, Dave S escribió: On Monday, November 10, 2014 5:12:57 PM UTC-8, clara wrote: Hello Niphlod, I guess I

[web2py] Re: Web2py on Pythonanywhere

2014-11-11 Thread clara
Hello Giles, Thanks for this reply! So there was somthing on Pythonanywhere's side that forced https rather than http I cleared my cache and things are working properly now. Thanks a lot!! Clara El martes, 11 de noviembre de 2014 08:29:08 UTC-3, Giles Thomas escribió: Hi

[web2py] Re: Web2py on Pythonanywhere

2014-11-10 Thread clara
accessing the site. I look forward to your comments. Thanks! Clara El martes, 21 de octubre de 2014 11:58:45 UTC-3, David Ripplinger escribió: Are you comfortable posting a link to your website so I can see if it also loads as https on my end? On Thursday, October 9, 2014 3:33:37 PM UTC-4, clara

[web2py] Re: Web2py on Pythonanywhere

2014-11-10 Thread clara
On the other hand, on another web2py I built long ago if I try: http://kiki.pythonanywhere.com/ it remains as http and if I try: https://kiki.pythonanywhere.com/ it remains as https, that is the request is kept as is. Thanks in advance for any help. Regards to all, Clara El lunes, 10 de

[web2py] Re: Web2py on Pythonanywhere

2014-11-10 Thread clara
always end up getting the secure site back. Could this be related to the browser settings? Thanks again, Clara PS: I am relieved to know that both http and https are served in Pythonanywere El lunes, 10 de noviembre de 2014 11:03:51 UTC-3, Niphlod escribió: the first link, albeit printed

[web2py] Re: pythonanywhere

2014-11-10 Thread clara
Hello Niphlod, I guess I missed your message before. The reason I want to avoid https is that I can not load external javascript files from CDNs that make them available via http. Does this make sense to you? Is there any work around for this? Thanks! Clara El viernes, 10 de octubre de

Re: [web2py] Re: bootswatch theme - how to do it

2014-10-14 Thread clara
css required btn-large Thanks a lot for the support, Clara El sábado, 11 de octubre de 2014 18:28:45 UTC-3, Russ King escribió: This process worked fine for me - I haven't noted anything not rendering as expected. My only known issue is with the limited options for forms styling. I'd

[web2py] bootswatch theme - how to do it

2014-10-11 Thread clara
as shown in the bootswatch theme? I know this has been asked before but I haven't been able to sort this out. Please be patient :) Thanks in advance, Clara PS: The framework is awesome -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

Re: [web2py] Re: bootswatch theme - how to do it

2014-10-11 Thread Clara Ferrando
. Am I missing something? Looking forward to your comments! Clara On Oct 11, 2014 12:41 PM, Niphlod niph...@gmail.com wrote: What is not rendered as expected in particular ? On Saturday, October 11, 2014 4:19:04 PM UTC+2, clara wrote: Hello, I am not a css expert and I always stumble upon

[web2py] pythonanywhere

2014-10-09 Thread clara
Hello, I realize that when deploying simple web2py applications on pythonanywhere, they get deployed via HTTPS so it is served as https://myuser.pythonanywhere.com. Is there any way to avoid this? I have not changed any default setting in web2py. Thanks in advance, Clara -- Resources

[web2py] Web2py on Pythonanywhere

2014-10-09 Thread clara
: # request.requires_https() in db.py. Looking at older loaded applications I can see that they are served as http applications. I really need the web2py applications in Pythonanywhere to not require SSL. Any help on this? Thank you! Clara -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Jquery Mobile

2014-02-25 Thread clara
. Has anyone faced or solved this same problem? I will appreciate any help. Thanks, Clara -- 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

[web2py] Jquery Mobile

2014-02-24 Thread clara
. Has anyone faced or solved this same problem? I will appreciate any help. Thanks, Clara -- 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