Re: [web2py] Re: MY auth mailer not wprking please check code and send me changes?
so i need proper code for sending mail by mailer to user..please provide me code On Tue, May 17, 2016 at 3:34 PM, Sukrut Joshi <sukrut...@gmail.com> wrote: > no google is not sending any mail..means my mailer is not working > > On Tue, May 17, 2016 at 2:59 PM, Vic Ding <dingqiq...@gmail.com> wrote: > >> You mentioned "mail not deliver to mailer". >> Mailer is the person or the mailing program, in your case: google? >> >> I am no expert in web2py, trying to see it from different angle. >> Have you checked the mail log to verify if the mail is received and sent >> by the mailer? >> Many mailers do not work out of the box. For example, you have to "allow" >> apps to use google as mailer on gmail. >> >> >> On Tuesday, May 17, 2016 at 9:49:08 AM UTC+2, Sukrut Joshi wrote: >>> >>> When I complete the registration form a flash appears on the top-right >>> corner of the page with a flash message "Email sent" but mail is not >>> deliver to mailer >>> please help me >>> i used these setting in db.py >>> >>> >>> from gluon.tools import Auth >>> auth = Auth(db) >>> auth.define_tables(username=False,signature=False) >>> auth.settings.registration_requires_verification = True >>> auth.settings.registration_requires_approval = True >>> auth.settings.reset_password_requires_verification = True >>> >>> mail = auth.settings.mailer >>> mail.settings.server = 'smtp.gmail.com:465' >>> mail.settings.sender = 'ex...@gmail.com' >>> mail.settings.server = 'logging' >>> mail.settings.login ='exam...@gmail.com:example' >>> >>> i have changed email and password >>> >> -- >> 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-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to web2py+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] Re: MY auth mailer not wprking please check code and send me changes?
no google is not sending any mail..means my mailer is not working On Tue, May 17, 2016 at 2:59 PM, Vic Ding <dingqiq...@gmail.com> wrote: > You mentioned "mail not deliver to mailer". > Mailer is the person or the mailing program, in your case: google? > > I am no expert in web2py, trying to see it from different angle. > Have you checked the mail log to verify if the mail is received and sent > by the mailer? > Many mailers do not work out of the box. For example, you have to "allow" > apps to use google as mailer on gmail. > > > On Tuesday, May 17, 2016 at 9:49:08 AM UTC+2, Sukrut Joshi wrote: >> >> When I complete the registration form a flash appears on the top-right >> corner of the page with a flash message "Email sent" but mail is not >> deliver to mailer >> please help me >> i used these setting in db.py >> >> >> from gluon.tools import Auth >> auth = Auth(db) >> auth.define_tables(username=False,signature=False) >> auth.settings.registration_requires_verification = True >> auth.settings.registration_requires_approval = True >> auth.settings.reset_password_requires_verification = True >> >> mail = auth.settings.mailer >> mail.settings.server = 'smtp.gmail.com:465' >> mail.settings.sender = 'ex...@gmail.com' >> mail.settings.server = 'logging' >> mail.settings.login ='exam...@gmail.com:example' >> >> i have changed email and password >> > -- > 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-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] MY auth mailer not wprking please check code and send me changes?
When I complete the registration form a flash appears on the top-right corner of the page with a flash message "Email sent" but mail is not deliver to mailer please help me i used these setting in db.py from gluon.tools import Auth auth = Auth(db) auth.define_tables(username=False,signature=False) auth.settings.registration_requires_verification = True auth.settings.registration_requires_approval = True auth.settings.reset_password_requires_verification = True mail = auth.settings.mailer mail.settings.server = 'smtp.gmail.com:465' mail.settings.sender = 'ex...@gmail.com' mail.settings.server = 'logging' mail.settings.login ='exam...@gmail.com:example' i have changed email and password -- 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-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] Re: web2py 2.14.2
thanku On Wed, Mar 30, 2016 at 3:58 PM, Gary Cowellwrote: > Hello > > Running 2.14.3 - upgraded from 2.12.(something) > > Seems all the btn-default are now almost invisible? > > E.g. from the log in page: > > onclick="window.location='/dynamic54/default/user/register?_next=%2Fdynamic54%2Fdynamic%2Flist_systems';return > false">Sign Up > > Gives me > > > > now. > > I upgraded web2py, then copied the static/js and static/css from welcome > > I notice bootstrap version changed from 3.3.4 to 3.3.5. button style has > changed also. > > Did I do something wrong during upgrade? What might be the problem? > > Thanks > > > > > On Thursday, 24 March 2016 22:56:23 UTC, Massimo Di Pierro wrote: >> >> http://web2py.com/ >> >> First of all many many thanks to Simone (niphlod), Richard, and Leonel. >> Most of the work is theirs. >> >> It is important that you upgrade because we fixed some serious security >> bugs that may leak your admin password (if you use rocket and expose the >> old example app). >> >> We fixed many many bug and in particular everything should work fine on >> GAE now, including Datastore and Cloud SQL. >> >> ** IMPORTANT: We also strongly recommend that you do not expose the >> examples app if you do not have to. Although all known security issue have >> been fixed in the new examples app, there may be issue with your legacy >> examples app.** >> >> CHANGELOG >> >> - fixed two major security issues that caused the examples app to leak >> information >> >> - new Auth(…,host_names=[…]) to prevent host header injection >> >> - improved scheduler >> >> - pep8 enhancements >> >> - many bug fixes >> >> - restored GAE support that was broken in 2.13.* >> >> - improved fabfile for deployment >> >> - refactored examples with stupid.css >> >> - new JWT implementation (experimental) >> >> - new gluon.contrib.redis_scheduler >> >> - myconf.get >> >> - LDAP groups (experimental) >> >> - .flash -> .w2p_flash >> >> - Updated feedparser.py 5.2.1 >> >> - Updated jQuery 1.12.2 >> >> - welcome app now checks for version number >> >> - Redis improvements. >> >> >> BEFORE: >> >> from gluon.contrib.redis_cache import RedisCache >> >> cache.redis = RedisCache('localhost:6379',db=None, debug=True) >> >> >> NOW: >> >> from gluon.contrib.redis_utils import RConn >> >> from gluon.contrib.redis_cache import RedisCache >> >> rconn = RConn() >> >> # or RConn(host='localhost', port=6379, >> >> # db=0, password=None, socket_timeout=None, >> >> # socket_connect_timeout=None, .) >> >> # exactly as a redis.StrictRedis instance >> >> cache.redis = RedisCache(redis_conn=rconn, debug=True) >> >> BEFORE: >> >> from gluon.contrib.redis_session import RedisSession >> >> sessiondb = RedisSession('localhost:6379',db=0, session_expiry=False) >> >> session.connect(request, response, db = sessiondb) >> >> >> NOW: >> >> from gluon.contrib.redis_utils import RConn >> >> from gluon.contrib.redis_session import RedisSession >> >> rconn = RConn() >> >> sessiondb = RedisSession(redis_conn=rconn, session_expiry=False) >> >> session.connect(request, response, db = sessiondb) >> > -- > 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-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] Re: web2py 2.14.2
please help for regex of mobile numbers of india i dont want use country code ..number must start with digit and end with digit and length of mobile no=10 requires = IS_MATCH('^1?((-)\d{3}-?|\(\d{3}\))\d{3}-?\d{4}$', error_message='not a phone number') this is for us..and need for india ? eg.91 952 733 2303 On Tue, Mar 29, 2016 at 9:38 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > Please use a different thread for this. On the other thread, can you show > the query that cases this traceback? > > > On Monday, 28 March 2016 13:50:46 UTC-5, rif wrote: >> >> Unfortunately __init__ is present in my case. Moreover when I start the >> app using local development server I get another stacktrace (pasted below). >> >> File "/home/rif/Documents/webframeworks/firmoasa/gluon/restricted.py", >> line 227, in restricted >> exec ccode in environment >> File >> "/home/rif/Documents/webframeworks/firmoasa/applications/firmoasa/controllers/default.py", >> line 87, in >> File "/home/rif/Documents/webframeworks/firmoasa/gluon/globals.py", >> line 417, in >> self._caller = lambda f: f() >> File "/home/rif/Documents/webframeworks/firmoasa/gluon/tools.py", line >> 4250, in f >> return action(*a, **b) >> File >> "/home/rif/Documents/webframeworks/firmoasa/applications/firmoasa/controllers/default.py", >> line 8, in firme >> form = crud.update(db.firma, a0, next=URL('firme')) >> File "/home/rif/Documents/webframeworks/firmoasa/gluon/tools.py", line >> 4899, in update >> **attributes # contains hidden >> File "/home/rif/Documents/webframeworks/firmoasa/gluon/sqlhtml.py", >> line 1295, in __init__ >> inp = self.widgets.options.widget(field, default) >> File "/home/rif/Documents/webframeworks/firmoasa/gluon/sqlhtml.py", >> line 313, in widget >> options = requires[0].options() >> File "/home/rif/Documents/webframeworks/firmoasa/gluon/validators.py", >> line 2645, in _options >> options = self.other.options(*args, **kwargs) >> File "/home/rif/Documents/webframeworks/firmoasa/gluon/validators.py", >> line 600, in options >> self.build_set() >> File "/home/rif/Documents/webframeworks/firmoasa/gluon/validators.py", >> line 586, in build_set >> records = self.dbset(table).select(*fields, **dd) >> File >> "/home/rif/Documents/webframeworks/firmoasa/gluon/packages/dal/pydal/objects.py", >> line 2020, in select >> return adapter.select(self.query, fields, attributes) >> File >> "/home/rif/Documents/webframeworks/firmoasa/gluon/packages/dal/pydal/adapters/google_adapters.py", >> line 500, in select >> (items, tablename, fields) = self.select_raw(query,fields,attributes) >> File >> "/home/rif/Documents/webframeworks/firmoasa/gluon/packages/dal/pydal/adapters/google_adapters.py", >> line 390, in select_raw >> filters = self.expand(query) >> File >> "/home/rif/Documents/webframeworks/firmoasa/gluon/packages/dal/pydal/adapters/google_adapters.py", >> line 246, in expand >> return expression.op(expression.first, expression.second) >> File >> "/home/rif/Documents/webframeworks/firmoasa/gluon/packages/dal/pydal/adapters/google_adapters.py", >> line 262, in AND >> first = self.expand(first) >> File >> "/home/rif/Documents/webframeworks/firmoasa/gluon/packages/dal/pydal/adapters/google_adapters.py", >> line 246, in expand >> return expression.op(expression.first, expression.second) >> File >> "/home/rif/Documents/webframeworks/firmoasa/gluon/packages/dal/pydal/adapters/google_adapters.py", >> line 266, in AND >> return ndb.AND(first, second) >> File "/opt/google_appengine/google/appengine/ext/ndb/query.py", line >> 574, in __new__ >> ' received a non-Node instance %r' % node) >> TypeError: ConjunctionNode() expects Node instances as arguments; >> received a non-Node instance None >> >> >> luni, 28 martie 2016, 21:28:52 UTC+3, Dave S a scris: >>> >>> >>> >>> On Monday, March 28, 2016 at 2:52:02 AM UTC-7, rif wrote: After a long while of not updating one app running on gae I tried 2.14.3 and I have the error below. Can anyone suggest a fix? Thanks, -rif Unable to store in FILE: /base/data/home/apps/s~firmoasa/11.391689743844727003/applications/firmoasa/models/db.py Traceback (most recent call last): File "/base/data/home/apps/s~firmoasa/11.391689743844727003/gluon/restricted.py", line 227, in restricted exec ccode in environment File "/base/data/home/apps/s~firmoasa/11.391689743844727003/applications/firmoasa/models/db.py", line 15, in session.connect(request, response, db = db) File "/base/data/home/apps/s~firmoasa/11.391689743844727003/gluon/globals.py", line 935, in connect session_data = pickle.loads(row.session_data) File "/base/data/home/runtimes/python27/python27_dist/lib/python2.7/pickle.py", line 1382, in loads return
Re: [web2py] Re: Auth_user add username field
how to set string size in sql form db.define_table('stud_personal', Field('phone_no',string(10), requires=IS_NOT_EMPTY())) is it correct? On Thu, Mar 24, 2016 at 7:21 AM, Michael Bellerwrote: > yes - I think something like this could/should work: > > db.auth_user.first_name.readable = False > > > > On Wednesday, March 23, 2016 at 8:49:42 PM UTC-4, Jerry Liu wrote: >> >> Thanks! It worked! >> >> I also want to hide First and Last Name fields. At least, I don't want >> them to be shown on the registration page. Any ideas? >> >> On Wednesday, March 23, 2016 at 5:43:14 PM UTC-7, Michael Beller wrote: >>> >>> no changes should be required to any controller or view. Everything is >>> handled by the line: >>> return dict(form=auth()) >>> >>> in the default controller (in combination with the default/user.html). >>> >>> The line in db.py just tells auth whether to use a username or email. >>> >>> On Wednesday, March 23, 2016 at 8:16:42 PM UTC-4, Jerry Liu wrote: Not sure if I understood, you mean I still have to make changes on View and Controller, right? because adding this line doesn't change anything on login and registration views. On Wednesday, March 23, 2016 at 4:12:49 PM UTC-7, Michael Beller wrote: > > It's easier than that ... just change username=True in db.py, all the > web2py components (e.g., log in form, auth_user table, log in menu, etc.) > will now support username ... > > auth.define_tables(username=True, signature=True) > > > > On Wednesday, March 23, 2016 at 5:46:38 PM UTC-4, Jerry Liu wrote: >> >> Hello, all >> >> I want to add a *username* field to auth_user table. I figured out I >> can use the following line of code to do so, but how can I use *username >> *instead of *email *in login and registration process? >> >> auth.settings.extra_fields[auth.settings.table_user_name] = [ Field] >> >> >> -- > 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-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] please help with new widgets
please send me college management system which developed in web2py.. which contain 'student 'staff fees attendence library module On Mon, Mar 14, 2016 at 11:32 PM, Dave Swrote: > > > On Monday, March 14, 2016 at 10:55:53 AM UTC-7, Dave S wrote: >> >> >> >> On Monday, March 14, 2016 at 12:41:03 AM UTC-7, José L. wrote: >>> >>> Massimo, I'm missing all the time a grid (sqlgrid) widget in these >>> examples. Aren't you considering it, or it's just it's not needed as the >>> style will apply and look good in the three cases? >>> Sqlgrid is one of the most powerful objects in web2py forms and I think >>> most of us could not live without it ;) >>> >> >> He's got a replacement in mind, and this is a preparatory step. The new >> one is going to be in Forms.py, and I think he's posted a simple example in >> another thread. >> > > > form.py, which is mentioned at the top of the thread, but the only > discussion is in the dev group, where this example was shown: > > ef index(): > from gluon.form import Form > form = Form(db.thing, request.args(0)) > if form.accepted: ... > elif form.errors: ... > else: ... > return dict(form=form) > > or > > def index(): > from gluon.form import Form > form = Form([Field(’name’),Field(‘age’,’integer’)]) > if form.accepted: ... > elif form.errors: ... > else: ... > return dict(form=form) > > > /dps > > >> >> > >>> 2016-03-14 7:34 GMT+01:00 joseph simpson : >>> Should be: http://mdipierro.github.io/stupid.css/widgets/materialize.html On Sun, Mar 13, 2016 at 11:32 PM, joseph simpson wrote: > I get a 404 on the: > > http://mdipierro.github.io/stupid.css/widgets/metarialize.html > > page.. > > Take care and have fun.. > > Joe > > On Sun, Mar 13, 2016 at 5:06 PM, Massimo Di Pierro < > massimo@gmail.com> wrote: > >> can somebody help me with this little project? >> >> http://mdipierro.github.io/stupid.css/widgets/index.html >> http://mdipierro.github.io/stupid.css/widgets/bootstrap.html >> http://mdipierro.github.io/stupid.css/widgets/metarialize.html >> >> Specifically, can you read the instructions? Do they make sense? can >> you help extend them? Does everything work for you? >> I am planning to release a new library for web2py called form.py that >> will replace SQLFORM and use the new widgets. >> >> 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-users" group. >> To unsubscribe from this group and stop receiving emails from it, >> send an email to web2py+un...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Joe Simpson > “Reasonable people adapt themselves to the world. Unreasonable people > attempt to adapt the world to themselves. All progress, therefore, > depends on unreasonable people.” > George Bernard Shaw > -- Joe Simpson “Reasonable people adapt themselves to the world. Unreasonable people attempt to adapt the world to themselves. All progress, therefore, depends on unreasonable people.” George Bernard Shaw -- 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-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. >>> >>> -- > 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-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to
Re: [web2py] Re: How to do this? Obviously I need ajax but what's the exact syntax?
please send me college management system which developed in web2py.. which contain 'student 'staff fees attendence library module On Tue, Mar 15, 2016 at 11:42 AM, Ben Lawrencewrote: > Lets see if I get this right. In the view, place this: > > {{=clickme}} > then in the controller: > > for image in imageRows: > clickme.append(TAG.button(IMG(..image..),_type="button", > _onclick="jQuery('#xID').val('%d');ajax('%s', ['picID'])" \ > % (image.id > ,URL('default','functionThatAddsToDatabase',extension='load', > user_signature=True))) ) > > calls the function > def functionThatAddsToDatabase(): > # get the image id >image_id=request.vars.picID > > > On Monday, March 14, 2016 at 5:20:15 PM UTC-7, Leonel Câmara wrote: >> >> Make a form with a hidden input and a submit button. Display all the >> images, add javascript so when one image is clicked it becomes "selected" >> and its id is added to the hidden input (for instance the hidden input can >> store the values comma separated). Submit the form and in your controller >> you should have the selected images in the hidden input's name. You can >> then validate it using something like: >> >> values, error = IS_IN_DB(db, 'pictures.id', multiple=True, >> delimiter=',')(request.vars.hidden_input_name) >> >> Finally after checking error is None insert the values into choices: >> >> for value in values: >> db.choices.insert(user_id=auth.user_id, choice=value) >> >> -- > 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-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.