Exemplo n.º 1
0
    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
Exemplo n.º 2
0
    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
Exemplo n.º 3
0
    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
Exemplo n.º 4
0
    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)
Exemplo n.º 5
0
    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)
Exemplo n.º 6
0
    def execute(self):

        clipboard_items = Clipboard.get_all(category="select")
        for item in clipboard_items:
            item.set_value("category", self.category)
            item.commit()
Exemplo n.º 7
0
    def execute(self):

        clipboard_items = Clipboard.get_all(category="select")
        for item in clipboard_items:
            item.set_value("category", self.category)
            item.commit()