[web2py] Re: Dropboxing movies into Web2py Server?

2013-05-27 Thread Mika Sjöman
Hi thanks for that dropbox info! Really helpful! When it comes down to showing video at one side and presentation at another it is actually not so smart as people think. The brain has to take the 2D picture of the person and convert it to a 3D picture when it sees a face. Presenting material

[web2py] Re: Dropboxing movies into Web2py Server?

2013-05-27 Thread Mika Sjöman
Yes but how do I import the video into a field of web2py? I look in my app and it does not get inside my app folder - so where does it go? Say for example I download the movie via the Dropbox API, how do I then add it to my video table? Cheers On Monday, May 27, 2013 4:02:55 AM UTC+8,

Re: [web2py] Re: database shootout

2013-05-27 Thread Alexei Vinidiktov
I can't give you any specifics right now as I haven't done any migrations in a long time but the next time I come across what I think to be a bug I'll be sure to post here. It'll be really great if we can fix those glitches. On Sun, May 26, 2013 at 8:38 PM, Massimo Di Pierro

Re: [web2py] how to use cache decorator within modules?

2013-05-27 Thread Atul Jangra
Hey, I ran into a problem. I was trying to do logging in my web2py application. I did the following for the same( referred to some article on internet) Add following codes inside model/log.py: def _init_log(): import logging logger=logging.getLogger(request.application)

[web2py] Re: Dropboxing movies into Web2py Server?

2013-05-27 Thread Niphlod
do you need to load it in your database as it was if it was uploaded directly ? http://web2py.com/books/default/chapter/29/06#More-on-uploads Il giorno lunedì 27 maggio 2013 08:25:53 UTC+2, Mika Sjöman ha scritto: Yes but how do I import the video into a field of web2py? I look in my app

Re: [web2py] asynchronous respons using twisted... is it possible?

2013-05-27 Thread Manuele Pesenti
Il 25/05/13 13:19, Ricardo Pedroso ha scritto: On Fri, May 24, 2013 at 12:05 PM, Manuele Pesenti manuele.pese...@gmail.com mailto:manuele.pese...@gmail.com wrote: Hi! Starting from the fact that using the anyserver script web2py can be run under twistedmatrix web server... is it

[web2py] Re: Error on start: 'Auth' object has no attribute 'wikimenu'

2013-05-27 Thread jfinke
Well, I installed the linux version on a VM I have and it worked perfectly. So, I guess I will stick with that. But something appears to be off with the compiled .app for the Mac. On Sunday, 26 May 2013 17:26:23 UTC-5, jfinke wrote: I just downloaded the mac version of web2py. When I start

[web2py] Re: Error on start: 'Auth' object has no attribute 'wikimenu'

2013-05-27 Thread LightDot
By linux version you mean the source code version of the web2py download? You can run the source version on your Mac directly, you only need to install python. Can't help with the original error since I don't use mac os x, but I'm sure some other mac user will come along shortly. Regards,

[web2py] computed field and reference

