Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A pas Plugin for SygeFor connexion

Project Description

Change history

1.0 (xxxx-xx-xx)

  • Created recipe with ZopeSkel [“”].

Detailed Documentation

Tests for jalon.pas.sygefor

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')

jalon.pas.sygefor should be in the list of installable plugins:

>>> 'Sygefor Helper' in select.displayOptions
True

and we can select it:

>>> select.getControl('Sygefor Helper').click()
>>> select.displayValue
['Sygefor Helper']
>>> select.value
['manage_addProduct/jalon.pas.sygefor/manage_add_sygefor_helper_form']

we add ‘Sygefor Helper’ to acl_users:

>>> from jalon.pas.sygefor.plugin import SygeforHelper
>>> myhelper = SygeforHelper('myplugin', 'Sygefor Helper')
>>> self.portal.acl_users['myplugin'] = myhelper

and so on. Continue your tests here

>>> 'ALL OK'
'ALL OK'

Contributors

“”, Author

Release History

Release History

This version
History Node

1.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
jalon.pas.sygefor-1.1.tar.gz (16.8 kB) Copy SHA256 Checksum SHA256 Source Feb 27, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting