nakijun / qspatialite

Automatically exported from code.google.com/p/qspatialite
0 stars 0 forks source link

QgsProjectionSelector object has no attribute selectedEpsg - API cleanup #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

After the API cleanup merged to Git by Alexander Bruy
https://github.com/qgis/Quantum-GIS/commit/5e45a22d061942f9e4cdaf09416dd5f3ee659
b13  

I get an AttributeError when doing 'Import QGIS Layers'.

--> What steps will reproduce the problem?

1. Load a shapefile on QGIS
2. QSpatiaLite -> Import QGIS Layer

--> What is the expected output? What do you see instead?

An error has occured while executing Python code:

Traceback (most recent call last):
  File "/home/pedro/.qgis//python/plugins/QspatiaLite/importQgis/importQgis.py", line 29, in browseSRID
    self.ui.SRID.setText(dialog.getProjection())
  File "/home/pedro/.qgis//python/plugins/QspatiaLite/Classes/dialogSRS.py", line 32, in getProjection
    if self.selector.selectedEpsg() != 0:
AttributeError: 'QgsProjectionSelector' object has no attribute 'selectedEpsg'

Python version:
2.7.3 (default, Aug  1 2012, 05:27:35) 
[GCC 4.6.3]

QGIS version:
1.9.0-Master Master, exported

--> What version of the product are you using? On what operating system?
QGIS version 1.9.0-Master
QSpatiaLite 6.0.5
Xubuntu 12.04

--> Please provide any additional information below.

More information about this API cleanup:
http://osgeo-org.1560.n6.nabble.com/API-cleanup-td5023896.html 
http://hub.qgis.org/wiki/quantum-gis/API_changes_for_version_20 

Original issue reported on code.google.com by pedrongv...@gmail.com on 29 Dec 2012 at 4:52

GoogleCodeExporter commented 9 years ago
This API cleanup may affect other parts/attributes of the plugin.

Original comment by pedrongv...@gmail.com on 29 Dec 2012 at 4:56

GoogleCodeExporter commented 9 years ago
Thanks for your feedback, I'll try to fix this in the next versions

Original comment by romain.r...@gmail.com on 3 Jan 2013 at 9:24

GoogleCodeExporter commented 9 years ago

Original comment by romain.r...@gmail.com on 9 Feb 2015 at 9:59