server/sources/pyrorql.py
changeset 5323 329b4f6d18b4
parent 5174 78438ad513ca
child 5363 d336476dcf57
equal deleted inserted replaced
5322:c0b7687bce3d 5323:329b4f6d18b4
    52         # XXX pyro-ns host/port
    52         # XXX pyro-ns host/port
    53         ('pyro-ns-id',
    53         ('pyro-ns-id',
    54          {'type' : 'string',
    54          {'type' : 'string',
    55           'default': REQUIRED,
    55           'default': REQUIRED,
    56           'help': 'identifier of the repository in the pyro name server',
    56           'help': 'identifier of the repository in the pyro name server',
    57           'group': 'pyro-source', 'inputlevel': 0,
    57           'group': 'pyro-source', 'level': 0,
    58           }),
    58           }),
    59         ('mapping-file',
    59         ('mapping-file',
    60          {'type' : 'string',
    60          {'type' : 'string',
    61           'default': REQUIRED,
    61           'default': REQUIRED,
    62           'help': 'path to a python file with the schema mapping definition',
    62           'help': 'path to a python file with the schema mapping definition',
    63           'group': 'pyro-source', 'inputlevel': 1,
    63           'group': 'pyro-source', 'level': 1,
    64           }),
    64           }),
    65         ('cubicweb-user',
    65         ('cubicweb-user',
    66          {'type' : 'string',
    66          {'type' : 'string',
    67           'default': REQUIRED,
    67           'default': REQUIRED,
    68           'help': 'user to use for connection on the distant repository',
    68           'help': 'user to use for connection on the distant repository',
    69           'group': 'pyro-source', 'inputlevel': 0,
    69           'group': 'pyro-source', 'level': 0,
    70           }),
    70           }),
    71         ('cubicweb-password',
    71         ('cubicweb-password',
    72          {'type' : 'password',
    72          {'type' : 'password',
    73           'default': '',
    73           'default': '',
    74           'help': 'user to use for connection on the distant repository',
    74           'help': 'user to use for connection on the distant repository',
    75           'group': 'pyro-source', 'inputlevel': 0,
    75           'group': 'pyro-source', 'level': 0,
    76           }),
    76           }),
    77         ('base-url',
    77         ('base-url',
    78          {'type' : 'string',
    78          {'type' : 'string',
    79           'default': '',
    79           'default': '',
    80           'help': 'url of the web site for the distant repository, if you want '
    80           'help': 'url of the web site for the distant repository, if you want '
    81           'to generate external link to entities from this repository',
    81           'to generate external link to entities from this repository',
    82           'group': 'pyro-source', 'inputlevel': 1,
    82           'group': 'pyro-source', 'level': 1,
    83           }),
    83           }),
    84         ('pyro-ns-host',
    84         ('pyro-ns-host',
    85          {'type' : 'string',
    85          {'type' : 'string',
    86           'default': None,
    86           'default': None,
    87           'help': 'Pyro name server\'s host. If not set, default to the value \
    87           'help': 'Pyro name server\'s host. If not set, default to the value \
    88 from all_in_one.conf. It may contains port information using <host>:<port> notation.',
    88 from all_in_one.conf. It may contains port information using <host>:<port> notation.',
    89           'group': 'pyro-source', 'inputlevel': 1,
    89           'group': 'pyro-source', 'level': 1,
    90           }),
    90           }),
    91         ('pyro-ns-group',
    91         ('pyro-ns-group',
    92          {'type' : 'string',
    92          {'type' : 'string',
    93           'default': None,
    93           'default': None,
    94           'help': 'Pyro name server\'s group where the repository will be \
    94           'help': 'Pyro name server\'s group where the repository will be \
    95 registered. If not set, default to the value from all_in_one.conf.',
    95 registered. If not set, default to the value from all_in_one.conf.',
    96           'group': 'pyro-source', 'inputlevel': 1,
    96           'group': 'pyro-source', 'level': 1,
    97           }),
    97           }),
    98         ('synchronization-interval',
    98         ('synchronization-interval',
    99          {'type' : 'int',
    99          {'type' : 'int',
   100           'default': 5*60,
   100           'default': 5*60,
   101           'help': 'interval between synchronization with the external \
   101           'help': 'interval between synchronization with the external \
   102 repository (default to 5 minutes).',
   102 repository (default to 5 minutes).',
   103           'group': 'pyro-source', 'inputlevel': 2,
   103           'group': 'pyro-source', 'level': 2,
   104           }),
   104           }),
   105 
   105 
   106     )
   106     )
   107 
   107 
   108     PUBLIC_KEYS = AbstractSource.PUBLIC_KEYS + ('base-url',)
   108     PUBLIC_KEYS = AbstractSource.PUBLIC_KEYS + ('base-url',)