[web2py] Re: missing response.title and subtitle

2016-04-12 Thread Alex Glaros
ooops, meant layout.html, not menu.py anyway, this looks much better (it's in layout.html): {{block header}} {{=response.title or request.application}} {{=response.subtitle or ''}} {{end}} Is there a

[web2py] Re: missing response.title and subtitle

2016-04-12 Thread Alex Glaros
I converted from old template to new so it's a little hard to compare what's different In the new menu.py, I have this {{block header}} {{end}} In the old menu.py I had this {{=response.title or request.

[web2py] Re: What are the platforms for free web hosting of web2py apps?

2016-04-12 Thread Stephen Duisberg
On Monday, March 14, 2016 at 5:58:13 PM UTC+5:30, Mirek Zvolský wrote: > > allwaysdata.com, but has only 10M place (about 6M after you install > web2py-min), good ssh, cron, no problem to install everything. > forpsi.com paid, but only 2$/month for full VM > > but forpsi isnt for web2py,right? >

[web2py] Re: What are the platforms for free web hosting of web2py apps?

2016-04-12 Thread Stephen Duisberg
On Monday, March 14, 2016 at 5:58:13 PM UTC+5:30, Mirek Zvolský wrote: > > allwaysdata.com, but has only 10M place (about 6M after you install > web2py-min), good ssh, cron, no problem to install everything. > forpsi.com paid, but only 2$/month for full VM > > > > Which one's the best to go for?

[web2py] Re: What are the platforms for free web hosting of web2py apps?

2016-04-12 Thread Stephen Duisberg
but forpsi isn't for web2py , right? On Monday, March 14, 2016 at 5:58:13 PM UTC+5:30, Mirek Zvolský wrote: > > allwaysdata.com, but has only 10M place (about 6M after you install > web2py-min), good ssh, cron, no problem to install everything. > forpsi.com paid, but only 2$/month for full VM > >

[web2py] How to make Autocomplete widget limit results based on previous fields?

2016-04-12 Thread H. Das
Hi, Currently I have a table defined like so: db.define_table("patient", Field('first_name'), Field('last_name'), Field('date_of_birth', 'date'), ) db.patient.first_name.widget=SQLFORM.widgets.autocomplete(request, db.patient.first_name, limitby=(0,10), min_length=1) db.patient.las

[web2py] Re: missing response.title and subtitle

2016-04-12 Thread Anthony
Check your layout and make sure they are included. If you're using version control (or have some older backups), see if you can search to figure out at what point you removed them. Anthony On Tuesday, April 12, 2016 at 11:11:16 PM UTC-4, Alex Glaros wrote: > > I did something and now response.t

[web2py] Re: Sending email w/ text & html

2016-04-12 Thread H. Das
Hi can you try: mail.send(to='y...@example.com', subject=subject, message=msg, headers={'Content-Type' : 'text/html'}) On Tuesday, April 12, 2016 at 8:28:56 PM UTC-4, Scott Hunter wrote: > According to the current book, I should be able to do this: > > mail.send('y...@example.com ', > 'Messag

[web2py] missing response.title and subtitle

2016-04-12 Thread Alex Glaros
I did something and now response.title and response.subtitle don't appear. I tried re-copying the menu.py from welcome app into my app but still no titles where did I mess it up? thanks Alex Glaros -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com

[web2py] Sending email w/ text & html

2016-04-12 Thread Scott Hunter
According to the current book, I should be able to do this: mail.send('y...@example.com', 'Message subject', ('Plain text body', 'html body')) When I try: msg = ("Text only","HTML Only") mail.send(to='y...@example.com', subject=subject, message=msg ) the text part

[web2py] Re: How to maintain the distinction between the projects as public ,private

2016-04-12 Thread Leonel Câmara
Are you looking for somethings like this my_visible_projects = db((db.project.public == True) | (db.project.created_by == auth.user_id)).select() This of course assumes the project table has a public boolean field and has a created_by field with the user who created it, Otherwise you need to e

[web2py] Re: How to maintain the distinction between the projects as public ,private

2016-04-12 Thread Dave S
On Tuesday, April 12, 2016 at 2:28:05 PM UTC-7, rahul2499 wrote: > > In this,we have to make distinction such that the public projects are > visible to every user and private projects are visible to only owner of the > user.I'm not able to view the projects in public and private modes.Please > h

[web2py] Re: Error as shown in the image attached.

2016-04-12 Thread Dave S
On Tuesday, April 12, 2016 at 2:28:06 PM UTC-7, naveen pk wrote: > > Kindly please look into it. > Thanks. > duplicate /dps -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/lis

[web2py] Re: Getting the error attached.

2016-04-12 Thread Dave S
On Tuesday, April 12, 2016 at 2:28:06 PM UTC-7, naveen pk wrote: > > Kindly Please look into this. > Seems pretty straight forward ... it thinks you're using a reserved name for one of your field names. For more detail, please post your table definitions. /dps -- Resources: - http://web2py

[web2py] Re: How many days does it take you to learn django if you know web2py (and only web2py)?

2016-04-12 Thread Massimo Di Pierro
yes it is possible. just use this template.py file (https://github.com/web2py/web3py/blob/master/gluon/template.py) has no dependencies and the render function therein. On Sunday, 10 April 2016 10:07:48 UTC-5, rajjmatt...@gmail.com wrote: > > On that note, is it possible to use web2py template l

[web2py] Re: Nginx setup not as recommended

2016-04-12 Thread Massimo Di Pierro
There is no disagreement. Here is an example of GOOD in the nginx docs: http { index index.php index.htm index.html; server { server_name www.example.com; location / { # [...] } } server { server_name example.com; location / {

[web2py] Re: unreadable error

2016-04-12 Thread Leonel Câmara
Just erase all your sessions. -- 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 "

[web2py] web2py 2.14.4 is OUT

2016-04-12 Thread Massimo Di Pierro
web2py 2.14.4 is out. It fixes some a problem with CAS and some style issues with examples. It also includes (and passes) a lot of new tests. Thanks to Richard Vezina, Simone and Leonel for doing most of the work in this release. Massimo -- Resources: - http://web2py.com - http://web2py.com/

[web2py] Error: Permission denied to access property "document"

2016-04-12 Thread 'Nalab' via web2py-users
Hi When trying to run pop-up window,I'm getting this error "Error: Permission denied to access property "document"",, Anyone with experience how to get around this error? regards -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

[web2py] How to maintain the distinction between the projects as public ,private

2016-04-12 Thread rahul2499
In this,we have to make distinction such that the public projects are visible to every user and private projects are visible to only owner of the user.I'm not able to view the projects in public and private modes.Please help me in a form of an example -- Resources: - http://web2py.com - http:/

[web2py] Re: Can someone help me in changing the background image every 5 sec using jquery in web2py?

2016-04-12 Thread Leonel Câmara
Use javascript, make an array of image URLs and then use setTimeout to change them every 5 seconds. Either that or use of the many jquery plugins to do stuff like that, it's basically a slider. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py

[web2py] Re: Odd error

2016-04-12 Thread Jason Solack
It's running in linux with apache, i'm not exactly sure what you are asking, how are we launching web2py? On Tuesday, April 12, 2016 at 3:33:51 PM UTC-4, Niphlod wrote: > > every process that is running the web2py app should have permissions to > read and write into the web2py folder. > if a se

[web2py] XHR application/json scraping

2016-04-12 Thread lucas
hello one and all, i am using web2py to scrape a website. so web2py is a client in this case, not so much the server, but it is running on centos and apache. i am trying to scrape a website and at this point, just trying to login. if i trace all of the network traffic in firefox, i will load

[web2py] Re: Odd error

2016-04-12 Thread Niphlod
every process that is running the web2py app should have permissions to read and write into the web2py folder. if a sessions folder isn't found when the first request hits the app, web2py creates it, but it does so under the current security environment... Whoever is changing the permissions is

[web2py] Odd error

2016-04-12 Thread Jason Solack
Hello everyone! So we have experienced an odd error recently and i'm hoping someone could help shed light on what happened. We have several applications running on centOS / apache and yesterday we began to experience the apps going down periodically and then coming back up. Another odd thing

[web2py] Can someone help me in changing the background image every 5 sec using jquery in web2py?

2016-04-12 Thread Emmanuel Dsouza
supposing that I have my images in db, how do I change the background image every 5 secs? Please help me with a clean code. Thanks -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues

[web2py] Re: unreadable error

2016-04-12 Thread Dave S
On Tuesday, April 12, 2016 at 9:41:12 AM UTC-7, Auden RovelleQuartz wrote: > > hello, > > after upgrading to latest version, I start getting this error: > This is the interesting part: > S'Traceback (most recent call last):\n File > "/home/www-data/web2py/gluon/main.py", line 438, in wsgib

[web2py] In mobile view how to show each response menu items in horizontal manner and not vertical like this?

2016-04-12 Thread Stephen Duisberg
-- 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 "web2py-users" group. To unsub

[web2py] unreadable error

2016-04-12 Thread Auden RovelleQuartz
hello, after upgrading to latest version, I start getting this error: (dp1 S'output' p2 S'' sS'layer' p3 S'Framework' p4 sS'code' p5 S'' sS'snapshot' p6 (dp7 S'ex

[web2py] Re: I find pythonwhere hosting costly. What are other alternatives?

2016-04-12 Thread Willoughby
Try searching the user forum. There must be dozen threads on people's experiences. On Tuesday, April 12, 2016 at 9:40:05 AM UTC-4, Stephen Duisberg wrote: > > I am from India. Which will be best for me. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://githu

[web2py] Re: DatabaseError: database disk image is malformed

2016-04-12 Thread Niphlod
I never ever ever faced the issue . But I trust my VPS with its I/O :-P On Tuesday, April 12, 2016 at 10:39:27 AM UTC+2, Martin wrote: > > Ok, yes i have decided to switch to a mysql db. Still think its a little > strange since i have less then 1k page views/day and this happens every day > now.

[web2py] I find pythonwhere hosting costly. What are other alternatives?

2016-04-12 Thread Stephen Duisberg
I am from India. Which will be best for me. -- 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 Go

[web2py] Re: Parsing doom elements html

2016-04-12 Thread Alessio Varalta
Thanks, I have downloaded the BeautifulSoup libray and is a beautiful library ! On Tuesday, 12 April 2016 13:48:28 UTC+2, Anthony wrote: > > The parser used by TAG cannot handle unbalanced tags in HTML. You'll have > to switch to a more sophisticated parser, such as Beautiful Soup. > > Anthony >

[web2py] Re: Parsing doom elements html

2016-04-12 Thread Anthony
The parser used by TAG cannot handle unbalanced tags in HTML. You'll have to switch to a more sophisticated parser, such as Beautiful Soup. Anthony On Tuesday, April 12, 2016 at 3:50:52 AM UTC-4, Alessio Varalta wrote: > > I retrieve a file with requests and after i make > > r = requests.get(hre

[web2py] Re: DatabaseError: database disk image is malformed

2016-04-12 Thread Martin
Ok, yes i have decided to switch to a mysql db. Still think its a little strange since i have less then 1k page views/day and this happens every day now. Thanks for the advice! On Tuesday, 12 April 2016 09:39:04 UTC+2, Niphlod wrote: > > the system can be strained as long as it gets but a malfor

[web2py] Parsing doom elements html

2016-04-12 Thread Alessio Varalta
Hi, I want to parsing a html file with elements i see on the guide http://web2py.com/books/default/chapter/29/05/the-views#Server-side-DOM-and-parsing so my question is when i retrieve a object how i can access to the value? for example parsed_html=parsed_html.elements('a') for item in p

[web2py] Re: DatabaseError: database disk image is malformed

2016-04-12 Thread Niphlod
the system can be strained as long as it gets but a malformed database is an indicator that the VPS I/O subsystem is not responding correctly, or that the VPS gets brutally rebooted from time to time. There's nothing web2py can do. That being said, going into production with a maybe write-inten