This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# based on: https://gist.github.com/sgk/1286682 | |
text = """ | |
""" | |
import datetime | |
import re |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am martior on github. | |
* I am martior (https://keybase.io/martior) on keybase. | |
* I have a public key whose fingerprint is 0086 D5FE 37B9 46E6 8855 D0AD 40DA AE52 DAEA 9C9E | |
To claim this, I am signing this object: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from AccessControl.SecurityManagement import newSecurityManager | |
from Testing import makerequest | |
from zope.site.hooks import setHooks | |
from zope.site.hooks import setSite | |
root = makerequest.makerequest(app) | |
site = root.get('Plone') | |
setHooks() | |
setSite(site) | |
uf = app.acl_users | |
user = uf.getUserById("admin") |