Permalink
Browse files

cleanup

  • Loading branch information...
1 parent f08f5f2 commit 31337fb5c249e20f092cc841e3f57cf5662fc6c0 @thet thet committed Dec 3, 2012
@@ -1,5 +1,2 @@
from zope.i18nmessageid import MessageFactory
_ = MessageFactory("collective.examples.userdata")
-
-def initialize(context):
- """Initializer called when used as a Zope 2 product."""
@@ -1,11 +1,8 @@
<configure
xmlns="http://namespaces.zope.org/zope"
- xmlns:five="http://namespaces.zope.org/five"
xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
i18n_domain="collective.examples.userdata">
- <five:registerPackage package="." initialize=".initialize" />
-
<genericsetup:registerProfile
name="default"
title="Enhanced user data"
@@ -1,4 +1,4 @@
<?xml version="1.0"?>
<metadata>
- <version>0.4dvl</version>
+ <version>1</version>
</metadata>
@@ -1,54 +0,0 @@
-import unittest
-
-from zope.testing import doctestunit
-from zope.component import testing
-from Testing import ZopeTestCase as ztc
-
-from Products.Five import zcml
-from Products.Five import fiveconfigure
-from Products.PloneTestCase import PloneTestCase as ptc
-from Products.PloneTestCase.layer import PloneSite
-ptc.setupPloneSite()
-
-import collective.examples.userdata
-
-class TestCase(ptc.PloneTestCase):
- class layer(PloneSite):
- @classmethod
- def setUp(cls):
- fiveconfigure.debug_mode = True
- zcml.load_config('configure.zcml',
- collective.examples.userdata)
- fiveconfigure.debug_mode = False
-
- @classmethod
- def tearDown(cls):
- pass
-
-
-def test_suite():
- return unittest.TestSuite([
-
- # Unit tests
- #doctestunit.DocFileSuite(
- # 'README.txt', package='collective.examples.userdata',
- # setUp=testing.setUp, tearDown=testing.tearDown),
-
- #doctestunit.DocTestSuite(
- # module='collective.examples.userdata.mymodule',
- # setUp=testing.setUp, tearDown=testing.tearDown),
-
-
- # Integration tests that use PloneTestCase
- #ztc.ZopeDocFileSuite(
- # 'README.txt', package='collective.examples.userdata',
- # test_class=TestCase),
-
- #ztc.FunctionalDocFileSuite(
- # 'browser.txt', package='collective.examples.userdata',
- # test_class=TestCase),
-
- ])
-
-if __name__ == '__main__':
- unittest.main(defaultTest='test_suite')
View
No changes.
@@ -1 +0,0 @@
-0.2
View
@@ -1,8 +1,8 @@
Changelog
=========
-0.4 (unreleased)
-----------------
+0.4dev (unreleased)
+-------------------
- Moved to github (Kees Hink)
- Added German translation (Pavel Bogdanovic, 2011-10-28).
View
@@ -1,12 +1,12 @@
from setuptools import setup, find_packages
import os
-version = '0.4dvl'
+version = '0.4dev'
setup(name='collective.examples.userdata',
version=version,
description="Showcase for the new (Plone 4) plone.app.users IUserDataSchema. Shows how to extend the user data fields that can be selected for the registration form.",
- long_description=open("README.txt").read() + "\n" +
+ long_description=open("README.rst").read() + "\n" +
open(os.path.join("docs", "HISTORY.txt")).read() + "\n"
+ open(os.path.join("docs", "TODO.txt")).read(),
# Get more strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers

0 comments on commit 31337fb

Please sign in to comment.