Re: [web2py] anyone had developed something related to electronic signature in web2py app

2015-04-27 Thread Dave S
On Monday, April 27, 2015 at 4:56:47 PM UTC-7, Richard wrote: > > Hello, > > I would like to know if anyone had developed any kind of electronic > signature involving some record signature or encryption inside a web2py app? > > > Not an answer, but with all the ads on the radio for CudaSign, I w

[web2py] Re: How to capture auth_user.id during registration

2015-04-27 Thread Anthony
Why don't you just store the ID? user_id = db.auth_user.insert(**db.auth_user._filter_fields(form.vars)) Now you've got the user ID. Anthony On Monday, April 27, 2015 at 7:12:46 PM UTC-4, Alex Glaros wrote: > > Anthony, plain "id" returns "None". > > There are other tables' info in form vars so

[web2py] anyone had developed something related to electronic signature in web2py app

2015-04-27 Thread Richard
Hello, I would like to know if anyone had developed any kind of electronic signature involving some record signature or encryption inside a web2py app? Thanks Richard -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - h

[web2py] Re: AJAX div reload indicator

2015-04-27 Thread Dave S
On Saturday, April 25, 2015 at 8:28:15 AM UTC-7, Gary Cowell wrote: > > I found that I can use: > > {{=LOAD('tenant','stackList.load',ajax=True, target="stackList",vars={ > 'reload_div':'stackList'},content=CENTER(IMG(_src=URL(request.application, > 'static','images/ajax_loader_blue_256.gif'}

[web2py] Re: How to capture auth_user.id during registration

2015-04-27 Thread Alex Glaros
Anthony, plain "id" returns "None". There are other tables' info in form vars so how would it know which table to get "id" from? The following gets all the "id"s from all the tables except auth_user: str(db.auth_user._filter_fields(form.vars)) But those IDs are captured with statements above

[web2py] Re: Cron @reboot and socket server on web2py startup

2015-04-27 Thread tommasot
SOLVED: Not a Web2py problem,but when i kill it, the port status remain in TIME_WAIT,so another process cannot open the port again If i wait about 30 seconds after kill the process,it restart without problems Il giorno lunedì 27 aprile 2015 23:44:29 UTC+2, tommasot ha scritto: > > I want run a

[web2py] Cron @reboot and socket server on web2py startup

2015-04-27 Thread tommasot
I want run a simple script on web2py startup,that listen on a tcp port the script is the following "example.py". The file in the "applications/myapp/cron" folder *import SocketServer* *import logging* *class MyTCPHandler(SocketServer.BaseRequestHandler):* *# handle syslog event message*

[web2py] Re: Email auth settings

2015-04-27 Thread Anthony
No, the one and only argument passed to the callback is the form (not the user record), so it might be more clear if you change your lambda argument name to "form" instead of "user". lambda form: ... form.vars.first_name ... Anthony On Monday, April 27, 2015 at 4:35:55 PM UTC-4, Gael Princival

[web2py] Re: Email auth settings

2015-04-27 Thread Gael Princivalle
Thanks a lot Anthony. However I don't understand how using form.vars.field_name in auth.settings.register_onaccept. Can you give me an example? auth.settings.register_onaccept = lambda user: mail.send(to= 'myem...@mydomain.com',subject='New user on mydomain.com',message='First name of the new u

[web2py] Re: Best way to load password at startup.

2015-04-27 Thread Niphlod
use an environmental variable or a configuration file that you'll have in private/ but won't commit to git. For the latter solution, the current scaffolding uses a new module, named appconfig. On Monday, April 27, 2015 at 4:40:06 PM UTC+2, hiro wrote: > > I connect to an external DB in one of my

[web2py] Re: print html page view on dot matrix printer

2015-04-27 Thread Derek
I would suggest using a fixed width font, preferably a font that is installed on the printer. On Monday, April 27, 2015 at 6:13:04 AM UTC-7, 黄祥 wrote: > > hi, > > is it possible to print html page view on dot matrix printer using web2py? > i've tried it but the result is not expected? the font

[web2py] Best way to load password at startup.

2015-04-27 Thread hiro
I connect to an external DB in one of my models: my_model.db: my_db = DAL( 'postgres://use:password@url/database', pool_size=20, after_connection=lambda self: self.execute('set search_path to my_schema, other_schema, public; set statement_timeout to 6;'), migrate=False ) Now

Re: [web2py] creating DAL from SQL file

2015-04-27 Thread Richard Vézina
You know what... You may consider using an older web2py version... If possible the version which saw this contrib be added, that way you should raise your chance to make it works properly... This guy : https://groups.google.com/d/msg/web2py/5GNG-g1M8T8/fq8UN1fqumMJ Report it was working, back to

[web2py] print html page view on dot matrix printer

2015-04-27 Thread 黄祥
hi, is it possible to print html page view on dot matrix printer using web2py? i've tried it but the result is not expected? the font is near each other. how can i solve this when i generate a html view using web2py? thanks and best regards, stifan -- Resources: - http://web2py.com - http://we

[web2py] How to capture auth_user.id during registration

2015-04-27 Thread Anthony
In form.vars, it's just "id", not "auth_user.id". Anthony -- 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 subsc

[web2py] Re: Updating multiple targets using AJAX callback

2015-04-27 Thread Sarbjit
Thanks Anthony !! It worked. On Sunday, April 26, 2015 at 8:33:55 PM UTC+5:30, Anthony wrote: > > Maybe try triggering the onchange event when dropdown2_a is changed. You > could do that by changing the dropdown1 Ajax call from: > > ajax('{{=URL('default', 'getoptionsfordropdown2'})}}', [''], 'd