[web2py] Re: crud forms for multiple records? Multiple tables?

2013-10-01 Thread at
Does it work with crud as well? Thanksd On Monday, 12 October 2009 06:37:31 UTC+5, mdipierro wrote: > > Something is wrong with this: > > db.define_table('dogs', > ... > Field('vaccination_id', db.vaccinations)) > > db.define_table('vaccinations', > Field('dog_id', db.dogs), >

[web2py] Re: little problem with custom edit_profile method

2013-10-01 Thread Andreas Wienes
Thanks Niphlod, that helped me a lot. Am Montag, 30. September 2013 23:09:29 UTC+2 schrieb Niphlod: > > auth.profile() calls accepts() by itself, you can't re-process() it. > see the signature of auth.profile for further methods (i.e. you could use > onvalidation) or make your own form. > > On

[web2py] Re: compound IF statement for checks on a record

2013-10-01 Thread Loïc
Did you try the following (with "and" in lowercase) ? if vinyl.field1 and vinyl.field2: msg="yes the both have values" else: msg="no they don't" Le mardi 1 octobre 2013 05:40:25 UTC+2, davedigerati a écrit : > > I'm checking a record to see if two fields returned with values, or are > n

Re: [web2py] from devel list (was Re: [web2py-dev] Here they come...)

2013-10-01 Thread Manuele Pesenti
Il 26/09/13 20:49, Gour ha scritto: > Not to clutter dev list, I'm replying here on the comment which was > posted recently on Quora... > > (http://www.quora.com/Wei-Wei-1/Posts/10-reasons-not-to-use-web2py) Perché tanto odio?!? I mean... why a post again something he do not know instead a post on

[web2py] Re: from devel list (was Re: [web2py-dev] Here they come...)

2013-10-01 Thread Gour
On Tue, 01 Oct 2013 10:59:38 +0200 Manuele Pesenti wrote: > I mean... why a post again something he do not know instead a post on > Django and Ruby advantages? Well, that is the fun of the web - everybody can publish whatever he/she desires. :-) Sincerely, Gour -- >From wherever the mind wan

[web2py] Please vote for web2py support in Dash

2013-10-01 Thread Andreas Wienes
Hey guys, I'm using a Mac app called "dash" (http://kapeli.com/dash) for a quick acces to offline documentation. Web2py is unfortunatly not currently not included, but the author has promissed to create a documentation, if enough people would ask him. Maybe you are also interessted in this i

[web2py] Re: Please vote for web2py support in Dash

2013-10-01 Thread Zbigniew Pomianowski
I've send a request:) It is a good idea. All measures are good if they propagate an information about web2py ^^. -- 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

Re: [web2py] dlsym(0x8fe46768, CCKeyDerivationPBKDF): symbol not found ?????

2013-10-01 Thread Michele Comitini
- Which version of OS X? - Which version of web2py? (You can find it in the VERSION file in web2py root) mic 2013/10/1 davedigerati > Tried the rename, no joy. > Downloaded 'Testers' (not sure if this was trunk or not) and started up - > thx;) > > > On Monday, September 23, 2013 4:14:57 AM UTC

[web2py] Web2py on apache2 is slow

2013-10-01 Thread Jayakumar Bellie
I have two servers, both are linux same configuration (OS and hardware). I have a program running in PHP in one server and it is very fast is loading the data. I have web2py running in an different server, it is very slow. Why it is so? -- Resources: - http://web2py.com - http://web2py.com/bo

Re: [web2py] Web2py on apache2 is slow

2013-10-01 Thread Michele Comitini
Please give us more details on your configuration and what your web2py application is trying to do, otherwise is like me coming here and saying: "one of my knees hurts can anyone tell me why?" 2013/10/1 Jayakumar Bellie > I have two servers, both are linux same configuration (OS and hardware).

Re: [web2py] dlsym(0x8fe46768, CCKeyDerivationPBKDF): symbol not found ?????

