[web2py] Unable to send email on server in web2py.....

2014-01-04 Thread Akash Agrawall
Hie folks.. I know this question is already been asked but I didn't get any help from those answers. please hava look at this I am unable to send email in server(to be specific webfaction.com) ... but it's running fine on local host all these three lines in db.py are set to true.

[web2py] Re: Important New Year News: Edison Award

2014-01-04 Thread BlueShadow
good luck you and web2py deserve it. -- 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 are subscribed to the

[web2py] Re: sessions and logout

2014-01-04 Thread Wonton
Hello Massimo, Thank you very much for your answer. I've made a copypaste of your code, my code is now: def logout(): if auth.user: auth.logout(logout_onlogout=lambda user: session.auth=None) but I get a invalid syntax error in line 154 char 61 trying to save the file: line 154

[web2py] converted url %3F and %3D

2014-01-04 Thread BlueShadow
Hi, for some reason some external links converted the ?id=10 in one of my urls to %3Fid%3D10 my question is how can I convert that request back to the existing url. Preferably for all sites if it should happen again. Do I have to do some nginx magic to do that or can it be done within web2py?

[web2py] Re: How to declare a pre-defined sqlite database

2014-01-04 Thread pythonic . jonathan
Thanks, that seems the kind of thing I want, however it seems to be on about legacy_db - what does that mean/do? Also, the output is rather shorter than I expected. Each table entry only contains: # legacy_db.define_table('wfs100getfeature', migrate=False) Is this all I need?

[web2py] Re: auth signature and enable record versioning

2014-01-04 Thread Massimo Di Pierro
2) Tables are only archived if they have a Field('modified_on','datetime') such as created by the signature. Without it you do not know when changes are made and versioning is useless. 1) Does this work? # on_define_bank def on_define_bank(table): pass # create table : bank

[web2py] Re: sessions and logout

2014-01-04 Thread Massimo Di Pierro
Try: auth.logout(onlogout=lambda user: session.update({'auth':None})) On Saturday, 4 January 2014 05:56:23 UTC-6, Wonton wrote: Hello Massimo, Thank you very much for your answer. I've made a copypaste of your code, my code is now: def logout(): if auth.user:

[web2py] Re: converted url %3F and %3D

2014-01-04 Thread Massimo Di Pierro
How are you generating those links? Can you show the code? On Saturday, 4 January 2014 05:57:10 UTC-6, BlueShadow wrote: Hi, for some reason some external links converted the ?id=10 in one of my urls to %3Fid%3D10 my question is how can I convert that request back to the existing url.

[web2py] Re: Unable to send email on server in web2py.....

2014-01-04 Thread Alan Etkin
Hie folks.. I know this question is already been asked but I didn't get any help from those answers. please hava look at this I am unable to send email in server(to be specific webfaction.com) ... but it's running fine on local host Have you checked this thread?

[web2py] Re: sessions and logout

2014-01-04 Thread Wonton
Is logout_onlogout= or onlogout=, both ways have no errors and I guess the logout has been made correctly. If I put again the prints: def logout(): if auth.user: print 'check 1' auth.logout(logout_onlogout=lambda user: session.update({'auth':None})) print 'check 2'

[web2py] Re: auth signature and enable record versioning

2014-01-04 Thread 黄祥
On Saturday, January 4, 2014 7:15:58 PM UTC+7, Massimo Di Pierro wrote: 2) Tables are only archived if they have a Field('modified_on','datetime') such as created by the signature. Without it you do not know when changes are made and versioning is useless. it's make sense and make me clear

[web2py] Re: How to declare a pre-defined sqlite database

2014-01-04 Thread 黄祥
pardon me, which script that you execute? because in the scripts folder there is 4 scripts for extract the table into models (mysql, oracle, pgsql and sqlite). and which web2py version did you use and what is your os environment? please use the script that match with your database backend. and

[web2py] Re: sessions and logout

2014-01-04 Thread Massimo Di Pierro
it is either auth.settings.logout_onlogout = ... or auth.logout(onlogout= ...) As I answered in my previous response. logout always redirects so check2 will never be printed. On Saturday, 4 January 2014 06:32:39 UTC-6, Wonton wrote: Is logout_onlogout= or onlogout=, both ways have no

[web2py] Re: auth signature and enable record versioning

2014-01-04 Thread 黄祥
just make a correction the example 3 is unlazy table. best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message

[web2py] Re: How to declare a pre-defined sqlite database

2014-01-04 Thread pythonic . jonathan
Hi Stifan, pardon me, which script that you execute? because in the scripts folder there is 4 scripts for extract the table into models (mysql, oracle, pgsql and sqlite). and which web2py version did you use and what is your os environment? please use the script that match with your

Re: [web2py] Re: converted url %3F and %3D

2014-01-04 Thread Kevin Bethke
External links to my side from a diffrent website i got no control over. Thats the problem Am 04.01.2014 13:21 schrieb Massimo Di Pierro massimo.dipie...@gmail.com : How are you generating those links? Can you show the code? On Saturday, 4 January 2014 05:57:10 UTC-6, BlueShadow wrote: Hi,

[web2py] IS_IN_SET in SQLFORM.dictform

