[doc] Continued work on doc, website and look.
This commit is contained in:
parent
dc76ca542a
commit
9872f8ea66
23 changed files with 107 additions and 168 deletions
|
@ -248,14 +248,9 @@ class ZopeInstaller:
|
|||
appyTool = tool.appy()
|
||||
appyTool.log('Appy version is "%s".' % appy.version.short)
|
||||
|
||||
# Create the admin user if no user exists.
|
||||
try:
|
||||
users = self.app.acl_users.getUsers()
|
||||
except:
|
||||
# When Plone has installed PAS in acl_users this may fail. Plone
|
||||
# may still be in the way for migration purposes.
|
||||
users = ('admin',) # We suppose there is at least a user.
|
||||
if not users:
|
||||
# Create the admin user if it does not exist.
|
||||
if not appyTool.count('User', noSecurity=True, login='admin'):
|
||||
print 'No admin!'
|
||||
appyTool.create('users', noSecurity=True, login='admin',
|
||||
password1='admin', password2='admin',
|
||||
email='admin@appyframework.org', roles=['Manager'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue