def get_display(self): clipboards = Clipboard.get_all("select") from layout_wdg import TableWdg widget = Widget() widget.add( "<h3>Clipboard</h3>") table = TableWdg("sthpw/clipboard", self.view) table.set_sobjects(clipboards) widget.add(table) return widget
def get_display(self): clipboards = Clipboard.get_all("select") from layout_wdg import TableWdg widget = Widget() widget.add("<h3>Clipboard</h3>") table = TableWdg("sthpw/clipboard", self.view) table.set_sobjects(clipboards) widget.add(table) return widget
def get_clipboard_wdg(my): widget = Widget() # get all of the clipboard items value = "select" clipboards = Clipboard.get_all(value) table = TableWdg("sthpw/clipboard", "select") table.set_sobjects(clipboards) widget.add(table) return widget
def execute(self): name = self.get_input_name() web = WebContainer.get_web() if not web.get_form_value(self.get_input_name()): return clipboard_items = Clipboard.get_all(category='select') sobject = self.sobject context = self.get_option("context") if not context: context = 'reference' for item in clipboard_items: parent = item.get_parent() SObjectConnection.create(parent, sobject, context)
def execute(self): name = self.get_input_name() web = WebContainer.get_web() if not web.get_form_value( self.get_input_name() ): return clipboard_items = Clipboard.get_all(category='select') sobject = self.sobject context = self.get_option("context") if not context: context = 'reference' for item in clipboard_items: parent = item.get_parent() SObjectConnection.create(parent, sobject, context)
def execute(self): clipboard_items = Clipboard.get_all(category="select") for item in clipboard_items: item.set_value("category", self.category) item.commit()