Re: [web2py] IMPORTANT - WEB2PY CONSULTING

2015-02-16 Thread Ovidio Marinho
Good Day, Massimo, the site of itjp, needs changes, I agree, but the current site talking on web2py, made with web2py. If this layout is approved to signal me with a ok. domingo, 15 de fevereiro de 2015, Massimo Di Pierro < massimo.dipie...@gmail.com> escreveu: > We need to update the list of

Re: [web2py] IMPORTANT - WEB2PY CONSULTING

2015-02-16 Thread Ovidio Marinho
Sorry my link is this http://itjp.net.br Em domingo, 15 de fevereiro de 2015, Massimo Di Pierro < massimo.dipie...@gmail.com> escreveu: > We need to update the list of companies that provide web2py consulting. > This list is obsolete: > > http://web2py.com/init/default/support > > Some links are

[web2py] google trends about web2py

2015-02-16 Thread António Ramos
i found dificult to get google trenes to compare web2py, flask, django, rails,etc http://www.google.pt/trends/explore#q=%2Fm%2F0dgs72v%2C%20web2py%2C%20%2Fm%2F06y_qx%2C%20%2Fm%2F0505cl&cmpt=q&tz= only web2py is not detected as a webframework when you press the web2py word Comments please Antóni

[web2py] LOAD component, timeout and passing variables / arguments

2015-02-16 Thread Boris Aramis Aguilar Rodríguez
Hi, currently I'm using LOAD and components on a project. The problem is that when using a timeout for auto-reloading the component then the current view state is lost, let me explain: 1. A controller called performance_matrix.py has a method index(); that method receives request.vars and depen

[web2py] Problem with JSON

2015-02-16 Thread Ivan Gazzola
After last upgrade i've this problem with response.json -Controller cut --- if form.process().accepted: return response.json({'formkey':form.formkey,'html' :XML(html_from_helpers)}) -cut --- The json generated by controller fails in this js because don't escape double q

[web2py] Re: Include another file, but do not process it

