Overloads teh create action method to handle the proper base
        instance information, similar to the PyQt4 loading system.
        
        :param      parent | <QWidget> || None
                    name   | <str>
330185
def createActionGroup(self, parent=None, name=''):
        
        actionGroup = super(UiLoader, self).createActionGroup(parent, name)
        if not actionGroup.parent():
            actionGroup.setParent(self._baseinstance)
        setattr(self._baseinstance, name, actionGroup)
        return actionGroup
1258162
def add_action(self, name, parent, action):
        
        if iskeyword(name):
            name = '_' + name
        self._actions[name] = parent.new_action(**action)
        setattr(self, name, self._actions[name].execute)
656215
public void init(Object parent, Object obj)
    {
        super.init(parent, obj);
        BaseApplet baseApplet = (BaseApplet)parent;
        
        this.addSubPanels(this);

        MessageManager messageManager = baseApplet.getApplication().getMessageManager();
        BaseMessageReceiver receiver = (BaseMessageReceiver)messageManager.getMessageQueue(CHAT_TYPE, MessageConstants.INTRANET_QUEUE).getMessageReceiver();
        
        new BaseMessageListener(receiver)   // Listener automatically added to receiver
        {
            public int handleMessage(BaseMessage message)
            {
                String strMessage = (String)message.get(MESSAGE_PARAM);
                addText(strMessage);
                return Constants.NORMAL_RETURN;
            }
        };
    }
472127
public void init(RecordOwnerParent parent, Rec recordMain, Map<String, Object> properties)
    {
        m_sessionObjectParent = parent;
        if (m_sessionObjectParent != null)
        	m_sessionObjectParent.addRecordOwner(this);
        else if (!this.getClass().getName().endsWith("TaskSession"))
        	Utility.getLogger().warning("Remote Session does not have parent");

        if (recordMain == null)
            recordMain = this.openMainRecord(); // No, open it!
        // Now look through the list and see if this query was added, it not, add it!
        boolean bQueryInTable = false;
        if (m_vRecordList != null)
        {
            for (Enumeration<Rec> e = m_vRecordList.elements() ; e.hasMoreElements() ;)
            {   // This should only be called for Imaged GridScreens (Child windows would be deleted by now if Component)
                Record cQueryInTable = (Record)e.nextElement();
                if (cQueryInTable == recordMain)
                    bQueryInTable = true;
            }
        }
        if (recordMain != null)
            if (!bQueryInTable)
                this.addRecord((Record)recordMain, false);
        this.openOtherRecords();    // Open the other files
        if (this.getScreenRecord() == null)
            this.setScreenRecord(this.addScreenRecord());

        this.addListeners();        // Add the session behaviors
    }
1254921
def base_object(self, data):
        
        obj = {'id': data.get(self.id)}
        if self.parent is not None:
            obj['$parent'] = data.get(self.parent.id)
        return obj
133325
def child_context(self, *args, **kwargs):
        

        # Now we can extract config values
        expected_args = {
            'services': [],
            'topics': [],  # bwcompat
            'subscribers': [],
            'publishers': [],
            'params': [],
            # TODO : all of them !
        }

        ifargs = {
            arg: self.config_handler.config.get(arg.upper(), default) for arg, default in expected_args.items()
        }

        # overriding with kwargs
        ifargs.update(kwargs)

        # storing passed args in config in case of reset

        # calling setup on child context enter call
        if self.interface is None:
            #for BW compat
            # TODO : change API to use the child_context from pyzmp coprocess
            self.setup(*args, **ifargs)

        with super(PyrosBase, self).child_context(*args, **kwargs) as cctxt:
            yield cctxt
545165
def start_parent():
    

    while True:
        args = [sys.executable] + sys.argv
        new_environ = environ.copy()
        new_environ["_IN_CHILD"] = 'yes'
        ret = subprocess.call(args, env=new_environ)

        if ret != settings.CODE_RELOAD_EXIT:
            return ret
