a, i c, thank you very much for your pointer, massimo. On Sun, Apr 24, 2011 at 11:59 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote:
> you could use > > default=request.client > > mind that it is not guaranteed because it can be spoofed when behind a > proxy. > > On Apr 23, 11:42 pm, Stifan Kristi <steve.van.chris...@gmail.com> > wrote: > > thank you so much for your suggestion, massimo, pardon, before, i've used > > that code (refered from the book), but, it seems, that web2py had already > > this function so that i used web2py function. i mean, i want to add > > created_from field that have default value ip address where the user > submit > > the form, but i don't know how to create it, is there a function in > web2py > > to do that? > > e.g. > > > > Field('created_from',requires=IS_IPV4(),* default=* > > ,writable=False,readable=False) > > Field('modified_from',requires=IS_IPV4(),* default=* > > ,writable=False,readable=False) > > > > any idea for this? > > > > thank you so much before > > > > On Sun, Apr 24, 2011 at 11:35 AM, Massimo Di Pierro < > > > > > > > > > > > > > > > > massimo.dipie...@gmail.com> wrote: > > > You can make your own > > > > > signature = db.Table(db,'auth_signature', > > > Field('is_active','boolean',default=True), > > > Field('created_on','datetime',default=request.now, > > > writable=False,readable=False), > > > > > Field('created_by',auth.settings.table_user,default=auth.user_id, > > > writable=False,readable=False), > > > > > Field('modified_on','datetime',update=rquest.now,default=request.now, > > > writable=False,readable=False), > > > Field('modified_by',auth.settings.table_user, > > > default=auth.user_id,update=auth.user_id, > > > writable=False,readable=False)) > > > > > On Apr 23, 11:28 pm, 黄祥 <steve.van.chris...@gmail.com> wrote: > > > > hi, > > > > > > is it possible to modified auth.signature? actually, i want to insert > > > > created_from and update_from that contain default ip address which is > > > > the table is inserted or updated. > > > > > > any pointer, hint, or suggestion is highly appreciate, thank you very > > > > much in advance