[web2py] Re: Wizard + Plugin Wiki
> Look at this line 'editor' : auth.user and > auth.has_membership(role='editor') or auth.user_id==1, # if current > user a editor? That was it...creating a simple application does not pre-populate anything in the database, so the first user to register is automatically an editor by virtue of having id==1. Using the wizard and populating the database generates a hundred sample users, so the first real user to register is id 101, which fails the above check. When I regenerated the app with the wizard but unchecked populate tables, my first user was able to edit pages with the plugin wiki. The right solution, of course, was to add the editor role to my user, and not rely on the magic numbering of the id, but for just playing around with it, not populating the data with the wizard was quicker.
[web2py] Re: Wizard + Plugin Wiki
You need login with 'editor' role Look at this line 'editor' : auth.user and auth.has_membership(role='editor') or auth.user_id==1, # if current user a editor? That's all ^^ On 1 dic, 01:50, mdipierro wrote: > It is not integrated but they are compatible. If something does not > work, it is a bug. I have used plugin_wiki and wizard together without > problems. > > On Nov 30, 3:00 pm, JayShaffstall wrote: > > > Okay, so I see the note from about a month ago, on the wizard video, > > about it not being compatible with the plugin wiki. > > > Assuming that hasn't been fixed in the past month, does anyone have a > > good handle on what's needed to get the two to play well together? > >
[web2py] Re: Wizard + Plugin Wiki
It is not integrated but they are compatible. If something does not work, it is a bug. I have used plugin_wiki and wizard together without problems. On Nov 30, 3:00 pm, JayShaffstall wrote: > Okay, so I see the note from about a month ago, on the wizard video, > about it not being compatible with the plugin wiki. > > Assuming that hasn't been fixed in the past month, does anyone have a > good handle on what's needed to get the two to play well together?
[web2py] Re: Wizard + Plugin Wiki
Okay, so I see the note from about a month ago, on the wizard video, about it not being compatible with the plugin wiki. Assuming that hasn't been fixed in the past month, does anyone have a good handle on what's needed to get the two to play well together?