[web2py] Re: Invalid password reset

2015-07-19 Thread Massimo Di Pierro
Will get to the bottom of this today. On Sunday, 19 July 2015 10:10:21 UTC-5, wish7c...@gmail.com wrote: > > Same with me... > > Am Mittwoch, 15. Juli 2015 08:42:39 UTC+2 schrieb Annet: >> >> >> This would happen if the user has already clicked the link. >>> >> >> This also happens when clicking t

[web2py] Re: Invalid password reset

2015-07-19 Thread Massimo Di Pierro
We never delete any post. Ever. First posts from new users are moderated so it may take some time before they are approved are you are whitelisted. There have been a few rare cases of posts deleted by google. We think it is a bug. There have been a few occasions of posts deleted by moderated by

[web2py] Re: html syntax error in elif

2015-07-19 Thread Massimo Di Pierro
Because of the way web2py rein dent python code in templates. You have to do {{if deal.name == 'phone +7':}} {{url = URL('to_phone','index')}} {{elif deal.name == 'WALLET':}} {{url = URL('to_wallet','index')}} {{else:}} {{url = URL('to_deal','index', args=[deal.id

[web2py] Re: Integrating web2py with machine learning Text classifier

2015-07-19 Thread Massimo Di Pierro
I assume your classifier has an internal state which you want to maintain and a startup time you want to avoid. If you are running on a single machine with rocket (the built-in web2py server) you can cache that state in ram. For example given class NLP(object): lock = threading.Lock()

[web2py] Re: Field('upload') : problem with file name

2015-07-19 Thread Massimo Di Pierro
This is handled by web2py. The filenames are truncated according to the size of the uploadfield. This defaults to 512. In new versions of windows the make file length has been reduced so you have to do Field(name, 'upload', size=200) and all filenames will be limited to 200 bytes. On Sunday, 1

[web2py] Re: crash - session_pickled = pickle.dumps(self, pickle.HIGHEST_PROTOCOL) on 2.9.11

2015-07-19 Thread Niphlod
but slow as hell. ditch apache. On Monday, July 20, 2015 at 8:14:41 AM UTC+2, ermolaev...@gmail.com wrote: > > in /gluon/globals.py I edit all to pickle.dumps(self) , > pickle.HIGHEST_PROTOCOL) > and then web2py work good > > понедельник, 26 января 2015 г., 12:28:57 UTC+3 пользователь Dmitry

[web2py] Re: Invalid password reset

2015-07-19 Thread wish7code
Is there any specific reason, why my posts were denied As requested, I was providing detailled informations on my setting to reproduce the issue. As everybody on the list, I try to help making web2py better. Deleting posts without comment or reason then seems a litte bit unpolite to me. Che

[web2py] html syntax error in elif

2015-07-19 Thread ermolaev . icreator
syntax error - why? {{if deal.name == 'phone +7': url = URL('to_phone','index')}} {{elif deal.name == 'WALLET': url = URL('to_wallet','index')}} {{else: url = URL('to_deal','index', args=[deal.id])}} Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. Tra

[web2py] Integrating web2py with machine learning Text classifier

2015-07-19 Thread Anshul Goyal
Hi, I have created a text classifier in spyder which classifies text data into certain categories. Now i want to create a web application(i am using web2py based on lot of positive reviews) on top of that. So workflow will be; User enters or types text into a user input box, input is stored in

Re: [web2py] Re: Web2py is "Badly designed framework" and "Does not scale"

2015-07-19 Thread eric cuver
thank you, I tested it works very well with web2py Le dimanche 19 juillet 2015 18:04:11 UTC+2, Anthony a écrit : > > On Sunday, July 19, 2015 at 11:10:19 AM UTC-4, eric cuver wrote: >> >> can we use brython with web2py ? >> > > Sure. Brython simply generates Javascript code that then gets execute

[web2py] Re: Use wkhtmltopdf in web2py

2015-07-19 Thread Ariya Owam-aram
Hi Alessio If you call from Apache then you can call subprocess directly from webserver but in nginx you have to use schedule task. Better to run wkhtmltopdf via schedule task in case of generate pdf or process a report. THIS IS MY CODE: def schedule_task__pdf_render(): # import

[web2py] Re: crash - session_pickled = pickle.dumps(self, pickle.HIGHEST_PROTOCOL) on 2.9.11

2015-07-19 Thread ermolaev . icreator
in /gluon/globals.py I edit all to pickle.dumps(self) , pickle.HIGHEST_PROTOCOL) and then web2py work good понедельник, 26 января 2015 г., 12:28:57 UTC+3 пользователь Dmitry Ermolaev написал: > > solve^^ > replace all pickle.dumps with: > session_pickled = pickle.dumps(self) , pickle.HI

[web2py] Re: logout other user

2015-07-19 Thread Anthony
On Sunday, July 19, 2015 at 5:27:50 PM UTC-4, Alex wrote: > > Is there a way to get the session filename for a user? I don't think going > through all session files will be an option - is it even possible to get > the user who belongs to a session file? > The session filename is not stored anywh

[web2py] Re: logout other user

2015-07-19 Thread Anthony
> > The possibility to block a session while it's logged in would probably > never implemented in the core because of the severe performance hits > associated to check for every request if the user is allowed to log in. > Maybe upon login (or session renew of a logged in user), store the curren

[web2py] Re: Multiples ajax forms (with LOAD). It is possible?

2015-07-19 Thread Anthony
Not sure what's going on. I also tried 2.11.2, though on Windows 8.1 x64 with Python 2.7.6. On Sunday, July 19, 2015 at 4:57:48 PM UTC-4, 黄祥 wrote: > > strange, in my local, > the behaviour make me submit twice for the form in first component (web2py > source version 2.11.2, python 2.7.8, windo

[web2py] Re: Field('upload') : problem with file name

2015-07-19 Thread Scott Hunter
This is not only an issue with Windows; any filesystem with a filename limit (however big) can hit this problem. As this is all being handled by web2py, and the user is selecting the file to upload, where would this "logic" go, and why isn't web2py handling it? - Scott On Saturday, March 16,

[web2py] Re: logout other user

2015-07-19 Thread Alex
Is there a way to get the session filename for a user? I don't think going through all session files will be an option - is it even possible to get the user who belongs to a session file? Checking the blockage on every request also doesn't sound that good. I guess I'll probably check if the use

[web2py] Re: Multiples ajax forms (with LOAD). It is possible?

2015-07-19 Thread 黄祥
strange, in my local, the behaviour make me submit twice for the form in first component (web2py source version 2.11.2, python 2.7.8, windows 7 x64), while i test the same app in pythonanywhere, it didn't make me submit twice for the form in first component (same like yours). already remove th

[web2py] Re: logout other user

2015-07-19 Thread Niphlod
cycle the sessions and delete the ones whose users you'd like to block in a separate process, or implement your own "blockage" in a model that gets checked at every request. The possibility to block a session while it's logged in would probably never implemented in the core because of the severe

[web2py] logout other user

2015-07-19 Thread Alex
Is it possible to logout other users which are currently logged in? I want to temporarly block certain users. I can set the registration_key to 'disabled' so they cannot login anymore. But if a user is already logged in I'd need to delete the session file for this user so he gets automatically

[web2py] Re: AppConfig and Storage

2015-07-19 Thread Alex
it's a clear separation of code and configuration. When you deploy the application on a server you usually have a different database connection string (and maybe other different settings as well), usually even multiple setups for dev, test and so on. Without a configuration file you'd have to c

[web2py] Re: No Access After Ubuntu Upgrade

2015-07-19 Thread Auden RovelleQuartz
I changed Options FollowSymLinks AllowOverride None Require all denied to Options FollowSymLinks AllowOverride None Require all granted in the file /etc/apache2/apache2.conf seemed to resolve the issue :) On Sunday, July 19, 2015 at 9:38:48 AM UTC-5, Auden RovelleQuartz wrote: > > all wa

[web2py] Re: crash - session_pickled = pickle.dumps(self, pickle.HIGHEST_PROTOCOL) on 2.9.11

2015-07-19 Thread ermolaev . icreator
This not work in this case will be work HTTP or HTTPS request only - that will be requested to server first If a first request to the server after restart it was HTTP - then all HTTPS request will raise error If a first request to the server after restart it was HTTPS - then all HTTP request

Re: [web2py] Re: Web2py is "Badly designed framework" and "Does not scale"

2015-07-19 Thread António Ramos
web2bry! 2015-07-19 17:04 GMT+01:00 Anthony : > On Sunday, July 19, 2015 at 11:10:19 AM UTC-4, eric cuver wrote: >> >> can we use brython with web2py ? >> > > Sure. Brython simply generates Javascript code that then gets executed in > the browser, so you can use Brython with web2py in the same s

[web2py] Re: AJAX on click not restore button

2015-07-19 Thread Anthony
Looks like you have specified a relative URL in the ajax() function, which simply gets appended to the URL of the current page, so instead of making the Ajax request to /default/aj1, the request is going to /default/index/aj1. You should use the URL helper instead: ajax('{{=URL('default', 'aj1'

Re: [web2py] Re: Web2py is "Badly designed framework" and "Does not scale"

2015-07-19 Thread Anthony
On Sunday, July 19, 2015 at 11:10:19 AM UTC-4, eric cuver wrote: > > can we use brython with web2py ? > Sure. Brython simply generates Javascript code that then gets executed in the browser, so you can use Brython with web2py in the same sense that you can use Javascript with web2py. Anthony

[web2py] Re: forms

2015-07-19 Thread Anthony
That sounds like the right approach. Maybe you need to tweak the server response code or the JS code that handles the Ajax response. On Sunday, July 19, 2015 at 11:10:19 AM UTC-4, Ramchandra Sharma wrote: > > I am trying something with form in which on selecting some thing in select > tag i shou

[web2py] Re: please edit response.generic_patterns code

2015-07-19 Thread Anthony
The generic views can result in a security vulnerability because they expose all data returned by the controller. For this reason, they are disabled by default. You should only enable specific generic views in specific cases when you have verified that you are not over-exposing any data. For e

[web2py] Re: SQLFORM grid bug is demonstrated in the attached app

2015-07-19 Thread Anthony
> > If I do have an Add button but I add the folowing after the grid creation: > > grid = SQLFORM.grid(db.place) > for a in grid.elements('input',_name='mode'):# disable mode change. can > be done on a separate form > a['_disabled']='' > > > to manipulate the html so the radio button will be

[web2py] Re: Multiples ajax forms (with LOAD). It is possible?

2015-07-19 Thread Anthony
Sorry, I can't reproduce the problem with the attached app. When I go to /default/sale_order and select a product (a or b) from the list, set and quantity, and hit Submit, the form submits properly, and the table below is updated via Ajax with the values I submitted. I do not have to submit the

[web2py] Re: callback in A helper + input vars - how?

2015-07-19 Thread Massimo Di Pierro
Here is an example of how to do it: https://github.com/mdipierro/estore3/blob/master/views/default/index.html#L154 jQuery.web2py.enableElement(form.find('.disabled')); On Friday, 17 July 2015 03:05:15 UTC-5, ermolaev.icrea...@gmail.com wrote: > > How by using A helper callback sen a data from in

[web2py] Re: please edit response.generic_patterns code

2015-07-19 Thread ermolaev . icreator
I make new app and some controller in it without any view - only generic.html than I try open url to that coontroller from public - error rised "Not found" so I need to search WHY? one day I lose for solve "WHY?" may be open access to generic.html by default? вторник, 14 июля 2015 г., 21:01:2

[web2py] web2py on bluehost shared server

2015-07-19 Thread arihant daga
Hello guys, I am very new to server deployment, But i have my web2py app completely ready in my local server and for testing purpose i have bought a shared server on bluehost.com but i have no clue about how to deploy my app there. Can i simply put the web2py package directly into the public_ht

[web2py] Re: Importing Data / Force Record ID #s To Remain As Specified in the CSV

2015-07-19 Thread Fábio Filho
Massimo, It's doesn't works for me. I have two columns: tbState.id and tbState.Name . I need to keep this id because i am using it in another table. i'm using the following code in shell tool: db.tbState.import_from_csv_file(open('db_tbState.csv'), map = {}) Thaks On Thursday, January 23,

[web2py] Re: crash - session_pickled = pickle.dumps(self, pickle.HIGHEST_PROTOCOL) on 2.9.11

2015-07-19 Thread ermolaev . icreator
how solve it without edit pickle.HIGHEST_PROTOCOL ? вторник, 7 июля 2015 г., 8:42:50 UTC+3 пользователь Dmitry Ermolaev написал: > > This error in sessions and then raise in pickle > > пятница, 3 июля 2015 г., 23:50:25 UTC+3 пользователь Dmitry Ermolaev > написал: >> >> I continue tests... >> >>

[web2py] forms

2015-07-19 Thread Ramchandra Sharma
I am trying something with form in which on selecting some thing in select tag i should get some data from database based on select tag value.So on select tag i used ajax call but the ajax response text is difficult to parse is there any other way? Thanks in advance :) -- Resources: - http://w

[web2py] AJAX on click not restore button

2015-07-19 Thread ermolaev . icreator
2.11.2.11.2-stable+timestamp.2015.05.30.16.33.24 (Running on Rocket 1.2.6, Python 2.7.9) please test: # -*- coding: utf-8 -*- from time import sleep def aj1(): session.t = (session.t or 0) + 1 sleep(2) return 'OK %s. Click once more!' % session.t def index(): h = CAT( F

[web2py] Re: Invalid password reset

2015-07-19 Thread wish7code
Same with me... Am Mittwoch, 15. Juli 2015 08:42:39 UTC+2 schrieb Annet: > > > This would happen if the user has already clicked the link. >> > > This also happens when clicking the link for the very first time, > I noticed this after upgrading to version 2.10. > > Kind regards, > > Annet > --

[web2py] Re: SQLFORM grid bug is demonstrated in the attached app

2015-07-19 Thread icodk
Thanks Antony This did the trick, I think it is a serious bug (.. but all bugs are serious:-) Regarding the Add button, I removed the authentication to make it simpler for testers to see the bug. I do have it in my app. Now we can move to the next "bug": If I do have an Add button but I add the

[web2py] Re: routes_onerror doesn't redirect to a custom controller when an "invalid request" error is produced

2015-07-19 Thread ermolaev . icreator
++11 how regirect if function or controller not found?? invalid function invalid controller routes.py in app_folder not worked (( routes_onerror = [ ('*/404', 'my_app/deal/index'), ... not worked ( -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github

[web2py] Re: addremove; hg api change again

2015-07-19 Thread zenzeromod
Hi Dave, I am a mercurial-cli very addicted user. In my very very very personal opinion mercurial is better than git for my projects, but now I'm not looking for a flame mercurial vs git or hg-cli vs hg-api. I have an engineering problem. Can I base my next project on hg api? Now I know that h

[web2py] Re: AppConfig and Storage

2015-07-19 Thread ermolaev . icreator
why it better than code in /models/0.py ? response.db_cs = 'DB_CONN_STR' or DB_SC = 'DB_CONN_STR' четверг, 16 июля 2015 г., 5:29:03 UTC+3 пользователь Alex написал: > > thanks for the AppConfig implementation! this is really useful and allows > easy configuration of db connections. Act

[web2py] Use wkhtmltopdf in web2py

2015-07-19 Thread Alessio Varalta
Hi I am going to use wkhtmltopdf in a web2py application for generate pdf file. I see only another topic about wkhtmltopdf in this forum and I understand that i have to use calls service but I the line of command is for me incorrect.There is a example online with the call for use wkhtmltopdf wi

[web2py] Re: can grid record be displayed vertically?

2015-07-19 Thread Anthony
No built in support for that. You might be able to use CSS/JS to achieve that in the browser. Alternatively, the Rows object from the DAL is stored in grid.rows, so you could use that to build your own display. Anthony On Friday, July 17, 2015 at 6:56:33 PM UTC-4, Alex Glaros wrote: > > can gri

[web2py] Re: Display uploaded image only if it exists

2015-07-19 Thread Anthony
Please show more code (i.e., controller and rest of form in view). What is "adult"? On Sunday, July 19, 2015 at 9:46:22 AM UTC-4, Andy W wrote: > > > My model includes an optional image upload: > db.define_table('adult', > Field('staff_id', type='integer', > label=T('Staff ID')), >

[web2py] No Access After Ubuntu Upgrade

2015-07-19 Thread Auden RovelleQuartz
all was working as expected on my web2py app then I updated from ubuntu 12.04 to 14.04 now I get { Forbidden You don't have permission to access /omniavx_auden on this server. -- Apache/2.4.7 (Ubuntu) Server at ovxdev.us Port 80 } is there anything within web2py th

[web2py] Display uploaded image only if it exists

2015-07-19 Thread Andy W
My model includes an optional image upload: db.define_table('adult', Field('staff_id', type='integer', label=T('Staff ID')), Field('thumbnail', type='upload', label=T('Photo')), In the view I want to display the image if it exists, but hide it if null: {{=form.custom.be

[web2py] Re: An error occured, please reload the page

2015-07-19 Thread Anthony
Another hack is to do: ajax_error_500 = undefined; That will cause the code in web2py.js to fail, which will prevent the flash message from appearing. Anthony On Sunday, July 19, 2015 at 9:10:56 AM UTC-4, Anthony wrote: > > That is handled here >

[web2py] Re: An error occured, please reload the page

2015-07-19 Thread Anthony
That is handled here in web2py.js (the error message itself is set in web2py_ajax.html , though web2py.js do

[web2py] Python not responding on Mac OS X Mavericks

2015-07-19 Thread Annet
I run web2py 2.10.4 on OS X Mavericks. I always have several (4 to 6) Firefox windows open to edit files in web2py, in previous versions of web2py this wasn't a problem, however, in version 2.10.4, the more windows I edit files in the more cpu python uses and the slower it becomes, until it's no

[web2py] An error occured, please reload the page

2015-07-19 Thread Annet
After upgrading to web2py version 2.10.4 I sometimes get a flash message: "An error occured, please reload the page" This also happens when editing the appconfig.ini file, even though the appconfig.ini file does not contain an error. Since the message doesn't give me any information as to why the