Exemple #1
0
def content_types_panel(context, request, va, **kw):
    response = {
        'content_factories': get_content_factories(request.registry),
        'addable_content': get_addable_content(request.registry),
        'content_views': get_content_views(request.registry),
        'content_schemas': get_content_schemas(request.registry),
        'workflows': get_workflows(request.registry),
        'acl_iface': IContextACL,
        'local_roles_iface': ILocalRoles,
        }
    return render('arche:templates/sysinfo/content_types.pt', response, request = request)
Exemple #2
0
 def test_set_and_get_wf(self):
     from arche.workflow import get_workflows
     wfs = get_workflows()
     self.assertEqual(wfs.get_wf('Document'), None)
     wfs.set_wf('Document', 'simple_workflow')
     self.assertEqual(wfs.get_wf('Document'), 'simple_workflow')