2013-10-01 Thread Michele Comitini
btw do a remove if rename does not work, if you still get the error be sure to remove the .pyc also. 2013/10/1 davedigerati > Tried the rename, no joy. > Downloaded 'Testers' (not sure if this was trunk or not) and started up - > thx;) > > > On Monday, September 23, 2013 4:14:57 AM UTC-4, Miche

[web2py] web2py update nothing is working anymore

2013-10-01 Thread BlueShadow
Hi i tried to upgrade the framework after using the experimental upgrading button in the admin panel. I couldn't access the admin panel anymore. I got an error page which I could not open. So I copied my application to some place on the server (cp -R ) deleted web2py (rm -R) used the nginx insta

[web2py] Grid console with rows per page selector

2013-10-01 Thread Cliff Kachinske
I'm modifying the SQLFORM.grid console to include a rows per page selector. It seems like a natural thing to have there. I have some questions about the code that builds the search widget. Near line 2153 I find this: search_widget = lambda sfield, url: *CAT(*FORM(

[web2py] Re: little problem with custom edit_profile method

2013-10-01 Thread Anthony
Note, you can do: auth.settings.profile_onaccept = myfunction or auth.profile(onaccept=myfunction) or if user_form.accepted: Anthony On Monday, September 30, 2013 5:09:29 PM UTC-4, Niphlod wrote: > > auth.profile() calls accepts() by itself, you can't re-process() it. > see the signature of

[web2py] Re: web2py update nothing is working anymore

2013-10-01 Thread BlueShadow
For some reason I don't know after the backup finished (the backup was with a non working admin panel) everything works again. I got no explanation because its the second time I used this backup. and last time it didn't work. Am Dienstag, 1. Oktober 2013 14:33:07 UTC+2 schrieb BlueShadow: > > H

[web2py] Re: little problem with custom edit_profile method

2013-10-01 Thread Andreas Wienes
Thanks for your advice Anthony. I really appreciate the web2py-community for it's quick and kind support! -- 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) ---

[web2py] pie.htc and web2py

2013-10-01 Thread Bilal El
Hello, I'm working on a project for users using ie7. And I want to user border-radius (for rounded corner in CSS) but it's not compatible ie. I wanted to use pie.htc, but I can't get it integrated to web2py. Do you have any idea how I can use it? Thanks a lot for your support! Bilal -- Resour

[web2py] Re: Web2py on apache2 is slow

2013-10-01 Thread Massimo Di Pierro
What do you mean by "loading the data"? On Tuesday, 1 October 2013 06:09:38 UTC-5, Jayakumar Bellie wrote: > > I have two servers, both are linux same configuration (OS and hardware). > > I have a program running in PHP in one server and it is very fast is > loading the data. > > I have web2py ru

[web2py] Bad Request Http body is incomplete

2013-10-01 Thread António Ramos
hello i have a user trying to create a record. When he submits he gets a blank page saying Bad Request Http body is incomplete What is this? I dont have any ticket in my admin. Thank you António -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/w

[web2py] Re: Grid console with rows per page selector

2013-10-01 Thread Massimo Di Pierro
form = search_widget and search_widget(sfields, url()) or '' is the same as: if search_widget: form = search_widget(sfields, url()) else: form = '' On Tuesday, 1 October 2013 07:49:40 UTC-5, Cliff Kachinske wrote: > > I'm modifying the SQLFORM.grid console to include a rows per page >

Re: [web2py] Re: crud forms for multiple records? Multiple tables?

