forked from simplesconsultoria/beyondskins.pb9.site
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
611 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
*~ | ||
*.mo | ||
*.egg-info | ||
*.egg | ||
*.EGG | ||
*.EGG-INFO | ||
.eggs | ||
bin | ||
build | ||
develop-eggs | ||
downloads | ||
eggs | ||
fake-eggs | ||
parts | ||
dist | ||
.installed.cfg | ||
.mr.developer.cfg | ||
.hg | ||
.bzr | ||
.svn | ||
*.pyc | ||
*.pyo | ||
*.tmp* |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages | ||
try: | ||
__import__('pkg_resources').declare_namespace(__name__) | ||
except ImportError: | ||
from pkgutil import extend_path | ||
__path__ = extend_path(__path__, __name__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages | ||
try: | ||
__import__('pkg_resources').declare_namespace(__name__) | ||
except ImportError: | ||
from pkgutil import extend_path | ||
__path__ = extend_path(__path__, __name__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
def initialize(context): | ||
"""Initializer called when used as a Zope 2 product.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<configure | ||
xmlns="http://namespaces.zope.org/zope" | ||
xmlns:five="http://namespaces.zope.org/five" | ||
xmlns:i18n="http://namespaces.zope.org/i18n" | ||
xmlns:genericsetup="http://namespaces.zope.org/genericsetup" | ||
xmlns:plone="http://namespaces.plone.org/plone" | ||
i18n_domain="beyondskins.pb9.site"> | ||
|
||
<five:registerPackage package="." initialize=".initialize" /> | ||
|
||
<genericsetup:registerProfile | ||
name="default" | ||
title="beyondskins.pb9.site" | ||
directory="profiles/default" | ||
description="Installs the beyondskins.pb9.site package" | ||
provides="Products.GenericSetup.interfaces.EXTENSION" | ||
/> | ||
|
||
<genericsetup:registerProfile | ||
name="uninstall" | ||
title="beyondskins.pb9.site: Uninstall profile for Plone 4 Diazo Theme" | ||
directory="profiles/uninstall" | ||
description="Uninstalls the beyondskins.pb9.site package" | ||
provides="Products.GenericSetup.interfaces.EXTENSION" | ||
/> | ||
|
||
<!-- -*- extra stuff goes here -*- --> | ||
|
||
<include package="plone.resource" file="meta.zcml"/> | ||
<plone:static directory="static" type="theme" name="beyondskins.pb9.site" /> | ||
|
||
</configure> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0"?> | ||
<metadata> | ||
<version>1000</version> | ||
<dependencies> | ||
<dependency>profile-plone.app.theming:default</dependency> | ||
</dependencies> | ||
</metadata> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<theme> | ||
<name>beyondskins.pb9.site</name> | ||
<enabled>true</enabled> | ||
</theme> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0"?> | ||
<metadata> | ||
<version>1000</version> | ||
</metadata> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<theme> | ||
<name>beyondskins.pb9.site</name> | ||
<enabled>false</enabled> | ||
</theme> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
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 beyondskins.pb9.site | ||
|
||
class TestCase(ptc.PloneTestCase): | ||
class layer(PloneSite): | ||
@classmethod | ||
def setUp(cls): | ||
fiveconfigure.debug_mode = True | ||
zcml.load_config('configure.zcml', | ||
beyondskins.pb9.site) | ||
fiveconfigure.debug_mode = False | ||
|
||
@classmethod | ||
def tearDown(cls): | ||
pass | ||
|
||
|
||
def test_suite(): | ||
return unittest.TestSuite([ | ||
|
||
# Unit tests | ||
#doctestunit.DocFileSuite( | ||
# 'README.rst', package='beyondskins.pb9.site', | ||
# setUp=testing.setUp, tearDown=testing.tearDown), | ||
|
||
#doctestunit.DocTestSuite( | ||
# module='beyondskins.pb9.site.mymodule', | ||
# setUp=testing.setUp, tearDown=testing.tearDown), | ||
|
||
|
||
# Integration tests that use PloneTestCase | ||
#ztc.ZopeDocFileSuite( | ||
# 'README.rst', package='beyondskins.pb9.site', | ||
# test_class=TestCase), | ||
|
||
#ztc.FunctionalDocFileSuite( | ||
# 'browser.txt', package='beyondskins.pb9.site', | ||
# test_class=TestCase), | ||
|
||
]) | ||
|
||
if __name__ == '__main__': | ||
unittest.main(defaultTest='test_suite') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Changelog | ||
========= | ||
|
||
0.1dev (unreleased) | ||
------------------- | ||
|
||
- Initial upload [André Nogueira] | ||
|
||
- Initial commit [André Nogueira] | ||
|
||
- Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
beyondskins.pb9.site Installation | ||
======================= | ||
|
||
* When you're reading this you have probably already run | ||
``easy_install beyondskins.pb9.site``. Find out how to install setuptools | ||
(and EasyInstall) here: | ||
http://peak.telecommunity.com/DevCenter/EasyInstall | ||
|
||
* Get `pythonproducts`_ and install it via:: | ||
|
||
python setup.py install --home /path/to/instance | ||
|
||
into your Zope instance. | ||
|
||
* Create a file called ``beyondskins.pb9.site-configure.zcml`` in the | ||
``/path/to/instance/etc/package-includes`` directory. The file | ||
should only contain this:: | ||
|
||
<include package="beyondskins.pb9.site" /> | ||
|
||
.. _pythonproducts: http://plone.org/products/pythonproducts | ||
|
||
Alternatively, if you are using zc.buildout and the plone.recipe.zope2instance | ||
recipe to manage your project, you can do this: | ||
|
||
* Add ``beyondskins.pb9.site`` to the list of eggs to install, e.g.: | ||
|
||
[buildout] | ||
... | ||
eggs = | ||
... | ||
beyondskins.pb9.site | ||
|
||
* Tell the plone.recipe.zope2instance recipe to install a ZCML slug: | ||
|
||
[instance] | ||
recipe = plone.recipe.zope2instance | ||
... | ||
zcml = | ||
beyondskins.pb9.site | ||
|
||
* Re-run buildout, e.g. with: | ||
|
||
$ ./bin/buildout | ||
|
||
You can skip the ZCML slug if you are going to explicitly include the package | ||
from another package's configure.zcml file. |
Oops, something went wrong.