On Nov 7, 8:37 am, vvk <varunk.ap...@gmail.com> wrote:
> I'm unable to find solutions to these:
>
> i) I'll add a record in auth_user table and my application should
> check for email & passwd values in auth_user table while logging. I've
> two login methods (first checks with POP server for confirmation) and
> if it fails, it should check in auth_user table. How to achieve this ?

auth.settings.login_methods=[ ...., auth ]
can be a list of login methods. They will be checked in order. one of
them ca be auth and it will check against the auth_user.

> ii) How to run a email sending service in background of application
> which sends email given a particular date and time (say 12 Dec 2009
> etc.)

You can call a controller or crypt periodically and that can check and
send emails. Look into web2py cron.

> iii) How to create automatic database backups of web2py application
> with help of application itself and not with any shell script or
> copying of whole application directory ?

same as before. Use cron and from cron call

    db.export_to_csv_file(open('backupfile','wb'))

It will backup everything in database in a db independent way. If you
use postgres you can consider using pg_dump as well.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to