Ejemplo n.º 1
0
 def link_references(self, progress_monitor=NullProgressMonitor(),
         local_object_id=None):
     unknown_refs = self._get_query(self.unknown_kind, local_object_id)
     ucount = unknown_refs.count()
     progress_monitor.info('Unknown reference count: {0}'.format(ucount))
     try:
         self._link_all_references(queryset_iterator(unknown_refs), ucount,
                 progress_monitor)
     except Exception:
         logger.exception('Error while processing unknown references.')
     call_gc()
Ejemplo n.º 2
0
 def link_references(self,
                     progress_monitor=NullProgressMonitor(),
                     local_object_id=None):
     unknown_refs = self._get_query(self.unknown_kind, local_object_id)
     ucount = unknown_refs.count()
     progress_monitor.info('Unknown reference count: {0}'.format(ucount))
     try:
         self._link_all_references(queryset_iterator(unknown_refs), ucount,
                                   progress_monitor)
     except Exception:
         logger.exception('Error while processing unknown references.')
     call_gc()
Ejemplo n.º 3
0
    def link_references(self, progress_monitor=NullProgressMonitor(),
            local_object_id=None):

        method_refs = self._get_query(self.method_kind, local_object_id)
        mcount = method_refs.count()
        progress_monitor.info('Method count: {0}'.format(mcount))
        try:
            self._link_methods(queryset_iterator(method_refs), mcount,
                    progress_monitor)
        except Exception:
            logger.exception('Error while processing methods')

        call_gc()
Ejemplo n.º 4
0
    def link_references(self,
                        progress_monitor=NullProgressMonitor(),
                        local_object_id=None):

        method_refs = self._get_query(self.method_kind, local_object_id)
        mcount = method_refs.count()
        progress_monitor.info('Method count: {0}'.format(mcount))
        try:
            self._link_methods(queryset_iterator(method_refs), mcount,
                               progress_monitor)
        except Exception:
            logger.exception('Error while processing methods')

        call_gc()
Ejemplo n.º 5
0
    def link_references(self, progress_monitor=NullProgressMonitor(),
            local_object_id=None):

        # Annotation Field
        ann_refs = self._get_query(self.ann_field_kind, local_object_id)
        acount = ann_refs.count()
        progress_monitor.info('Annotation Field count: {0}'.format(acount))
        try:
            self._link_ann_fields(queryset_iterator(ann_refs), acount,
                    progress_monitor)
        except Exception:
            logger.exception('Error while processing annotation fields')
        call_gc()

        # Enumeration Values
        enum_refs = self._get_query(self.enum_value_kind, local_object_id)
        ecount = enum_refs.count()
        progress_monitor.info('Enumeration Value count: {0}'.format(ecount))
        try:
            self._link_enum_values(queryset_iterator(enum_refs), ecount,
                    progress_monitor)
        except Exception:
            logger.exception('Error while processing enumeration values')
        call_gc()

        # Fields
        field_refs = self._get_query(self.field_kind, local_object_id)
        fcount = field_refs.count()
        progress_monitor.info('Field count: {0}'.format(fcount))
        try:
            self._link_fields(queryset_iterator(field_refs), fcount,
                    progress_monitor)
        except Exception:
            logger.exception('Error while processing fields')
        call_gc()
Ejemplo n.º 6
0
    def link_references(self, progress_monitor=NullProgressMonitor(),
            local_object_id=None):

        # Annotations
        ann_refs = self._get_query(self.ann_kind, local_object_id)
        acount = ann_refs.count()
        progress_monitor.info('Annotation count: {0}'.format(acount))
        try:
            self._link_annotations(queryset_iterator(ann_refs), acount,
                    progress_monitor)
        except Exception:
            logger.exception('Error while processing annotations.')
        call_gc()

        # Enumerations
        enum_refs = self._get_query(self.enum_kind, local_object_id)
        ecount = enum_refs.count()
        progress_monitor.info('Enumeration count: {0}'.format(ecount))
        try:
            self._link_enumerations(queryset_iterator(enum_refs), ecount,
                    progress_monitor)
        except Exception:
            logger.exception('Error while processing enumerations.')
        call_gc()

        # All types (including classes!)
        class_refs = self._get_query(self.class_kind, local_object_id)
        ccount = class_refs.count()
        progress_monitor.info('Class count: {0}'.format(ccount))
        try:
            self._link_classes(queryset_iterator(class_refs), ccount,
                    progress_monitor)
        except Exception:
            logger.exception('Error while processing classes.')
        call_gc()
Ejemplo n.º 7
0
    def link_references(self,
                        progress_monitor=NullProgressMonitor(),
                        local_object_id=None):

        # Annotation Field
        ann_refs = self._get_query(self.ann_field_kind, local_object_id)
        acount = ann_refs.count()
        progress_monitor.info('Annotation Field count: {0}'.format(acount))
        try:
            self._link_ann_fields(queryset_iterator(ann_refs), acount,
                                  progress_monitor)
        except Exception:
            logger.exception('Error while processing annotation fields')
        call_gc()

        # Enumeration Values
        enum_refs = self._get_query(self.enum_value_kind, local_object_id)
        ecount = enum_refs.count()
        progress_monitor.info('Enumeration Value count: {0}'.format(ecount))
        try:
            self._link_enum_values(queryset_iterator(enum_refs), ecount,
                                   progress_monitor)
        except Exception:
            logger.exception('Error while processing enumeration values')
        call_gc()

        # Fields
        field_refs = self._get_query(self.field_kind, local_object_id)
        fcount = field_refs.count()
        progress_monitor.info('Field count: {0}'.format(fcount))
        try:
            self._link_fields(queryset_iterator(field_refs), fcount,
                              progress_monitor)
        except Exception:
            logger.exception('Error while processing fields')
        call_gc()
Ejemplo n.º 8
0
    def link_references(self,
                        progress_monitor=NullProgressMonitor(),
                        local_object_id=None):

        # Annotations
        ann_refs = self._get_query(self.ann_kind, local_object_id)
        acount = ann_refs.count()
        progress_monitor.info('Annotation count: {0}'.format(acount))
        try:
            self._link_annotations(queryset_iterator(ann_refs), acount,
                                   progress_monitor)
        except Exception:
            logger.exception('Error while processing annotations.')
        call_gc()

        # Enumerations
        enum_refs = self._get_query(self.enum_kind, local_object_id)
        ecount = enum_refs.count()
        progress_monitor.info('Enumeration count: {0}'.format(ecount))
        try:
            self._link_enumerations(queryset_iterator(enum_refs), ecount,
                                    progress_monitor)
        except Exception:
            logger.exception('Error while processing enumerations.')
        call_gc()

        # All types (including classes!)
        class_refs = self._get_query(self.class_kind, local_object_id)
        ccount = class_refs.count()
        progress_monitor.info('Class count: {0}'.format(ccount))
        try:
            self._link_classes(queryset_iterator(class_refs), ccount,
                               progress_monitor)
        except Exception:
            logger.exception('Error while processing classes.')
        call_gc()