2014-01-04 Thread brushek
Hello :) I have following code in controller: session.config = dict(NAME = 'a') form = SQLFORM.dictform(session.config) form.custom.widget.NAME['requires'] = IS_IN_SET(('a','b','c','d','e'), error_message=Choose between a and e) if form.process().accepted:

[web2py] Re: executesql as_dict=True replacing ids during join

2014-01-04 Thread Anthony
Haven't tested it, but looks good. I left a comment on github suggesting a more helpful error message. Anthony On Friday, January 3, 2014 11:01:19 PM UTC-5, Massimo Di Pierro wrote: OK. Done. Please check it. On Friday, 3 January 2014 20:54:02 UTC-6, Anthony wrote: I agree. Because

[web2py] Re: Important New Year News: Edison Award

2014-01-04 Thread JoeCodeswell
May the Lord bless you and your wonderful Framework and Community magnificently, Massimo. Love and peace, Joe On Friday, January 3, 2014 8:08:38 PM UTC-8, Massimo Di Pierro wrote: Web2py/me have been nominated for the Edison Award. Please wish web2py (and me) good luck. :-) --

[web2py] Re: Happy New Year everybody!

2014-01-04 Thread JoeCodeswell
The Community is growing. Congratulations, Massimo. Love and peace, Joe On Wednesday, January 1, 2014 2:06:30 PM UTC-8, Massimo Di Pierro wrote: Happy new year everybody, some good news: 1) python is growing popularity

[web2py] Re: sessions and logout

2014-01-04 Thread Anthony
- A session file is created associated to a user each time that user logs in. Is this ok? Yes, it is OK. - My users make a login through auth.login_bare(user, password), does this create a session file then? Yes. - What should be the code to remove the session file of a user

[web2py] login_onaccept redirect and _next in URL

2014-01-04 Thread lucas
hey everyone, under db.py i have: auth.settings.login_onaccept = check_login auth.settings.register_onaccept = check_login def check_login(form): redirect(URL(c=default, f=onlogin)) return and then under default, the onlogin function, checks the status of the subscription and displays

Re: [web2py] Re: Inserting to db from module. Why do I need to keep restarting Web2py?

2014-01-04 Thread Brando
Richard, is this feature unreliable at this point or am i using it incorrectly? On Friday, January 3, 2014 12:54:12 PM UTC-8, Brando wrote: Version 2.8.2-stable+timestamp.2013.11.28.13.54.07 (Running on Rocket 1.2.6, Python 2.7.3) Also, I doubt it's relevant, but I'm using Sublime

Re: [web2py] Important New Year News: Edison Award

2014-01-04 Thread Vinicius Assef
Congrats. :-D On Sat, Jan 4, 2014 at 2:08 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Web2py/me have been nominated for the Edison Award. Please wish web2py (and me) good luck. :-) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

Re: [web2py] Re: converted url %3F and %3D

2014-01-04 Thread Massimo Di Pierro
The function you seek for is urllib.unquote but without a concrete example of how the wrong link is generated I am not sure about how to apply that function. On Saturday, 4 January 2014 10:35:14 UTC-6, BlueShadow wrote: External links to my side from a diffrent website i got no control over.

[web2py] Re: login_onaccept redirect and _next in URL

2014-01-04 Thread lucas
ok, i answered my own question. under the check_login function, i was able to access the request.env.query_string to see the next, after login, URL and i was able to redirect appropriately. sweet. lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

Re: [web2py] Important New Year News: Edison Award

2014-01-04 Thread joseph simpson
Well deserved.. good luck and have fun.. On Sat, Jan 4, 2014 at 3:19 PM, Vinicius Assef vinicius...@gmail.comwrote: Congrats. :-D On Sat, Jan 4, 2014 at 2:08 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Web2py/me have been nominated for the Edison Award. Please wish web2py

[web2py] Happy New Year everybody!

2014-01-04 Thread Calvin
Happy New year Massimo and all the contributors who have made web2py so awesome! -- 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

Re: [web2py] Important New Year News: Edison Award

2014-01-04 Thread Adnan Smajlovic
Good luck Massimo!!! -- 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 are subscribed to the Google Groups

[web2py] Re: Important New Year News: Edison Award

2014-01-04 Thread Cliff Kachinske
Best of luck. Hope you (and web2py) bring back an award. On Friday, January 3, 2014 11:08:38 PM UTC-5, Massimo Di Pierro wrote: Web2py/me have been nominated for the Edison Award. Please wish web2py (and me) good luck. :-) -- Resources: - http://web2py.com - http://web2py.com/book

Re: [web2py] Re: Important New Year News: Edison Award

2014-01-04 Thread Mirko Scavazzin
Way to go !! Congrats ! 2014/1/5 Cliff Kachinske cjk...@gmail.com Best of luck. Hope you (and web2py) bring back an award. On Friday, January 3, 2014 11:08:38 PM UTC-5, Massimo Di Pierro wrote: Web2py/me have been nominated for the Edison Award. Please wish web2py (and me) good luck.

Re: [web2py] Happy New Year everybody!

2014-01-04 Thread Mirko Scavazzin
Happy new year! 2014/1/5 Calvin calvin@gmail.com Happy New year Massimo and all the contributors who have made web2py so awesome! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -