Re: [web2py] Re: How to -- Popup window: Record already exists are you sure you want to upload file?

2014-07-14 Thread Manuele Pesenti
Il 14/07/14 21:21, Niphlod ha scritto: > until the user clicks on "submit", there's no way for web2py (or you) > to know the name of the file being uploaded beforehand, using a normal > input type="file". it's just not how the browsers work. what about to set up a javascript event on the upload li

[web2py] Re: Alternative IDEs?

2014-07-14 Thread 'sasogeek' via web2py-users
I keep getting this error when I try running the web2py.py script from PyCharm. DLL load failed: %1 is not a valid Win32 application. I need help getting it to run. Here's the full traceback. C:\Python27\python.exe E:/Users/Samuel/Downloads/web2py_src/web2py/web2py.py No handlers could be found f

[web2py] Re: What is the proper way to truncate a table from appadmin?

2014-07-14 Thread JoeCodeswell
Dear Anthony, Thanks for the reply. You said, "I see -- you want to reset the ID's to start at 1 again." Yes. I believe that's what is meant by web2py’s usage of the term "truncate". I have used the shell to do that, however I would prefer to not go back and forth from appadmin to the shell.

[web2py] Re: Annotations

2014-07-14 Thread 'sasogeek' via web2py-users
That's understandable, but it's just a thing that occurred to me. Maybe it's not that important, but you can give it some thought (or not). One of my random thoughts that could mean something or nothing :) On Monday, 14 July 2014 15:39:57 UTC, Anthony wrote: > > On Monday, July 14, 2014 11:01:11

[web2py] Re: My gulpjs experiment to allow coffeescript jade and stylus inside web2py

2014-07-14 Thread Niphlod
@massimo: minus the livereload plugin, it's just compiling stuff on save -- 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 b

[web2py] Re: How to -- Popup window: Record already exists are you sure you want to upload file?

2014-07-14 Thread Niphlod
until the user clicks on "submit", there's no way for web2py (or you) to know the name of the file being uploaded beforehand, using a normal input type="file". it's just not how the browsers work. On Monday, July 14, 2014 7:43:22 PM UTC+2, LoveWeb2py wrote: > > Hello, > > I want to create a pop

[web2py] Re: Installing the book as an app?

2014-07-14 Thread Michael Bryce
On Friday, December 28, 2012 5:56:37 PM UTC+10, Nico Zanferrari wrote: > > Hello, the right URL is https://github.com/mdipierro/web2py-book.git > ;-)) > > > For anyone else visiting this topic, beware google groups has the link redirected through their server first (ie https://www.google.com

[web2py] Re: Encode problem in response.cookies

2014-07-14 Thread Arthur Alves
Correct, I'm store in session, but i need to store on cookie too, because a script in javascript. I have others manners to do that, but the project owner don't let me change. Em sábado, 12 de julho de 2014 04h47min34s UTC-3, Massimo Di Pierro escreveu: > > I am not 100% sure but why are you sto

[web2py] Re: My gulpjs experiment to allow coffeescript jade and stylus inside web2py

2014-07-14 Thread Carlos A. Armenta Castro
I am impressed. I wish it was implemented in the Web2py Welcome App, Amazing!. Regards. El sábado, 12 de julio de 2014 15:59:10 UTC-7, Ramos escribió: > > after learning about gulp.js i had to do this > > https://www.youtube.com/watch?v=zt5gnKk40Zw > > my Gulpfile.coffee > > gulp = require

[web2py] Re: What is the proper way to truncate a table from appadmin?

2014-07-14 Thread Anthony
I see -- you want to reset the ID's to start at 1 again. I don't think you can do that from appadmin. Use the shell. Anthony On Monday, July 14, 2014 1:19:00 PM UTC-4, JoeCodeswell wrote: > > >

[web2py] How to -- Popup window: Record already exists are you sure you want to upload file?

2014-07-14 Thread LoveWeb2py
Hello, I want to create a popup window that lets the user click okay to continue uploading the file if it already exist in the database. I created a separate table which tracks all the files uploaded in the database. I then append that to a list and check if the filename is in there. My code

[web2py] Re: What is the proper way to truncate a table from appadmin?

2014-07-14 Thread JoeCodeswell
Dear Anthony, Thanks for your reply. Your suggestion didn't work. TEST 1. I had trip id's numbered [1, 75] in the trip table. 2. I did your suggestion: - Put db.trip

Re: [web2py] Easy to Understand SQLFORM.grid Custom Search

