[web2py] Re: Help with memory leak

2016-06-21 Thread Julian Sanchez
Both cases it's done from source Cheers, Julian On Monday, June 20, 2016 at 6:27:05 PM UTC-5, Anthony wrote: > > In both cases, are you running Python from source, or is the GUI case with > the Mac binary? > > Anthony > > On Monday, June 20, 2016 at 7:22:08 PM UTC-4, Julian Sanchez wrote: >> >>

Re: [web2py] Re: rss and unicode

2016-06-21 Thread Sepehr Mohamadi
I upgraded my Python to 2.7.11 and the problem solved! This might be a bug! On Tuesday, June 21, 2016 at 11:14:56 AM UTC+4:30, Kiran Subbaraman wrote: > > That's the expected output. And also the code that you executed is the > crux of the rss(feed) encoding code. > So, am not sure why you are

[web2py] auth.register()

2016-06-21 Thread 'Annet' via web2py-users
I have a custom register function: def myregister(): response.view = 'default/myregister.html' form = auth.register() if form.validate(): # my custom code elif form.errors: get_flash(response, None, 'danger', 'error') elif not response.flash: get_flash

Re: [web2py] Re: rss and unicode

2016-06-21 Thread Kiran Subbaraman
Good to know, this is sorted out. Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Tue, 21-06-2016 4:25 PM, Sepehr Mohamadi wrote: I upgraded my Python to 2.7.11 and the problem solved! This might be a bug! On Tuesday, June 21, 2016 at 11:14

[web2py] auth.register()

2016-06-21 Thread Anthony
.register already calls .validate - you cannot call it twice (by design, the CSRF token survives only one validation). Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/lis

[web2py] multiple forms components issues

2016-06-21 Thread Richard
Hello, I have a strange issue... I have 2 forms that get append to a page container as component with LOAD()... If I use form alone, they worked properly (only loading single component). But if I append both forms (loading both at the same time), one of my forms don't work properly. What happ

[web2py] multiple forms components issues

2016-06-21 Thread Anthony
Code please. -- 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" gro

[web2py] Re: multiple forms components issues

2016-06-21 Thread Richard
As you which!! # Controllers Form 1 def phone_numbers_form(): """ phone_numbers_form() allow to create/update/display phone(s) number(s). Args (vars): readonlyform: If set to "True" the function only display phones numbers in row, no create form and buttons

Re: [web2py] Open a form popup only some user registered

2016-06-21 Thread Richard Vézina
You will need websocket_messaging/tornado for doing such a thing... Richard On Tue, Jun 21, 2016 at 12:21 AM, 'FERNANDO VILLARROEL' via web2py-users < web2py@googlegroups.com> wrote: > Dear All. > > I hope you could me explain how i can do the follow idea: > > If a have a user registered like us

[web2py] Re: 'Query' object has no attribute 'tablename' when using show_if

