loops-ext/cco/common
2025-02-23 10:31:09 +01:00
..
browser Python3 fix: do not encode mail messages 2025-02-23 10:31:09 +01:00
schema transfer 3 cco packages to loops-ext, + some minor Python3 fixes 2024-09-30 14:47:03 +02:00
__init__.py transfer 3 cco packages to loops-ext, + some minor Python3 fixes 2024-09-30 14:47:03 +02:00
base.py transfer 3 cco packages to loops-ext, + some minor Python3 fixes 2024-09-30 14:47:03 +02:00
interfaces.py Py3 fix: default for Bytes field b'' 2025-02-22 10:13:19 +01:00
migration.py more Py3 (and other) fixes for cco.common 2025-02-22 10:45:32 +01:00
README.rst transfer 3 cco packages to loops-ext, + some minor Python3 fixes 2024-09-30 14:47:03 +02:00
report.py more Python3 fixes (unicode, basestring) 2025-01-11 11:36:44 +01:00
tests.py avoid testing deprecation errors with Python3.12 2024-10-02 13:05:33 +02:00
util.py more Py3 (and other) fixes for cco.common 2025-02-22 10:45:32 +01:00

cco.common - cyberconcepts.org: common stuff
============================================

Let's first do some common imports and initializations.

  >>> from zope.publisher.browser import TestRequest
  >>> from zope.traversing.api import getName

  >>> from logging import getLogger
  >>> log = getLogger('cco.common')

  >>> from loops.setup import addAndConfigureObject, addObject
  >>> from loops.concept import Concept

  >>> concepts = loopsRoot['concepts']
  >>> type_type = concepts['type']
  >>> type_topic = addAndConfigureObject(concepts, Concept, 'topic',
  ...     conceptType=type_type)
  >>> type_task = addAndConfigureObject(concepts, Concept, 'task',
  ...     conceptType=type_type)
  >>> home = loopsRoot['views']['home']

We now create the first basic objects...