Exemple #1
0
class EditForm(ActionEditForm):
    """An edit form for rapido action.
    """
    schema = IAction
    label = _(u"Edit Rapido Action")
    description = _(u"A Rapido action executes a Rapido method.")
    form_name = _(u"Configure element")
Exemple #2
0
class IRapidoTile(model.Schema):

    path = schema.TextLine(
        title=_(u"Rapido path"),
        description=_(u"Enter a valid rapido url "
                      "(without the @@rapido/ prefix)."),
        required=True,
    )
Exemple #3
0
class AddForm(ActionAddForm):
    """An add form for rapido action.
    """
    schema = IAction
    label = _(u"Add Rapido Action")
    description = _(u"A Rapido action executes a Rapido method.")
    form_name = _(u"Configure element")
    Type = Action
Exemple #4
0
class IAction(Interface):
    """Interface for the configurable aspects of a rapido action.

    This is also used to create add and edit forms, below.
    """

    app = schema.TextLine(title=_(u"Rapido application"),
                          description=_(u"The targeted Rapido application."),
                          required=True)

    block = schema.TextLine(title=_(u"Block"),
                            description=_(u"The block providing the method."),
                            required=True)

    method = schema.TextLine(
        title=_(u"Method"),
        description=_(u"The name of the method to execute."),
        required=True)
Exemple #5
0
 def summary(self):
     return _(u"Call Rapido method %s from %s/%s" %
              (self.method, self.app, self.block))
Exemple #6
0
 def summary(self):
     return _(u"Call Rapido method %s from %s/%s" % (
         self.method, self.app, self.block))