[web2py] Re: web2py and Sublime Text

2015-01-05 Thread Cássio Botaro
Sorry, i delete the repository but until wednesday will return with improvements. -- 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 messa

Re: [web2py] how to: tumblr login for web2py

2015-01-05 Thread Falko Delarue
Thanks, I added it! On Sunday, January 4, 2015 11:44:19 PM UTC+1, Michele Comitini wrote: > > Very nice! just one detail to make it easier for the ones that do not have > apt-get... > > sudo apt-get install python-oauth2 > > can be replaced with: > > pip install --user python-oauth2 > > making it

[web2py] Mail don't send without errors

2015-01-05 Thread Gael Princivalle
Hello all. I've got a strange problem. With a specific mail configuration I don't have any error but emails are not going out. So if I use this configuration mails are not going out: Model: mail = auth.settings.mailer mail.settings.server = 'zimbra.mydomain.com:25' mail.settings.sender = 'sa...@

Re: [web2py] setup-web2py-nginx-uwsgi-ubuntu.sh

2015-01-05 Thread Richard Vézina
It was not an email passwd, it was admin password... If you omit it, the installation script may have install web2py anyway, but not setting password for admin interface... If this password is not setted up properly web2py prevent access to admin interface... If you want to correct the situation, t

[web2py] Re: Mail don't send without errors

2015-01-05 Thread Niphlod
are you sure that the problem is not that the rejection happens after the SMTP accepted the mail ? web2py doesn't do too much magic in terms of return value...it uses sendmail() from smtplib and traps any exception. If you don't see exceptions, smtplib.sendmail isn't raising, so it means that t

[web2py] Request Password not working correct

2015-01-05 Thread Ramashish Gaurav
Hi all, I have deployed my app on internet. At initial stage, every thing was working great. No bugs. When a user would register himself, a confirmation email would be successfully sent to the user's registered email id. Even the 'Lost Password' option was working correct. Now I made some chang

[web2py] Re: Request Password not working correct

2015-01-05 Thread Dave S
On Monday, January 5, 2015 8:49:34 AM UTC-8, Ramashish Gaurav wrote: > > Hi all, > > I have deployed my app on internet. At initial stage, every thing was > working great. No bugs. When a user would register himself, a confirmation > email would be successfully sent to the user's registered ema

[web2py] Re: setup-web2py-nginx-uwsgi-ubuntu.sh

2015-01-05 Thread Александр Остыловский
Much easier. You must use https (not nttp) and then everything works. понедельник, 29 декабря 2014 г., 21:11:44 UTC+7 пользователь Александр Остыловский написал: > > Hello! > Run on ubuntu 14.04 installation of nginx-uwsgi with a script that comes > with web2py directory scripts: > > sudo ./setu

[web2py] Re: Any way for placing many views in one html file?

2015-01-05 Thread Przemysław Loesch
Solved. Just to give a tip to another newbie: 1. In "mycontroler.py" place the code "response.view = 'myview.html' " to force executing "myview.html" regardless of a function name. 2. In "myview.html" use {{if request.function==anyviewname:}} to execute just a block of code designed for a certain

[web2py] Re: Web2Py on AWS EC2

2015-01-05 Thread NeoToren
Must be something really simple (and stupid on my behalf) that I am doing or not doing correctly... While in the web2py folder on the AWS instance, I've run web2py by trying both specifying the port and without it: 1. python web2py.py -i 0.0.0.0 -a mypwd 2. python web2py.py -i 0.0.0.0 -a mypwd -

[web2py] Re: How to display columns of data without abbreviation in the database aministrative interface?

2015-01-05 Thread Przemysław Loesch
Thank you very much Dave! The "truncate" parameter works perfect. Additionally I've just learned how to place many views in one html file what was the subject of my second question on this group. Thanks a lot! PS. Przemek from Gonzaga University is not me - I live in Poland. -- Resources: - htt

[web2py] Re: web2py RESTful timeout

2015-01-05 Thread Bart
Adding exception handling inside my RESTful api fixed my problem. Sometimes my RESTful posts contained corrupted data and this would cause an exception and hang future posts. Adding try/except solved my issue. Thanks, Bart On Friday, November 21, 2014 8:36:36 AM UTC-7, Bart wrote: > > I have a

[web2py] Python-Docx Split Between Controller and View

2015-01-05 Thread David Wellsandt
I'm going crazy here to implement a reporting system for .docx files. I read several examples of streaming a file (like CSV outputs and such), but they were all from the controller. Since there will be several report formats for my application, I wanted to move all the reports to the views. I S

[web2py] Not getting expected results from a query

2015-01-05 Thread Greg White
I am brand new to web2py and know a little python, so I am a definite novice. I am trying to build a purchasing agent app and am getting result "0" from function cost3. I am expecting to get a sum of the values for a specified job number (in cost2) in table PO Field mycost when I specify a job

[web2py] Re: Struggling with multi user

2015-01-05 Thread Gary Cowell
Once again, thank you. I'll get there in the end. On Sunday, 4 January 2015 02:37:09 UTC, Massimo Di Pierro wrote: > > I would do: > > db.define_table( > 'shoe', > Field('model',db.model), > Field('purchased','date'), > Field('price','integer'), > auth.signature, # include crea

[web2py] Re: models: markmin.py

