zope.app.basicskin-3.5.1/000755 000766 000024 00000000000 11447374205 015134 5ustar00macstaff000000 000000 zope.app.basicskin-3.5.1/CHANGES.txt000644 000766 000024 00000001004 11447374203 016736 0ustar00macstaff000000 000000 ======= CHANGES ======= 3.5.1 (2010-09-25) ------------------ - Added test extra to declare test dependency on ``zope.component [test]``. 3.5.0 (2009-12-16) ------------------ - Avoid extraneous testing dependencies and remove test extra. - Avoid zope.app.component testing dependency. - Removed BBB import for IBasicSkin. 3.4.1 (2009-08-15) ------------------ - Added missing test dependency: zope.app.component. 3.4.0 (2007-10-11) ------------------ - Initial release independent of the main Zope tree. zope.app.basicskin-3.5.1/PKG-INFO000644 000766 000024 00000002754 11447374205 016241 0ustar00macstaff000000 000000 Metadata-Version: 1.0 Name: zope.app.basicskin Version: 3.5.1 Summary: Zope ZMI Basic Skin Home-page: http://pypi.python.org/pypi/zope.app.basicskin Author: Zope Corporation and Contributors Author-email: zope-dev@zope.org License: ZPL 2.1 Description: A very simple skin for the original Zope 3 ZMI. ======= CHANGES ======= 3.5.1 (2010-09-25) ------------------ - Added test extra to declare test dependency on ``zope.component [test]``. 3.5.0 (2009-12-16) ------------------ - Avoid extraneous testing dependencies and remove test extra. - Avoid zope.app.component testing dependency. - Removed BBB import for IBasicSkin. 3.4.1 (2009-08-15) ------------------ - Added missing test dependency: zope.app.component. 3.4.0 (2007-10-11) ------------------ - Initial release independent of the main Zope tree. Keywords: zope3 skin zmi Platform: UNKNOWN Classifier: Development Status :: 5 - Production/Stable Classifier: Environment :: Web Environment Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved :: Zope Public License Classifier: Programming Language :: Python Classifier: Natural Language :: English Classifier: Operating System :: OS Independent Classifier: Topic :: Internet :: WWW/HTTP Classifier: Framework :: Zope3 zope.app.basicskin-3.5.1/README.txt000644 000766 000024 00000000060 11447374203 016624 0ustar00macstaff000000 000000 A very simple skin for the original Zope 3 ZMI. zope.app.basicskin-3.5.1/bootstrap.py000644 000766 000024 00000003370 11447374203 017524 0ustar00macstaff000000 000000 ############################################################################## # # Copyright (c) 2006 Zope Corporation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS # FOR A PARTICULAR PURPOSE. # ############################################################################## """Bootstrap a buildout-based project Simply run this script in a directory containing a buildout.cfg. The script accepts buildout command-line options, so you can use the -c option to specify an alternate configuration file. $Id: bootstrap.py 73693 2007-03-27 09:02:28Z dobe $ """ import os, shutil, sys, tempfile, urllib2 tmpeggs = tempfile.mkdtemp() ez = {} exec urllib2.urlopen('http://peak.telecommunity.com/dist/ez_setup.py' ).read() in ez ez['use_setuptools'](to_dir=tmpeggs, download_delay=0) import pkg_resources cmd = 'from setuptools.command.easy_install import main; main()' if sys.platform == 'win32': cmd = '"%s"' % cmd # work around spawn lamosity on windows ws = pkg_resources.working_set assert os.spawnle( os.P_WAIT, sys.executable, sys.executable, '-c', cmd, '-mqNxd', tmpeggs, 'zc.buildout', dict(os.environ, PYTHONPATH= ws.find(pkg_resources.Requirement.parse('setuptools')).location ), ) == 0 ws.add_entry(tmpeggs) ws.require('zc.buildout') import zc.buildout.buildout zc.buildout.buildout.main(sys.argv[1:] + ['bootstrap']) shutil.rmtree(tmpeggs) zope.app.basicskin-3.5.1/buildout.cfg000644 000766 000024 00000000153 11447374203 017441 0ustar00macstaff000000 000000 [buildout] develop = . parts = test [test] recipe = zc.recipe.testrunner eggs = zope.app.basicskin [test] zope.app.basicskin-3.5.1/setup.cfg000644 000766 000024 00000000073 11447374205 016755 0ustar00macstaff000000 000000 [egg_info] tag_build = tag_date = 0 tag_svn_revision = 0 zope.app.basicskin-3.5.1/setup.py000644 000766 000024 00000004717 11447374203 016655 0ustar00macstaff000000 000000 ############################################################################## # # Copyright (c) 2006 Zope Corporation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS # FOR A PARTICULAR PURPOSE. # ############################################################################## # This package is developed by the Zope Toolkit project, documented here: # http://docs.zope.org/zopetoolkit # When developing and releasing this package, please follow the documented # Zope Toolkit policies as described by this documentation. ############################################################################## """Setup for zope.app.basicskin package """ version = '3.5.1' import os from setuptools import setup, find_packages def read(*rnames): return open(os.path.join(os.path.dirname(__file__), *rnames)).read() setup(name='zope.app.basicskin', version = version, author='Zope Corporation and Contributors', author_email='zope-dev@zope.org', description='Zope ZMI Basic Skin', long_description=( read('README.txt') + '\n\n' + read('CHANGES.txt') ), keywords = "zope3 skin zmi", classifiers = [ 'Development Status :: 5 - Production/Stable', 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: Zope Public License', 'Programming Language :: Python', 'Natural Language :: English', 'Operating System :: OS Independent', 'Topic :: Internet :: WWW/HTTP', 'Framework :: Zope3'], url='http://pypi.python.org/pypi/zope.app.basicskin', license='ZPL 2.1', packages=find_packages('src'), package_dir = {'': 'src'}, namespace_packages=['zope', 'zope.app'], install_requires=['setuptools', 'zope.component', 'zope.interface', 'zope.publisher', ], extras_require=dict( test=[ 'zope.component [test]', ]), include_package_data = True, zip_safe = False, ) zope.app.basicskin-3.5.1/src/000755 000766 000024 00000000000 11447374205 015723 5ustar00macstaff000000 000000 zope.app.basicskin-3.5.1/src/zope/000755 000766 000024 00000000000 11447374205 016700 5ustar00macstaff000000 000000 zope.app.basicskin-3.5.1/src/zope.app.basicskin.egg-info/000755 000766 000024 00000000000 11447374205 023116 5ustar00macstaff000000 000000 zope.app.basicskin-3.5.1/src/zope.app.basicskin.egg-info/PKG-INFO000644 000766 000024 00000002754 11447374204 024222 0ustar00macstaff000000 000000 Metadata-Version: 1.0 Name: zope.app.basicskin Version: 3.5.1 Summary: Zope ZMI Basic Skin Home-page: http://pypi.python.org/pypi/zope.app.basicskin Author: Zope Corporation and Contributors Author-email: zope-dev@zope.org License: ZPL 2.1 Description: A very simple skin for the original Zope 3 ZMI. ======= CHANGES ======= 3.5.1 (2010-09-25) ------------------ - Added test extra to declare test dependency on ``zope.component [test]``. 3.5.0 (2009-12-16) ------------------ - Avoid extraneous testing dependencies and remove test extra. - Avoid zope.app.component testing dependency. - Removed BBB import for IBasicSkin. 3.4.1 (2009-08-15) ------------------ - Added missing test dependency: zope.app.component. 3.4.0 (2007-10-11) ------------------ - Initial release independent of the main Zope tree. Keywords: zope3 skin zmi Platform: UNKNOWN Classifier: Development Status :: 5 - Production/Stable Classifier: Environment :: Web Environment Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved :: Zope Public License Classifier: Programming Language :: Python Classifier: Natural Language :: English Classifier: Operating System :: OS Independent Classifier: Topic :: Internet :: WWW/HTTP Classifier: Framework :: Zope3 zope.app.basicskin-3.5.1/src/zope.app.basicskin.egg-info/SOURCES.txt000644 000766 000024 00000002016 11447374204 025000 0ustar00macstaff000000 000000 CHANGES.txt README.txt bootstrap.py buildout.cfg setup.py src/zope/__init__.py src/zope.app.basicskin.egg-info/PKG-INFO src/zope.app.basicskin.egg-info/SOURCES.txt src/zope.app.basicskin.egg-info/dependency_links.txt src/zope.app.basicskin.egg-info/namespace_packages.txt src/zope.app.basicskin.egg-info/not-zip-safe src/zope.app.basicskin.egg-info/requires.txt src/zope.app.basicskin.egg-info/top_level.txt src/zope/app/__init__.py src/zope/app/basicskin/__init__.py src/zope/app/basicskin/arrowup.gif src/zope/app/basicskin/configure.zcml src/zope/app/basicskin/dialog_macros.pt src/zope/app/basicskin/document_icon.gif src/zope/app/basicskin/folder_icon.gif src/zope/app/basicskin/standardmacros.py src/zope/app/basicskin/view_macros.pt src/zope/app/basicskin/zmi_stylesheet.css src/zope/app/basicskin/zopetopbasic.css src/zope/app/basicskin/zopetopstructure.css src/zope/app/basicskin/zopetopwidgets.css src/zope/app/basicskin/tests/__init__.py src/zope/app/basicskin/tests/test.gif src/zope/app/basicskin/tests/test_standardmacros.pyzope.app.basicskin-3.5.1/src/zope.app.basicskin.egg-info/dependency_links.txt000644 000766 000024 00000000001 11447374204 027163 0ustar00macstaff000000 000000 zope.app.basicskin-3.5.1/src/zope.app.basicskin.egg-info/namespace_packages.txt000644 000766 000024 00000000016 11447374204 027445 0ustar00macstaff000000 000000 zope zope.app zope.app.basicskin-3.5.1/src/zope.app.basicskin.egg-info/not-zip-safe000644 000766 000024 00000000001 11447374204 025343 0ustar00macstaff000000 000000 zope.app.basicskin-3.5.1/src/zope.app.basicskin.egg-info/requires.txt000644 000766 000024 00000000125 11447374204 025513 0ustar00macstaff000000 000000 setuptools zope.component zope.interface zope.publisher [test] zope.component [test]zope.app.basicskin-3.5.1/src/zope.app.basicskin.egg-info/top_level.txt000644 000766 000024 00000000005 11447374204 025642 0ustar00macstaff000000 000000 zope zope.app.basicskin-3.5.1/src/zope/__init__.py000644 000766 000024 00000000310 11447374203 021001 0ustar00macstaff000000 000000 # this is a namespace package try: import pkg_resources pkg_resources.declare_namespace(__name__) except ImportError: import pkgutil __path__ = pkgutil.extend_path(__path__, __name__) zope.app.basicskin-3.5.1/src/zope/app/000755 000766 000024 00000000000 11447374205 017460 5ustar00macstaff000000 000000 zope.app.basicskin-3.5.1/src/zope/app/__init__.py000644 000766 000024 00000000310 11447374203 021561 0ustar00macstaff000000 000000 # this is a namespace package try: import pkg_resources pkg_resources.declare_namespace(__name__) except ImportError: import pkgutil __path__ = pkgutil.extend_path(__path__, __name__) zope.app.basicskin-3.5.1/src/zope/app/basicskin/000755 000766 000024 00000000000 11447374205 021426 5ustar00macstaff000000 000000 zope.app.basicskin-3.5.1/src/zope/app/basicskin/__init__.py000644 000766 000024 00000001655 11447374203 023544 0ustar00macstaff000000 000000 ############################################################################## # # Copyright (c) 2006 Zope Corporation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS # FOR A PARTICULAR PURPOSE. # ############################################################################## """Basic skin $Id: __init__.py 106669 2009-12-16 22:42:40Z hannosch $ """ __docformat__ = 'restructuredtext' from zope.publisher.interfaces.browser import IDefaultBrowserLayer class IBasicSkin(IDefaultBrowserLayer): """Basic skin that simply only contains the default layer and nothing else""" zope.app.basicskin-3.5.1/src/zope/app/basicskin/arrowup.gif000644 000766 000024 00000000140 11447374203 023605 0ustar00macstaff000000 000000 GIF89a !,  PI'誻6E;zope.app.basicskin-3.5.1/src/zope/app/basicskin/configure.zcml000644 000766 000024 00000001740 11447374203 024276 0ustar00macstaff000000 000000 zope.app.basicskin-3.5.1/src/zope/app/basicskin/dialog_macros.pt000644 000766 000024 00000000716 11447374203 024600 0ustar00macstaff000000 000000

