[web2py] Re: Install in hostgator

2015-03-22 Thread LoveWeb2py
Did anyone ever find a complete solution to this? I'm using web2py on hostgator and after following this tutorial I can only get my app to work if I name it init. Also, if I try to access another controller for example: www.mysite.com/controller/ I get a 404 error. Does this have something to d

[web2py] Re: format='%(name)s' )

2015-03-22 Thread Massimo Di Pierro
which one is line 23? Perhaps some hidden character creeped in. On Sunday, 22 March 2015 20:43:08 UTC-5, KPlusPlus wrote: > > Hello > > I'm having an issue while compiling a module file > > here is the code > > # -*- coding: utf-8 -*- > #Products Table > db.define_table=('product', >

[web2py] Re: Uservoice

2015-03-22 Thread Massimo Di Pierro
I have not been watching that for some time. Some of the issues there have been addressed. For example web2py has mongodb support. On Sunday, 22 March 2015 00:36:41 UTC-5, KPlusPlus wrote: > > Has anyone checked Uservoice ? > There are abandoned ideas/requests I'm not sure if web2py-developers ar

[web2py] Re: Dropbox in the book

2015-03-22 Thread Massimo Di Pierro
what's L2? I do not what you should do. Do you want to use Dropbox or Janrain? ;-) On Sunday, 22 March 2015 00:36:25 UTC-5, Gray Kanarek wrote: > > The book has the following instructions for integrating Dropbox: > > from gluon.contrib.login_methods.dropbox_account import use_dropbox > use_janra

[web2py] No https when accessing Web2Py as admin on Turnkeylinux

2015-03-22 Thread Dan
On Turnkeylinux , I have set-up a MicroWeb2Py on AWS in a couple of minutes using Turnkeylinux friendly interface. I am trying to access the Web2Py admin interface via the Web shell as admin with the pwd I have set up during the initial installation. It doesn't work. So I clicked on the Hostname

[web2py] format='%(name)s' )

2015-03-22 Thread KPlusPlus
Hello I'm having an issue while compiling a module file here is the code # -*- coding: utf-8 -*- #Products Table db.define_table=('product', Field('name',notnull=True,unique=True), Field('prices','double'), Filed('description','text'),

[web2py] Re: auth define_tables username=False not working on GAE

2015-03-22 Thread Sébastien Loix
Hi Massimo, Thanks for the explanation, now I get it :) I am slowly -trying to- building a login where user can both login with email + password and Facebook. For the Facebook part I "had" to create a username field as written in the tutorial but your solution is perfect. Thanks again! El sába

[web2py] DAL connection string for Web2Py to MySQL on TurnkeyLinux

2015-03-22 Thread Dan
On TurnkeyLinux I have tried to connect a Web2Py app to the MySQL instance (which is up and running) with the following DAL statement (in db.py): db = DAL('mysql://root:pwd2sql@web2py/dbname', fake_migrate_all=True) I have queried the MySQL for the information: select @@hostname; select dat

[web2py] storing variables between modules

2015-03-22 Thread Gray Kanarek
I'm working on an app which involves analysis of numpy arrays. I intend for the arrays to be stored in files in the user's dropbox (and the app links to dropbox), so as not to clutter my app's storage with hundreds of (possibly large) files. When a user selects a file, the data is read and then

[web2py] Json issue

2015-03-22 Thread Dereje
I have a small application that has been working fine till I switched computers to a windows 8.1 system, I also downloaded the latest version of Web2py on my local machine. The problem is that the views which use 'response.json' are not rendered at all on my machine, instead the pages show only

[web2py] Re: Replace 'Welcome' next to username without modifying source code.

2015-03-22 Thread pumplerod
Did you ever get this working? When I attempt the insert method as Anthony mentioned I wind up with the html being displayed along with the user name. On Friday, October 17, 2014 at 10:46:56 PM UTC-5, LoveWeb2py wrote: > > Thanks again, Anthony. Thank you for all of the time you dedicate. > > On

[web2py] Adding extension=False to auth menu

2015-03-22 Thread Gael Princivalle
Hello all. Is there a way to add extension=False to each URL of the auth menu? It could be useful if a .load file is found by a search engine and a user open it (I've put a test for adding the layout if it's loaded alone). Thanks. -- Resources: - http://web2py.com - http://web2py.com/book (Do

[web2py] Re: returning data to web page div (Partly Solved)

2015-03-22 Thread Anthony
Just to clarify the original problem, when a controller action returns a dictionary (as in your original code), web2py assumes it should then look for an execute a view. If a dedicated view does not exist for the action, it will default to generic.html (though this is disabled by default, except

[web2py] Feature or widget required...[?]

2015-03-22 Thread Marco Mansilla
Hi, a long time ago I was looking for some feature that allow to add an extra button next to dropdown list elements to options for list related to other tables, something like django admin does [0], eventually I found this recipe in web2pyslices widget-select-or-add-option[1] and a new version[2],

[web2py] Re: Retuning onclick from controller

2015-03-22 Thread Ron Chatterjee
Can someone put screenshots about what they proposing. Its hard to just visualizing things reading code. On Sunday, March 22, 2015 at 1:32:07 PM UTC-4, Garry Smith wrote: > > Hi is their a way of returning an onclick funtion to a div. > > This is what I'm trying to return. > > onclick="jQuery('#

[web2py] GAE login in twitter

2015-03-22 Thread www.diazluis.com
greetings, could post the code to log into twitter, using as a server GAE -- 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 becau

[web2py] Retuning onclick from controller

2015-03-22 Thread Garry Smith
Hi is their a way of returning an onclick funtion to a div. This is what I'm trying to return. onclick="jQuery('#id').val('{{=row.id}}');ajax('{{=URL('default', 'album')}}', ['id'], 'playlist');"row.album. I can get it to return but only as text, I need it to work as a function This is what I

[web2py] Re: several vars in page

2015-03-22 Thread 黄祥
thank you so much for detail explaination about vars and unpythonic templates. best regards, stifan -- 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

[web2py] Links dissapear when clicked

2015-03-22 Thread Garry Smith
Hi I have some links in a div which are created using the following:- *Controller* rows= sel.select(db.media.album,db.media.id, groupby= db.media.album,orderby=db.media.album) inks = map(lambda row:A(row.album, callback=URL('tracks',vars=dict(id=row.id)), target='playlist'), rows) test = UL([LI