2015-01-05 Thread Massimo Di Pierro
what app are you talking about? Please post the files and we can tell you what they do. They do not come with web2py. On Sunday, 4 January 2015 07:25:15 UTC-6, Dmitry Ermolaev wrote: > > > Hi > > what does markmin.py >

[web2py] Re: Web2Py on AWS EC2

2015-01-05 Thread Niphlod
maybe the the linux vm has a firewall on port 8000 by default security groups aren't configured for port 8000. if you're using the "vanilla" amazon ec2 instance, see the related documents on http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html#adding-security-gr

[web2py] Re: Not getting expected results from a query

2015-01-05 Thread Niphlod
start with: def cost3(): jnum = request.args(0,cast=int) a = 0 results = db(db.PO.job_id==jnum).select() for row in results: a = a + row.mycost return dict(a=a, howmany=len(results)) so you can check how many rows are you actually selecting :P On Sunday, January 4

Re: [web2py] Re: setup-web2py-nginx-uwsgi-ubuntu.sh

2015-01-05 Thread Richard Vézina
Also!! :) Richard On Sat, Jan 3, 2015 at 11:23 PM, Александр Остыловский wrote: > Much easier. You must use https (not nttp) and then everything works. > > понедельник, 29 декабря 2014 г., 21:11:44 UTC+7 пользователь Александр > Остыловский написал: > >> Hello! >> Run on ubuntu 14.04 installat

[web2py] What is "represent" syntax for external url?

2015-01-05 Thread Alex Glaros
What is controller "represent" syntax for creating a link to an external url? "URL" is the name of the field that contains the url ( http://www.gov-ideas.com/). When I use this: db.SuperObjectURL.URL.represent = lambda v, r: A(r.URL, _href=URL('URL', args=r.URL)) Instead of getting this: http

[web2py] Re: What is "represent" syntax for external url?

2015-01-05 Thread Niphlod
/ironic mode on/ why of all names choosing just something that closely resemble some web2py function? are you asking for troubles?!?! /ironic mode off/ URL() in web2py is a function to create urls (usually related to web2py applications). If you have an url that is complete (such as http://www.g

[web2py] Re: What is "represent" syntax for external url?

2015-01-05 Thread Alex Glaros
thanks Niphlod, works Alex -- 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 "w

[web2py] Re: max value in linked tables

2015-01-05 Thread JaapP
Thanks a lot, i learned something new today :) Obvious solution, once you think of it, and much quicker than building loops. Best regards, Jaap On Monday, December 29, 2014 10:51:01 AM UTC+1, Massimo Di Pierro wrote: > > db.employee_contract.contract_id == db.contract.id) > & (db.e

[web2py] Re: Any way for placing many views in one html file?

2015-01-05 Thread Rufus
It has been a while since I did anything with web2py, but I seem to recall that if you didn't have a view for a function it would open up a default view, which is also in a file. (Was it generic.html?) Anyway, the point being you might want to use that for your "catch all" file instead of cre

[web2py] Re: web2py RESTful timeout

2015-01-05 Thread Dave S
On Sunday, January 4, 2015 9:04:21 PM UTC-8, Bart wrote: > > Adding exception handling inside my RESTful api fixed my problem. > Sometimes my RESTful posts contained corrupted data and this would cause > an exception and hang future posts. Adding try/except solved my issue. > It's always good

[web2py] Re: How to display columns of data without abbreviation in the database aministrative interface?

2015-01-05 Thread Dave S
On Sunday, January 4, 2015 12:42:30 AM UTC-8, Przemysław wrote: > > Thank you very much Dave! The "truncate" parameter works perfect. > Additionally I've just learned how to place many views in one html file > what was the subject of my second question on this group. > Thanks a lot! > PS. Przem

[web2py] Is the .select(cache.x) cleared automatically upon expiration?

2015-01-05 Thread Robin Manoli
Hi! When caching selects, in memory or disk, are they then cleared automatically when the expiration time is over? Removed and forgotten? Or is there some cleanup script similar to the one for sessions? - Robin -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http:/

[web2py] Re: web2py and Sublime Text

2015-01-05 Thread Cássio Botaro
We back with improvements and better descriptions! http://cassiobotaro.github.io/my_environment/ -- 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 rec

[web2py] Re: Websocket doesn't work on stable version

2015-01-05 Thread samuel bonill
are you running the Tornado Websocket server ? El domingo, 4 de enero de 2015 16:09:20 UTC-5, Tito Garrido escribió: > > Hi Folks, > > I am using 2.9.11 and when I try to use $.web2py.web2py_websocket('ws:// > 127.0.0.1:/realtime/mygroup', function(e){alert(e.data)}) I receive > error 403 For

[web2py] Re: Any way for placing many views in one html file?

2015-01-05 Thread Anthony
Note that this is a bit inefficient, as web2py will parse the entire view for each page requested. It will help if you compile the views. Anthony On Sunday, January 4, 2015 4:59:40 AM UTC-5, Przemysław wrote: > > Solved. Just to give a tip to another newbie: > 1. In "mycontroler.py" place the co

[web2py] Re: Request Password not working correct

2015-01-05 Thread Ramashish Gaurav
Thanks Dave, I will take your valuable advice but I still need to debug it. Can you (and someone) please help me about it. Regards, Ramashish On Tuesday, January 6, 2015 1:11:57 AM UTC+5:30, Dave S wrote: > > > > On Monday, January 5, 2015 8:49:34 AM UTC-8, Ramashish Gaurav wrote: >> >> Hi all,