Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Implement IDefaultWorkflow. Don't duplicate test requirements, depend…

… on Kotti's instead.
  • Loading branch information...
commit 1ddca07170b43b5fc921afa7a26a89b4c4e713cb 1 parent 2ee20fc
Andreas Kaiser disko authored
5 CHANGES.txt
@@ -4,8 +4,11 @@ History
4 4 0.2 - Unreleased
5 5 ----------------
6 6
  7 +- Implement IDefaultworkflow.
7 8 - Add an additional one column layout for the contact form view.
8   -- Use decorators for view config
  9 +- Use decorators for view config.
  10 +- Add fanstatic filter to development.ini.
  11 +
9 12
10 13 0.1.1 - 2012-12-28
11 14 ------------------
4 README.rst
Source Rendered
@@ -9,8 +9,8 @@ to your site. |build status|_
9 9
10 10 Development happens at https://github.com/Kotti/kotti_contactform
11 11
12   -.. |build status| image:: https://secure.travis-ci.org/chrneumann/kotti_contactform.png?branch=master
13   -.. _build status: http://travis-ci.org/chrneumann/kotti_contactform
  12 +.. |build status| image:: https://secure.travis-ci.org/Kotti/kotti_contactform.png?branch=master
  13 +.. _build status: http://travis-ci.org/Kotti/kotti_contactform
14 14 .. _Find out more about Kotti: http://pypi.python.org/pypi/Kotti
15 15
16 16 Setup
4 kotti_contactform/resources.py
... ... @@ -1,3 +1,4 @@
  1 +from kotti.interfaces import IDefaultWorkflow
1 2 from kotti.resources import Content
2 3 from sqlalchemy import Boolean
3 4 from sqlalchemy import Column
@@ -5,6 +6,7 @@
5 6 from sqlalchemy import Integer
6 7 from sqlalchemy import String
7 8 from sqlalchemy import Text
  9 +from zope.interface import implements
8 10
9 11 from kotti_contactform import _
10 12
@@ -14,6 +16,8 @@ class ContactForm(Content):
14 16 __tablename__ = 'contact_forms'
15 17 __mapper_args__ = dict(polymorphic_identity='contact_form')
16 18
  19 + implements(IDefaultWorkflow)
  20 +
17 21 id = Column('id', Integer, ForeignKey('contents.id'), primary_key=True)
18 22 recipient = Column(String(255), nullable=False)
19 23 body = Column(Text)
2  setup.cfg
@@ -35,4 +35,4 @@ markers =
35 35 pep8ignore = E501 E122 E123 E125 E128 E711
36 36
37 37 [aliases]
38   -dev = develop easy_install kotti_contactform[testing]
  38 +dev = develop easy_install kotti[testing] kotti[development]
18 setup.py
@@ -13,16 +13,6 @@
13 13 'alembic',
14 14 ]
15 15
16   -tests_require = [
17   - 'WebTest',
18   - 'mock',
19   - 'pytest',
20   - 'pytest-cov',
21   - 'pytest-pep8==1.0.2',
22   - 'pytest-xdist',
23   - 'wsgi_intercept',
24   - 'zope.testbrowser',
25   -]
26 16
27 17 setup(name='kotti_contactform',
28 18 version='0.2dev',
@@ -31,7 +21,7 @@
31 21 keywords='kotti contact form',
32 22 maintainer='Christian Neumann',
33 23 maintainer_email='cneumann@datenkarussell.de',
34   - url='http://pypi.python.org/pypi/kotti_contactform',
  24 + url='https://github.com/Kotti/kotti_contactform',
35 25 classifiers=[
36 26 "Development Status :: 4 - Beta",
37 27 "Programming Language :: Python",
@@ -48,10 +38,8 @@
48 38 include_package_data=True,
49 39 zip_safe=False,
50 40 install_requires=install_requires,
51   - extras_require={
52   - 'testing': tests_require,
53   - },
54   - message_extractors={"kotti_events": [
  41 + extras_require={},
  42 + message_extractors={"kotti_contactform": [
55 43 ("**.py", "lingua_python", None),
56 44 ("**.pt", "lingua_xml", None),
57 45 ]},

0 comments on commit 1ddca07

Please sign in to comment.
Something went wrong with that request. Please try again.