[Checkins] SVN: grokui.base/ Added basic files and structure to our new grokui.base package, to get started
Souheil CHELFOUH
trollfot at gmail.com
Fri Sep 18 09:56:18 EDT 2009
Don't worry Michael, it's just a quick and dirty boostrap for our
package to get started.
Uli and I will polish that and replace the buildout.cfg :)
2009/9/17 Michael Haubenwallner <michael at d2m.at>:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Souheil CHELFOUH wrote:
>> Log message for revision 104202:
>> Added basic files and structure to our new grokui.base package, to get started
>>
>>
>> Changed:
>> A grokui.base/branches/
>> A grokui.base/tags/
>> A grokui.base/trunk/
>> A grokui.base/trunk/buildout.cfg
>> A grokui.base/trunk/setup.py
>>
>> -=-
>>
>> Property changes on: grokui.base/trunk
>> ___________________________________________________________________
>> Added: svn:externals
>> + boostrap svn://svn.zope.org/repos/main/zc.buildout/trunk/bootstrap
>>
>>
>> Added: grokui.base/trunk/buildout.cfg
>> ===================================================================
>> --- grokui.base/trunk/buildout.cfg (rev 0)
>> +++ grokui.base/trunk/buildout.cfg 2009-09-17 12:37:12 UTC (rev 104202)
>> @@ -0,0 +1,69 @@
>> +[buildout]
>> +develop = .
>> +parts = test data zopectl app
>> +find-links = http://download.zope.org/distribution/
>> +# Test also with other configs...
>> +extends = ../grok/versions.cfg
>> +versions = versions
>> +
>> +[data]
>> +recipe = zc.recipe.filestorage
>> +
>> +[versions]
>> +grokui.base =
>> +
>> +[app]
>> +recipe = zc.zope3recipes>=0.5.3:application
>> +eggs = grokui.admin
>> +site.zcml =<configure xmlns='http://namespaces.zope.org/zope'
>> + xmlns:meta="http://namespaces.zope.org/meta"
>> + i18n_domain="zope"
>> + >
>> + <include package="grokui.base" />
>> + <include package="zope.app.twisted" />
>> +
>> + <unauthenticatedPrincipal id="zope.anybody"
>> + title="Unauthenticated User"
>> + />
>> + <unauthenticatedGroup id="zope.Anybody"
>> + title="Unauthenticated Users"
>> + />
>> + <authenticatedGroup id="zope.Authenticated"
>> + title="Authenticated Users"
>> + />
>> + <everybodyGroup id="zope.Everybody"
>> + title="All Users"
>> + />
>> + <principal id="zope.manager"
>> + title="Manager"
>> + login="grok"
>> + password_manager="Plain Text"
>> + password="grok"
>> + />
>> +
>> + <!-- Replace the following directive if you don't want
>> + public access -->
>> + <grant permission="zope.View"
>> + principal="zope.Anybody" />
>> + <grant permission="grok.View"
>> + principal="zope.Anybody" />
>> + <grant permission="zope.app.dublincore.view"
>> + principal="zope.Anybody" />
>> +
>> + <role id="zope.Manager" title="Site Manager" />
>> + <role id="zope.Member" title="Site Member" />
>> + <grantAll role="zope.Manager" />
>> + <grant role="zope.Manager"
>> + principal="zope.manager" />
>> + </configure>
>> +
>> +# this section named so that the start/stop script is called bin/zopectl
>> +[zopectl]
>> +recipe = zc.zope3recipes:instance
>> +application = app
>> +zope.conf = ${data:zconfig}
>> +
>> +[test]
>> +recipe = zc.recipe.testrunner
>> +eggs = grokui.admin [test,]
>> +defaults = ['--tests-pattern', '^f?tests$', '-v']
>>
>> Added: grokui.base/trunk/setup.py
>> ===================================================================
>> --- grokui.base/trunk/setup.py (rev 0)
>> +++ grokui.base/trunk/setup.py 2009-09-17 12:37:12 UTC (rev 104202)
>> @@ -0,0 +1,66 @@
>> +import os
>> +from setuptools import setup, find_packages
>> +
>> +tests_require = [
>> + 'z3c.testsetup',
>> + ]
>> +
>> +def read(*rnames):
>> + return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
>> +
>> +setup(name='grokui.base',
>> + version='0.1dev',
>> + description="The Grok administration and development UI (base)",
>> + long_description=(
>> + read(os.path.join('src', 'grokui', 'base', 'README.txt')) +
>> + '\n\n' +
>> + read('CHANGES.txt')
>> + ),
>> + # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
>> + classifiers=[
>> + 'Development Status :: 3 - Alpha',
>> + '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'],
>> + keywords="zope3 grok grokadmin",
>> + author="Uli Fouquet and Souheil Chelfouh",
>> + author_email="grok-dev at zope.org",
>> + url="http://svn.zope.org/grokui.base",
>> + license="ZPL 2.1",
>> + package_dir={'': 'src'},
>> + packages=find_packages('src'),
>> + include_package_data=True,
>> + zip_safe=False,
>> + namespace_packages = ['grokui'],
>> + install_requires=['setuptools',
>> + 'ZODB3',
>> + 'grok',
>> + 'grokcore.view',
>> + 'megrok.layout',
>> + 'martian',
>> + 'z3c.flashmessage',
>> + 'zope.app.applicationcontrol',
>> + 'zope.app.appsetup',
>> + 'zope.app.folder',
>> + 'zope.app.preference',
>> + 'zope.app.security',
>> + 'zope.app.testing',
>> + 'zope.component',
>> + 'zope.exceptions',
>> + 'zope.interface',
>> + 'zope.schema',
>> + 'zope.security',
>> + 'zope.testbrowser',
>> + 'zope.testing',
>> + ],
>> + tests_require = tests_require,
>> + extras_require = dict(test=tests_require),
>> + entry_points="""
>> + # Add entry points here
>> + """,
>> + )
>>
>> _______________________________________________
>> checkins mailing list
>> checkins at zope.org
>> https://mail.zope.org/mailman/listinfo/checkins
>>
>
> Just out of interrest, why do you create a zopectl based buildout
> instead of the new paster based layout also used by grok (see grokwiki
> for an example).
>
> Regards
> Michael
>
> - --
> http://blog.d2m.at
> http://planetzope.org
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iD8DBQFKsi7Tl0uAvQJUKVYRAktwAKCZf3/NWj26r44xrQ9YJF6aWYKAugCeLqhR
> 7OeOAhw53JG4EAiEWNQoIaY=
> =k4aM
> -----END PGP SIGNATURE-----
> _______________________________________________
> checkins mailing list
> checkins at zope.org
> https://mail.zope.org/mailman/listinfo/checkins
>
More information about the checkins
mailing list