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

2015-07-20 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,

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

2015-07-20 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: Invalid password reset

2015-07-20 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 the link for the

[web2py] Re: Invalid password reset

2015-07-20 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-20 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',

[web2py] We do not delete posts

2015-07-20 Thread Massimo Di Pierro
We never delete posts from users, unless the users ask (because they accidentally post the server password, for example). Yet first posts are moderated to avoid spam. Usually when a post is on hold for moderation it is approved within 24 hours or less. There are some glitches in the process.

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

2015-07-20 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 executed in

[web2py] Re: Invalid password reset

2015-07-20 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.

[web2py] html syntax error in elif

2015-07-20 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.

[web2py] Integrating web2py with machine learning Text classifier

2015-07-20 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

[web2py] Re: Use wkhtmltopdf in web2py

2015-07-20 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-20 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) ,

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

2015-07-20 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: Field('upload') : problem with file name

2015-07-20 Thread Scott Hunter
Where is this spelled out in the documentation? I could not find it. - Scott On Monday, July 20, 2015 at 2:24:24 AM UTC-4, Massimo Di Pierro wrote: This is handled by web2py. The filenames are truncated according to the size of the uploadfield. This defaults to 512. In new versions of

[web2py] Re: Another online store based in web2py+ractive+stripe

2015-07-20 Thread Massimo Di Pierro
If you are logged in, you should be able to see them. On Friday, 17 July 2015 03:05:21 UTC-5, Walter Munguia wrote: I should be able to see My orders? I have: Not Authorized Privilegios insuficientes El martes, 14 de julio de 2015, 11:44:29 (UTC-5), Massimo Di Pierro escribió: I

[web2py] Re: Another online store based in web2py+ractive+stripe

2015-07-20 Thread LoveWeb2py
I submitted a pull request. My orders is requesting the user be a manager and not authorized user. On Monday, July 20, 2015 at 6:17:27 AM UTC-4, Massimo Di Pierro wrote: If you are logged in, you should be able to see them. On Friday, 17 July 2015 03:05:21 UTC-5, Walter Munguia wrote: I

[web2py] Re: Docker Based Work Flow -- Web2py Needs Something Like This

2015-07-20 Thread Mark Graves
Anyone who is interested in getting this up and running, please email me privately and we can talk. On Wednesday, May 20, 2015 at 8:03:14 PM UTC-5, jjs0sbw wrote: https://opbeat.com/ -- Joe Simpson “Reasonable people adapt themselves to the world. Unreasonable people attempt to adapt

[web2py] Re: logout other user

2015-07-20 Thread Alex
thanks, Anthony. storing the session ID in the auth_user table upon login sounds like a good idea. I get the session ID from response.session_id and when I want to logout the user I generate the session filename with recfile.generate(user.session_id) Alex -- Resources: - http://web2py.com -

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

2015-07-20 Thread Massimo Di Pierro
Nowhere. We only state that Field(..., lenght=) is a parameter. We do not say that for upload fields this is also the length of the tmp filename. On Monday, 20 July 2015 05:28:02 UTC-5, Scott Hunter wrote: Where is this spelled out in the documentation? I could not find it. - Scott

[web2py] using plugin_ckeditor as default editor for built-in wiki

2015-07-20 Thread 'Karl Thomas Schmidt' via web2py-users
Hi @ all, is there a easy or preferred way to integrate plugin_ckeditor as the default editor for built-in wiki? I'm sure i'm missing a basic point there. Any hints/links to docs? Kalle -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: We do not delete posts

2015-07-20 Thread Anthony
https://lh3.googleusercontent.com/-QFRL1ECG8R0/Va0zFfZq47I/GOU/6llw782qMoY/s1600/buttons.png To approve both a message and the new member, click the button on the right (the left button approves only the message but doesn't change the member's status). Anthony On Monday, July 20,

Re: [web2py] Re: We do not delete posts

