def zmanage_editProperties(self, REQUEST=None, redirect=False): """Edit a ZenModel object and return its proper page template """ unused(redirect) if REQUEST: msgs = [] for optional in 'rrdmin', 'rrdmax': v = REQUEST.form.get(optional, None) if v: try: REQUEST.form[optional] = long(v) except ValueError: msgs.append('Unable to convert "%s" to a number' % v) msgs = ', '.join(msgs) if msgs: messaging.IMessageSender(self).sendToBrowser( 'Properties Saved', msgs[0].capitalize() + msgs[1:]) return self.callZenScreen(REQUEST, False) return ZenModelRM.zmanage_editProperties(self, REQUEST)
def zmanage_editProperties(self, REQUEST=None, redirect=False): """Edit a ZenModel object and return its proper page template """ unused(redirect) if REQUEST: msgs = [] for optional in 'rrdmin', 'rrdmax': v = REQUEST.form.get(optional, None) if v: try: REQUEST.form[optional] = long(v) except ValueError: msgs.append('Unable to convert "%s" to a number' % v) msgs = ', '.join(msgs) if msgs: messaging.IMessageSender(self).sendToBrowser( 'Properties Saved', msgs[0].capitalize() + msgs[1:] ) return self.callZenScreen(REQUEST, False) return ZenModelRM.zmanage_editProperties(self, REQUEST)
def zmanage_editProperties(self, REQUEST=None, ignored=None): return ZenModelRM.zmanage_editProperties(self, REQUEST)