2016-06-21 Thread Bernardo Leon
Thank you anthony, it worked! El lunes, 20 de junio de 2016, 18:25:13 (UTC-5), Anthony escribió: > > This is not the intended purpose of show_if. It is only used to > dynamically hide or show fields in the form, based on the values of other > fields in the form (so, the query must refer to other

[web2py] Re: run time error - auth_user.table appears corrupted

2016-06-21 Thread Dave S
On Monday, June 20, 2016 at 10:56:05 AM UTC-7, Dave S wrote: > > > > On Saturday, June 18, 2016 at 5:47:42 AM UTC-7, DNeuman wrote: >> >> I thought I had the same problem, so followed the advice - I have done >> this, and now get the error: >> >> OperationalError: table auth_user already exists

Re: [web2py] Open a form popup only some user registered

2016-06-21 Thread 'Fernando Villarroel' via web2py-users
Ok Richard Thank you for you answer. Enviado desde mi iPhone > El 21-06-2016, a las 11:25, Richard Vézina > escribió: > > You will need websocket_messaging/tornado for doing such a thing... > > Richard > >> On Tue, Jun 21, 2016 at 12:21 AM, 'FERNANDO VILLARROEL' via web2py-users >> wrote:

[web2py] Re: Pulling hair out on REST Example

2016-06-21 Thread wdtnh
Been swamped with work and haven't had time to get bet back to this. Thanks for the reply. I will definitely try that. I'm assuming this is simply a stupid mistake on my part. On Thursday, June 16, 2016 at 5:26:01 AM UTC-4, pbreit wrote: > > How about trying some code more like in the bo

Re: [web2py] Re: multiple forms components issues

2016-06-21 Thread Richard Vézina
Any clue? On Tue, Jun 21, 2016 at 10:51 AM, Richard wrote: > As you which!! > > # Controllers > Form 1 > def phone_numbers_form(): > """ > phone_numbers_form() allow to create/update/display phone(s) number(s). > > Args (vars): > readonlyform: If set to "True" the function on

[web2py] Re: How to use a web2py application in a modular way, a way that supports update?

2016-06-21 Thread Dominic Mayers
On Tuesday, 21 June 2016 01:27:05 UTC-4, Anthony wrote: > > You make claims about how a "wrapper application" *must* look without >>> demonstrating *why* it must look like that. >>> >> >> Yes and they are not based on any use case. They are based on what seems >> natural. Some times, we have de

[web2py] Redirect to another page

2016-06-21 Thread ktesr123456
Hi I am using {{redirect(URL('GetData'))}}, the result of this view is getting appended to results of calling view, is there a way I can just display only results of redirected view for example if i am calling redirect from view A to view B I am seeing the results of views A and B, please help

[web2py] response.flash hiding check "Prevent this page from creating additional dialogs."

2016-06-21 Thread ktesr123456
Team, how do i disable the checkbox message "Prevent this page from creating additional dialogs", for my requirement i should be able to show the flash message but don't want to give an option for the user to check the message "Prevent this page from creating additional dialogs."" enclosing sc

Re: [web2py] Redirect to another page

2016-06-21 Thread Richard Vézina
Please provide code... I guess you are using component and .load get propagated, but can't be sure... Richard On Tue, Jun 21, 2016 at 4:17 PM, wrote: > Hi > > I am using {{redirect(URL('GetData'))}}, the result of this view is > getting appended to results of calling view, is there a way I can

[web2py] Code changes on live server not showing up

2016-06-21 Thread Marty Jones
I made a few changes on a DigitalOcean server running Web2py + uwsgi + nginx. The changes were to routes.py and to a couple of views. None of these are showing up on the webpage. I tried restarting uwsgi and nginx and even rebooting the VPS altogether, but still the changes don't show up. I als

[web2py] Problem with inserting values read from a text file into mysql database

2016-06-21 Thread Oguz Erkman
Hello, I wrote a module to use the Part of Speech Tagger Hunpos in web2py. The module takes a text file tokenized as one token (word) per line as input and perfectly creates and writes into another text file with one token and its POS (Part of Speech) Tag separated with a tab character in one

[web2py] Re: How to use a web2py application in a modular way, a way that supports update?

2016-06-21 Thread Dominic Mayers
On Tuesday, 21 June 2016 00:20:07 UTC-4, Anthony wrote: > > I'm not saying web2py can easily handle all possible cases, and its > execution model probably does introduce some limitations, but it would be > easier to explore the limitations and possible workarounds with some > concrete example

[web2py] Re: response.flash hiding check "Prevent this page from creating additional dialogs."

2016-06-21 Thread Dave S
On Tuesday, June 21, 2016 at 1:24:59 PM UTC-7, ktesr...@gmail.com wrote: > > Team, > > how do i disable the checkbox message "Prevent this page from creating > additional dialogs", for my requirement i should be able to show the flash > message but don't want to give an option for the user to c

[web2py] Problem with inserting values read from a text file into mysql database

2016-06-21 Thread Anthony
Is this in an application during an http request, or in a script run on it's own? If the latter, you must call db.commit() to commit the inserts. Also, do you get any errors? Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (S

[web2py] Re: How to use a web2py application in a modular way, a way that supports update?

2016-06-21 Thread Dominic Mayers
Perhaps, you already provided the answer: wsgihandler.py is *where* you would call the entry point to your wrapper application (and by the way, it doesn't have to be there -- you could put it anywhere, as long as you tell your web server where it is), but the wrapper application code itself can

[web2py] Re: Problem with inserting values read from a text file into mysql database

2016-06-21 Thread Oguz Erkman
I found the solution and I knew it was a silly mistake. I forgot to add db = current.db at the beginning of the function. Thanks anyway, maybe this answer will help others, there was no other mistake in the code, it works like a charm. 22 Haziran 2016 Çarşamba 01:05:40 UTC+3 tarihinde Oguz Erkman

[web2py] Code changes on live server not showing up

2016-06-21 Thread Anthony
Is your application compiled? -- 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] Re: I am unable to change the hover background color in my menu. How do I do it?

2016-06-21 Thread 'Annet' via web2py-users
Just overwrite the Bootstrap css in your applications css: .navbar-default .navbar-nav > li > a:hover {background-color: #1f2f3f;} Kind regards, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.goog

[web2py] Re: auth.register()

2016-06-21 Thread 'Annet' via web2py-users
Hi Anthony, Thanks for your reply. .register already calls .validate - you cannot call it twice (by design, > the CSRF token survives only one validation). I solved it by replacing form = auth.register() with: form = SQLFORM.factory(db.auth_user, Field('password_two', type='

[web2py] Re: response.flash hiding check "Prevent this page from creating additional dialogs."

2016-06-21 Thread ktesr123456
I want to display a simple message to user like alert in javascript, user will see the message and click on OK to continue On Tuesday, June 21, 2016 at 2:24:59 PM UTC-6, ktesr...@gmail.com wrote: > > Team, > > how do i disable the checkbox message "Prevent this page from creating > additional di

[web2py] Indentation Error

2016-06-21 Thread ktesr123456
Team, I keep getting Indentation error whenever i try to add code in the middle please help how can i resolve this. every time i have to adjust the indentation for all the lines in that controller -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/w

[web2py] Re: auth.register()

2016-06-21 Thread Anthony
Or you could use your original code and just change "if form.validate()" to "if form.accepted". On Wednesday, June 22, 2016 at 12:57:34 AM UTC-4, Annet wrote: > > Hi Anthony, > > Thanks for your reply. > > .register already calls .validate - you cannot call it twice (by design, >> the CSRF token

[web2py] Re: How to use a web2py application in a modular way, a way that supports update?

2016-06-21 Thread Dominic Mayers
On Tuesday, 21 June 2016 00:20:07 UTC-4, Anthony wrote: > > However, for a programmer, the application is what is created when we >> create a new folder in the applications folder. A wrapper application has >> to be an application separated, in terms of its declaration, from the >> wrapped app