pyarchinit / pyarchinit

Official repository of pyArchInit since Python 3 porting
GNU General Public License v2.0
9 stars 9 forks source link

SEARCH BAR - GESTIONE IMMAGINI - 2.1.3 #300

Closed montarob closed 3 years ago

montarob commented 3 years ago

Se faccio il search all'interno del gestore di immagini, nella sezione strutture ottengo questo errore: AttributeError: 'STRUTTURA' object has no attribute 'media_name' Traceback (most recent call last): File "C:/Users/rober/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\pyarchinit\tabs\Image_viewer.py", line 738, in on_pushButton_go_pressed search_dict = {'media_filename': "'" + str(i.media_name) + "'"} AttributeError: 'STRUTTURA' object has no attribute 'media_name'

montarob commented 3 years ago

Stessa cosa se provo nella sezione Tomba: AttributeError: 'TOMBA' object has no attribute 'media_name' Traceback (most recent call last): File "C:/Users/rober/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\pyarchinit\tabs\Image_viewer.py", line 670, in on_pushButton_go_pressed search_dict = {'media_filename': "'" + str(i.media_name) + "'"} AttributeError: 'TOMBA' object has no attribute 'media_name'

montarob commented 3 years ago

Stessa cosa nella sezione materiali: AttributeError: 'INVENTARIO_MATERIALI' object has no attribute 'media_name' Traceback (most recent call last): File "C:/Users/rober/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\pyarchinit\tabs\Image_viewer.py", line 606, in on_pushButton_go_pressed search_dict = {'media_filename': "'" + str(i.media_name) + "'"} AttributeError: 'INVENTARIO_MATERIALI' object has no attribute 'media_name'

enzococca commented 3 years ago

Fixed

Il giorno dom 22 nov 2020 alle ore 21:47 montarob notifications@github.com ha scritto:

Stessa cosa nella sezione materiali: AttributeError: 'INVENTARIO_MATERIALI' object has no attribute 'media_name' Traceback (most recent call last): File "C:/Users/rober/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\pyarchinit\tabs\Image_viewer.py", line 606, in on_pushButton_go_pressed search_dict = {'media_filename': "'" + str(i.media_name) + "'"} AttributeError: 'INVENTARIO_MATERIALI' object has no attribute 'media_name'

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pyarchinit/pyarchinit/issues/300#issuecomment-731844687, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA2P5KEVTTNJI4E5Z6GHTKTSRF2ETANCNFSM4T6W2A3Q .

-- Enzo Cocca PhD in "Science and Technology for Archaeology and Cultural Heritage"

ISMEO International Association of Mediterranean and Oriental Studies

mail: enzo.ccc@gmail.com cell: +393495087014