Body here

zope.app.basicskin-3.5.1/src/zope/app/basicskin/document_icon.gif000644 000766 000024 00000001611 11447374203 024740 0ustar00macstaff000000 000000 GIF89aPPP@@@@@!,f@AxჅ*tpÄ)f8" A"H#d+UD1Õh*I1@Δ:cCLJaȫX;zope.app.basicskin-3.5.1/src/zope/app/basicskin/folder_icon.gif000644 000766 000024 00000001070 11447374203 024374 0ustar00macstaff000000 000000 GIF89a߿ݿݾݾܻۺڹܹڸڷٷֵشײױױְְծ֬ԪӨҧѧæУΡΠŌČ̊{jDi!,ppp1)KZp9S_^h Gp (.5EMRYY`nִaFM3gʐcÇ;zope.app.basicskin-3.5.1/src/zope/app/basicskin/standardmacros.py000644 000766 000024 00000003231 11447374203 025002 0ustar00macstaff000000 000000 ############################################################################## # # Copyright (c) 2002 Zope Corporation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS # FOR A PARTICULAR PURPOSE. # ############################################################################## """Standard macros for page templates in the ZMI The macros are drawn from various different page templates. $Id: standardmacros.py 67630 2006-04-27 00:54:03Z jim $ """ __docformat__ = 'restructuredtext' import zope.interface from zope.component import getMultiAdapter from zope.publisher.browser import BrowserView class Macros(object): zope.interface.implements(zope.interface.common.mapping.IItemMapping) macro_pages = () aliases = { 'view': 'page', 'dialog': 'page', 'addingdialog': 'page' } def __getitem__(self, key): key = self.aliases.get(key, key) context = self.context request = self.request for name in self.macro_pages: page = getMultiAdapter((context, request), name=name) try: v = page[key] except KeyError: pass else: return v raise KeyError(key) class StandardMacros(BrowserView, Macros): macro_pages = ('view_macros', 'dialog_macros') zope.app.basicskin-3.5.1/src/zope/app/basicskin/tests/000755 000766 000024 00000000000 11447374205 022570 5ustar00macstaff000000 000000 zope.app.basicskin-3.5.1/src/zope/app/basicskin/view_macros.pt000644 000766 000024 00000003041 11447374203 024305 0ustar00macstaff000000 000000 Zope
label '

