Archive for July, 2006

Lovely Zope 3 training in Copenhagen

Lovely Systems and Philipp von Weitershausen are happy to announce the arrangement of a “Lovely Zope 3 Training” on 3 thru 6 Oct 2006 in Copenhagen, Demnark.
Aimed at the Python web developer, this 4-day training will cover every aspect of the Zope 3 application server you need to know for developing your own web apps. Philipp, a Zope 3 developer and author of the book “Web Component Development with Zope 3,” will introduce you to Zope and its Component Architecture. You will learn everything from Zope’s object database, the automatic form machinery, and its templating and skinning system to internationalizing and securing your web application, and much much more. continue reading the full article

Layered Functional Tests in Zope3

Testlayers minimize setup costs for functional tests in zope3. One can specify a zcml file which is loaded when a specific suite is run. This reduces startup time for the test a lot compared to functional tests which use the site wide ftesting.zcml configuration file, which may include packages the test don’t need at all.

Steps to set up a layered functional test for your package:

create a ftests.py file in your package directory with the following contents:

from zope.app.testing import functional

functional.defineLayer('TestLayer', 'ftesting.zcml')

def test_suite():
suite = functional.FunctionalDocFileSuite(
'README.txt',
)
suite.layer = TestLayer
return suite

if __name__ == '__main__':
unittest.main(defaultTest='test_suite')

Where ‘README.txt’ is a normal REST file which contains the tests.

Then create the ‘ftesting.zcml’ file wher you can do your setup for the specific test.

Here is a basic example which sets up security etc.

<configure xmlns="http://namespaces.zope.org/zope"
xmlns:browser="http://namespaces.zope.org/browser"
i18n_domain="zope">
<include package="zope.app" />
<include package="zope.app.server" />
<include package="zope.app.authentication" />
<include package="zope.app.securitypolicy" file="meta.zcml" />
<securityPolicy
component="zope.app.securitypolicy.zopepolicy.ZopeSecurityPolicy" />
<include package="zope.app.securitypolicy" />
<!-- we ought to use this for the tests
<include package="zope.app.i18n.tests" />
-->

<role id="zope.Anonymous" title="Everybody"
description="All users have this role implicitly" />
<role id="zope.Manager" title="Site Manager" />
<role id="zope.Member" title="Site Member" />
<grantAll role="zope.Manager" />

<principal
id="zope.manager"
title="Administrator"
login="mgr"
password="mgrpw" />

<grant
role="zope.Manager"
principal="zope.manager"
/>

</configure>

You can now run the test from your instance_home:

./bin/test -fs your.package

Technorati Tags: , ,

Launch of my first Flash8 - DPT-Project

www.kainz.de - A project realized with the power of Plone, Digital Publishing Tool (DPT) and Flash. I used the flash.filters package for dropshadows and and a black/white effect (using the ColorMatrixFilter) for the thumbs.

Kainz2 Web-1 Kainz Web-1 Kainz3 Web-1 Kainz5 Web

The CMS Mode:

Kainz Cms Web-1 Kainz2 Cms Web-1 Kainz3 Cms Web-1 Kainz5 Cms Web