[web2py] crud.messages.record_created

2012-10-12 Thread Annet
In a function I have the following lines of code: form=crud.update(table=db.aboutText,record=row,next=session.crud_next,deletable=True) setFlash(crud,response,session,row,'Home page') ... in a module: def setFlash(crud,response,session,row,function): session.record_updated=session.record_de

[web2py] Re: Whats your experience with memory leaks in web2py apps?

2012-10-12 Thread Massimo Di Pierro
BTW. Are you using rocket? If so, are you using the -N option? You should otherwise cron may do strange things. I am considering removing the -N option and disabling cron by default. On Friday, 12 October 2012 21:26:51 UTC-5, Massimo Di Pierro wrote: > > I tried with the welcome app and i canno

Re: [web2py] multple selection box

2012-10-12 Thread Bruno Rocha
Maybe it can help you: http://rochacbruno.com.br/custom-validator-for-web2py-forms/ On Fri, Oct 12, 2012 at 11:44 PM, dantuluri jaganadha raju < dantulur...@gmail.com> wrote: > Hi, >I want to give option to user to fill ONLY either "..." or > ".." in one of the field of table

[web2py] multple selection box

2012-10-12 Thread dantuluri jaganadha raju
Hi, I want to give option to user to fill ONLY either "..." or ".." in one of the field of table.How can it be done? Thank you in advance.. --

[web2py] Re: auth module not portable between mac and linux?

2012-10-12 Thread vince
oh my mistake, link web2py.app/Contents/MacOS/python to osx's default python works fine. On Saturday, October 13, 2012 10:29:20 AM UTC+8, vince wrote: > > i am using osx 10.8 so the default python should be 2.7. however i notice > the mac package of web2py 2.0.9 bundle with the python 2.5.1 bina

[web2py] Re: auth module not portable between mac and linux?

2012-10-12 Thread vince
i am using osx 10.8 so the default python should be 2.7. however i notice the mac package of web2py 2.0.9 bundle with the python 2.5.1 binary. i just tried to link the python binary inside web2py.app/Contents/MacOS to the 2.7 version from osx but it fail to start. On Saturday, October 13, 2012

[web2py] Re: Whats your experience with memory leaks in web2py apps?

2012-10-12 Thread Massimo Di Pierro
I tried with the welcome app and i cannot reproduce this problem. Compiled or not compiled I see the memory increase, then move and down and then stabilizes. massimo On Friday, 12 October 2012 14:41:49 UTC-5, Massimo Di Pierro wrote: > > I will try reproduce and let you know. > > On Friday, 12

[web2py] Re: auth module not portable between mac and linux?

2012-10-12 Thread Massimo Di Pierro
I experience the same when I use python25 on my mac and python27 on my linux vm. I believe it is because of this bug in python25 http://bugs.python.org/issue1385 Could this be the same case as yours? On Friday, 12 October 2012 20:51:49 UTC-5, vince wrote: > > i tried web2py on linux with source

[web2py] Re: lock table possible?

2012-10-12 Thread Massimo Di Pierro
Open a ticket and we will look to include it. The problem is that not all databases support it. On Friday, 12 October 2012 20:47:06 UTC-5, vince wrote: > > oh db.executesql, thx. > > will we have any table locking implement on web2py? say an option to lock > all queried table read only until com

[web2py] Re: Quickest way to learn web2py

2012-10-12 Thread Massimo Di Pierro
Most people like this: http://killer-web-development.com/section/1/1 On Friday, 12 October 2012 11:43:25 UTC-5, Sponona wrote: > > Can any1 tell me quickest way to learn all the essential stuff of web2py > in detail? > Any books or video-tutorials? > The documentation is too large and is too frus

[web2py] Re: about constraints on fields of table

2012-10-12 Thread Massimo Di Pierro
Field('one','integer',requires=IS_MATCH('\d{9}')) Field('two','time',requires=IS_TIME(format='%H:%M')) On Friday, 12 October 2012 00:14:23 UTC-5, dantuluri jaganadha raju wrote: > > Hi, > I want to accept only 9 digit number as input to one field and > other's are invalid. and in another

