Re: [web2py] Ways to manage db without ssh tunnel

2014-12-13 Thread Marco Mansilla
El Thu, 11 Dec 2014 18:37:01 -0800 (PST) sergenikov escribió: > Hello web2py community, > > I recently hosted a website with hostgator shared hosting. The setup > was ok, somewhat tricky, but ok. However, I found out too late that > hostgator's shared hosting does not support ssh tunneling. I wa

[web2py] Re: orderby on multiple columns

2014-12-13 Thread Jeremiah Peterson
Thank you, that worked great. Really appreciate it. Jeremiah On Saturday, December 13, 2014 8:58:23 PM UTC-6, Anthony wrote: > > If you want the newest first, it should be ~db.news.posted_on. > > Anthony > > On Saturday, December 13, 2014 9:30:05 PM UTC-5, Jeremiah Peterson wrote: >> >> I'm havi

[web2py] Re: migrate and fake_migrate

2014-12-13 Thread Tom Øyvind Hogstad
I have probably the same issue. After it popped up and I couldn't resolve it I have manually added the fields to postgre. As I understand fake migrate it will regenerate the data needed for migrate. So after a fake migrate adding a field and the normal migrate should work out great. It dosen't

[web2py] Re: vps.net ubuntu script installation for web2py doesn't appear to work

2014-12-13 Thread Vin Yard
Script is http://web2py.googlecode.com/hg/scripts/setup-web2py-ubuntu.sh (as per instructions on http://web2py.com/books/default/chapter/29/13/deployment-recipes) It worked fine on a Rpi B R2 with Linux 3.12.22+ But not on Rpi B+ with Linux 3.12.28+ (Installation seems to comp

[web2py] summing fields

2014-12-13 Thread Anthony Smith
Hi I have the following sql which returns what I want , but losted on how to use in my web2py controller. any pointers or help would be grateful. select sum (total_sale_price, buyer, stock_desc from sales group by stock_desc thanks -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] exe file for web2py app

2014-12-13 Thread kanchan
Hello, My question is that can we make exe file for any web2py application. please replay. -- 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] ERR_CACHE_MISS while working with SQLFORM.factory()

2014-12-13 Thread Ramashish Gaurav
Hi all, I have a web2py app in which following is the snippet of index action in controller: def index(): form = SQLFORM.factory(Field('your_name', requires=IS_NOT_EMPTY()), Field('birth_date','date', requires=IS_NOT_EMPTY())).process() if form.accepted:

[web2py] Using OrientDB Graph Database in Web2py

2014-12-13 Thread harith54
Hello everyone!! I am trying to use OrientDB with Web2py as this GraphDocument Database looks very promising. It supports multi-master and automatic failover incase of any node failure etc etc. I am using pyorient driver inorder to connect. IN model db.py import pyorient client = pyorient.Or

[web2py] Re: SQLForm.grid ondelete callback is not called from update form

2014-12-13 Thread flagist0
Sorry Anthony, I didn't receive any update. I expected the callback to be called when the row is deleted from the table by SQLForm.grid -- in both cases, from grid view after pressing the delete button, and from update view after checking the delete checkbox. But the callback was called only in t

[web2py] Re: A helper and delete argument

2014-12-13 Thread Pavel
I have another question: Example from works fine. But, how to prevent showing popup message with warning about deleting object from page? Thanks -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p

[web2py] Re: SQLFORM.grid and custom edit form

2014-12-13 Thread Ian Holser
I know this was a while ago, but I had a similar question and came across this thread. You can turn off the built in edit button by choosing editable=False, then create you own using links def example(): query = db.sometable links = [lambda row: A('Edit',_class='button btn btn-default',_hr

[web2py] Ways to manage db without ssh tunnel

2014-12-13 Thread sergenikov
Hello web2py community, I recently hosted a website with hostgator shared hosting. The setup was ok, somewhat tricky, but ok. However, I found out too late that hostgator's shared hosting does not support ssh tunneling. I was wondering what would be suggestions for managing the db without this.

[web2py] Installation of an editor plugin in web2py app

2014-12-13 Thread Ramashish Gaurav
Hi all ! First of all, I am a newbie in web2py. I am working on a project and need to install an editor plugin in my web2py app named "editor". After hours of search I got ck_editor4 plugin , installed it and then made some chang

[web2py] Re: web2py and pylint

2014-12-13 Thread flagist0
On Wednesday, December 10, 2014 7:04:17 AM UTC+4, Massimo Di Pierro wrote: > > perhaps we should include this in script? > > Pylint expects the plugins to be installed system-wide, so it's better to use this plugin as a separate package. But I'll register my version of the plugin on PyPI so it c

[web2py] Use of IDE on Heroku

2014-12-13 Thread dave
Since Heroku clears filesystem and web2py IDE code changes saves to filesystem. Does that mean web2py IDE is useless for instances running on Heroku? Is there anyway to pull code change before Heroku clears the filesystem? -- Resources: - http://web2py.com - http://web2py.com/book (Documentatio

[web2py] Various Heroku related questions

2014-12-13 Thread dave
I'm new to web2py but I've basically read through the book and checked the forum. I understand pythonanywhere is the preferred way to deploy web2py in the cloud. However Heroku seems to be more generous on free plans, which is good for me to start. I would also like to avoid GAE since my apps w

[web2py] Re: orderby on multiple columns

2014-12-13 Thread Anthony
If you want the newest first, it should be ~db.news.posted_on. Anthony On Saturday, December 13, 2014 9:30:05 PM UTC-5, Jeremiah Peterson wrote: > > I'm having troubles getting the orderby to work with multiple columns, > perhaps I'm not understanding how it should work. > > I have news articles

[web2py] orderby on multiple columns

2014-12-13 Thread Jeremiah Peterson
I'm having troubles getting the orderby to work with multiple columns, perhaps I'm not understanding how it should work. I have news articles that get ranked based on the number votes and time passed. What I'm trying to do is order the news articles first by rank, then if the ranks are the sa