loops/layout
helmutm 834ccde51c handle empty page names correctly
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@3448 fd906abe-77d9-0310-91a1-e0d9ade77398
2009-07-07 11:29:58 +00:00
..
browser handle views correctly that are directly provided by a specialized traverser 2009-06-12 14:39:41 +00:00
__init__.py work in progress: use layout composer via LayoutNode 2008-09-18 10:15:55 +00:00
base.py handle empty page names correctly 2009-07-07 11:29:58 +00:00
configure.zcml target layout: also check individual object for sub-layouts, not only type 2009-05-23 07:18:50 +00:00
interfaces.py import message catalog 2008-11-25 09:20:10 +00:00
README.txt target layout: also check individual object for sub-layouts, not only type 2009-05-23 07:18:50 +00:00
tests.py target layout: also check individual object for sub-layouts, not only type 2009-05-23 07:18:50 +00:00

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

Layout 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.integrator.testsetup import TestSite
  >>> t = TestSite(site)
  >>> concepts, resources, views = t.setup()
  >>> loopsRoot = concepts.getLoopsRoot()

  >>> from loops.layout.tests import setup
  >>> setup()


Defining Layouts
================

  >>> from loops.layout.base import LayoutNode

  >>> demo = views['demo'] = LayoutNode('Demo Root Layout')
  >>> demo.nodeType = 'menu'


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

  >>> placefulTearDown()