Metadata-Version: 2.0
Name: rcom.pas.gapps
Version: 1.0dev-r598
Summary: PAS plugin for GoogleApps domains.
Home-page: http://www.rcom.com.ar/
Author: Rcom
Author-email: info@rcom.com.ar
License: GPL
Platform: UNKNOWN
Classifier: Framework :: Plone
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: GNU General Public License (GPL)
Requires-Dist: setuptools
Provides-Extra: tests
Requires-Dist: zope.testing; extra == 'tests'

.. contents::

.. Note!
   -----
   Update the following URLs to point to your:

   - code repository
   - bug tracker
   - questions/comments feedback mail
   (do not set a real mail, to avoid spams)

   Or remove it if not used.

- Code repository: http://svn.somewhere.com/...
- Questions and comments to somemailing_list
- Report bugs at http://bug.somewhere.com/..


Change history
**************

1.0 (xxxx-xx-xx)
==================

 - Created recipe with ZopeSkel [Rcom].

Detailed Documentation
**********************

Tests for rcom.pas.gapps

test setup
----------

    >>> from Testing.ZopeTestCase import user_password
    >>> from Products.Five.testbrowser import Browser
    >>> browser = Browser()

Plugin setup
------------

    >>> acl_users_url = "%s/acl_users" % self.portal.absolute_url()
    >>> browser.addHeader('Authorization', 'Basic %s:%s' % ('portal_owner', user_password))
    >>> browser.open("%s/manage_main" % acl_users_url)
    >>> browser.url
    'http://nohost/plone/acl_users/manage_main'
    >>> form = browser.getForm(index=0)
    >>> select = form.getControl(name=':action')

rcom.pas.gapps should be in the list of installable plugins:

    >>> 'GApps Authentication Helper' in select.displayOptions
    True

and we can select it:

    >>> select.getControl('GApps Authentication Helper').click()
    >>> select.displayValue
    ['GApps Authentication Helper']
    >>> select.value
    ['manage_addProduct/rcom.pas.gapps/manage_add_gapps_form']

we add 'Gapps Helper' to acl_users:

    >>> from rcom.pas.gapps.plugin import GappsHelper
    >>> myhelper = GappsHelper('myplugin', 'Gapps Helper')
    >>> self.portal.acl_users['myplugin'] = myhelper

and so on. Continue your tests here

    >>> 'ALL OK'
    'ALL OK'


Contributors
************

Rcom, Author


Download
********


