Skip to main content

Dolmen CMS

Project description

Test-Layer:

functional

Dolmen is a simple application. The package dolmen.app.site provides an easy way to bootstrap your own applications. It exposes two elements, the Dolmen object and the IDolmen interface.

This creation of Dolmen Application is straightforward:

>>> import grok
>>> from zope.event import notify
>>> from dolmen.app.site import Dolmen, IDolmen

>>> root = getRootFolder()
>>> rocks = Dolmen()
>>> notify(grok.ObjectCreatedEvent(rocks))
>>> root['rocks'] = rocks

>>> root.get('rocks').__class__.__name__
'Dolmen'

>>> rocks.title
u'My Dolmen Site'

>>> IDolmen.providedBy(rocks)
True

>>> rocks.getSiteManager()
<LocalSiteManager ++etc++site>

Dolmen is a dolmen.content Container (read dolmen.content documentation for more information):

>>> from dolmen.content import IBaseContent, IContainer
>>> IBaseContent.providedBy(rocks)
True
>>> IContainer.providedBy(rocks)
True

Changelog

0.1 (2009-10-27)

  • Internal release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dolmen.app.site-0.1.tar.gz (3.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page