2013-10-01 Thread Richard Vézina
Nop! crud = single table. Richard On Tue, Oct 1, 2013 at 3:03 AM, at wrote: > > Does it work with crud as well? > > Thanksd > > On Monday, 12 October 2009 06:37:31 UTC+5, mdipierro wrote: >> >> Something is wrong with this: >> >> db.define_table('dogs', >> ... >> Field('vaccination_id

[web2py] web2py upgrade admin error

2013-10-01 Thread Francisco Costa
Hi I get this error when I click on "check for upgrades" button on the admin Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. Traceback (most recent call last): File "/home/franciscocosta/www/web2py/gluon/restricted.py", line 217, in restricted exec ccode in environ

Re: [web2py] Re: crud forms for multiple records? Multiple tables?

2013-10-01 Thread Richard Vézina
But you can mimick crud authentication with auth.has_membership('role_name') or auth.has_permission(...), read the book about that. Richard On Tue, Oct 1, 2013 at 9:59 AM, Richard Vézina wrote: > Nop! > > crud = single table. > > Richard > > > On Tue, Oct 1, 2013 at 3:03 AM, at wrote: > >> >>

[web2py] Re: Grid console with rows per page selector

2013-10-01 Thread Cliff Kachinske
Thank you, Massimo. The code is working, but the resulting console is not pretty as you can see here. I will see what I can do about fixing up the styling. Also I probably need to update the test set for this. > >

[web2py] Re: Grid console with rows per page selector

2013-10-01 Thread Anthony
> Why call CAT() here? Wouldn't DIV() do the same thing? > Is there a need to wrap it all in another DIV? If not, what's wrong with CAT()? Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.

[web2py] Re: Bad Request Http body is incomplete

2013-10-01 Thread Anthony
Hard to say without seeing any code. On Tuesday, October 1, 2013 9:47:30 AM UTC-4, Ramos wrote: > > hello i have a user trying to create a record. > When he submits he gets a blank page saying > > Bad Request Http body is incomplete > > > What is this? > > I dont have any ticket in my admin. > > >

[web2py] Re: pie.htc and web2py

2013-10-01 Thread Anthony
There should be no issue using it with web2py, as it is a client-side JS library. Feel free to show some code here, but it might be more fruitful to seek help from the PIE forum directly. Anthony On Tuesday, October 1, 2013 9:31:14 AM UTC-4, Bilal El wrote: > > Hello

Re: [web2py] Re: web2py update nothing is working anymore

2013-10-01 Thread Richard Vézina
With all what you did it is difficult to point what is not working now. At least you should update the web2py reserved file in your app : https://groups.google.com/d/msg/web2py/tVyL7z7WHkw/mce13Vh-k3UJ Also, you should search the google group mailing list about admin, I think there is files to up

[web2py] Re: pie.htc and web2py

2013-10-01 Thread Paolo Caruccio
According to pie istructions * * > *this path is relative to the HTML file being viewed, not the CSS file it > is called from.* if you put the pie folder in the static one, the related css rule will be .with-rounded-corners {behavior: url('../static/pie/PIE.htc') } Il giorno martedì 1 ottob

[web2py] Web2py fast introduction in Pycon Brazil

2013-10-01 Thread Vinicius Assef
Hi guys. Yesterday I taught a quick introduction to Web2py here in Brazil, during the first day of training in Pycon and Ploneconf event. It was a 4 hour introduction. I enphasized some pragmatic aspects of our beloved framework, comparing it explictly with Django or Flask. People liked particu

[web2py] Re: Grid console with rows per page selector

2013-10-01 Thread Cliff Kachinske
Anthony, I don't think I'm going to wrap the whole thing in another DIV, but I might use DIVs or maybe SPANS to style the search widget. My question was more like why use CAT in preference to DIV? I'm speculating it's because there was a desire to avoid a DIV tag in the html. On Tuesday, Octo

[web2py] wiki_page.render problem after update to 2.6.4

2013-10-01 Thread Kostas M
I have this function in my controller: def help(): return auth.wiki(render='markmin',menu_groups=['wiki_editor'],manage_permissions =True) and I have created some wiki pages. After updating to 2.6.4 (from 2.5.1), I am getting this Ticket. How it could be fixed?? Error ticket for myapp Ticke

[web2py] Re: web2py upgrade admin error

2013-10-01 Thread Niphlod
it has been fixed in trunk Il giorno martedì 1 ottobre 2013 16:00:42 UTC+2, Francisco Costa ha scritto: > > > Hi I get this error when I click on "check for upgrades" button on the > admin > > Traceback > > 1. > 2. > 3. > 4. > 5. > 6. > 7. > 8. > 9. > 10. > 11. > 12. > 13. > 14. > 15. > 16. > 17

[web2py] Re: Bad Request Http body is incomplete

2013-10-01 Thread Niphlod
usually that turns out when there is no content-length header in the POST Il giorno martedì 1 ottobre 2013 16:08:20 UTC+2, Anthony ha scritto: > > Hard to say without seeing any code. > > On Tuesday, October 1, 2013 9:47:30 AM UTC-4, Ramos wrote: >> >> hello i have a user trying to create a recor

[web2py] Re: wiki_page.render problem after update to 2.6.4

2013-10-01 Thread Kostas M
Ok I sorted it out: A new column has been added at the wiki_page table, and so *migrate *should be set to *True*, at least at the first time after the upgrade as to get DAL to change the table schema... > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://

[web2py] Re: how to build windows binary?

2013-10-01 Thread step
Back in August I was able to build a working web2py_no_console.exe following your instructions, but not anymore. Now the build is still successful but the resulting web2py_no_console.exe errors out when option -t (taskbar) is passed on the command line start "" web2py_no_console.exe -i 127.0.0.1

[web2py] Re: Web2py fast introduction in Pycon Brazil

2013-10-01 Thread Massimo Di Pierro
:-) On Tuesday, 1 October 2013 09:57:53 UTC-5, viniciusban wrote: > > Hi guys. > > Yesterday I taught a quick introduction to Web2py here in Brazil, > during the first day of training in Pycon and Ploneconf event. > > It was a 4 hour introduction. > > I enphasized some pragmatic aspects of our

[web2py] Re: how to build windows binary?

2013-10-01 Thread step
Sorry, it's line 17 of web2py.py that I uncommented, not gluon\main.py import gluon.import_all # This should be uncommented for py2exe.py On Tuesday, October 1, 2013 6:12:21 PM UTC+2, step wrote: > > I noticed a comment on line 17 of gluon\main.py, uncommented the line and > rebuilt with py2e

[web2py] Unsuccessful password reset

2013-10-01 Thread lesssugar
I'm trying to send a custom email template to user when they perform password reset: *db.py:* auth.messages.reset_password = response.render( 'mailing/pass_reset.html', dict(subject="Password reset", link=URL('default','user', args='reset_password'))) and in *mailing/pass_reset.

[web2py] Re: how to build windows binary?

2013-10-01 Thread Niphlod
it's because of a bug in widget.py. Sending a PR and notifying @massimo right now. On Tuesday, October 1, 2013 6:37:49 PM UTC+2, step wrote: > > Sorry, it's line 17 of web2py.py that I uncommented, not gluon\main.py > import gluon.import_all # This should be uncommented for py2exe.py > > On

[web2py] web2py how does it get executed

2013-10-01 Thread Jayadevan M
Hi, I followed the deployment recipe posted here - https://github.com/web2py/web2py/blob/master/scripts/setup-web2py-nginx-uwsgi-centos64.sh and it works fine. The thing is, I don't get how web2py in actually getting initialized. If I check the process tree, I see nginx3:18 \_ /opt/p

[web2py] Re: Web2py fast introduction in Pycon Brazil

2013-10-01 Thread Meir
Hello Vinicius, Congratulations and thanks for all the help you given me and web2py community! Em terça-feira, 1 de outubro de 2013 11h57min53s UTC-3, viniciusban escreveu: > > Hi guys. > > Yesterday I taught a quick introduction to Web2py here in Brazil, > during the first day of training in

[web2py] Re: plugin google map

2013-10-01 Thread Gael Princivalle
Hi Massimo. Sorry but I've don't understand how I can use this plug-in. >plugin_gmap.set=db(db.auth_user.id>0) ### change this to a query that lists records with latitude and longitute Do I have to create another table with one field, and make two records, one with latitude and another with long

[web2py] Re: Debug web2py with PyCharm 3.0

2013-10-01 Thread Gerd
Hi Tim! Thanks for you help, now it work's for me too best regards Gerd Am Montag, 30. September 2013 09:18:11 UTC+2 schrieb Tim Richardson: > > This works for me: > Use pycharm to open the directory of your web2py installation (not > directly to your application directory) > Navigate to your a

[web2py] Re: web2py how does it get executed

2013-10-01 Thread Niphlod
web2py.py is the main wrapper for presenting the widget and starting the rocket webserver (fine for development and small-sized intranets). In production, web2py.py is not used, because the actual web application doesn't need a widget and runs on a separate "production-ready" webserver (actually

Re: [web2py] Re: Web2py fast introduction in Pycon Brazil

2013-10-01 Thread Vicente Orru
Meir, I agree you! 2013/10/1 Meir > Hello Vinicius, > > Congratulations and thanks for all the help you given me and web2py > community! > > Em terça-feira, 1 de outubro de 2013 11h57min53s UTC-3, viniciusban > escreveu: > >> Hi guys. >> >> Yesterday I taught a quick introduction to Web2py here

[web2py] Re: plugin google map

2013-10-01 Thread Massimo Di Pierro
I believe the google map API have changed. That plugin is obsolete. I think we need a new one. Anyway look into applications/welcome/views/generic.map Anyway On Tuesday, 1 October 2013 09:57:38 UTC-5, Gael Princivalle wrote: > > Hi Massimo. > > Sorry but I've don't understand how I can use t

[web2py] Re: Unsuccessful password reset

2013-10-01 Thread Massimo Di Pierro
You probably have same strange character in 'mailing/pass_reset.html' On Tuesday, 1 October 2013 13:26:46 UTC-5, lesssugar wrote: > > I'm trying to send a custom email template to user when they perform > password reset: > > *db.py:* > > auth.messages.reset_password = response.render( > 'mail

Re: [web2py] Re: Web2py fast introduction in Pycon Brazil

2013-10-01 Thread Ovidio Marinho
Very nice, congratlations Vinicius. Thank web2py community. Ovidio Marinho Falcao Neto ITJP.NET.BR ovidio...@gmail.com Brasil 2013/10/1 Vicente Orru > Meir, I agree you! > > > 2013/10/1 Meir > >> Hello Vinicius, >> >> Congra

Re: [web2py] dlsym(0x8fe46768, CCKeyDerivationPBKDF): symbol not found ?????

2013-10-01 Thread davedigerati
Michele, sorry if my post was not more clear but for me the Tester version *DID* work, no problems, 10.6.8, thanks ;) The rename that did not was 10.6.8 and 2.6 'Normal' On Tuesday, October 1, 2013 8:23:55 AM UTC-4, Michele Comitini wrote: > > btw do a remove if rename does not work, if you stil

