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")
class IRapidoTile(model.Schema): path = schema.TextLine( title=_(u"Rapido path"), description=_(u"Enter a valid rapido url " "(without the @@rapido/ prefix)."), required=True, )
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
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)
def summary(self): return _(u"Call Rapido method %s from %s/%s" % (self.method, self.app, self.block))
def summary(self): return _(u"Call Rapido method %s from %s/%s" % ( self.method, self.app, self.block))