I defined the following custom auth_user table:

auth.settings.table_user=db.define_table('auth_user',
    Field('bedrijf', db.bedrijf, default='',
notnull=True,ondelete='CASCADE', readable=False),
    Field('first_name', length=128, default='', notnull=True),
    Field('last_name', length=128, default='', notnull=True),
    Field('email', length=128, default='', notnull=True),
    Field('site', type='boolean', readable=False),
    Field('username', length=128, default='', notnull=True,
unique=True),
    Field('password', type='password', length=256, readable=False,
default='', notnull=True),
    Field('created_on',type='datetime', readable=False),
    Field('modified_on',type='datetime', readable=False),
    Field('most_recent_login',type='datetime', readable=False),
    Field('registration_key', length=128, writable=False,
readable=False, default=''))

db.auth_user.bedrijf.requires=IS_IN_DB(db, db.bedrijf.id, '%
(bedrijfsnaam)s')
db.auth_user.bedrijf.label='Bedrijf * '
db.auth_user.first_name.requires=[IS_LENGTH(128,error_message='lengte
overschreidt 128 tekens'), IS_NOT_EMPTY()]
db.auth_user.first_name.label='Voornaam * '
db.auth_user.last_name.requires=[IS_LENGTH(128,error_message='lengte
overschreidt 128 tekens'), IS_NOT_EMPTY()]
db.auth_user.last_name.label='Achternaam * '
db.auth_user.email.requires=[IS_LENGTH(128,error_message='lengte
overschreidt 128 tekens'), IS_EMAIL(), IS_NOT_EMPTY()]
db.auth_user.email.label='E-mail * '
db.auth_user.site.default=False
db.auth_user.username.requires=[IS_LENGTH(128,error_message='lengte
overschreidt 128 tekens'), IS_NOT_EMPTY(), IS_NOT_IN_DB(db,
'auth_user.username')]
db.auth_user.username.label='Username * '
db.auth_user.password.requires=[IS_NOT_EMPTY(), CRYPT()]
db.auth_user.password.label='Password * '
db.auth_user.created_on.default=request.now
db.auth_user.modified_on.default=request.now
db.auth_user.modified_on.update=request.now
db.auth_user.most_recent_login.default=request.now


When I expose the user/profile function the password and
registration_key field aren't readable, however, the bedrijf, site,
created_on, modified_on and most_recent_login fields, which like the
two other fields are set readable=False, are displayed. Why is that?
What do I have to do to prevent this fields from being displayed?


Kind regards,

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

Reply via email to