1161050
public void init(RecordOwnerParent parent, Rec recordMain, Map<String, Object> properties)
    {
        m_taskParent = parent;
        if (m_taskParent != null)
        	m_taskParent.addRecordOwner(this);
        
        if (recordMain == null)
            recordMain = this.openMainRecord(); // No, open it!
        // Now look through the list and see if this query was added, it not, add it!
        boolean bQueryInTable = false;
        if (m_vRecordList != null)
        {
            for (Enumeration<Rec> e = m_vRecordList.elements() ; e.hasMoreElements() ;)
            {   // This should only be called for Imaged GridScreens (Child windows would be deleted by now if Component)
                Record cQueryInTable = (Record)e.nextElement();
                if (cQueryInTable == recordMain)
                    bQueryInTable = true;
            }
        }
        if (recordMain != null)
            if (!bQueryInTable)
                this.addRecord((Record)recordMain, false);
        this.openOtherRecords();    // Open the other files
        if (this.getScreenRecord() == null)
            this.setScreenRecord(this.addScreenRecord());

        this.addListeners();        // Add the session behaviors
    }
724166
def parent(self, parent_object, limit_parent_language=True):
        
        lookup = get_parent_lookup_kwargs(parent_object)

        # Filter the items by default, giving the expected "objects for this parent" items
        # when the parent already holds the language state.
        if limit_parent_language:
            language_code = get_parent_language_code(parent_object)
            if language_code:
                lookup['language_code'] = language_code

        return self.filter(**lookup)
777957
final void init(WSJdbcObject parent) {
        if (parent != null) {
            parentWrapper = parent;
            dsConfig = parent.dsConfig; 
            freeResourcesOnClose = parent.freeResourcesOnClose;
        }

        if (freeResourcesOnClose) // then initialize data structures to track them
        {
            arrays = new LinkedList<Array>();
            blobs = new LinkedList<Blob>();
            clobs = new LinkedList<Clob>();
            resources = new LinkedList<Closeable>();
            xmls = new LinkedList<SQLXML>();
        }
    }
1109899
def child_added(self, child):
        
        view = child.widget
        if view is not None:
            self.toast.setView(view)
783556
def register(self):
        
        if not self.registered:
            self.registered = True
            if self.parent:
                self.parent.register(self)
1135100
def parent(self):
        
        if self == root or self == empty:
            raise NoParent
        return Name(self.labels[1:])
245740
def set_parent(self, parent):
        
        if self._parent == parent:
            return
        if self._parent:
            self._parent.remove_child(self)
        self._parent = parent
        if parent:
            parent.add_child(self)
1172268
def add_parent(sender, instance, **kwargs):
    
    if not kwargs['created']:
        return
    for att in ['task', 'context']:
        parent = getattr(instance, att).item_id
        child = instance.item_id
        ItemRelation.objects.get_or_create(
            parent_id=parent,
            child_id=child,
            visible=True,
        )
520669
public void init(Object parent, Object record)
    {
        m_parent = parent;
        this.setOpaque(false);
        
        if (this.getBaseApplet() != null)
        {
            String strScreenDesc = this.getScreenDesc();
            this.getBaseApplet().setStatusText(strScreenDesc);   // Display screen desc or clear screen desc.
            if (strScreenDesc != null)
                if (this.getTargetScreen(JBaseFrame.class) != null)
                    ((JBaseFrame)this.getTargetScreen(JBaseFrame.class)).setTitle(strScreenDesc);
        }
    }
1279859
public void init(Object parent, Object record)
    {
        super.init(parent, record);

        this.addSubPanels(this);
        
        if (this.getBaseApplet() != null)
            if (this.getBaseApplet().getProperty(Constants.OBJECT_ID) != null)
                if (this.getFieldList() != null)
                    if ((this.getFieldList().getEditMode() == Constants.EDIT_NONE) || (this.getFieldList().getEditMode() == Constants.EDIT_ADD))
        {
            FieldInfo field = this.getFieldList().getCounterField();
            field.setString(this.getBaseApplet().getProperty(Constants.OBJECT_ID));
            this.readKeyed(field);
        }
        this.fieldsToControls();
    }