2015-07-20 Thread Richard Vézina
Does the second button allow also the message of the user? On Mon, Jul 20, 2015 at 1:36 PM, Anthony abasta...@gmail.com wrote: One problem we have is that some moderators approve individual messages of new members but fail to change the permissions of the member from Moderated to Allowed. So,

[web2py] Re: Building desktop apps with web2py ??

2015-07-20 Thread Massimo Di Pierro
What I do not understand is why. Why would anybody want to build a desktop in this day and age. You can always install a webapp locally, with a single user, run the server in background via a .bat script and auto-open the browser. How is that different than a desktop app in practice? On

[web2py] Re: logout other user

2015-07-20 Thread Anthony
storing the session ID in the auth_user table upon login sounds like a good idea. I get the session ID from response.session_id and when I want to logout the user I generate the session filename with recfile.generate(user.session_id) That's not how the session filename is generated, and

Re: [web2py] Re: We do not delete posts

2015-07-20 Thread Anthony
On Monday, July 20, 2015 at 1:43:33 PM UTC-4, Richard wrote: Does the second button allow also the message of the user? Yes, exactly. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] Re: We do not delete posts

2015-07-20 Thread Richard Vézina
Mail crossing :) Richard On Mon, Jul 20, 2015 at 1:50 PM, Anthony abasta...@gmail.com wrote: On Monday, July 20, 2015 at 1:43:33 PM UTC-4, Richard wrote: Does the second button allow also the message of the user? Yes, exactly. -- Resources: - http://web2py.com -

[web2py] Re: We do not delete posts

2015-07-20 Thread Anthony
One problem we have is that some moderators approve individual messages of new members but fail to change the permissions of the member from Moderated to Allowed. So, instead of having just the first post moderated, some members end up being moderated for much longer. In the admin interface,

[web2py] Re: sub sub menu in newest version

2015-07-20 Thread Rakesh Singh
Hi Apologies for resurrecting an old topic, but I have not used web2py in quite a while and found myself asking the same question. The application I intend to create needs to have 3rd level menus (perhaps even 4th) Without it, my menu structure will be a real mess and there would be no way to

[web2py] Re: addremove; hg api change again

2015-07-20 Thread Dave S
On Sunday, July 19, 2015 at 8:10:30 AM UTC-7, zenze...@gmail.com wrote: 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

[web2py] Re: Building desktop apps with web2py ??

2015-07-20 Thread Dave S
On Monday, July 20, 2015 at 10:47:25 AM UTC-7, Massimo Di Pierro wrote: What I do not understand is why. Why would anybody want to build a desktop in this day and age. You can always install a webapp locally, with a single user, run the server in background via a .bat script and auto-open

Re: [web2py] Re: Building desktop apps with web2py ??

2015-07-20 Thread Anthony
Some interesting points made here: https://medium.com/@collinmathilde/why-desktop-apps-are-making-a-comeback-5b4eb0427647 On Monday, July 20, 2015 at 4:23:37 PM UTC-4, Iuri Guilherme dos Santos Martins wrote: On Monday, July 20, 2015 at 10:47:25 AM UTC-7, Massimo Di Pierro wrote: What I do

Re: [web2py] Re: Building desktop apps with web2py ??

2015-07-20 Thread Iuri Guilherme dos Santos Martins
On Monday, July 20, 2015 at 10:47:25 AM UTC-7, Massimo Di Pierro wrote: What I do not understand is why. Why would anybody want to build a desktop in this day and age. You can always install a webapp locally, with a single user, run the server in background via a .bat script and auto-open

[web2py] Building desktop apps with web2py ??

2015-07-20 Thread António Ramos
I know there is a post somewhere about this but i´m just sharing something i found http://electron.atom.io/ https://www.fyears.org/2015/06/electron-as-gui-of-python-apps.html -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

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

2015-07-20 Thread Scott Hunter
Is this an oversight or a conscious decision? If I understand you, if one's filesystem allowed filenames greater than 512 characters, long-enough but still legal names will still be truncated, and thus thwart the ability to extract the original file name. That could be a nasty surprise. P.S.