please try (not tested), the bold are the change of your initial code above
Model
db.define_table('contact',
                Field('email', 
*represent = lambda email, field: \            A(email, _title = T("View 
email"), _target = "_blank", _href = "mailto:%s"; % email) if email else ''*), 

                format='%(email)s'
                )

db.define_table('task',
                Field('contact_id', *'reference contact'*),
                Field('url', 
*represent = lambda url, field: \            A(url, _title = T("View url"), 
_target = "_blank", _href = "%s" % url) if url else ''*), 
                format='%(url)s'
                )
                
Controller
def get_emails():
    form = SQLFORM.grid(db.task,
                        create = False,
                        deletable = False,
                        editable = False,
                        maxtextlength = 64,
                        paginate = 50)
    return dict(form = form)

if possible please start from simple thing first, in your case is for 
SQLFORM.grid

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 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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to