loops/system
helmutm dc61f474c8 provide a query view for linking to other loops sites in the same instance
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@3109 fd906abe-77d9-0310-91a1-e0d9ade77398
2009-01-02 10:25:51 +00:00
..
site provide a query view for linking to other loops sites in the same instance 2009-01-02 10:25:51 +00:00
__init__.py started with system package for global loops configuration and agent/job control 2008-05-31 09:00:58 +00:00
configure.zcml provide a query view for linking to other loops sites in the same instance 2009-01-02 10:06:11 +00:00
interfaces.py started with system package for global loops configuration and agent/job control 2008-05-31 09:00:58 +00:00
README.txt move QueryConcept stuff to loops.expert (keeping old query module for backward compatibility); work in progress: child-based queries with actions 2008-10-23 13:35:23 +00:00
setup.py started with system package for global loops configuration and agent/job control 2008-05-31 09:00:58 +00:00
tests.py started with system package for global loops configuration and agent/job control 2008-05-31 09:00:58 +00:00

===============================================================
loops - Linked Objects for Organization and Processing Services
===============================================================

loops System Management.

  ($Id$)


Setting up a loops Site and Utilities
=====================================

Let's do some basic set up

  >>> from zope import component, interface
  >>> from zope.traversing.api import getName
  >>> from zope.app.testing.setup import placefulSetUp, placefulTearDown
  >>> site = placefulSetUp(True)

and build a simple loops site with a concept manager and some concepts
(with a relation registry, a catalog, and all the type machinery - what
in real life is done via standard ZCML setup or via local utility
configuration):

  >>> from loops.tests.setup import TestSite
  >>> t = TestSite(site)
  >>> concepts, resources, views = t.setup()
  >>> appRoot = site['loops']

In addition to the application site we need a loops system management site.

  >>> from loops.interfaces import ILoops, IConcept
  >>> from loops.setup import ISetupManager
  >>> from loops.system.setup import SetupManager
  >>> component.provideAdapter(SetupManager, (ILoops,), ISetupManager,
  ...                           name='system')

  >>> sysConcepts, sysResources, sysViews = t.siteSetup('loops.system')
  >>> systemRoot = site['loops.system']

  >>> sorted(sysConcepts)
  [u'domain', u'file', u'hasType', u'job', u'note', u'predicate',
   u'standard', u'textdocument', u'type']


Agents and Jobs
===============


Fin de partie
=============

  >>> placefulTearDown()