2015-02-16 Thread Daniel Gonzalez
Thanks Anthony, looks like a good solution. On Sunday, February 15, 2015 at 2:35:23 AM UTC+1, Anthony wrote: > > Maybe something like this: > > In a model file or module: > > def include_hbs(view_path): > import os > response.write(open(os.path.join(request.folder, 'views', view_path), >

[web2py] Re: Problem with JSON

2015-02-16 Thread Niphlod
uhm. what does your shell print out of this ? response.json({'html' : XML('bar')}) mine does u'{"html": "bar"}' so it's not the issue you're describing. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://co

[web2py] Re: LOAD component, timeout and passing variables / arguments

2015-02-16 Thread Anthony
You should probably store the state in the session, so after the initial form submission, re-loads can read the values from the session. Anthony On Monday, February 16, 2015 at 11:23:07 AM UTC-5, Boris Aramis Aguilar Rodríguez wrote: > > Hi, currently I'm using LOAD and components on a project.

[web2py] Re: LOAD component, timeout and passing variables / arguments

2015-02-16 Thread Niphlod
it's best if you pack an app to reproduce the issue, or at least some complete piece of code that explains it. >From what I understand, you're expecting that a (re)LOAD()ed component would change its behaviour due to some variable. *A controller called performance_matrix.py has a method index();

[web2py] Re: LOAD component, timeout and passing variables / arguments

2015-02-16 Thread Anthony
Other things to consider... Unless the form submission results in creating/updating a record, you might want to do a GET instead of a POST request. Instead of a single component with a form and some data to display, consider two separate components -- one with the form, and one to display the

[web2py] Re: Testing and web2py - especially appadmin

2015-02-16 Thread Mark Graves
James, Thank you for bringing up this very important issue. I have been setting up a continuous integration environment using open source software (Jenkins) as well as some tutorials, in the manner of the ruby koans package. If you're interested, there are 3 repos right now (They are very ro

[web2py] Re: Testing and web2py - especially appadmin

2015-02-16 Thread Niphlod
first to the party, latest to the thread. https://github.com/niphlod/welcome_augmented -- 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

[web2py] Re: google trends about web2py

2015-02-16 Thread Massimo Di Pierro
do not think "it is not detected" is the right statement. web2py is a unique search term. It only refers to web2py. "Django" is more likely refer to the guitarist than then framework and therefore it needs further refinement. Same goes the other frameworks. On Monday, 16 February 2015 08:58:46

[web2py] Re: web2py wikia

2015-02-16 Thread Manuel Moscariello
Hi Massimo, thanks for your answer. Although I think the book is a very good resource for offline help (and to raise some money, I am waiting the publish of the sixth edition to buy it), it is statical and have something that complete and at the same time simple is really tough. I've seen web2p

[web2py] Trying to run a "Portable Python" environment , to learn, etc... can i use Web2py?

2015-02-16 Thread Charly Farley
Found this VERY OLD link on Stackoverflow ... http://stackoverflow.com/questions/259160/did-anyone-try-portable-python quote .. Resolution You may want to check out *web2py* . The windows executable includes python and does run without installation for ex

[web2py] Re: How to display the results of this query

2015-02-16 Thread Moiz Nagpurwala
Thanks a lot Massimo for your prompt and accurate answer. -- 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 subscr

[web2py] Re: Groupby year on date field

2015-02-16 Thread Moiz Nagpurwala
In my controller I have this code: sum_of_entries = db.mydiary.id.count() distinct_years = db(db.mydiary.id > 0).select(sum_of_entries, db.mydiary. Entry_Date.year(), groupby=db.mydiary.Entry_Date.year(), orderby=~ sum_of_entries) In my view I'm trying to display the results in a loop like so:

[web2py] Re: i am trying send email using web2py with gmail and using smtp setting i have attached all code

2015-02-16 Thread NeoToren
That's true ! All the issues I have experienced with sending email (*"unable to send email"*) from Web2Py via Gmail, have been caused by the 2-steps authentication which was enabled on my gmail account. In order for Web2Py to be able to send email via gmail: 1. Read Google instructions at http

[web2py] Web2py deployment with installer script.

2015-02-16 Thread Simon Marshall
Hi All, When installing on a ubuntu server with the install script does it configure the postgresql correctly? if it does what is the default DAL config to use it instead of SQLite? is there any harm in using SQLite in a production environment? Many Thanks, Simon -- Resources: - http://web

[web2py] web2py as a portable python environment

2015-02-16 Thread Charly Farley
Hi, I'm interested in learning python 2.7 but I do not wish to install it: rather, I'd like to leave it portable, on a usb stick. I came across this quite old post ... http://stackoverflow.com/questions/259160/did-anyone-try-portable-python The resolution is ... You may want to check out *w

[web2py] IMPORTANT - WEB2PY CONSULTING

2015-02-16 Thread Ramkrishan Bhatt
Massimo site is enough or we need to pass some test to get include officially. Or any legal formality we need to do to become official web2py cunsultant. I also request if you can classified with domain/industry/solutions expert. -- Resources: - http://web2py.com - http://web2py.com/book (Docume

[web2py] IMPORTANT - WEB2PY CONSULTING

2015-02-16 Thread Ramkrishan Bhatt
Massimo site is enough or we need to pass some test to get include officially. Or any legal formality we need to do to become official web2py cunsultant. I also request if you can classified with domain/industry/solutions expert. -- Resources: - http://web2py.com - http://web2py.com/book (Docume

[web2py] Re: IMPORTANT - WEB2PY CONSULTING

2015-02-16 Thread Massimo Di Pierro
We have always been listing companies that do web2py support. Eventually we should have a certification program for consultants but that is another story. On Monday, 16 February 2015 18:42:41 UTC-6, Ramkrishan Bhatt wrote: > > Massimo site is enough or we need to pass some test to get include >

[web2py] Re: Options selected in form

2015-02-16 Thread José Eloy
Hi! Thanks Richard for your answer. I've solved my problem. Only I needed to ask if elementos is checked: if form.validate(): ... elementos = form.elements(_name="lista_tipos_asunto") for e in elementos: if e['_checked']=='checked': print e['_value'] With thi

[web2py] no email field in auth_user

2015-02-16 Thread José Eloy
Hello! I'm wonder if it is possible to disable (or remove) the field email from auth_user. In my application I don't need it. Thanks for any help. Regards. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code

[web2py] Re: no email field in auth_user

2015-02-16 Thread Anthony
You can ignore it by setting its "readable" and "writable" attributes to False. On Monday, February 16, 2015 at 8:44:56 PM UTC-5, José Eloy wrote: > > Hello! > > I wonder if it is possible to disable (or remove) the email field from > auth_user. In my application I don't need it. > > Thanks for

[web2py] Return object from represent method of field

2015-02-16 Thread Leonardo Pires Felix
Hi, when i return a XML from the represent, it gives me a error. Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. Traceback (most recent call last): File "/home/leonardo/PycharmProjects/lpfx_gie/web2py/gluon/restricted.py", line 224, in restricted exec ccode in envi

[web2py] Re: web2py as a portable python environment

2015-02-16 Thread Niphlod
you can run scripts with web2py.exe but it being a better shell than the one from python is arguable. I don't see the issue, though: if you want to use python fetch python portable, it's good and it works perfectly fine. If you want to use web2py use web2py. -- Resources: - http://web2py.com

[web2py] Re: Trying to run a "Portable Python" environment , to learn, etc... can i use Web2py?

2015-02-16 Thread Niphlod
duplicate of https://groups.google.com/d/msg/web2py/relzJz_v250/nWBBQLIx_2UJ On Monday, February 16, 2015 at 1:47:49 PM UTC+1, Charly Farley wrote: > > > Found this VERY OLD link on Stackoverflow ... > > http://stackoverflow.com/questions/259160/did-anyone-try-portable-python > > quote ...

[web2py] Re: Groupby year on date field

2015-02-16 Thread Niphlod
it's the same "method" as extrapolating the "count()" part year_part = db.mydiary.Entry_Date.year() distinct_years = . for row in distinct_years: only_year = row[year_part] On Monday, February 16, 2015 at 10:19:17 AM UTC+1, Moiz Nagpurwala wrote: > > In my controller I have this