komima
8cea1789af
Fix Python module enviroment setup on Windows
...
- Trim trailing newline when reading .env lines
- Skip empty, commented and non "key=value" lines
- Allow = chars in values using maxsplit=1
- No special quote handling, use values as is
Fixes #43308
2021-05-26 07:11:57 +10:00
Juergen E. Fischer
c5ea4b220c
osgeo4w: vc16 updates
2021-04-01 23:39:19 +02:00
benjaminwheel3r
96bdfac88d
Update Comment Typos
...
update 'the' to 'then' on line 34
update 'customwidget' to 'custom widget' to match reference in comment on line 72
Update 'windows' to 'Windows' on line 65 to match previous reference on line 31
2020-09-20 06:57:20 +10:00
Bas Couwenberg
2628c480c5
Don't include revision in sources.
...
Prevent changes to files that weren't changed between releases.
This eases review of the changes between releases significantly.
2019-05-17 16:47:47 +02:00
Denis Rouzaud
0cffd19e5f
monkey path custom widgets
...
this will add module to the system to avoid missing modules when running on a local install (uic widget-plugin not installed)
2018-05-31 12:33:38 -08:00
Denis Rouzaud
95ecea897a
move additions from top __init__ to core.__init__
2018-05-16 11:29:28 -04:00
Nyall Dawson
75885d70d5
Rename various WKT/WKB/GeoJSON/GML methods for consistency
...
and consistent capitalisation
2017-11-15 20:51:05 +10:00
Juergen E. Fischer
4160e19bdc
fix windows build
2017-05-07 01:49:33 +02:00
Nathan Woodrow
df679a2d56
Set paths in qgis python module based on osgeo4w env file
2017-05-06 13:31:06 +10:00
Juergen E. Fischer
c77172ed3d
fix more flake8 warnings
2017-03-05 10:21:24 +01:00
Juergen E. Fischer
31df84aa6b
run 2to3 on source
2016-09-21 23:30:04 +02:00
Matthias Kuhn
abfd7740bd
Fix qgis.PyQt compatibility imports
2016-04-29 14:10:41 +02:00
Juergen E. Fischer
271750fd53
switch bindings to pyqt wrappers
2016-03-21 17:00:26 +01:00
Juergen E. Fischer
c6d921729e
python fixes:
...
* issues identified by pyflakes (star and unused imports)
* pyqtwrapper: add QtSvg
* some exceptions e.message => unicode(e)
* some translations tr("..." % foo) => tr("...") % foo
* TODO:
python/console/console_sci.py:547 QsciScintillaCompat?
python/plugins/db_manager/dlg_query_builder.py:304 pop_up_error?
2016-03-15 17:25:23 +01:00
Juergen E. Fischer
b39055b39c
indentation update (now including autopep8)
2015-08-22 14:29:41 +02:00
Matthias Kuhn
f64783493e
PyQgis: Move NULL and edit to qgis.core
2015-08-12 13:50:06 +02:00
Matthias Kuhn
35fc2902f3
[FEATURE] Add with edit(layer):
to python
...
Example:
with edit(layer):
f=layer.getFeatures().next()
f[0]=5
layer.updateFeature(f)
This will automatically call commitChanges() in the end.
If any exception occurs, it will rollBack() all the changes.
2015-08-12 13:41:23 +02:00
Matthias Kuhn
a37b3e27d5
Remove executable flag on a bunch of files
2015-07-20 15:45:44 +02:00
Matthias Kuhn
e2ff8edc79
Make python NULL hashable
2015-05-22 19:53:03 +02:00
Juergen E. Fischer
956c155e8f
fix python pep8 warnings and fix some revealed errors
...
pep8 --ignore=E111,E128,E201,E202,E203,E211,E221,E222,E225,E226,E227,E231,E241,E261,E265,E272,E302,E303,E501,E701 \
--exclude="ui_*.py,debian/*,python/ext-libs/*" \
.
2015-02-01 20:46:47 +01:00
Denis Rouzaud
38c694d9ad
use specific PyQt4/uic widget-plugins module for python compilation of widgets
2014-05-12 16:28:43 +02:00
Denis Rouzaud
ee522ec500
redirect custom widget includes to qgis.gui
2014-05-12 16:28:42 +02:00
Larry Shaffer
8b6d813aee
Fix sip API reseting to version 1 (fixes PyQgs* tests currently failing due to reset)
2013-09-25 17:08:41 -06:00
Nathan Woodrow
c55c2ab82f
Add __geo_interface__ to QgsFeature and QgsGeometry
2013-09-23 20:55:57 +10:00
Matthias Kuhn
4db6396938
Add != (not equal) support to python NULL value
2013-08-30 12:00:48 +02:00
Matthias Kuhn
dcd17fdf8f
QPyNullVariant() equals to QPyNullVariant(), qgis.core.NULL
...
>>>> from qgis.core import NULL
>>>> lyr.getFeatures().next().attributes()[0] == NULL
True
2013-08-29 13:12:44 +02:00
Matthias Kuhn
cba57fa55a
Monkey patch QPyNullVariant to be represented as 'NULL'
2013-08-28 13:15:08 +02:00
Nathan Woodrow
c612ef3fd3
Set sip api in __init__.py
2013-07-17 20:44:47 +10:00
Nathan Woodrow
21aecd532c
Fix python indentation
2013-06-12 08:57:34 +10:00
Nathan Woodrow
0fd5fd137f
Don't patch QPyNullVariant if it doesn't exist
2013-06-12 08:42:01 +10:00
Nathan Woodrow
8392c93d8e
Monkey patch __nonzero__ onto QPyNullVariant for easier null check.
...
Who doesn't love monkeys :)
2013-06-11 22:15:21 +10:00
Juergen E. Fischer
048a07a572
another copyright update
2012-10-08 00:29:13 +02:00
Juergen E. Fischer
7b4a9b68a3
add copyright notices
2012-10-04 19:36:43 +02:00
jef
1541ff5225
update permissions
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@13463 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-05-10 18:52:30 +00:00
wonder
46a2d125a2
Merged refactoring branch back to trunk.
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@6415 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-01-09 02:39:15 +00:00