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
""" | |
https://docs.osohq.com/python/getting-started/policies.html#instances-and-fields | |
The content of "instances.polar" is : | |
# A user that is an administrator may read any document. | |
allow(user, "read", document) if | |
user.admin = true; | |
# A user may read any document that they own. |
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/env python | |
# -*- coding: utf-8 -*- | |
from SOAPpy import WSDL | |
# URI et namespace des web services HAL | |
url = "http://hal.archives-ouvertes.fr/ws/ref.php" | |
wsdlRefHAL = WSDL.Proxy("%s?wsdl" % url) |
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
## Script (Python) "changeLanguage" | |
##bind container=container | |
##bind context=context | |
##bind namespace= | |
##bind script=script | |
##bind subpath=traverse_subpath | |
##parameters=folderPath="/foo", language="en" | |
##title=Change folder objects language with portal_catalog | |
## | |
# -*- coding: utf-8 -*- |