2014-07-14 Thread JoeCodeswell
Dear villas, Thanks for the reply. Here is my understanding of what you want. You'd like to be able to search using a search syntax based on the shlex module. My technique uses the SQLFORM.grid's Standard Search Input ("#w2p_keywords") syntax for it's searches. I suggest you post an Enhancmen

[web2py] Re: Annotations

2014-07-14 Thread Anthony
On Monday, July 14, 2014 11:01:11 AM UTC-4, sasogeek wrote: > > I just think that since there's that concept of decorators and the fact > that there's quite a number of them and functions they perform, it'd be > good to have them all listed somewhere with (at the very least) their > definitions

Re: [web2py] Re: Alternative IDEs?

2014-07-14 Thread António Ramos
Also webstorm 2014-07-14 15:37 GMT+01:00 'sasogeek' via web2py-users < web2py@googlegroups.com>: > I just checked out PyCharm and it looks just like IntelliJ for java. Just > what I had in mind! :) > Thanks Jim. > > Samuel. > > > On Monday, 14 July 2014 14:05:15 UTC, Jim S wrote: >> >> PyCharm -

[web2py] Re: Annotations

2014-07-14 Thread Niphlod
the only thing that comes to mind is http://web2py.com/examples/static/web2py_cheatsheet.pdf BTW, "2" places in the official documentation seems hardly to count for "being scattered". Apply the simplest search and you'll have the full resultset http://web2py.com/books/default/search/29?search=d

[web2py] Re: Annotations

2014-07-14 Thread 'sasogeek' via web2py-users
I just think that since there's that concept of decorators and the fact that there's quite a number of them and functions they perform, it'd be good to have them all listed somewhere with (at the very least) their definitions and maybe some examples on how to use them. (instead of being scatter

[web2py] Re: Alternative IDEs?

2014-07-14 Thread 'sasogeek' via web2py-users
I just checked out PyCharm and it looks just like IntelliJ for java. Just what I had in mind! :) Thanks Jim. Samuel. On Monday, 14 July 2014 14:05:15 UTC, Jim S wrote: > > PyCharm - paid version has web2py integration. > > -Jim > > On Monday, July 14, 2014 7:35:43 AM UTC-5, sasogeek wrote: >> >>

[web2py] Re: Alternative IDEs?

2014-07-14 Thread Jim S
PyCharm - paid version has web2py integration. -Jim On Monday, July 14, 2014 7:35:43 AM UTC-5, sasogeek wrote: > > Are there any alternative IDEs for web2py? > I'm in search of an IDE for web2py that can help me find methods and > variables easily. for example autocomplete options to choose from

[web2py] Re: Annotations

2014-07-14 Thread Anthony
I don't think there's a place that specifically lists just the decorators, but the decorators are described in the documentation (e.g., the @auth decorators in the Access Control chapter, the @cache decorators in the Core chapter, etc.). Is there a reason you need a decorator-centric view of the

[web2py] Re: Beginner question: Plain HTML file for landing page instead of web2py app

2014-07-14 Thread Anthony
The Bootstrap carousel is just HTML -- it should be no harder or easier to put in a web2py view vs. a plain HTML file. Can you explain in more detail the difficulty you are having with it? Note, in principle, nothing is stopping you from creating a web2py view that is just pure HTML. It will st

Re: [web2py] Alternative IDEs?

2014-07-14 Thread António Ramos
Sublime Text 2014-07-14 13:35 GMT+01:00 'sasogeek' via web2py-users < web2py@googlegroups.com>: > Are there any alternative IDEs for web2py? > I'm in search of an IDE for web2py that can help me find methods and > variables easily. for example autocomplete options to choose from after > using a

[web2py] Re: SQLform.Grid problems with lookout and url

2014-07-14 Thread Anthony
I left a few questions for you on SO. It's not quite clear what you're trying to do and what is going wrong. I notice a test for request.args[0].isdigit(). How are links to this action being generated such that the first arg could be a digit? Note, if the URL accessing a grid action includes ar

[web2py] Re: error(10053, 'An established connection was aborted by the software in your host machine')

2014-07-14 Thread Niphlod
so, you figured out that you can't connect to mysql. did you try to see if it's reachable ? On Monday, July 14, 2014 2:43:12 PM UTC+2, Copper Lark wrote: > > [Mon Jul 14 15:33:33 2014] [warn] pid file C:/Program Files (x86)/Apache > Software Foundation/Apache2.2/logs/httpd.pid overwritten -- Unc

[web2py] Re: error(10053, 'An established connection was aborted by the software in your host machine')

