[Checkins] SVN: Sandbox/lra/ Simple authentication mechanism for
grok. Only outline and ideas for now
Leonardo Rochael Almeida
leo at hiper.com.br
Thu Jan 17 22:35:59 EST 2008
Log message for revision 82938:
Simple authentication mechanism for grok. Only outline and ideas for now
Changed:
A Sandbox/lra/README.txt
A Sandbox/lra/TODO.txt
A Sandbox/lra/setup.cfg
A Sandbox/lra/setup.py
A Sandbox/lra/src/
A Sandbox/lra/src/megrok/
A Sandbox/lra/src/megrok/__init__.py
A Sandbox/lra/src/megrok/simpleauth/
A Sandbox/lra/src/megrok/simpleauth/__init__.py
-=-
Added: Sandbox/lra/README.txt
===================================================================
--- Sandbox/lra/README.txt (rev 0)
+++ Sandbox/lra/README.txt 2008-01-18 03:35:57 UTC (rev 82938)
@@ -0,0 +1,40 @@
+-------------------
+ megrok.simpleauth
+-------------------
+
+*Grok package for simple authentication*
+
+==============
+ Introduction
+==============
+
+This package provides a pre-configured PAU with PrincipalFolder,
+InternalPrincipals (with easily extensible annotations) and SessionLogin(?),
+and a set of views for user account creation, login, logout etc.
+
+Calling megrok.setup inside your grok.App class configures all of the above
+with sensible defaults, but the user schema can be extended and the views
+overriden.
+
+
+===============
+ Basic outline
+===============
+
+from megrok import simpleauth
+class Foo(grok.App, ...):
+ simpleauth.setup([view_map], [user_schema])
+
+view_map: A dictionary mapping default view names to custom ones for:
+
+ * login
+ * logout
+ * join
+ * user_search, user_listing
+ * user_profile, user_edit
+
+ Each one of these may be a string giving the new name for the view, or
+ None to disable creation of that particular view.
+
+user_schema: A schema (which extends simpleauth.IUser) defining user
+attributes.
Added: Sandbox/lra/TODO.txt
===================================================================
--- Sandbox/lra/TODO.txt (rev 0)
+++ Sandbox/lra/TODO.txt 2008-01-18 03:35:57 UTC (rev 82938)
@@ -0,0 +1,4 @@
+- Implement simpleauth.setup grokker.
+- Research looking up views that implement specific interfaces.
+- Implement Annotation adapter for custom schema
+- Expand README
Added: Sandbox/lra/setup.cfg
===================================================================
--- Sandbox/lra/setup.cfg (rev 0)
+++ Sandbox/lra/setup.cfg 2008-01-18 03:35:57 UTC (rev 82938)
@@ -0,0 +1,3 @@
+[egg_info]
+tag_build = dev
+tag_svn_revision = true
Added: Sandbox/lra/setup.py
===================================================================
--- Sandbox/lra/setup.py (rev 0)
+++ Sandbox/lra/setup.py 2008-01-18 03:35:57 UTC (rev 82938)
@@ -0,0 +1,35 @@
+from setuptools import setup, find_packages
+
+version = '0.1'
+
+setup(name='megrok.simpleauth',
+ version=version,
+ description="Simple authentication setup for Grok apps.",
+ long_description="""\
+Simple authentication setup for Grok apps.""",
+ # Get more strings from http://www.python.org/pypi?%3Aaction=list_classifiers
+ classifiers=[
+ "Framework :: Plone",
+ "Framework :: Zope2",
+ "Framework :: Zope3",
+ "Programming Language :: Python",
+ "Topic :: Software Development :: Libraries :: Python Modules",
+ ],
+ keywords='grok authentication',
+ author='Leonardo Rochael, Luciano Ramalho, Rodrigo Pimentel',
+ author_email='',
+ url='',
+ license='ZPL',
+ packages=find_packages('src'),
+ package_dir = {'': 'src'},
+ namespace_packages=['megrok'],
+ include_package_data=True,
+ zip_safe=False,
+ install_requires=[
+ 'setuptools',
+ # -*- Extra requirements: -*-
+ ],
+ entry_points="""
+ # -*- Entry points: -*-
+ """,
+ )
Added: Sandbox/lra/src/megrok/__init__.py
===================================================================
--- Sandbox/lra/src/megrok/__init__.py (rev 0)
+++ Sandbox/lra/src/megrok/__init__.py 2008-01-18 03:35:57 UTC (rev 82938)
@@ -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__)
Added: Sandbox/lra/src/megrok/simpleauth/__init__.py
===================================================================
More information about the Checkins
mailing list