[web2py] Re: web2py 2.0.9 is out

2012-10-12 Thread Massimo Di Pierro
https://dl.dropbox.com/u/18065445/Tmp/web2py.admin.editors.zip In contains all the missing editors (amy, editarea, ace). On Thursday, 11 October 2012 19:14:31 UTC-5, Adam Bryzak wrote: > > Is there a way to still use the ACE editor? applications/admin/models/0.py > references web2py.admin.editor

[web2py] flash obtained during not entering a value

2012-10-12 Thread dantuluri jaganadha raju
Hi, I am getting "enter a value"(with red colored back ground) when not entering any data to field of table (to which i made constraint IS_NOT_NULL). How can I change that flash to some "DESIRED ONE."(including back ground color) for 'ONLY SOME' fields of table

[web2py] Quickest way to learn web2py

2012-10-12 Thread Sponona
Can any1 tell me quickest way to learn all the essential stuff of web2py in detail? Any books or video-tutorials? The documentation is too large and is too frustrating to read. --

[web2py] about constraints on fields of table

2012-10-12 Thread dantuluri jaganadha raju
Hi, I want to accept only 9 digit number as input to one field and other's are invalid. and in another field I want to accept time format of form ("hours:minutes" to "hours:minutes"). Thank you in advance... --

[web2py] Re: web2py 2.0.9 is out

2012-10-12 Thread Adam Bryzak
Is there a way to still use the ACE editor? applications/admin/models/0.py references web2py.admin.editors.zip but I can't find this anywhere. -- Adam Bryzak On Friday, 14 September 2012 12:22:21 UTC+10, Massimo Di Pierro wrote: > > It fixes a few minor issues and bugs. > The most notable featu

[web2py] Re: AWS Elastic Beanstalk installation Recipe

2012-10-12 Thread Massimo Di Pierro
I will try a demo asap but I do not have an account so it will take a tille time. In principle everything in eb is not django specific and should work with web2py almost out of them box. On Tuesday, 9 October 2012 11:42:35 UTC-5, CST International Mike wrote: > > Hi > > I trying to find an AWS

[web2py] auth module not portable between mac and linux?

2012-10-12 Thread vince
i tried web2py on linux with source code version and on osx with the mac version, both connected to the same mysql backend. i have notice the user created on linux can only access on linux, login from osx will be invalid login. it's the same on osx the other way around. --

[web2py] Re: routes.py not working in 2.0.9

2012-10-12 Thread Massimo Di Pierro
Strange. We have unitests for them and they all pass. Can I see your routes.py? On Friday, 12 October 2012 17:54:08 UTC-5, Vasile Ermicioi wrote: > > hi, > I put my apps and routes.py in a new folder web2py 2.0.9 and all my > websites are pointed to init app > and I downgraded back to 1.99.4 >

[web2py] Re: lock table possible?

2012-10-12 Thread vince
oh db.executesql, thx. will we have any table locking implement on web2py? say an option to lock all queried table read only until commit? On Thursday, October 11, 2012 9:32:14 PM UTC+8, Massimo Di Pierro wrote: > > You can try: > > db.executesql('LOCK TABLE tablename READ;') > > > http://aark

Re: [web2py] Re: Login error in the new web2py