2014-07-14 Thread Copper Lark
[Mon Jul 14 15:33:33 2014] [warn] pid file C:/Program Files (x86)/Apache Software Foundation/Apache2.2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [Mon Jul 14 15:33:37 2014] [notice] Apache/2.2.25 (Win32) mod_wsgi/3.5-BRANCH Python/2.7.6 mod_ssl/2.2.25 OpenSSL/0.9.8y P

Re: [web2py] Re: SQLFORM: 'str' object has no attribute 'writable' error

2014-07-14 Thread Don O'Hara
Thanks ! A case of tired eye syndrome... Works fine now. Don On Jul 14, 2014, at 8:02, lyn2py wrote: > Syntax doesn't look right. Should be: > > row=db.test_all_fields(request.args[1]) > form=SQLFORM(db.test_all_fields, row) > > > > On Monday, July 14, 2014 8:27:59 AM UTC+8, Don O'Hara wr

[web2py] Alternative IDEs?

2014-07-14 Thread 'sasogeek' via web2py-users
Are there any alternative IDEs for web2py? I'm in search of an IDE for web2py that can help me find methods and variables easily. for example autocomplete options to choose from after using a dot operator? the default browser ide lacks quite a number of things in making programming easy. Web2py

[web2py] Annotations

2014-07-14 Thread 'sasogeek' via web2py-users
Is there a place in the documentation or somewhere on the web that lists all the annotations/decorators in web2py and explains how to use them? like @auth.requires_login, etc. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source co

[web2py] Re: update database right from view?

2014-07-14 Thread lyn2py
You can build your form in plain HTML and submit using jQuery ajax. It's not impossible, just time consuming. I wonder why you wouldn't want to use web2py's *SQLFORM.factory* or *FORM* to do it? On Thursday, July 10, 2014 5:26:37 AM UTC+8, Maria Levchenko wrote: > > Sorry for novice question,

[web2py] SQLform.Grid problems with lookout and url

2014-07-14 Thread Yebach
If anyone can hellp me with this I have a page with embeded htmls. One of them should have a SQLForm.grid to manage table of workers I am having difficulties because SQLForm.grid is in edit function. Besides the fact that it looks awful it also does not work properly I asked a question on sta

[web2py] Re: SQLFORM: 'str' object has no attribute 'writable' error

2014-07-14 Thread lyn2py
Syntax doesn't look right. Should be: row=db.test_all_fields(request.args[1]) form=SQLFORM(*db.test_all_fields, *row) On Monday, July 14, 2014 8:27:59 AM UTC+8, Don O'Hara wrote: > > I’m experimenting with the various field types (mysql) to learn more about > web2py. > I’m not sure why I got t

[web2py] Re: Beginner question: Plain HTML file for landing page instead of web2py app

2014-07-14 Thread lyn2py
If you are looking for a plain html page for user landing and expect web2py or other frameworks to suit your taste, you are probably looking in the wrong place. Build with plain html and your pages will be plain html. Build with web2py / ROR / django or other frameworks and you will have to lear

Re: [web2py] Delete Query Not Working

2014-07-14 Thread lyn2py
Did you turn on versioning? Can you post a traceback? On Friday, July 11, 2014 3:21:14 PM UTC+8, samurai wrote: > > As both Manuele and Leonel said, I changed it to args(0). But no use. It > was still not working. > > I actually changed a bit and now I am getting 'd' by get.vars. > > def pro_del

[web2py] Re: error(10053, 'An established connection was aborted by the software in your host machine')

2014-07-14 Thread Copper Lark
i use apache Failure to connect, tried 5 times: Traceback (most recent call last): File "C:\web2py-m\gluon\dal.py", line 7848, in __init__ self._adapter = ADAPTERS[self._dbname](**kwargs) File "C:\web2py-m\gluon\dal.py", line 688, in __call__ obj = super(AdapterMeta, cls).__call__(*args, **kw

[web2py] error(10053, 'An established connection was aborted by the software in your host machine')

2014-07-14 Thread Copper Lark
Versionweb2py™Version 2.9.5-trunk+timestamp.2014.03.29.21.54.41Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. Traceback (most recent call last): File "C:\web2py-m\gluon\main.py", line 539, in wsgibase BaseAdapter.close_all_instances('rollback') File "C:\web2py-m\gluon\dal.p

[web2py] Re: Web2py menu.py question

2014-07-14 Thread Rahul
Thanks! Leonel That worked very well. Rahul. On Friday, July 11, 2014 8:08:15 PM UTC+5:30, Leonel Câmara wrote: > > Hey Rahul, > > You need something like: > > response.menu = [ > (T('Analysis'), False, URL(), [ >(T('Revisions'), False, URL('default, > 'index