2013-05-27 Thread Matteo Luperto
Hi, I want to compute a field based on the value of another field, which is a foreign key, in a way similar to: db.define_table('language', Field('language', 'string', required = True, unique = True, length = 64 ), format='%(language)s' ) db.define_table('problemsHere',

[web2py] Re: Refresh page on successful form submission; and response.flash?

2013-05-27 Thread webpypy
Hi, I am having similar situation. It seems that after submission, the menu is not refreshed. My question is what is the command for refreshing the menu? the same effect of F5 regards, Ashraf On Wednesday, March 20, 2013 11:49:26 AM UTC+3, Niphlod wrote: if you're not using load the

[web2py] Re: Refresh page on successful form submission; and response.flash?

2013-05-27 Thread Niphlod
a normal form reloads the page entirely (as if you push f5). If you're fiddling with ajax, then of course the entire page is not reloaded, but if you need that kind of functionality switch to a normal form handling. Il giorno lunedì 27 maggio 2013 16:07:38 UTC+2, webpypy ha scritto: Hi, I

Re: [web2py] Restful authentication and CORS

2013-05-27 Thread Ray (a.k.a. Iceberg)
Hi Alec, On Tuesday, July 17, 2012 1:03:04 AM UTC+8, Alec Taylor wrote: On Tue, Jul 17, 2012 at 2:20 AM, David Marko dma...@tiscali.czjavascript: wrote: +1 from me having this. Btw. On client side i'm using AngularJS and Trigger.io (instead of PhoneGap) I've been looking around, and

[web2py] Re: Refresh page on successful form submission; and response.flash?

2013-05-27 Thread webpypy
Thank you Niphlod, no ajax. let me rephrase my question, I have a button, once clicked, I have to do things before defining the url of the controller. Doing these things in the beginning of the controller means after the refreshing. I hope my English is not very much confusing. regards,

[web2py] Re: Refresh page on successful form submission; and response.flash?

2013-05-27 Thread Anthony
You can update the response.menu object wherever you want. Anthony On Monday, May 27, 2013 10:49:38 AM UTC-4, webpypy wrote: Thank you Niphlod, no ajax. let me rephrase my question, I have a button, once clicked, I have to do things before defining the url of the controller. Doing

[web2py] hiding a column in smartgrid

2013-05-27 Thread Ricardo Cárdenas
Hi, My model contains a URL field, and I'm displaying the model in a SQLFORM.smartgrid. I don't want to show the whole URL, but I do want the user to be able to visit the URL directly from the grid. So I use the 'links' parameter to SQLFORM.smartgrid. It works very nicely:

[web2py] PAAS supporting web2py

2013-05-27 Thread Arvind Gupta
Hi Is there any PAAS (like openshift/cloudfoundry) which support web2py? regards Arvind -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to

[web2py] Re: Refresh page on successful form submission; and response.flash?

2013-05-27 Thread webpypy
Thank you, Anthony. my question is where . what is the location , in which the response.menu can be updated, after clicking the button and before defining the url (controller) of the button ? in other words,where can I write commands , that will be executed after the button is clicked and

[web2py] Re: Refresh page on successful form submission; and response.flash?

2013-05-27 Thread Anthony
Sorry, it's not at all clear to me what you are asking. Perhaps you can show some code and explain the exact workflow to clarify. Anthony On Monday, May 27, 2013 12:19:48 PM UTC-4, webpypy wrote: Thank you, Anthony. my question is where . what is the location , in which the response.menu

[web2py] Re: PAAS supporting web2py

2013-05-27 Thread Anthony
Also, GAE, Heroku, DotCloud, etc. On Monday, May 27, 2013 12:22:04 PM UTC-4, Relsi Hur Maron wrote: Pythonanywhere https://www.pythonanywhere.com/ Em segunda-feira, 27 de maio de 2013 13h14min39s UTC-3, Arvind Gupta escreveu: Hi Is there any PAAS (like openshift/cloudfoundry)

Re: [web2py] database shootout

2013-05-27 Thread Ricardo Cárdenas
Among RDBMSs, I personally prefer Postgres too, for many of the reasons mentioned - quality of build and add-ons, platform availability, SQL compliance, optional commercial support, Oracle compatibility. But another factor to consider is deployment on IaaS/PaaS options. Heroku and OpenShift

[web2py] Re: PAAS supporting web2py

2013-05-27 Thread Relsi Hur Maron
Pythonanywhere https://www.pythonanywhere.com/ Em segunda-feira, 27 de maio de 2013 13h14min39s UTC-3, Arvind Gupta escreveu: Hi Is there any PAAS (like openshift/cloudfoundry) which support web2py? regards Arvind -- --- You received this message because you are subscribed to

[web2py] Re: [web2py:9361] Re: web2py + opencv

2013-05-27 Thread Damien Couriou
Hello there! I know this topic is a bit old but have you managed to do something about face detection in web2py? I'm currently trying to do the same so it will be nice if you have some advices to share. Cheers, On Monday, September 22, 2008 4:32:29 AM UTC+7, Jailson Brito Jr. wrote: It

[web2py] No module named connections

2013-05-27 Thread ed
* Hi all I have just uploaded some new code to our existing web2py instance. I am getting the following error: type 'exceptions.RuntimeError' Failure to connect, tried 5 times: Traceback (most recent call last): File /opt/web2py/gluon/dal.py, line 6755, in __init__ self._adapter =

[web2py] Re: Refresh page on successful form submission; and response.flash?

2013-05-27 Thread webpypy
ok, let me try again. my description of a normal scenario: i have a view displaying list of rows. there is a button (link) for each row. The link is pointing to a controller, which is related to a second view. once the button(link) is clicked, the controller will start and show the second

[web2py] Re: hiding a column in smartgrid

2013-05-27 Thread Calvin
before the call to SQLFORM.smartgrid, add db.tablename.linkfield.readable=False On Monday, 27 May 2013 23:57:31 UTC+8, Ricardo Cárdenas wrote: Hi, My model contains a URL field, and I'm displaying the model in a SQLFORM.smartgrid. I don't want to show the whole URL, but I do want the

Re: [web2py] Login with ID rather than email?

2013-05-27 Thread Alec Taylor
Hmm, that does slightly confuse me. Am I supposed to add in a 'username' field? This is how the `auth_user` table looks by default, and after registering I tried the value in each column for username; but nothing logged me in: CREATE TABLE auth_user( id INTEGER PRIMARY KEY AUTOINCREMENT,

[web2py] how display var in menu

2013-05-27 Thread greaneym
How would I display the output of this function in a menu? def test1(): a = 20 b = 30 myval = a+b return myval These come close but I don't understand how to implement the second one, response.menu = [ [CAT(I(_class='icon-home'), T('Home')), False, URL('default', 'index')], # shows

[web2py] How to mark the 'id' field as readable and writable?

2013-05-27 Thread Alec Taylor
Here is what I've tried on my auth_user table: Field('id', 'id', readable=True, writable=True, unique=True), But it makes not difference to what is displayed on screen. How do I get this to work? Thanks for all suggestions -- --- You received this message because you are subscribed to

[web2py] Re: How to mark the 'id' field as readable and writable?

2013-05-27 Thread Niphlod
you DO know that id is by default a serial, hence is calculated by the db an there's no way to force a value for it, right ? On Monday, May 27, 2013 9:12:42 PM UTC+2, Alec Taylor wrote: Here is what I've tried on my auth_user table: Field('id', 'id', readable=True, writable=True,

[web2py] Re: how display var in menu

2013-05-27 Thread Niphlod
depends on what you need to be the output of that function. is is something that needs to be visible, something that needs to be put in the link of that menu item, other things ? a simple myresult = test1() response.menu = [ (myresult, False, URL('default', 'index'), []) ] should get

[web2py] Re: computed field and reference

2013-05-27 Thread Niphlod
I can't replicate the issue you're having. That syntax works. Check again your code BTW: it's quite a strange model. you want the language to be unique in the first table. In the second one you reference the first table (that is unique by definition) with a non unique reference, but then

Re: [web2py] Login with ID rather than email?

2013-05-27 Thread Niphlod
if you do auth.define_tables(username=True) a username field is added. BTW: by id we all understood you want to login using the username in the registration rather than the email. If instead you meant by the serial id associated with the auth_user row then forget about username On

[web2py] Re: Refresh page on successful form submission; and response.flash?

2013-05-27 Thread webpypy
To Anthony , Niphlod and Massimo : I am asking for an answer to my question. But, Now I have a different question. Is my question valid? or am i making myself clear? Regards, Ashraf -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To

Re: [web2py] Re: hiding a column in smartgrid

2013-05-27 Thread Ricardo Cárdenas
Thanks Calvin! Exactly what I needed. Is there be a way to hide it at the grid level, but let it be readable when viewing the record detail? (I can do without it -- just curious really.) best regards On Mon, May 27, 2013 at 1:21 PM, Calvin calvin@gmail.com wrote: before the call to

Re: [web2py] asynchronous respons using twisted... is it possible?

2013-05-27 Thread Manuele Pesenti
Il 25/05/13 13:19, Ricardo Pedroso ha scritto: Note that WSGIResource is a multithreaded WSGI container. Like any other WSGI container, you can't do anything asynchronous in your WSGI applications, even though this is a Twisted WSGI container If you want to stay in WSGI land you need to

[web2py] Re: Refresh page on successful form submission; and response.flash?

2013-05-27 Thread Niphlod
I didn't understand what you need. if you need to update just the menu, then you HAVE to do it in ajax (and by hand, there's no web2py facility to change just the menu portion). If instead you want a page reload, than the normal link should provide exactly what you need.at most, once you

[web2py] Re: Refresh page on successful form submission; and response.flash?

2013-05-27 Thread webpypy
Thank you, Niphlod. As you said,I created an extra controller, who solved my problem. Regards, Ashraf -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email

[web2py] Re: database shootout

2013-05-27 Thread memilanuk
On 05/27/2013 09:29 AM, Ricardo Cárdenas wrote: PythonAnywhere is a terrific option; I'm a bit surprised they don't offer Postgres. Maybe someone with influence on the PythonAnywhere folks can give them a nudge? Could push many projects their way. I've been following their 'forum' for a

Re: [web2py] Login with ID rather than email?

2013-05-27 Thread Alec Taylor
I have actually migrated some data, and have a second userid type field; and the email field isn't unique. How do I enable login with that second userid field (of type integer)? On Tue, May 28, 2013 at 5:48 AM, Niphlod niph...@gmail.com wrote: if you do auth.define_tables(username=True) a

Re: [web2py] Login with ID rather than email?

2013-05-27 Thread Alec Taylor
(I have tried the `auth.settings.login_userfield = 'olduserid'` option; but all it did was change the input label, the validator (for email) remained) On Tue, May 28, 2013 at 11:24 AM, Alec Taylor alec.tayl...@gmail.com wrote: I have actually migrated some data, and have a second userid type

[web2py] Re: help with functions index

2013-05-27 Thread André Kablu
O I got that... thanks for the response... However I still miss some details... like for an example I was looking some way to redirect the successful register to another view... to continue the registration process with other fields I could not find anything on documentation... I found

[web2py] Autocomplete widget on SQLFORM.grid search?

2013-05-27 Thread Alec Taylor
I haven't been able to get this to work: # Models db.define_table('category',Field('name')) db.define_table('product',Field('name'),Field('category')) db.product.category.widget = SQLFORM.widgets.autocomplete(request, db.category.name, limitby=(0,10), min_length=2) # View {{=

[web2py] Re: Autocomplete widget on SQLFORM.grid search?

2013-05-27 Thread Anthony
The autocomplete widget is for when a field appears in a create or update form -- it is used to help you fill in a value for the field. Anthony On Monday, May 27, 2013 10:43:11 PM UTC-4, Alec Taylor wrote: I haven't been able to get this to work: # Models

[web2py] Re: PAAS supporting web2py

2013-05-27 Thread Arvind Gupta
Thanks, Antrhony and Reisl All of these seems to be a excellent, I will evaluate all I am more incliend towards pythonanywhere but evaluate all of these Can any one point me to a strengths or weakness of these sites, I have to build a site for teaching python site to k-12 students in india. Does

[web2py] Re: jquery mobile: popup calendar does not always appear

2013-05-27 Thread Massimo Di Pierro
please open a ticket. Perhaps it is time to upgrade the calendar. On Tuesday, 23 April 2013 19:02:31 UTC-5, Rowdy wrote: Greetings, I am developing a desktop/mobile application using web2py 2.4.6 (currently hosted on CentOS 6.4 with Python 2.6.6, web2py running from source). If I have

Re: [web2py] Re: Autocomplete widget on SQLFORM.grid search?

2013-05-27 Thread Alec Taylor
I know, but it could also help suggest possible values to search for details on in the grid On Tue, May 28, 2013 at 1:03 PM, Anthony abasta...@gmail.com wrote: The autocomplete widget is for when a field appears in a create or update form -- it is used to help you fill in a value for the field.

[web2py] Re: After update web2py version, invalid login.

2013-05-27 Thread Massimo Di Pierro
Thank you. I cannot think of any change that should affect this. Keep us posted if you find the problem. On Monday, 27 May 2013 00:53:56 UTC-5, toni campins wrote: With another machine,and update from 2.4.6 to 2.4.7 no problem in postgresql database in localhost. If I can reproduce the

[web2py] Re: No module named connections

2013-05-27 Thread Massimo Di Pierro
The error appears truncated and I cannot read it. Can you email it me as an attachment? On Monday, 27 May 2013 06:10:45 UTC-5, e...@littlebuddhadigital.com wrote: * Hi all I have just uploaded some new code to our existing web2py instance. I am getting the following error: type

[web2py] Re: help with functions index

2013-05-27 Thread Massimo Di Pierro
Look into this: https://github.com/mdipierro/web2py-recipes-source/tree/master/source/04_advanced_forms/06_Creating_a_Form_Wizard it is the source of the web2py recipes book. On Monday, 27 May 2013 20:50:08 UTC-5, André Kablu wrote: O I got that... thanks for the response... However I still

[web2py] Re: PAAS supporting web2py

2013-05-27 Thread Massimo Di Pierro
On Monday, 27 May 2013 22:19:39 UTC-5, Arvind Gupta wrote: Thanks, Antrhony and Reisl All of these seems to be a excellent, I will evaluate all I am more incliend towards pythonanywhere but evaluate all of these Can any one point me to a strengths or weakness of these sites, I have to