Skip to main content

Timeline for Work order spatial query (Part 1)

Current License: CC BY-SA 4.0

12 events
when toggle format what by license comment
Aug 26, 2019 at 18:58 comment added Preacher I like many of these suggestions. However, regarding PEP8 and using python libraries, I recommend against these. Scripts run within Maximo, a COTS product, in a JVM, with access to hosts of Java libraries and Maximo's API. As such, and since most code will be interacting with APIs that follow Java formatting conventions, I recommend using Java conventions instead of mixing Java for APIs with python for script-local variables. For better interoperability/less "surprises" and not jeopardizing support, use the APIs already available instead of making available python ones which do the same.
Aug 20, 2019 at 22:49 vote accept User1974
Aug 20, 2019 at 22:44 comment added Reinderien Because it doesn't require writing as many zeros.
Aug 20, 2019 at 21:54 comment added User1974 Your suggestions are generally working great! Thanks! Unfortunately, I don't think I have the urllib or urlparse libraries available to me: ibm.com/developerworks/community/forums/html/…
Aug 20, 2019 at 13:52 history edited Reinderien CC BY-SA 4.0
Notes
Aug 20, 2019 at 12:35 comment added Reinderien @User1973 edited
Aug 20, 2019 at 12:33 history edited Reinderien CC BY-SA 4.0
add example
Aug 20, 2019 at 12:05 comment added Reinderien I'll post an example.
Aug 20, 2019 at 1:56 comment added Reinderien It's not frowned upon, per se, but it's also not doing you any favours. I seem to remember Jython being stuck in a very old version of Python with fairly poor compatibility to external Python libraries, coupled with awkward access to Java constructs. As a small scripting language embedded in Java it's fine, but you're better to either go full Java or full Python, if you can.
Aug 20, 2019 at 1:48 comment added Reinderien Fine; but that doesn't mean that you can't write sub-routines (which you still should). Subroutines can still use global variables when needed.
Aug 20, 2019 at 1:43 comment added Reinderien Good question! Rather than you, the developer, having to write out the long-form URL manually - including ampersands, escape characters if needed, etc., you compose a logic-friendly dictionary. This is more maintainable and less prone to error.
Aug 20, 2019 at 1:13 history answered Reinderien CC BY-SA 4.0