Hi,
I got a page where every author can write new articles (article table:
content title...) but I don't really now how I can allow the authors to
edit the articles without giving them access to appadmin. Is there an easy
way to allow that?
like filling this form with the article?
default.py:
def newArticle():
db.Article.Content.widget = advanced_editor
form=SQLFORM(db.Article,fields=['Title','Content','Sources'])
if form.accepts(request.vars,session):
redirect(URL(r=request,f='Articles'))
if form.errors:
response.flash='Error in Form'
return dict(form=form)
newArticle.html:
{{extend 'layout.html'}}
<h1>Write a new Article</h1>
{{=form}}
thanks for your help
--