#code now looks like this, put the represent= inside the
# call to extra_fileds
.
.
.
auth.settings.extra_fields["wiki_media"] = [
Field("filedata", "blob",
represent = lambda value,row: \
A('get it', _href=URL('download', args=value))),]
auth.define_tables(username=True, migrate=False, fake_migrate=True)
auth.wiki(resolve=False)
db.wiki_media.filename.uploadfield='filedata'
Made 2 changes but don't know which one fixed the AtributeError. Hard to
tell if the filedata blob field is working because
i order to test it I need to log in but my ability to log in or create a
user is still not working.
On Sunday, October 14, 2012 6:07:33 PM UTC-5, Alan Etkin wrote:
>
> > Hmmm. These lines do not work so I'm unsure where to insert them.
>
> I wonder if you shouldn't call .define_tables() before calling
> auth.wiki(), there could be need of configuring auth tables before creating
> the wiki tables.
>
>
--