Re: [web2py] Re: SQLFORM.grid edit form restrictions

2013-12-04 Thread 黄祥
i think you can figure it out by yourself where the 'edit' is passed in request.args. the minus part of list is tell that you must sort it backward (from right), so if it : request.args[-3] == 'edit' the edit must be the 3rd args from the right part for your case e.g. App/default/product/edit/(

[web2py] Re: After upgrade to 2.8.2: foreign key constraint failed

2013-12-04 Thread Paolo Valleri
Web2py 2.8.2 comes with foreign_keys=ON enabled by default (see http://www.sqlite.org/foreignkeys.html) If you get the issue you mentioned I guess you are violating a foreign key constrain. Please post your model (or the tables definitions involved) so that we can figure out what is wrong Paolo

Re: [web2py] Re: resizing uploaded image file upload using gluon.contrib.imageutils

2013-12-04 Thread 黄祥
tried on ubuntu 13.10 with web2py 2.8.2 source and python-imaging installed it's still not worked, tried installed pil for windows from http://www.pythonware.com/products/pil/ is not worked too. i suspect the gluon.contrib.imageutils is not worked on web2py 2.8.2. best regards, stifan -- Resou

[web2py] unable to default SQLFORM option widget to current field value

2013-12-04 Thread Ivo
Is there a way to default the option widget to the current field value? The thing is that when you edit a form, the option widget always defaults to empty (you need to make a selection even if the field already contains a value). I'm quite sure a lot of users will not notice that the select is e

Re: [web2py] Re: resizing uploaded image file upload using gluon.contrib.imageutils

2013-12-04 Thread Ricardo Pedroso
On Wed, Dec 4, 2013 at 8:20 AM, 黄祥 wrote: > tried on ubuntu 13.10 with web2py 2.8.2 source and python-imaging > installed it's still not worked, tried installed pil for windows from > http://www.pythonware.com/products/pil/ is not worked too. > i suspect the gluon.contrib.imageutils is not worked

Re: [web2py] Re: resizing uploaded image file upload using gluon.contrib.imageutils

2013-12-04 Thread 黄祥
hi ricardo, i've tried to upload *.jpg files and yet the results is not resize. what should i do to achieve that? thanks and best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/

[web2py] request.folder

2013-12-04 Thread Marin Pranjić
With trunk (and 2.8.2) I don't get absolute path. request.folder is "applications/appname" Shouldn't it be absolute instead of relative? Marin -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/

Re: [web2py] request.folder

2013-12-04 Thread Marin Pranjić
update: It only happens when I use background task (-S appname -M -R ...) I thought it would also print absolute path. But this happens with older versions so I guess it's expected? Marin On Wed, Dec 4, 2013 at 11:39 AM, Marin Pranjić wrote: > With trunk (and 2.8.2) I don't get absolute path.

[web2py] Re: resizing uploaded image file upload using gluon.contrib.imageutils

2013-12-04 Thread Ivo
Hi, I'm having the same kind of troubles but haven't bothered yet on resolving them. Do you have jpeg decoder installed? I think that could solve your problems On Tuesday, December 3, 2013 7:49:40 AM UTC+1, 黄祥 wrote: > > hi, > > i'm trying to resizing uploaded image file upload using > gluon.co

Re: [web2py] Re: SQLFORM.grid edit form restrictions

2013-12-04 Thread Ivo
Thanks Stifan do you by any chance know how I can manipulate field values for the edit view, for example change the form labels and field values if they are read only? On Wednesday, December 4, 2013 9:00:23 AM UTC+1, 黄祥 wrote: > > i think you can figure it out by yourself where the 'edit' is p

[web2py] Re: resizing uploaded image file upload using gluon.contrib.imageutils

2013-12-04 Thread 黄祥
i can't figure it out how to use RESIZE, but i still can use THUMB. tested in windows 7, web2py both windows binary and source and python pil for windows installed. after all, this what i'm not looking for, at first, i think it's related with image size, but i realize, it's just the css that al

Re: [web2py] Re: SQLFORM.grid edit form restrictions

2013-12-04 Thread 黄祥
i think you can achieve it by improve the above example. e.g. not tested edit_in_form = 'edit' in request.args if not edit_in_form: db.product.price.label = T('Price Uneditable') else: db.product.price.label = T('Price Editable') best regards, stifan -- Resources: - http://web2py.com

[web2py] response.flash to another view

2013-12-04 Thread Yebach
Hello After a new user registers I have a redirect to index page (redirect(URL(request.application, 'default', 'index'))). I would like the response.flash windows (popup or whatever you call it) such as "thank you for filing the reg form" to be shown in the default index.html page. any sugges

[web2py] Re: response.flash to another view

2013-12-04 Thread Anthony
session.flash = 'thank you for filling the reg form' redirect(URL(request.application, 'default', 'index')) Anthony On Wednesday, December 4, 2013 8:29:19 AM UTC-5, Yebach wrote: > > Hello > > After a new user registers I have a redirect to index page > (redirect(URL(request.application,

[web2py] Re: unable to default SQLFORM option widget to current field value

2013-12-04 Thread Anthony
Doesn't sound right. Can you show your code? On Wednesday, December 4, 2013 5:11:25 AM UTC-5, Ivo wrote: > > Is there a way to default the option widget to the current field value? > The thing is that when you edit a form, the option widget always defaults > to empty (you need to make a selection

Re: [web2py] Re: login crash under 2.8.2

2013-12-04 Thread lucas
any ideas on this exception and trace? a little anxious about it because my site is essentially offline. lucas -- 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 Issue

[web2py] Re: unable to default SQLFORM option widget to current field value

2013-12-04 Thread Ivo
default.py: def products(): edit_in_form = 'edit' in request.args db.product.price.writable = not edit_in_form grid = SQLFORM.grid(db.product, columns=[ db.product.name, db.product.price, ], ) return dict(

[web2py] Re: Error in using the web2py.app.dataspreadsheets.w2p

2013-12-04 Thread Massimo Di Pierro
please open a ticket, this is clearly a bug. On Tuesday, 3 December 2013 23:34:33 UTC-6, P T wrote: > > I am using Web2py 2.8.2 source and installed installed the app > web2py.app.dataspreadsheets.w2p from > https://code.google.com/p/web2py/issues/detail?id=860#c1 and getting the > following e

[web2py] Re: Add extra fields to db.auth_user

2013-12-04 Thread Gael Princivalle
Thanks James but also required=True don't have any effect. Perhaps I have to make a custom form or register, do you know I can do it ? Il giorno martedì 3 dicembre 2013 19:56:39 UTC+1, James Burke ha scritto: > > For problem no1, you could try using required=True instead of > requires=IS_NOT_EM

[web2py] Using find on cached queries

2013-12-04 Thread Tito Garrido
Hi Folks, I have report function that is caching my query, example: def report(): sites=db(db.site.ativo==True).select(db.site.id ,db.site.nome,cache=(cache.ram,6000),cacheable=True) lojas=db(db.estoque.ativo==True).select(db.estoque.id ,db.estoque.nome,cache=(cache.ram,6000),cacheable=Tru

[web2py] Re: Add extra fields to db.auth_user

2013-12-04 Thread Massimo Di Pierro
I cannot reproduce problem 1. There is nothing wrong in your code and something else is causing the problem. Are you sure the issue is that "A user can register without filling this field." or is it the users who registered before the contraint was introduced do not have a company field? Proble

[web2py] Re: Error in using the web2py.app.dataspreadsheets.w2p

2013-12-04 Thread P T
Thank you, I opened a ticket http://code.google.com/p/web2py/issues/detail?id=1800 On Wednesday, December 4, 2013 8:42:24 AM UTC-6, Massimo Di Pierro wrote: > > please open a ticket, this is clearly a bug. > > On Tuesday, 3 December 2013 23:34:33 UTC-6, P T wrote: >> >> I am using Web2py 2.8.2 s

[web2py] Re: unable to default SQLFORM option widget to current field value

2013-12-04 Thread Anthony
You have created a custom widget, but the widget code doesn't set the default value of the widget based on the "value" argument to the widget. Try changing: seed = SELECT(**attr) for branch in tree: seed.append(branch) to: seed = SELECT(*tree

[web2py] Re: Using find on cached queries

2013-12-04 Thread Anthony
First, if you are using cache=..., you do not also need to set cacheable=True. Using the former, the DAL automatically handles caching for you. Setting cacheable=True is only for cases where you want to manually cache the Rows object, so you wouldn't be using cache=... in that case. Second, the

[web2py] Re: unable to default SQLFORM option widget to current field value

2013-12-04 Thread Ivo
Thank you Anthony that works perfectly! On Wednesday, December 4, 2013 4:44:13 PM UTC+1, Anthony wrote: > > You have created a custom widget, but the widget code doesn't set the > default value of the widget based on the "value" argument to the widget. > Try changing: > > seed = SELE

[web2py] Re: After upgrade to 2.8.2: foreign key constraint failed

2013-12-04 Thread Scott Hunter
Aha -- I had reference fields, one of which was empty, and they used the default validator, which does not allow for that. I specified the validators for those fields, and that did the trick. Shouldn't this have been reported as an error in the form ("Field Required", or somesuch), and not h

[web2py] URL link to external site

2013-12-04 Thread Rod Watkins
Hello, I have a simple question that I haven't been able to find an answer to. I need to know how to use the URL helper to link to an external site. Here is the code I am using: URL(scheme='http', host='forum.xxx.ca/MyBB'). But this appends the default app, controller and function to the

Re: [web2py] Re: resizing uploaded image file upload using gluon.contrib.imageutils

2013-12-04 Thread Richard Vézina
I wrote this slice sometimes ago : http://www.web2pyslices.com/slice/show/1666/improved-smarthumb There is an improve version at the bottom post in the comment by faultymonk It mays help you or not... Richard On Wed, Dec 4, 2013 at 6:53 AM, 黄

Re: [web2py] URL link to external site

2013-12-04 Thread Jonathan Lundell
On 4 Dec 2013, at 8:22 AM, Rod Watkins wrote: > I have a simple question that I haven't been able to find an answer to. > > I need to know how to use the URL helper to link to an external site. Here is > the code I am using: URL(scheme='http', host='forum.xxx.ca/MyBB'). > > But this appe

[web2py] bulk_upload to GAE development datastore no longer works?

2013-12-04 Thread David Manns
My application runs on GAE. Using Google's bulk loader I make occasional backups of the database. It used to be that I could use the GAE SDK (appcfg tool in this case) to upload all the data into the development server on my development machine, thus creating the full data context for the SDK.

Re: [web2py] URL link to external site

2013-12-04 Thread Rod Watkins
But how do I create the link then? I ask because it is a link used as part of the primary menu system and it seems to only take a URL to create the link. Thanks again Rod On Wednesday, December 4, 2013 8:39:33 AM UTC-8, Jonathan Lundell wrote: > > On 4 Dec 2013, at 8:22 AM, Rod Watkins > > wr

[web2py] Re: Add extra fields to db.auth_user

2013-12-04 Thread Gael Princivalle
Thanks a lot Massimo, in fact I've made testing on an existing user. Now with requires=IS_NOT_EMPTY() the form ask to fill the company field. Perfect. For problem 2 I'm gone define my own auth_user table, have a nice day. Il giorno mercoledì 4 dicembre 2013 16:29:14 UTC+1, Massimo Di Pierro ha

Re: [web2py] RFC Proposal checkbox widget

2013-12-04 Thread Richard Vézina
Hello, I get in trouble with Github and can't commit when I make change for some reasons... The folks at github investigate about the issue... So here a patch, see attachement. Richard On Tue, Dec 3, 2013 at 5:25 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > yes please. > > > O

Re: [web2py] URL link to external site

2013-12-04 Thread Anthony
The URL() helper just generates a string, so in place of it, just put 'http://forum.xxx.ca/MyBB'. Anthony On Wednesday, December 4, 2013 11:48:19 AM UTC-5, Rod Watkins wrote: > > But how do I create the link then? I ask because it is a link used as part > of the primary menu system and it s

Re: [web2py] URL link to external site

2013-12-04 Thread Rod Watkins
Works great! Thanks!! Rod On Wednesday, December 4, 2013 8:58:38 AM UTC-8, Anthony wrote: > > The URL() helper just generates a string, so in place of it, just put ' > http://forum.xxx.ca/MyBB'. > > Anthony > > On Wednesday, December 4, 2013 11:48:19 AM UTC-5, Rod Watkins wrote: >> >> But how

Re: [web2py] RFC Proposal checkbox widget

2013-12-04 Thread Richard Vézina
Would you use this patch instead... I would prefer using my personal email instead... Tortoise Hg didn't use the proper email even if I update .hgrc because I had to restart before :( Thanks Richard On Wed, Dec 4, 2013 at 11:57 AM, Richard Vézina wrote: > Hello, > > I get in trouble with Gi

[web2py] Link to another controller from a load file

2013-12-04 Thread Gael Princivalle
Hello. I load a file inside a page: {{=LOAD('hp','hp.load', ajax=True, target='div_hp')}} Now inside this page I have a link to a function/view from the default controller. {{=P(A('My link', _href=URL('products_listing')))} Reply is "invalid function (hp/products_listing)" In fact web2py tries

Re: [web2py] RFC Proposal checkbox widget

2013-12-04 Thread Richard
Le lundi 2 décembre 2013 15:46:41 UTC-5, Richard a écrit : > > Hello, > > I set a label True/False flag for checkbox widget like so : > > class CheckboxesWidget(OptionsWidget): > > @classmethod > def widget(cls, field, value, **attributes): > """ > generates a TABLE tag, i

[web2py] Re: Link to another controller from a load file

2013-12-04 Thread Anthony
The URL() function will propagate the extension of the current request (which is .load in this case). To suppress the extension, do: URL('products_listing', extension=False) Anthony On Wednesday, December 4, 2013 12:06:44 PM UTC-5, Gael Princivalle wrote: > > Hello. > > I load a file inside a p

Re: [web2py] RFC Proposal checkbox widget

2013-12-04 Thread Massimo Di Pierro
Too late. I patched trunk already. ;-) On Wednesday, 4 December 2013 11:13:28 UTC-6, Richard wrote: > > > > Le lundi 2 décembre 2013 15:46:41 UTC-5, Richard a écrit : >> >> Hello, >> >> I set a label True/False flag for checkbox widget like so : >> >> class CheckboxesWidget(OptionsWidget): >> >>

[web2py] Re: Link to another controller from a load file

2013-12-04 Thread Gael Princivalle
Thanks Anthony, now web2py try to load the html file. In the url I have now "hp/products_listing" instead of "hp/products_listing.load", OK. But the controller is always the wrong one: invalid function (hp/products_listing) How can I ask to web2py to search for "product_listing" in the "default"

[web2py] how to route with mod_proxy and path prefix

2013-12-04 Thread Peter Lai
I'm on 2.8.2, using apache 2.4 mod_proxy and routes.py (mod_proxy_html doesn't work with urls in javascript vars). I was able to use routes.py for the most part but it is adding extra prefixes to the request url that I seem to be unable to get rid off, even though I managed to get them routed p

[web2py] Digest for web2py@googlegroups.com - 25 Messages in 13 Topics

2013-12-04 Thread Tasman . J . Cross
Return Receipt Your [web2py] Digest for web2py@googlegroups.com - 25 Messages in document: 13 Topics

[web2py] Re: Online classes

2013-12-04 Thread Doug Hauenstein
Massimo Thank you for posting these. I just started learning Web2py and MVC in general. I am only on video 1 but have already learned more in a few hours than I have in days of reading and tutorials. Any plans to offer a certification program via MOOC's? Doug On Tuesday, December 3, 2013 1:34:

[web2py] Re: Online classes

2013-12-04 Thread Massimo Di Pierro
Yes. We are testing certification platform. We will start issuing certificates next week. ;-) Massimo On Wednesday, 4 December 2013 12:36:51 UTC-6, Doug Hauenstein wrote: > > Massimo > Thank you for posting these. I just started learning Web2py and MVC in > general. I am only on video 1 but ha

[web2py] Re: Link to another controller from a load file

2013-12-04 Thread Anthony
Is you don't specify the controller in the URL() function, it assumes the current controller, so just do: URL('default', 'product_listing', extension=False) Anthony On Wednesday, December 4, 2013 1:23:15 PM UTC-5, Gael Princivalle wrote: > > Thanks Anthony, now web2py try to load the html file.

[web2py] Modifying "A" helper callback behavior

2013-12-04 Thread pjryan126
Hi, everyone. I am working on a controller that loads a view into a component when an anchor element is clicked. I am building the anchor using the A helper in a manner similar to the following: A(SPAN(_class='span_class'), _class='a_class', _title='a_title', callback = URL(c='default', f='page

[web2py] Re: Spawning a thread or a process for a long-running task [urgent!]

2013-12-04 Thread Leonel Câmara
Instead of rerunning the task with period, schedule new tasks every time you need to go get the user's friends and have many scheduler workers if there's a chance you will have to do many of these in parallel. You should be able to lower the interval as much as you need, you could even reduce t

Re: [web2py] RFC Proposal checkbox widget

2013-12-04 Thread Richard
:) Le mercredi 4 décembre 2013 13:21:43 UTC-5, Massimo Di Pierro a écrit : > > Too late. I patched trunk already. ;-) > > On Wednesday, 4 December 2013 11:13:28 UTC-6, Richard wrote: >> >> >> >> Le lundi 2 décembre 2013 15:46:41 UTC-5, Richard a écrit : >>> >>> Hello, >>> >>> I set a label True/Fa

[web2py] hyperlink address when page print with browser seems coming form boostrap

2013-12-04 Thread Richard
Hello, I try to print some pages today and found that there is a hyperlink address that appear beside each link of the page even image, etc. I think it coming from Bootstrap right? How to shut this behavoir off!! Is there an easy way... I found this pretty annoying because it busted all the de

[web2py] Re: Modifying "A" helper callback behavior

2013-12-04 Thread Anthony
I think you're supposed to be able to do: A(..., data=dict(w2p_disable_with=...)) but looks like there might be a bug in the A() code that prevents that from working properly right now. Anthony On Wednesday, December 4, 2013 3:00:49 PM UTC-5, pjryan126 wrote: > > Hi, everyone. I am working on

Re: [web2py] hyperlink address when page print with browser seems coming form boostrap

2013-12-04 Thread Paolo Caruccio
Maybe this helps https://groups.google.com/d/msg/web2py/z_vjoBM9WlU/FLw7MCQIViMJ Il giorno mercoledì 4 dicembre 2013 21:44:04 UTC+1, Richard ha scritto: > > Hello, > > I try to print some pages today and found that there is a hyperlink > address that appear beside each link of the page even ima

Re: [web2py] hyperlink address when page print with browser seems coming form boostrap

2013-12-04 Thread Richard Vézina
Yes Paolo, it works great... Many thanks for this... I am curious where is it from though... :) Richard On Wed, Dec 4, 2013 at 4:01 PM, Paolo Caruccio wrote: > Maybe this helps > https://groups.google.com/d/msg/web2py/z_vjoBM9WlU/FLw7MCQIViMJ > > > Il giorno mercoledì 4 dicembre 2013 21:44:0

Re: [web2py] hyperlink address when page print with browser seems coming form boostrap

2013-12-04 Thread Paolo Caruccio
Bootstrap has: https://github.com/twbs/bootstrap/blob/master/dist/css/bootstrap.css#L228 so by the suggested rules we remove the link from the content. Il giorno mercoledì 4 dicembre 2013 22:07:10 UTC+1, Richard ha scritto: > > Yes Paolo, it works great... > > Many thanks for this... > > I am cu

Re: [web2py] hyperlink address when page print with browser seems coming form boostrap

2013-12-04 Thread Richard Vézina
Ok, as I thought, it was from bootsrap... Thanks a million for this. :) Richard On Wed, Dec 4, 2013 at 4:27 PM, Paolo Caruccio wrote: > Bootstrap has: > > https://github.com/twbs/bootstrap/blob/master/dist/css/bootstrap.css#L228 > > so by the suggested rules we remove the link from the conten

[web2py] problem in sending mail

2013-12-04 Thread sonu kumar
Hi All, I am not able to send email via my application. here is my code..I don't know where I am doing mistake, but it is working fine with gmail setup. from gluon.tools import Mail mail = Mail() mail.settings.server = 'xx.x.x.xx:25' mail.settings.sender = 'ad...@xyz.org' mail.settings.login = No

[web2py] Re: After upgrade to 2.8.2: foreign key constraint failed

2013-12-04 Thread Vch H
I have this problem too. Where I should specified validators? On Wednesday, December 4, 2013 6:00:43 PM UTC+2, Scott Hunter wrote: > > Aha -- I had reference fields, one of which was empty, and they used the > default validator, which does not allow for that. I specified the > validators for t

[web2py] Receiving an URL as request.vars

2013-12-04 Thread luciano
Hello, I'm writing an app using web2py and I would need to accept a full URL as a get parameter, so in case the following request is received: "http://www.mysite.com/http://www.google.com/"; a controller function should be called with the value "http://www.google.com/"; as an argument. Is this

[web2py] Social Login

2013-12-04 Thread Cássio Botaro
What's the way to do login with twitter without using janrain? I've tried this solution but only works with facebook. https://github.com/r4bugento/web2social After authorization, I've been redirected to http://127.0.0.1:8000/web2social/default/user/login and show me this message: "This webpag

[web2py] Re: problem in sending mail

2013-12-04 Thread Alan Etkin
> as my IT dept told me that this smtp does not need any login...this smtp > direct send mail and it is working fine for them. But I don't know why it > is not working for me...Is there any mistake I am doing in my code?? > After mail.send(), check the values for mail.result and mail.error --

[web2py] Re: Error in using the web2py.app.dataspreadsheets.w2p

2013-12-04 Thread P T
I am posting here the solution I received by e-mail. This resolved this issue. I guess I missed the quotes for the _class dictionary key, so replacing this line **{_class: "%s_fieldnames" % with this **{"_class": "%s_fieldnames" %

Re: [web2py] Receiving an URL as request.vars

2013-12-04 Thread Jonathan Lundell
On 4 Dec 2013, at 2:25 PM, luciano wrote: > Hello, I'm writing an app using web2py and I would need to accept a full URL > as a get parameter, so in case the following request is received: > "http://www.mysite.com/http://www.google.com/"; > a controller function should be called with the value

Re: [web2py] Re: Suggestions for multiple files upload in form

2013-12-04 Thread Ruud Schroen
Thanks alot! I'll check it out tommorow :) i'll let you know if it worked On Wed, Dec 4, 2013 at 9:54 PM, Paolo Caruccio wrote: > There are several compatibility problems between foundation css and > multiupload. You'll find here attached the patched files. Now it should > work also with founda

[web2py] Re: problem in sending mail

2013-12-04 Thread sonu kumar
Hi Alan, I checked as you said..it gives mail.result ={} mail.error = gaierror(-2, 'Name or service not known') On Wednesday, 4 December 2013 14:48:00 UTC-8, Alan Etkin wrote: > > > as my IT dept told me that this smtp does not need any login...this smtp >> direct send mail and it is working fi

[web2py] Re: problem in sending mail

2013-12-04 Thread sonu kumar
Thanks Alan. It is working now..with this script from gluon.tools import Mail mail = Mail() mail.settings.server = 'localhost' mail.settings.sender = 'x...@xxx.org' mail.settings.login = None mail.settings.tls = None thanks On Wednesday, 4 December 2013 14:55:59 UTC-8, sonu kumar wrote: > >

[web2py] Re: After upgrade to 2.8.2: foreign key constraint failed

2013-12-04 Thread Scott Hunter
This was how I modified one of the "offending" Field definitions: Field('f_club2', type='reference t_club', requires=IS_EMPTY_OR(IS_IN_DB(db,db.t_club.id,"%(f_desc)s")), label=T('ClubCode2')), Basically, I wrapped a IS_EMPTY_OR around what the manual says is the default

[web2py] Re: Online classes

2013-12-04 Thread 黄祥
i think it would be better if you put the description on the video, i mean the scope of lesson in the video. 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/

[web2py] redirect on error page by routes.py

2013-12-04 Thread sonu kumar
Hi All, I would like to redirect to error.html page upon internal error in my application. here is my code I am using it but not working..Please suggest me where I am doing wrong. routers = dict( # base router BASE=dict( default_application='myapp', ), ) routes_onerror =

[web2py] Re: Online classes

2013-12-04 Thread Jesse Ferguson
I have watched the first few videos and they are so helpful for a beginner like myself, I would like to thank you for these! I would also like to request that you share the source code, I have been using the videos as reference and its a pain to try to find the parts that explained xyz functio

[web2py] Prevent multiple submit buttons from showing "Working..." on submit

2013-12-04 Thread Mark Li
I currently have 2 submit buttons in a form. When a user clicks on one of them, it changes both submit input values to "Working..." I looked into web2py.js and tried applying the suggestion there for preventing "Working.." from showing up on the buttons /*if you don't want to see "working..."

[web2py] Re: After upgrade to 2.8.2: foreign key constraint failed

2013-12-04 Thread Alex Glaros
Is there any indicator regarding which exact foreign key constraint it is, or do I have to check each table and field in the problem controller? thanks, Alex Glaros -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - http

[web2py] Re: Error in using the web2py.app.dataspreadsheets.w2p

2013-12-04 Thread Massimo Di Pierro
Fixed in trunk. On Wednesday, 4 December 2013 16:51:31 UTC-6, P T wrote: > > I am posting here the solution I received by e-mail. This resolved this > issue. > > I guess I missed the quotes for the _class dictionary key, so replacing > this line > >**{_class: "%s_

[web2py] Failure after upgrade to 2.8.2

2013-12-04 Thread Jim S
The following code is failing after update from 2.8.x to 2.8.2 (not positive what version I came from) auth.settings.hmac_key = 'sha512:9d8d83af-4769-410b-9cf5-e01a163b498d' # before define_tables() auth.settings.extra_fields['auth_user']= [ Field('auth_group', 'reference auth_group'

Re: [web2py] Re: Online classes

2013-12-04 Thread Ovidio Marinho
For new and old programmers, video reference. very good!!! Ovidio Marinho Falcao Neto ITJP.NET.BR ovidio...@gmail.com Brasil 2013/12/4 Jesse Ferguson > I have watched the first few videos and they are so helpful for a beginn

Re: [web2py] Online classes

2013-12-04 Thread Jake Angulo
Invaluable learning resource... thinking of downloading to my tablet. Thanks maestro :) On Tue, Dec 3, 2013 at 5:34 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > Hello everybody, > > As you know I teach a certification program about web development with > Python and I use web2py.

[web2py] Re: Spawning a thread or a process for a long-running task [urgent!]

2013-12-04 Thread Yassen D.
Leonel, thanks so much for the advice! On Wednesday, December 4, 2013 10:28:43 PM UTC+2, Leonel Câmara wrote: > > Instead of rerunning the task with period, schedule new tasks every time > you need to go get the user's friends and have many scheduler workers if > there's a chance you will have

[web2py] Re: After upgrade to 2.8.2: foreign key constraint failed

2013-12-04 Thread Vch H
How I can change "foreign_keys=ON" to "OFF" for some application? -- 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

[web2py] Re: uploading files on GAE - 404 NOT FOUND

2013-12-04 Thread Christian Foster Howes
Can you share the log/stack trace from when that happens? does the form post to the same function that generated it? i have not tried upload in grid()wonder if there is something there that doesn't quite work on app engine? On Tuesday, December 3, 2013 10:49:47 AM UTC-8, James Burke wrote:

[web2py] Re: bulk_upload to GAE development datastore no longer works?

2013-12-04 Thread Christian Foster Howes
this is a documented GAE SDK bug. you'll have to downgrade your GAE SDK to the last working version of this. i *think* the last working version is 1.8.1 On Wednesday, December 4, 2013 8:46:31 AM UTC-8, David Manns wrote: > > My application runs on GAE. Using Google's bulk loader I make occasio

[web2py] Re: Spawning a thread or a process for a long-running task [urgent!]

2013-12-04 Thread Yassen D.
On Wednesday, December 4, 2013 10:28:43 PM UTC+2, Leonel Câmara wrote: > > Instead of rerunning the task with period, schedule new tasks every time > you need to go get the user's friends > I guess I have to create a record into the scheduler_task table, with some reasonable values, and then

[web2py] Re: Running instantpress in GAE: Internal error Ticket issued: unrecoverable

2013-12-04 Thread PRACHI VAKHARIA
*Did you find a Solution?* *If yes, what is the Solution?* Thank you. On Thursday, June 13, 2013 11:29:35 AM UTC-4, peibol wrote: > > Hi all: > > Everything is running smoothly at localhost, but when deploying a raw > instantpress on GAE I get Internal error Ticket issued: unrecovera

[web2py] GAE - Not Working || Full Code Attached

2013-12-04 Thread PRACHI VAKHARIA
*GAE – Not Working* The app works well locally and also on GAE-launcher, but once uploaded (deployed) on to GAE, the app does not work and gives an error. *Code and Error Provided Below* *MODEL (db.py)* if not request.env.web2py_runtime_gae: db = DAL('sqlite://storage.s

[web2py] Re: Spawning a thread or a process for a long-running task [urgent!]

2013-12-04 Thread Yassen D.
On Thursday, December 5, 2013 8:40:28 AM UTC+2, Yassen D. wrote: > > > > On Wednesday, December 4, 2013 10:28:43 PM UTC+2, Leonel Câmara wrote: >> >> Instead of rerunning the task with period, schedule new tasks every time >> you need to go get the user's friends >> > > I guess I have to create a

[web2py] Re: Spawning a thread or a process for a long-running task [urgent!]

2013-12-04 Thread Yassen D.
On Thursday, December 5, 2013 9:33:15 AM UTC+2, Yassen D. wrote: > > ... I get an exception saying that table socialjack.scheduler_task does > not exist (traceback below). But the table IS there, I can see it in the db > admin interface and on the MySQL console ... > Not really, the table is s

[web2py] Re: GAE - Not Working || Full Code Attached

2013-12-04 Thread James Burke
Nothing looks obvious at first glance... if the ticket issued is unrecoverable then it can be that GAE hasn't created the indexes for your datastore table yet. It may be just a case of waiting a few minutes and refreshing the page. -- Resources: - http://web2py.com - http://web2py.com/book (Do

[web2py] Re: user profile fields for referenced table

2013-12-04 Thread Yebach
So based on your answers I menaged to do my form The next question or problem I have is following. When user registers a new record is created in two tables (auth_user and organization). But when the user goes to profile page the form is empty and after filling it a new record is inserted in or