Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

upds for release

  • Loading branch information...
commit b43e57e5d0d72297a9ae7d73653e9483fcb6f61a 1 parent 285f7aa
@thet thet authored
View
4 MANIFEST.in
@@ -1,3 +1,3 @@
-include *.txt *.rst docs/*.txt docs/*.rst
-recursive-include src/collective *.css *.js *.pdf *.png *.po *.pot *.pt *.txt *.xml *.zcml
+include *.txt *.rst docs/*.txt docs/*.rst docs/*.GPL
+recursive-include collective *.css *.js *.pdf *.png *.po *.pot *.pt *.txt *.xml *.zcml
global-exclude *.pyc *pyo *~ *.mo
View
35 README.txt
@@ -1,35 +0,0 @@
-Introduction
-============
-
-Provides the types "Folderish Event", "Folderish News Item" and
-"Folderish Document" as replacements for their ATContentTypes equivalents.
-Those types are able to hold Images, Files and Folders.
-
-You can override these limits by providing Generic Setup import steps for all
-Folderish_* types.
-
-
-TODO
-====
-
-DONE - Internationalize it
-- Internationalize viewlet's header
-- Write tests
-- If needed: provide an alternative view for
- Products/CMFPlone/skins/plone_templates/events_listing
-- Bump version to 1.0 after that is done
-DONE - Add "Folderish Event" to CalendarTool
-DONE - Add viewlet below content body to display the item's contained items
-
-
-Tested with
-===========
-
-Plone 4
-
-
-Author
-======
-
-Johannes Raggam <johannes@raggam.co.at>
-
View
11 collective/folderishtypes/__init__.py
@@ -1,10 +1,3 @@
-# -*- coding: utf-8 -*-
-#
-# GNU General Public License (GPL)
-#
-__author__ = """Johannes Raggam <johannes@raggam.co.at>"""
-__docformat__ = 'plaintext'
-
from zope.i18nmessageid import MessageFactory
from Products.CMFCore import utils
@@ -16,7 +9,7 @@
from collective.folderishtypes import config
-MsgFact = MessageFactory('collective.folderishtypes')
+MsgFact = MessageFactory(config.PROJECTNAME)
def initialize(context):
"""Register content types through Archetypes with Zope and the CMF.
@@ -32,4 +25,4 @@ def initialize(context):
content_types = (atype,),
permission = config.ADD_PERMISSIONS[atype.portal_type],
extra_constructors = (constructor,),
- ).initialize(context)
+ ).initialize(context)
View
7 collective/folderishtypes/browser/__init__.py
@@ -1,6 +1 @@
-# -*- coding: utf-8 -*-
-#
-# GNU General Public License (GPL)
-#
-__author__ = """Johannes Raggam <johannes@raggam.co.at>"""
-__docformat__ = 'plaintext'
+
View
7 collective/folderishtypes/browser/listing_portlet.py
@@ -1,10 +1,3 @@
-# -*- coding: utf-8 -*-
-#
-# GNU General Public License (GPL)
-#
-__author__ = """Johannes Raggam <johannes@raggam.co.at>"""
-__docformat__ = 'plaintext'
-
from zope.formlib import form
from zope.interface import implements
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
View
9 collective/folderishtypes/config.py
@@ -1,10 +1,3 @@
-# -*- coding: utf-8 -*-
-#
-# GNU General Public License (GPL)
-#
-__author__ = """Johannes Raggam <johannes@raggam.co.at>"""
-__docformat__ = 'plaintext'
-
PROJECTNAME = "collective.folderishtypes"
ADD_PERMISSIONS = {
@@ -21,5 +14,3 @@ def schema_cleanup(schema):
if key in schema:
del schema[key]
return schema
-
-
View
7 collective/folderishtypes/content/__init__.py
@@ -1,6 +1 @@
-# -*- coding: utf-8 -*-
-#
-# GNU General Public License (GPL)
-#
-__author__ = """Johannes Raggam <johannes@raggam.co.at>"""
-__docformat__ = 'plaintext'
+
View
11 collective/folderishtypes/content/folderish_document.py
@@ -1,10 +1,3 @@
-# -*- coding: utf-8 -*-
-#
-# GNU General Public License (GPL)
-#
-__author__ = """Johannes Raggam <johannes@raggam.co.at>"""
-__docformat__ = 'plaintext'
-
from zope.interface import implements
try:
@@ -20,13 +13,13 @@
from collective.folderishtypes.config import schema_cleanup
folder_schema = schema_cleanup(folder.ATFolderSchema.copy())
-ct_schema = document.ATDocumentSchema.copy()
+type_schema = document.ATDocumentSchema.copy()
class FolderishDocument(folder.ATFolder, document.ATDocument):
implements(IFolderishDocument)
portal_type = 'Folderish Document'
_at_rename_after_creation = True
- schema = ct_schema + folder_schema
+ schema = type_schema + folder_schema
atapi.registerType(FolderishDocument, PROJECTNAME)
View
11 collective/folderishtypes/content/folderish_event.py
@@ -1,10 +1,3 @@
-# -*- coding: utf-8 -*-
-#
-# GNU General Public License (GPL)
-#
-__author__ = """Johannes Raggam <johannes@raggam.co.at>"""
-__docformat__ = 'plaintext'
-
from zope.interface import implements
try:
@@ -20,13 +13,13 @@
from collective.folderishtypes.config import schema_cleanup
folder_schema = schema_cleanup(folder.ATFolderSchema.copy())
-ct_schema = event.ATEventSchema.copy()
+type_schema = event.ATEventSchema.copy()
class FolderishEvent(folder.ATFolder, event.ATEvent):
implements(IFolderishEvent)
portal_type = 'Folderish Event'
_at_rename_after_creation = True
- schema = ct_schema + folder_schema
+ schema = type_schema + folder_schema
atapi.registerType(FolderishEvent, PROJECTNAME)
View
11 collective/folderishtypes/content/folderish_newsitem.py
@@ -1,10 +1,3 @@
-# -*- coding: utf-8 -*-
-#
-# GNU General Public License (GPL)
-#
-__author__ = """Johannes Raggam <johannes@raggam.co.at>"""
-__docformat__ = 'plaintext'
-
from zope.interface import implements
try:
@@ -20,13 +13,13 @@
from collective.folderishtypes.config import schema_cleanup
folder_schema = schema_cleanup(folder.ATFolderSchema.copy())
-ct_schema = newsitem.ATNewsItemSchema.copy()
+type_schema = newsitem.ATNewsItemSchema.copy()
class FolderishNewsItem(folder.ATFolder, newsitem.ATNewsItem):
implements(IFolderishNewsItem)
portal_type = 'Folderish News Item'
_at_rename_after_creation = True
- schema = ct_schema + folder_schema
+ schema = type_schema + folder_schema
atapi.registerType(FolderishNewsItem, PROJECTNAME)
View
7 collective/folderishtypes/interfaces.py
@@ -1,10 +1,3 @@
-# -*- coding: utf-8 -*-
-#
-# GNU General Public License (GPL)
-#
-__author__ = """Johannes Raggam <johannes@raggam.co.at>"""
-__docformat__ = 'plaintext'
-
from zope.interface import Interface
class IFolderishType(Interface):
View
7 collective/folderishtypes/setuphandlers.py
@@ -1,10 +1,3 @@
-# -*- coding: utf-8 -*-
-#
-# GNU General Public License (GPL)
-#
-__author__ = """Johannes Raggam <johannes@raggam.co.at>"""
-__docformat__ = 'plaintext'
-
import logging
from Products.CMFCore.utils import getToolByName
from collective.folderishtypes.content.folderish_event import FolderishEvent
View
61 collective/folderishtypes/tests.py
@@ -1,61 +0,0 @@
-# -*- coding: utf-8 -*-
-#
-# GNU General Public License (GPL)
-#
-__author__ = """Johannes Raggam <johannes@raggam.co.at>"""
-__docformat__ = 'plaintext'
-
-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.folderishtypes
-
-class TestCase(ptc.PloneTestCase):
- class layer(PloneSite):
- @classmethod
- def setUp(cls):
- fiveconfigure.debug_mode = True
- zcml.load_config('configure.zcml',
- collective.folderishtypes)
- fiveconfigure.debug_mode = False
-
- @classmethod
- def tearDown(cls):
- pass
-
-
-def test_suite():
- return unittest.TestSuite([
-
- # Unit tests
- #doctestunit.DocFileSuite(
- # 'README.txt', package='collective.folderishtypes',
- # setUp=testing.setUp, tearDown=testing.tearDown),
-
- #doctestunit.DocTestSuite(
- # module='collective.folderishtypes.mymodule',
- # setUp=testing.setUp, tearDown=testing.tearDown),
-
-
- # Integration tests that use PloneTestCase
- #ztc.ZopeDocFileSuite(
- # 'README.txt', package='collective.folderishtypes',
- # test_class=TestCase),
-
- #ztc.FunctionalDocFileSuite(
- # 'browser.txt', package='collective.folderishtypes',
- # test_class=TestCase),
-
- ])
-
-if __name__ == '__main__':
- unittest.main(defaultTest='test_suite')
View
7 docs/HISTORY.txt
@@ -1,7 +0,0 @@
-Changelog
-=========
-
-1.0dev (unreleased)
--------------------
-
-- Initial release
View
17 setup.py
@@ -1,10 +1,3 @@
-# -*- coding: utf-8 -*-
-#
-# GNU General Public License (GPL)
-#
-__author__ = """Johannes Raggam <johannes@raggam.co.at>"""
-__docformat__ = 'plaintext'
-
from setuptools import setup, find_packages
import os
@@ -13,17 +6,17 @@
setup(name='collective.folderishtypes',
version=version,
description="Provides folderish types as a replacement for some ATContentTypes",
- long_description=open("README.txt").read() + "\n" +
- open(os.path.join("docs", "HISTORY.txt")).read(),
- # Get more strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
+ long_description=open("README.rst").read() + "\n" +
+ open(os.path.join("docs", "HISTORY.rst")).read(),
+ # Get more strings from http://pypi.python.org/pypi?:action=list_classifiers
classifiers=[
"Framework :: Plone",
"Programming Language :: Python",
],
keywords='ATContentTypes Archetypes Plone Folderish',
author='Johannes Raggam',
- author_email='raggam-nl@adm.at',
- url='http://github.com/thet/collective.folderishtypes',
+ author_email='johannes@raggam.co.at',
+ url='http://github.com/collective/collective.folderishtypes',
license='GPL',
packages=find_packages(exclude=['ez_setup']),
namespace_packages=['collective'],
Please sign in to comment.
Something went wrong with that request. Please try again.