[web2py] Does an inherited table also inherit _before_insert?

2013-10-01 Thread User
Using table inheritance to define a common set of fields. Given the following code: standard_fields = db.Table(db, 'standard_fields', Field('created_on', 'datetime'), ) standard_field._before_insert.append(lambda fields: fields['created'] =request .now) db.define_table('payment', Field('a

[web2py] User Login causes error on GAE

2013-10-01 Thread Andy W
My application works fine locally with rocket/SQLlite but on GAE it now fails when a user logs in. It was working previously. The problem appeared when I added an extra field to auth_user. I have now removed this field but the error remains. I do not understand the error log sufficient to know wh

[web2py] Re: Manual: RE built-in wiki

2013-10-01 Thread Gour
On Fri, 31 May 2013 11:55:24 -0700 (PDT) Massimo Di Pierro wrote: > You are right. The book is missing something. I agree that that content of the book is a bit misleading. Otoh, after 'discovering' wki, now I realize that, after creating static HTML/CSS design using some (CSS) framewoork, the

Re: [web2py] .ics file name

2013-10-01 Thread Annet
Hi Richard, Thanks for your reply. Could it be possible that this file is not encoded in utf-8 and that you > read it as if it was in utf-8 (imagine a question mark I can t type it :) > You mean I have to put this line: # coding: utf8 at the beginning of the view that contains: {{response.