Body here

User: User

Powered by Zope

zope.app.basicskin-3.5.1/src/zope/app/basicskin/zmi_stylesheet.css000644 000766 000024 00000001006 11447374203 025203 0ustar00macstaff000000 000000 body { font-family: sans-serif; color: Black; background-color: White; } h1 { font-size: x-large; font-weight: bold; } h2 { font-size: large; font-weight: bold; } h3 { font-size: large; font-weight: bold; font-style: italic; } h4 { font-weight: bold; font-style: italic; } h5 { font-size: small; font-weight: bold; } h6 { font-size: small; font-weight: bold; font-style: italic; } img { border: none; } caption { font-weight: bold; } zope.app.basicskin-3.5.1/src/zope/app/basicskin/zopetopbasic.css000644 000766 000024 00000006506 11447374203 024647 0ustar00macstaff000000 000000 /***************************************************************************** * * Copyright (c) 2001, 2002 Zope Corporation and Contributors. * All Rights Reserved. * * This software is subject to the provisions of the Zope Public License, * Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED * WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS * FOR A PARTICULAR PURPOSE. * ***************************************************************************** These are the basic CSS declarations. $Id: zopetopbasic.css 25177 2004-06-02 13:17:31Z jim $ */ body { font: 0.8em Tahoma, Helvetica, Arial, sans-serif; color: #000066; margin: 5; padding: 5; } table { font: 1em Tahoma, Helvetica, Arial, sans-serif; } img { /* turn off image borders. */ border: none; } p { /* Default paragraph style*/ font: 1em Tahoma, Helvetica, Arial, sans-serif; margin: 1em 0em; text-align: justify; } p a { text-decoration: underline; } p a:visited { color: Purple; background-color: transparent; } p a:active { color: Red; background-color: transparent; } p img { border: 1px solid Black; margin: 1em; } hr { clear: both; height: 1px; color: #8CACBB; background-color: transparent; } h1, h2, h3, h4, h5, h6 { color: Black; margin-top: 0; font-family: Tahoma, Helvetica, Arial, sans-serif; } h1 { font-size: 1.8em; } h2 { font-size: 1.6em; } h3 { font-size: 1.4em; } h4 { font-size: 1.2em; } h5 { font-size: 1.1em; } h6 { font-size: 1.0em; } ul { /* list-style-image: url("bullet.gif"); */ margin-top: 1em; margin-bottom: 1em; margin-left: 2em; padding:0; } /* we advise you to use the div.group and span.legend elements instead of these, as the only browser showing legends correctly is IE. They are just included here for completeness */ fieldset { border: 1px solid #8cacbb; margin: 2em 0em 1em 0em; padding: 1em 0em; } legend { background: White; padding: 0.5em; } form { border: none; } textarea { /* Small cosmetic hack which makes textarea gadgets look nicer.*/ font: bold 1em Tahoma, Helvetica, Arial, sans-serif; border: 1px solid #8cacbb; width: 100%; color: Black; background-color: white; } input { /* Small cosmetic fix which makes input gadgets look nicer. */ font: 1em Tahoma, Helvetica, Arial, sans-serif; /* border: 1px solid #8cacbb; */ color: Black; /* background-color: white; */ margin: 1px 1px 1px 1px; } select { font: 1em Tahoma, Helvetica, Arial, sans-serif; /* border: 1px solid #8cacbb; */ margin: 1px 1px 1px 1px; } abbr, acronym, .explain { /* Help classes */ border-bottom: 1px dotted Black; color: Black; background-color: transparent; cursor: help; } code { font-size: 1.2em; color: Black; background-color: #dee7ec; } pre { font-size: 1.2em; padding: 1em; border: 1px solid #8cacbb; color: Black; background-color: #dee7ec; } .netscape4 { /* This hides elements necessary for getting Netscape 4.x to look better. Mostly strategically placed hr tags and ·'s */ display: none; } zope.app.basicskin-3.5.1/src/zope/app/basicskin/zopetopstructure.css000644 000766 000024 00000013005 11447374203 025616 0ustar00macstaff000000 000000 /***************************************************************************** * * Copyright (c) 2001, 2002 Zope Corporation and Contributors. * All Rights Reserved. * * This software is subject to the provisions of the Zope Public License, * Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED * WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS * FOR A PARTICULAR PURPOSE. * ***************************************************************************** The Structure CSS contains elements that make up the structure of Plone, generally stuff that is used once on a page - general layout, opposed to the Widgets, that are used several times in a page. KNOWN BUG: The selected tab cannot have image backdrop. FIXME $Id: zopetopstructure.css 25177 2004-06-02 13:17:31Z jim $ */ div.top { /* Top section */ background: transparent; margin: 0; padding: 0; width: 100%; } .logo { /* Logo properties */ margin: 1em 0em 1em 2em; padding: 0; } div.searchBox { /*searchbox style and positioning */ background-color: transparent; color: Black; float: right; margin: 3em 0em 0em 0em; padding: 0em 2em 0em 0em; text-align: right; } input.searchGadget { } div.tabs { /* Navigational Plone Tabs(tm), implemented by customizing the a tag - they are surprisingly elegant. The power of CSS runs strong in these :) */ background: transparent; border-collapse: collapse; border-bottom-color: #8CACBB; border-bottom-style: solid; border-bottom-width: 1px; padding: 0.5em 0em 0em 2em; white-space: nowrap; } div.tabs a { /* The normal, unselected tabs. They are all links */ background: transparent; border-color: #8CACBB; border-width: 1px; border-style: solid solid none solid; color: #436976; font-weight: normal; margin-right: 0.5em; padding: 0em 2em; } div.tabs a.selected { /* The selected tab. There's only one of this */ background: #DEE7EC; border: 1px solid #8CACBB; border-bottom: #DEE7EC 1px solid; color: #436976; font-weight: normal; } div.tabs a:hover { background: #DEE7EC; border-color: #8CACBB; border-bottom-color: #DEE7EC; color: #436976; } div.personalBar { /* Bar with personalized menu (user preferences, favorites etc) */ background: #DEE7EC; border-bottom-color: #8CACBB; border-bottom-style: solid; border-bottom-width: 1px; color: Black; padding-right: 3em; text-align: right; } div.personalBar a{ background-color: transparent; color: #436976; font-weight: normal; } div.pathBar { /* The path bar, including breadcrumbs and add to favorites */ border-bottom-color: #8CACBB; border-bottom-style: solid; border-bottom-width: 1px; padding-left: 2em; padding-right: 2em; } .breadcrumbs { float: left; } .addFavorite { vertical-align: bottom; } .clock { /* The portal time indicator */ float: right; white-space: nowrap; } table.columns { width: 100%; } table.columns td.left { vertical-align: top; width: 15%; padding: 2em 1em 1em 2em; } table.columns td.main { vertical-align: top; padding: 2em 2em 1em 1em; margin: 0; } table.columns td.right { vertical-align: top; width: 15%; padding: 2em 2em 1em 0em; } div.contentTabs { /* Local Tabs(tm), used in the content display */ background: transparent; border-collapse: collapse; border-bottom: 1px solid #74AE0B; padding-left: 1em; white-space: nowrap; } div.contentTabs a { /* The normal, unselected tabs. They are all links */ background: transparent; border: 1px solid #74AE0B; color: #578308; font-weight: normal; margin-right: 0.5em; padding: 0em 2em; } div.contentTabs a.selected { /* The selected tab. There's only one of this */ background: #CDE2A7; border-bottom: #CDE2A7 1px solid; color: #578308; font-weight: normal; } div.contentTabs a:hover { background-color: #CDE2A7; color: #578308; } div.contentBar { background: #CDE2A7; border-left: 1px solid #74AE0B; border-right: 1px solid #74AE0B; color: #578308; text-align: right; } div.document { /* The document class encloses the object content when editing is not permitted */ background: transparent; padding: 0; margin: 0em 0em 2em 0em; } div.editableDocument { /* The class surrounding content when editing is permitted */ background: transparent; border: 1px solid #74AE0B; margin: 0em 0em 2em 0em; padding: 2em; } div.message { /* The portal messages for cut/paste operations etc */ background: #FFCE7B; border: 1px solid #FFA500; color: Black; font: bold 100% Tahoma, Helvetica, Arial, sans-serif; margin: 0em 0em 1em 0em; padding: 0.5em 1em; vertical-align: middle; } div.message a { color: Black; text-decoration: underline; } .darker { background: #7B7AC6; } .hilite { background: #DFDEFF; } .background { background: #CCCCFF; } .description { /* The summary text describing the document */ font: bold 1em Tahoma, Helvetica, Arial, sans-serif; display: block; margin-bottom: 1em; } .footer { background: #DEE7EC; border-top: 1px solid #8CACBB; border-bottom: 1px solid #8CACBB; color: Black; clear: both; float: none; margin: 2em 0em; padding: 0.5em 0em 1em 0em; text-align: center; } zope.app.basicskin-3.5.1/src/zope/app/basicskin/zopetopwidgets.css000644 000766 000024 00000015254 11447374203 025234 0ustar00macstaff000000 000000 /***************************************************************************** * * Copyright (c) 2001, 2002 Zope Corporation and Contributors. * All Rights Reserved. * * This software is subject to the provisions of the Zope Public License, * Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED * WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS * FOR A PARTICULAR PURPOSE. * ***************************************************************************** These are the Widget CSS declarations. TODO: table.listing, table.box $Id: zopetopwidgets.css 25177 2004-06-02 13:17:31Z jim $ */ input.standalone { background: #A1A1F1 url(linkOpaque.gif) left no-repeat; color: Black; cursor: pointer; font-weight: normal; padding: 1px 1px 1px 15px; } input.context { background: White url(linkTransparent.gif) left no-repeat; color: Black; cursor: pointer; font-weight: normal; padding: 1px 1px 1px 15px; } input.noborder { /* radiobuttons and checkmarks, different behaviour in Moz and IE. Border necessary in Moz, not in IE */ border: none; margin: 0; background-color: transparent; } div.row { clear: both; min-height: 4em; margin-top: 1em; } .group { border: 1px solid #7B7AC6; margin: 2em 0em 1em 0em; width: 94%; padding: 1em 0em; } .legend { position : relative; top: -1.8em; left: 1em; background: White; padding: 0.5em; } span.label { float: left; font-weight: bold; text-align: right; width: 15%; position : relative; left: -1em; } span.field { float: left; text-align: left; width: 55%; } span.info { background-color: transparent; float: right; text-align: left; width: 28%; } .error { /* Class for error indication in forms */ background: #FFCE7B; border: 1px solid #FFA500; margin: 1em; } .required { /* Used in addition to class "label" on required elements */ background: url(required.gif) 2em no-repeat; } span.card { background: #A1A1F1; border-color: #7B7AC6; border-width: 1px; border-style: solid; float: left; margin: 1em; padding: 1em; text-align: center; width: 15%; } table.listing { /* The default table for document listings. Contains name, document types, modification times etc in a file-browser-like fashion */ border-collapse: collapse; border-left: 1px solid #7B7AC6; border-bottom: 1px solid #7B7AC6; margin: 1em 0em 1em 0em; } table.listing th { background: #A1A1F1; border-top: 1px solid #7B7AC6; border-bottom: 1px solid #7B7AC6; border-right: 1px solid #7B7AC6; color: #000000; font-weight: normal; padding: 0em 1em 0em 1em; } table.listing tr.odd { /*every second line should be shaded */ background: transparent; } table.listing tr.even { background: #ECFAFF; } table.listing td { border-right: 1px solid #7B7AC6; padding: 2px 1em 2px 1em; } table.listing a:hover { text-decoration: underline; } table.listing img{ vertical-align: middle; } table.box { /* The Plone Box(tm) (Navigation, Related etc) */ background: transparent; border-collapse: collapse; border-bottom: 1px solid #7B7AC6; border-left: 1px solid #7B7AC6; margin: 0px; margin-bottom: 1px; } table.box th { background: #A1A1F1; border-top: 1px solid #7B7AC6; border-bottom: 1px solid #7B7AC6; border-right: 1px solid #7B7AC6; color: Black; font-weight: normal; padding: 0px 1px; text-align: left; } table.box th.empty { background-color: transparent; border: none; border-bottom: 1px solid #7B7AC6; } table.box tr.odd { /*every second line should be shaded */ background: transparent; } table.box tr.even { background-color: #99CCFF; } table.box td { border-right: 1px solid #7B7AC6; padding: 0px 4px 0px 2px; } table.box img{ vertical-align: middle; } div.boxDetails { /*the line that contains the date for news and other info */ text-align: right; } table.box a { } table.box a.comment { /* special link for comments - default behavior is to display the discussion icon next to the link */ background-image: url(discussionitem_icon.gif); background-repeat: no-repeat; background-position: 0px -2px; padding: 0em 0em 0.5em 2em; margin: 0; display: block; } table.box a.marker { /* special format for links inside boxes - adds link image and displays the link as a block (which in this case means the text will not float under the link image, plus the whole thing is clickable) */ background: url(linkTransparent.gif) -0.5em 0px no-repeat; display: block; padding: 0em 0em 0em 1.5em; vertical-align: top; } span.folderName { /* The folder name in folder_contents */ font-size: 150%; font-weight: bold; } div.category { float: left; margin-right: 1em; margin-bottom: 2em; width: 20em; } div.category a.heading { display: block; padding: 0em 0em 0.5em 0em; font-size: 1.1em; text-decoration: underline; } div.category a { text-decoration: underline; } div.box { float: left; margin-right: 1em; margin-bottom: 2em; width: 20em; background: transparent; border-collapse: collapse; border: 1px solid #7B7AC6; } div.box div.heading { background: #A1A1F1; border-bottom: 1px solid #7B7AC6; color: Black; font-weight: normal; padding: 0em 0em 0em 1em; text-align: left; } div.box a.close { float: right; text-transform: none; border-left: 1px solid #7B7AC6; padding: 0em 0.2em; } div.box div.odd { background: transparent; padding: 1em; } div.box div.even { background-color: #99CCFF; padding: 1em; } div.spacer { margin: 3em; } .private { color: Black; } .published { color: #74AE0B; } .pending { color: #FFA500; } .syndicated { color: #008000; } .expired { color: Red; } div.listingBar { background: #A1A1F1; border-color: #7B7AC6; border-style: solid; border-width: 1px; padding: 0em 1em; text-align: right; height: 1em; clear: both; } div.listingBar span.previous { text-align: left; float: left; } div.listingBar span.next { text-align: right; float: right; } div.workspace { } div.workspace span.small { float: left; height: 30em; width: 20em; margin-right: 1em; margin-bottom: 1em; } div.workspace span.big { float: left; height: 40em; width: 40em; margin-right: 1em; margin-bottom: 1em; } zope.app.basicskin-3.5.1/src/zope/app/basicskin/tests/__init__.py000644 000766 000024 00000000075 11447374203 024701 0ustar00macstaff000000 000000 # # This file is necessary to make this directory a package. zope.app.basicskin-3.5.1/src/zope/app/basicskin/tests/test.gif000644 000766 000024 00000001615 11447374203 024237 0ustar00macstaff000000 000000 GIF89aPPP@@@@@!,j@AxჅ*tpÄ)f8A= pa< dǓ A$r"L*iH1ʚ&{ӡO/G~s̙?RlTӫ-* ;zope.app.basicskin-3.5.1/src/zope/app/basicskin/tests/test_standardmacros.py000644 000766 000024 00000007616 11447374203 027216 0ustar00macstaff000000 000000 ############################################################################## # # Copyright (c) 2001, 2002 Zope Corporation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS # FOR A PARTICULAR PURPOSE. # ############################################################################## """Basic skin standard macros $Id: test_standardmacros.py 106671 2009-12-16 22:56:40Z hannosch $ """ import unittest from zope.component import getGlobalSiteManager from zope.component.testing import PlacelessSetup from zope.interface import implements, Interface from zope.publisher.browser import TestRequest from zope.publisher.interfaces.browser import IBrowserView from zope.publisher.interfaces.browser import IDefaultBrowserLayer from zope.app.basicskin.standardmacros import Macros class ViewWithMacros(object): implements(IBrowserView) def __init__(self, context, request): self.context = context self.request = request def __call__(self): pass def __getitem__(self, key): return self.pages[key] pages = {} class I(Interface): pass class C(object): implements(I) class page1(ViewWithMacros): pages = {'foo':'page1_foo', 'bar':'page1_bar'} class collides_with_page1(ViewWithMacros): pages = {'foo':'collides_with_page1_foo', 'baz':'collides_with_page1_baz'} class works_with_page1(ViewWithMacros): pages = {'fish':'works_with_page1_fish', 'tree':'works_with_page1_tree'} def createMacrosInstance(pages): class T(Macros): aliases = {'afoo': 'foo', 'abar': 'bar'} def __init__(self, context, request): self.context = context self.request = request macro_pages = pages return T(C(), TestRequest()) def browserView(for_, name, factory): gsm = getGlobalSiteManager() for_ = (for_, ) + (IDefaultBrowserLayer,) gsm.registerAdapter(factory, for_, Interface, name, event=False) class Test(PlacelessSetup, unittest.TestCase): def setUp(self): PlacelessSetup.setUp(self) browserView(I, 'page1', page1) browserView(I, 'collides_with_page1', collides_with_page1) browserView(I, 'works_with_page1', works_with_page1) def testSinglePage(self): macros = createMacrosInstance(('page1',)) self.assertEqual(macros['foo'], 'page1_foo') self.assertEqual(macros['bar'], 'page1_bar') self.assertRaises(KeyError, macros.__getitem__, 'fish') def testConcordentPages(self): macros = createMacrosInstance(('page1', 'works_with_page1')) self.assertEqual(macros['foo'], 'page1_foo') self.assertEqual(macros['bar'], 'page1_bar') self.assertEqual(macros['fish'], 'works_with_page1_fish') self.assertEqual(macros['tree'], 'works_with_page1_tree') self.assertRaises(KeyError, macros.__getitem__, 'pants') def testConflictingPages(self): macros = createMacrosInstance(('page1', 'collides_with_page1')) self.assertEqual(macros['foo'], 'page1_foo') self.assertEqual(macros['bar'], 'page1_bar') self.assertEqual(macros['baz'], 'collides_with_page1_baz') self.assertRaises(KeyError, macros.__getitem__, 'pants') def testMacroAliases(self): macros = createMacrosInstance(('page1', 'collides_with_page1')) self.assertEqual(macros['afoo'], 'page1_foo') self.assertEqual(macros['abar'], 'page1_bar') def test_suite(): loader = unittest.TestLoader() return loader.loadTestsFromTestCase(Test) if __name__=='__main__': unittest.TextTestRunner().run(test_suite())