I tried your patch but the tables were not defined. Is my db.py code 
correct? The commented out code causes an error<type 
'exceptions.AttributeError'>('DAL' object has no attribute 'wiki_media') 
but when commented out the appadmin displays all the tables except the 
wiki_ tables.

from gluon import DAL
from gluon.tools import Auth, Crud, Service, PluginManager, prettydate, Wiki
auth = Auth(db)
crud, service, plugins = Crud(db), Service(), PluginManager()
## create all tables needed by auth if not custom tables
auth.settings.extra_fields['auth_user']= [
  Field('business_unit', length=15),
  Field('default_charge_number', length=15),
  Field('location', length=15),
  Field('phone', length=12)]
auth.settings.extra_fields["wiki_page"] = [Field("filedata", "blob"),]
auth.define_tables(username=True, migrate=False)
# 
# db.wiki_media.filename.uploadfield='filedata'
# db.wiki_page.filedata.represent = lambda value,row: \
    # A('get it', _href=URL('download', args=value))


-- 



Reply via email to