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 [“”].
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
Download
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jalon.pas.sygefor-1.1.tar.gz
(16.8 kB
view details)
File details
Details for the file jalon.pas.sygefor-1.1.tar.gz.
File metadata
- Download URL: jalon.pas.sygefor-1.1.tar.gz
- Upload date:
- Size: 16.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e28c22870daef52ef2e423672dbfe537366e964628774c43fb6eabdd4cbe6b76
|
|
| MD5 |
811969cd43579f4a4402a7d7c562effa
|
|
| BLAKE2b-256 |
1602fa0a3bba1120e8013ce8f2ba21b208afde94effca75f600afeaaf653f4c1
|