Commit graph

58 commits

Author SHA1 Message Date
Shay Carter
008ccd07f5 Remove change that copied MJ
- don't use bufferset in EnumSetAdapter, just keep it as set, works properly that way
2023-10-24 13:16:28 -06:00
Shay Carter
0797d070c2 Small change from MJ for getEnumSet
- set has no attribute getEnumSet, use bufferset
- see [this previous MJ commit](e20bf91a32)
2023-09-11 11:58:44 -06:00
Shay Carter
cae26d16c3 Small formatting changes
- mostly brought over from [this MJ commit](d0f18561ea)
- RequestConstraint
  - use fully qualified import
  - replace type with isinstance
  - swap 'null' == value to value == 'null'
  - properly check string object
- DataTime
  - condense many lines into single lines of code
2023-08-31 11:19:42 -06:00
Shay Carter
c33d8022fe Replace type() with isinstance()
- changes were brought over from [MJ's previous commit](9f55c3d0ef)
2023-08-31 10:44:05 -06:00
Shay Carter
295792c38b Update init file to include all proper elements 2023-08-24 12:27:42 -06:00
Shay Carter
018afefee6 More modifications to the source v20 python code
- DataAccessLayer will have more changes to come to re-incorporate MJs changes, but for now, change the THRIFT_HOST to "edex"
- EnumSet has to use collections.abc import instead of collections to be compatible with newer versions of python (3.10)
2023-08-23 12:41:20 -06:00
Shay Carter
29715baccc Replaced all remaining instances of "ufpy" with "awips" 2023-08-23 12:17:46 -06:00
Shay Carter
fd295d2865 First step on bringing over v20 python code
- brought over all the pythonPackages from the following repos/packages:
  - awips2/pythonPackages
  - awips2/edexOsgi/com.raytheon.uf.common.alertviz/pythonPackages
  - awips2/edexOsgi/com.raytheon.uf.common.mpe/pythonPackages
  - awips2/edexOsgi/com.raytheon.uf.common.dataplugin.text/pythonPackages
  - awips2/edexOsgi/com.raytheon.uf.common.dataplugin.grid/pythonPackages
  - awips2/edexOsgi/com.raytheon.uf.common.activetable/pythonPackages
  - awips2/edexOsgi/com.raytheon.uf.common.management/pythonPackages
  - awips2/edexOsgi/com.raytheon.uf.common.dataplugin.gfe/pythonPackages
  - awips2/edexOsgi/com.raytheon.uf.common.dataplugin.radar/pythonPackages
  - awips2/edexOsgi/com.raytheon.uf.common.site/pythonPackages
  - awips2-core/common/com.raytheon.uf.common.auth/pythonPackages
  - awips2-core/common/com.raytheon.uf.common.message/pythonPackages
  - awips2-core/common/com.raytheon.uf.common.localization/pythonPackages
  - awips2-core/common/com.raytheon.uf.common.datastorage/pythonPackages
  - awips2-core/common/com.raytheon.uf.common.pointdata/pythonPackages
  - awips2-core/common/com.raythoen.uf.common.pypies/pythonPackages
  - awips2-core/common/com.raytheon.uf.common.dataaccess/pythonPackages
  - awips2-core/common/com.raytheon.uf.common.dataplugin.level/pythonPackages
  - awips2-core/common/com.raytheon.uf.common.serialization/pythonPackages
  - awips2-core/common/com.raytheon.uf.common.time/pythonPackages
  - awips2-core/common/com.raytheon.uf.common.dataplugin/pythonPackages
  - awips2-core/common/com.raytheon.uf.common.dataquery/pythonPackages
- updated the _init_.py file in dynamicserialize/dstypes/com/raytheon/uf/common to have all the proper elements listed
- started to replace "ufpy" instances with "awips"
  - awips/test/testQpidTimeToLive.py
  - awips/test/dafTests/testWarning.py
  - awips/test/dafTests/testCombinedTimeQuery.py

- will continue the "ufpy" replacement in a separate commit for easier clarity
2023-08-23 11:45:18 -06:00
Shay Carter
2d5bc31ddf Changes to make python-awips compatible with Python3.10
- change collections import to collections.abc
- change specific class reference from collections.[class_name] to collections.abc.[class_name]
- change environment file back to specifying Python3, instead of exactly specifying 3.9
- roll version number in setup.py
2022-08-23 18:12:30 -06:00
Michael James
486a1ca820 account for python2/3 with six in ThriftSerializationContext pythonToThriftMap 2018-10-30 11:11:42 -06:00
Michael James
49709197bc don't use len(object) as a bool, and avoid iterating over a range() 2018-10-17 09:14:24 -06:00
Michael James
21e4795b0c best practice import order; avoid return after else 2018-10-16 22:02:17 -06:00
Michael James
0cad20c636 fix variable name in SiteActivationNotification 2018-10-16 21:34:25 -06:00
Michael James
da55f86dc0 add missing imports 2018-10-16 21:34:14 -06:00
Michael James
1b68f8800c PEP 8 coding standards 2018-10-16 21:33:43 -06:00
Michael James
ff2c227550 more code cleanup 2018-10-16 13:54:22 -06:00
Michael James
85680fe96c further cleanup for built-ins and formatting/indentation 2018-10-16 12:35:18 -06:00
Michael James
e20bf91a32 type object 'set' has no attribute 'getEnumClass' 2018-10-15 21:31:59 -06:00
Michael James
18f9afa122 cleanup, remove variable names copying built-ins, fix logic, etc. 2018-10-15 21:05:01 -06:00
Michael James
e736e7ab6f logic cleanup return after an else 2018-10-15 17:14:55 -06:00
Michael James
4ecb997c3e fixing attribute and unit encodings for python3 bytestrings 2018-10-15 16:27:32 -06:00
Michael James
f51a590e51 need MasterLevel.MasterLevel in Level 2018-10-15 16:14:29 -06:00
Michael James
3c580ed1fc Revert "fix getAttribute(s) encoding/decoding, move to PyData"
This reverts commit e133129843.
2018-10-15 15:19:52 -06:00
Michael James
bec9280b66 fix possible null return in StringDataRecord 2018-10-15 14:52:15 -06:00
Michael James
e133129843 fix getAttribute(s) encoding/decoding, move to PyData 2018-10-15 14:51:54 -06:00
Michael James
0b9a06851f further code cleanup, remove semicolons, isinstance() rather than type(), logical tidiness 2018-10-15 13:44:15 -06:00
Michael James
d0f18561ea code formatting for cleanup and logic 2018-10-15 08:54:30 -06:00
Michael James
d40f3d9586 rm activetable, ActiveTableModeAdapter, LockTableAdapter 2018-10-15 08:53:59 -06:00
Michael James
3d7c20a637 fix long type for py3 in RequestConstraint 2018-10-14 19:48:09 -06:00
Michael James
6cb3567e3d cleanup rm ServiceBackupJobStatusNotification 2018-10-14 18:17:24 -06:00
Michael James
8a3cd2f0db add super class init in ShortDataRecord.py 2018-10-14 18:12:49 -06:00
Michael James
ced7010567 minor header cleanup 2018-10-14 18:10:12 -06:00
Michael James
61de537854 add AbstractDataRecord for dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/records 2018-10-14 18:01:38 -06:00
Michael James
854d227120 header and class formatting 2018-10-14 17:37:08 -06:00
Michael James
9f55c3d0ef use isinstance() rather than type() 2018-10-14 16:28:05 -06:00
Michael James
817f9ccd9b Revert "Set/get methods for envelope in GetGeometryDataRequest.py"
This reverts commit 336b8d1623.
2018-10-14 16:21:59 -06:00
Michael James
69aa0a28c7 logic cleanup 2018-10-14 15:55:05 -06:00
Michael James
336b8d1623 Set/get methods for envelope in GetGeometryDataRequest.py 2018-10-14 13:16:35 -06:00
Michael James
6d98ecc782 use isinstance() instead of type() 2018-10-11 20:33:53 -06:00
Michael James
6e99c3cc44 six conditional for RequestConstraint types 2018-10-09 15:25:50 -06:00
Michael James
dce5a7a25a six.PY conditionals for utf8 encoding/decoding 2018-10-09 14:24:43 -06:00
Michael James
be7f51cb94 use isinstance rather than type 2018-10-06 10:34:12 -06:00
Michael James
cf1670b03d test imports, request constraints for python3 2018-10-06 09:50:43 -06:00
Michael James
7a88a6d3db code cleanup, rm unused imports, various bug fixes 2018-10-06 08:35:30 -06:00
Michael James
4313260994 rm gfe svcbu and isc request classes 2018-10-06 08:12:09 -06:00
Michael James
efa301c100 Fix returned retVal encoding in SerializableExceptionWrapper 2018-10-05 17:14:32 -06:00
Michael James
a5f9692deb account for bytestring in SerializableExceptionWrapper 2018-10-04 11:25:14 -06:00
mjames-upc
a1393ce8db indentation 2018-09-06 22:46:53 -06:00
mjames-upc
aff9f8e933 small changes 2018-09-06 21:58:42 -06:00
mjames-upc
e12e492c42 hail mary edits 2018-09-06 21:50:38 -06:00