2012-10-12 Thread Massimo Di Pierro
You would logout everybody. But tell me login does not work anyway. Is that the case? On Friday, 12 October 2012 15:14:14 UTC-5, Massimo Di Pierro wrote: > > delete all files in applications/yourapp/sessions/* > > On Friday, 12 October 2012 14:52:33 UTC-5, Hassan Alnatour wrote: >> >> What do you

[web2py] jquery datetime calendar and Mobile

2012-10-12 Thread Andrew Evans
Hello! How can I get the date and datetime calendar jquery from SQLForm to appear (when a time is being entered) on mobile platforms *cheers and ty --

Re: [web2py] Re: web2py 2.0.2 is out

2012-10-12 Thread Vasile Ermicioi
you are kind of late, we are already at 2.0.9 and 2.1.0 soon to be released :) --

[web2py] Re: web2py 2.0.2 is out

2012-10-12 Thread Simon Carr
Thanks to all of you who have given so many of us another wonderful evolution of this great framework. Simon On Thursday, 30 August 2012 04:41:34 UTC+1, Massimo Di Pierro wrote: > > After 5 months. It is done. This is the most waited and the most > feature-packed release. > > I am sure we'll fi

[web2py] web2py integration with apache alongside PHP

2012-10-12 Thread Simon Carr
I currently have a VPS which I am hosting active sites for my customers in PHP. In future I would like to write apps for my customers in web2py and host them on the same server. From what I have seen it seems possible, but I can't find any clear instructions. Can someone point me to a link tha

[web2py] routes.py not working in 2.0.9

2012-10-12 Thread Vasile Ermicioi
hi, I put my apps and routes.py in a new folder web2py 2.0.9 and all my websites are pointed to init app and I downgraded back to 1.99.4 --

[web2py] Re: auth.wiki usage

2012-10-12 Thread Alan Etkin
¿What error do you get? To force the wiki class to define the tables before serving the wiki pages (so you can customize them) you must add something like this to the model auth.wiki(resolve=False) El viernes, 12 de octubre de 2012 18:47:10 UTC-3, Bill Thayer escribió: > > I applied the patch t

Re: [web2py] Re: Adding extra links to smartgird

2012-10-12 Thread Adnan Smajlovic
Hi Simon, It didn't work because I put there "table_a", referring to a table where you need your button displayed. In your case, you could put there productdatafiles (without db in front). Since smartgrid drills into related tables, some buttons will not be applicable to those tables, like in my c

[web2py] Re: auth.wiki usage

2012-10-12 Thread Bill Thayer
I applied the patch to gluon tools (basically just give the Wiki.__init__(...,render=None,...) a default value of 'markmin' instead of None to remove the first error. Now I need to add an upload field to wiki_media but this does not work: media=db.tables(db.wiki_media) media.fields.append(Fie

Re: [web2py] Adding named arguments to the url

2012-10-12 Thread Simon Carr
Bruno, Massimo - Thanks to you both. On 12 October 2012 21:14, Massimo Di Pierro wrote: > URL('function',vars=dict(name='value')) > > > On Friday, 12 October 2012 15:07:19 UTC-5, Simon Carr wrote: > >> Thanks for the reply Bruno, but is there a web2py function that can add >> vars to the url? >>

[web2py] Re: auth.wiki usage

2012-10-12 Thread Bill Thayer
I'm just starting down the same road so I hope you found success or at least some resources. So far I've had to manually add the tables found in tools.py to Oracle. >From here it looks like I might need: from gluon.tools import Auth, Crud, Service, PluginManager, prettydate, Wiki auth = Auth

Re: [web2py] Re: Login error in the new web2py

2012-10-12 Thread Hassan Alnatour
would i lose any data ? or what will happen to the users who is logged in regards, On Friday, October 12, 2012 11:14:14 PM UTC+3, Massimo Di Pierro wrote: > > delete all files in applications/yourapp/sessions/* > > On Friday, 12 October 2012 14:52:33 UTC-5, Hassan Alnatour wrote: >> >> What do

Re: [web2py] Re: Adding extra links to smartgird

2012-10-12 Thread Simon Carr
Sorry, in case anyone else comes across this post looking for the same thing, here is the code I used to generate my smartgird. def uploadfile(): filelist = SQLFORM.smartgrid(db.productdatafiles,links = [lambda row: A(T('Process File'),_href=URL("vital","processfile",args=[row.id]))]) retu

Re: [web2py] Re: Adding extra links to smartgird

2012-10-12 Thread Simon Carr
OK Sorted it, Not sure why your example didn't work, but I took a very similar example from another web site and it worked fine. Thanks anyway for putting me on the write track. Simon On 12 October 2012 20:35, Simon Carr wrote: > Do you mean like this: > > def uploadfile(): > filelist = S

Re: [web2py] Adding named arguments to the url

2012-10-12 Thread Massimo Di Pierro
URL('function',vars=dict(name='value')) On Friday, 12 October 2012 15:07:19 UTC-5, Simon Carr wrote: > > Thanks for the reply Bruno, but is there a web2py function that can add > vars to the url? > > On 12 October 2012 19:10, Bruno Rocha >wrote: > >> http:///?name=Bruno >> >> then >> >> r

Re: [web2py] Re: Login error in the new web2py

2012-10-12 Thread Massimo Di Pierro
delete all files in applications/yourapp/sessions/* On Friday, 12 October 2012 14:52:33 UTC-5, Hassan Alnatour wrote: > > What do you mean with removing the session ? and how do i do that ? > > regards, > > On Friday, October 12, 2012 10:40:09 PM UTC+3, Massimo Di Pierro wrote: >> >> Can you try r

Re: [web2py] Adding named arguments to the url

2012-10-12 Thread Bruno Rocha
On the client side you can only do that by JavaScript history API (look for history.js) On server side you can build urls with URL('app', 'controller', 'function', args=[], vars={}, anchor="string", scheme=True, host=True) --

Re: [web2py] Adding named arguments to the url

2012-10-12 Thread Simon Carr
Thanks for the reply Bruno, but is there a web2py function that can add vars to the url? On 12 October 2012 19:10, Bruno Rocha wrote: > http:///?name=Bruno > > then > > request.vars > > {"name": "Bruno"} > > -- > > > > --

Re: [web2py] Re: Login error in the new web2py

2012-10-12 Thread Hassan Alnatour
What do you mean with removing the session ? and how do i do that ? regards, On Friday, October 12, 2012 10:40:09 PM UTC+3, Massimo Di Pierro wrote: > > Can you try remove the sessions? > > On Friday, 12 October 2012 10:35:02 UTC-5, Hassan Alnatour wrote: >> >> Dear Massimo , >> >> I Removed the

[web2py] Re: unsupported format character 'A' (0x41)

2012-10-12 Thread Hassan Alnatour
# -*- coding: utf-8 -*- # ## This scaffolding model makes your app work on Google App Engine too ## File is released under public domain and you can use without limitations

[web2py] Re: unsupported format character 'A' (0x41)

2012-10-12 Thread Massimo Di Pierro
What is your model? Do you have a custom auth user or a auth extra fields? On Friday, 12 October 2012 13:35:42 UTC-5, Hassan Alnatour wrote: > > I know that , i really wont to upgrade web2py , but i told you my problem > with the login :( , and really upset about this , am going crazy > > > Rega

[web2py] Re: Whats your experience with memory leaks in web2py apps?

2012-10-12 Thread Massimo Di Pierro
I will try reproduce and let you know. On Friday, 12 October 2012 11:59:01 UTC-5, David Marko wrote: > > Its interal app so I cant provide the source. But I realised the app still > contains 'local_import' so I have replaced with 'import' but no effect. > Then I benchmarked both compiled and non

Re: [web2py] Re: Login error in the new web2py

2012-10-12 Thread Massimo Di Pierro
Can you try remove the sessions? On Friday, 12 October 2012 10:35:02 UTC-5, Hassan Alnatour wrote: > > Dear Massimo , > > I Removed the applications that are using the carts and still am getting > the same thing , now i noticed somthing thing , now that i when i try to > login in my website i

[web2py] Re: Adding extra links to smartgird

2012-10-12 Thread Simon Carr
Do you mean like this: def uploadfile(): filelist = SQLFORM.smartgrid(db.productdatafiles,links=dict(table_a=[ lambda row: A('Duplicate', _class='button', _onclick='return confirm("Duplicate %s?")' %

Re: [web2py] Bug With CSV Export and import

2012-10-12 Thread Richard Vézina
This could help you : If you want to do it manually (if you dataset is not so big and you can rapidly check the data integrity) : http://sqlite.phxsoftware.com/forums/p/941/4725.aspx Not recommended Or "automatically" first answer: http://stackoverflow.com/questions/18671/quick-easy-way-to-migrat

Re: [web2py] Bug With CSV Export and import

2012-10-12 Thread Hassan Alnatour
Dear Richerd , am moving my database from sqlite to mysql, what is the best way ? and keeping the ids the same regards, On Friday, October 12, 2012 9:44:59 PM UTC+3, Richard wrote: > > Depending of your backend, for example with postgres : > > pg_dump --attribute-inserts > --file=/whereYouW

Re: [web2py] Adding extra links to smartgird

2012-10-12 Thread Adnan Smajlovic
here is a quick code sample: in a smartgrid: ... links=dict(table_a=[ lambda row: A('Duplicate', _class='button', _onclick='return confirm("Duplicate %s?")' %

Re: [web2py] IS_STRONG and CRYPT

2012-10-12 Thread Richard Vézina
I don't have this problem, I can submit my form in appadmin db.auth.user... Make sure you are on this page : http://127.0.0.1:8000/sgddms/appadmin/update/db/auth_user/1 Replace 127.0.0.1:8000 if needed. Also, replace the 1 at the end with the id of your user. You should see only big dot in th

Re: [web2py] Bug With CSV Export and import

2012-10-12 Thread Richard Vézina
Depending of your backend, for example with postgres : pg_dump --attribute-inserts --file=/whereYouWantToPutTheFile/"dbName_with_inserts_commands_and_blobs_dump_"`date +"%Y-%m-%d_%H-%M-%S"`".gz" --compress=9 --role=roleName --username=postgres dbName >From the command line. Or you may also use p

Re: [web2py] IS_STRONG and CRYPT

2012-10-12 Thread piero crisci
The password is correct it contaings numbers, caps and symbols. I would like to set also the others attribute of IS_LONG like number=1 , special=1, etc. The string i posted above was just for a simple try. It seems like the password is bad rapresented in the form of the appadmin--> db.auth_user

[web2py] Re: unsupported format character 'A' (0x41)

2012-10-12 Thread Hassan Alnatour
I know that , i really wont to upgrade web2py , but i told you my problem with the login :( , and really upset about this , am going crazy Regards, On Thursday, October 11, 2012 4:35:48 PM UTC+3, Massimo Di Pierro wrote: > > (1, 99, 4, datetime.datetime(2011, 12, 14, 14, 46, 14), 'stable') is

Re: [web2py] IS_STRONG and CRYPT

2012-10-12 Thread Richard Vézina
Piero is your password respecting your IS_STRONG min length? Also, if the only thing you want to enforce with IS_STRONG is the minimum length of the user password, you can enforce it with CRYPT : requires = CRYPT(min_length=auth.settings.password_min_length, error_message=T('too sho

Re: [web2py] Adding named arguments to the url

2012-10-12 Thread Bruno Rocha
http:///?name=Bruno then request.vars {"name": "Bruno"} --

[web2py] Adding named arguments to the url

2012-10-12 Thread Simon Carr
Is it possible to added named arguments to the URL, such as ?n=123 the problem with request.args is that you have to know in advance where in your url structure the data you want to access is held. Thanks Simon --

[web2py] Adding extra links to smartgird

2012-10-12 Thread Simon Carr
Hi All, How do I add an extra link to the SQLFORM.smartgird As an example I want to add a link or a button "Process File" and have it run a controller function that opens and processes an uploaded file. Thanks Simon --

Re: [web2py] IS_STRONG and CRYPT

2012-10-12 Thread piero crisci
Dear Richard i did what you said. But even with appadmin, if i change the user.info using db.auth_user when i submit the information i get the rise of the error_message set in the IS_STRONG control. If i remove the string in the db.py db.auth_user.password.requires= [*IS_STRONG(min=8), CRYPT(aut

Re: [web2py] Re: web2py photo application hosting

2012-10-12 Thread apps in tables
Thanks ... On Friday, October 12, 2012 5:44:58 AM UTC+3, rochacbruno wrote: > > Hosting only depends on how much you want to pay for it, you use Amazon S3 > which is widely used for image cdns, You can pick any VPS which offers > backups (Linode, Rackspace etc), alternativelly you can use DropBo

Re: [web2py] IS_STRONG and CRYPT

2012-10-12 Thread Richard Vézina
You can use the appadmin for these tasks : http://DOMAINOR127.0.0.1:80/YOURAPPNAME/appadmin Then you will have a list of all your tables that you can access by clicking over their name. You should understand rapidly how it's working. Ask other questions here if you need more help about that. Ri

[web2py] Re: Whats your experience with memory leaks in web2py apps?

2012-10-12 Thread David Marko
Its interal app so I cant provide the source. But I realised the app still contains 'local_import' so I have replaced with 'import' but no effect. Then I benchmarked both compiled and non compiled version ... each 2x and non-compiled is fine, but compiled leaks memory ... a) non-compiled versi

Re: [web2py] Re: Login error in the new web2py

2012-10-12 Thread Hassan Alnatour
Dear Massimo , I Removed the applications that are using the carts and still am getting the same thing , now i noticed somthing thing , now that i when i try to login in my website i get the error , but when i try it from my server locally i dont get any errors regards, On Friday, Octobe

[web2py] IS_STRONG and CRYPT

2012-10-12 Thread piero crisci
I tryed to find others with the same iusse problem without understand how to solve the problems :( I set in the db.py the follow table db.define_table('auth_user', Field('username', type='string', label=T('Username')), Field('first_name'

Re: [web2py] Re: Login error in the new web2py

2012-10-12 Thread Hassan Alnatour
Dear Massimo , in one of my applications , that has a shopping cart in the controller i have : # Here i create a number that will never happen again ! and save it in the session and i use it in the database to get the cart items def store(): import random if session.order == None

Re: [web2py] Re: [ANN] Started development on web2admin

2012-10-12 Thread rif
Thank you Ovidio. Do you mean like auth.enable_record_versioning? Can you give more details? -rif vineri, 12 octombrie 2012, 00:55:00 UTC+3, Ovidio Marinho a scris: > > It really is a great job and I think it definitely will be incorporated as > a standard interface for administration. A sugges

Re: [web2py] Bug With CSV Export and import

2012-10-12 Thread Hassan Alnatour
Dear Massimo , The error is happening to all my applications , after i use the new web2py the login in all my websites start giving me the error massage i showed you , but when i use web2py 1.99.2 everything is working fine , so from where do you want me to start the search , now for the cs

[web2py] Re: Whats your experience with memory leaks in web2py apps?

2012-10-12 Thread Massimo Di Pierro
Can you show me? I would like to try reproduce it. We have recently changed the way db connections are collected and perhaps something is going wrong there? On Friday, 12 October 2012 09:11:29 UTC-5, David Marko wrote: > > Latest web2py trunk version from this morning, win7, python 2.7.3 . No >

[web2py] Re: Whats your experience with memory leaks in web2py apps?

2012-10-12 Thread David Marko
Latest web2py trunk version from this morning, win7, python 2.7.3 . No special settings in app, but model tried to be lazy, so everything is defined in Field methods. --

[web2py] Re: smartgrid with lazy_tables=True

2012-10-12 Thread Leonel Câmara
I'm a bit late on my projects so I'm not sure if I'll have time to do it today, I will try to open the ticket tomorrow or Sunday at the latest. Thanks for looking into this. --

[web2py] Re: smartgrid with lazy_tables=True

2012-10-12 Thread Massimo Di Pierro
Please open a ticket with a simple mode to reproduce the problem. On Friday, 12 October 2012 07:52:38 UTC-5, Leonel Câmara wrote: > > Hey, > > I'm getting a completely different grid (at least with postgresql), with > lazy_tables=True, different as in not showing links for all the tables that >

[web2py] Re: Whats your experience with memory leaks in web2py apps?

2012-10-12 Thread Massimo Di Pierro
I posted this yesterday: https://groups.google.com/forum/?fromgroups=#!searchin/web2py/leak/web2py/Go1TUyDm4ys/Tyk7iwjLKL0J What is exactly the version you are using? Can you tell us more about your os, python version, test settings? On Friday, 12 October 2012 07:32:56 UTC-5, David Marko wrote:

[web2py] Re: Small typo in book

2012-10-12 Thread Massimo Di Pierro
oops. thanks. On Friday, 12 October 2012 03:16:14 UTC-5, Rob Goldsmith wrote: > > In chapter 5, under "Mobile development"... > > Notice that the decorator must be important once before using it in a >> controller. > > > I assume should be > > Notice that the decorator must be imported before us

Re: [web2py] Bug With CSV Export and import

2012-10-12 Thread Massimo Di Pierro
Any chance I see your application? It could be a bug in web2py but it could a bug in your app. I cannot say. On Friday, 12 October 2012 01:59:49 UTC-5, Hassan Alnatour wrote: > > Dear Massimo , > > i want to upgrade , but i have that problem with the login i told you > about , that we didnt sol

Re: [web2py] Re: Login error in the new web2py

2012-10-12 Thread Massimo Di Pierro
Are you storing session in db? On Friday, 12 October 2012 01:58:24 UTC-5, Hassan Alnatour wrote: > > Dear Massimo , > > I tried the nightly build as you said and i still get errors : > > TRACEBACK > > 1. > 2. > 3. > 4. > 5. > 6. > 7. > > 8. > 9. > 10. > 11. > 12. > 13. > 14. > 15. > 16. > 17.

Re: [web2py] Email notification for new subscribers

2012-10-12 Thread Adnan Smajlovic
For admin notifications you can place this code in your db.py: auth.settings.register_onaccept.append(lambda form: mail.send(to='ad...@emai.com',subject='New user registered for %s application' % (request.application), message="new user email is %s" % (form.vars.email))) auth.

[web2py] smartgrid with lazy_tables=True

2012-10-12 Thread Leonel Câmara
Hey, I'm getting a completely different grid (at least with postgresql), with lazy_tables=True, different as in not showing links for all the tables that reference the table on the grid. After a cursive investigation it appears it's because "table._referenced_by" does not get correctly filled

[web2py] Whats your experience with memory leaks in web2py apps?

2012-10-12 Thread David Marko
I recently benchmarked my two apps with apache benchmark just to see 'req/s' and found out(accidently) in task manager, that both leak memory somehow. e.g. in one of my app python interpreter has grown from 70kB to 110kB just after 10K requests. Second app was sightly better but still it eats

Re: [web2py] Re: Prettydate and time zones

2012-10-12 Thread David Sorrentino
It works like a charm. :) Thanks a lot for your help guys. I would have never figured it out by myself! Have a wonderful Friday! David On 12 October 2012 00:34, Niphlod wrote: > you're overridding the default validator (IS_DATE*) with IS_NOT_EMPTY > > replacing this line > db.news.date_lo

[web2py] Small typo in book

2012-10-12 Thread Rob Goldsmith
In chapter 5, under "Mobile development"... Notice that the decorator must be important once before using it in a > controller. I assume should be Notice that the decorator must be imported before using it in a controller. --

[web2py] Re: Email notification for new subscribers

2012-10-12 Thread Hassan Alnatour
Dear Piero , you can start from here auth.settings.register_next = URL('Welcome') def Welcome(): if auth.user: User_Email = auth.user.email mail.send(User_Email,'Welcome To website','Welcome To website') redirect('index') else: redirect('index') regards,