Ignore:
Timestamp:
28 Feb 2013, 10:53:33 (12 years ago)
Author:
uli
Message:

Create a dedicated demo user for webservice XMLRPC.

Location:
main/waeup.kofa/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/etc/site.zcml.in

    r9217 r10007  
    4646                 />
    4747
     48      <!-- XMLRPC user for demo and testing
     49           Plaintext password is xmlrpcuser1
     50           Don't use it in real deployment -->
     51      <principal id="zope.xmlrpcuser1"
     52                 title="XMLRPC User 1"
     53                 login="xmlrpcuser1"
     54                 password="{SSHA}ZaL4-UiwmSu6AbLYY-yCS_8vtKpH5Hc6"
     55                 password_manager="SSHA"
     56                 />
     57
     58      <grant role="waeup.xmlrpcusers1"
     59             principal="zope.xmlrpcuser1" />
     60
     61
    4862      <!-- Replace the following directive if you do not want
    4963           public access -->
  • main/waeup.kofa/trunk/src/waeup/kofa/webservices.py

    r9733 r10007  
    8888    grok.name('waeup.xmlrpc')
    8989
     90class XMLRPCUsers1(grok.Role):
     91    """Usergroup 1
     92    """
     93    grok.name('waeup.xmlrpcusers1')
     94    grok.title('XMLRPC Users Group 1')
     95    grok.permissions('waeup.xmlrpc',)
     96
    9097class UniversityXMLRPC(grok.XMLRPC):
    9198    """XMLRPC webservices for KOFA portals.
Note: See TracChangeset for help on using the changeset viewer.