ploneintranet.suite package

Submodules

ploneintranet.suite.setuphandlers module

ploneintranet.suite.setuphandlers._setup_event_agenda_items()

We set up the agenda items field in a test event.

The agenda items will be composed of one UID and three normal strings

ploneintranet.suite.setuphandlers.case_templates_spec(context)
ploneintranet.suite.setuphandlers.caseworkspaces_spec(context)
ploneintranet.suite.setuphandlers.cleanup_default_content(context)

Remove default content created by Plone for an empty site, we don’t need it.

ploneintranet.suite.setuphandlers.commit()
ploneintranet.suite.setuphandlers.configure_contacts(*args)

Give dollie_nocera full rights on the groups folder to manage them in the contacts app.

ploneintranet.suite.setuphandlers.configure_news(*args)

Give alice_lindstrom full rights on the news app.

ploneintranet.suite.setuphandlers.configure_session_cookies(portal)
ploneintranet.suite.setuphandlers.create_as(userid, *args, **kwargs)

Call api.content.create as a different user

ploneintranet.suite.setuphandlers.create_bookmarks()

Bookmark some applications

ploneintranet.suite.setuphandlers.create_calendars()
ploneintranet.suite.setuphandlers.create_caseworkspaces(caseworkspaces, container='workspaces', force=False, workflow_policy='case_workflow', portal_type='ploneintranet.workspace.case')
ploneintranet.suite.setuphandlers.create_library_content(parent, spec, force=False, creator='alice_lindstrom', bigsetup=False)
ploneintranet.suite.setuphandlers.create_messages()

Generate some message traffic for testing ploneintranet.messaging.

ploneintranet.suite.setuphandlers.create_stream(context, stream, files_dir)
ploneintranet.suite.setuphandlers.create_users(context, users, avatars_dir, force=False)

Creates user from the given list of dictionaries.

context is the step context.

users is a list of dictionaries each containing the following keys:

  • userid
  • fullname
  • email
  • location
  • description
  • follows (a list of userids followed)

avatars_dir is a directory where for each userid there is a $userid.jpg file.

ploneintranet.suite.setuphandlers.create_workspaces(workspaces, force=False)
ploneintranet.suite.setuphandlers.create_ws_content(parent, contents)
ploneintranet.suite.setuphandlers.default(context)

Run when installing the default profile.

ploneintranet.suite.setuphandlers.full(context)

Full profile also deletes default Plone content

ploneintranet.suite.setuphandlers.library_spec(context)
ploneintranet.suite.setuphandlers.users_spec(context)
ploneintranet.suite.setuphandlers.workspaces_spec(context)

ploneintranet.suite.testing module

Module contents