Jan-16-2018, 06:50 AM
I am learning Python and PyMongo a bit on the fly.
Here is a basic gist of what I need but I dont know the best way to pursue it. I need Python to create an indefinite loop only escapable by pressing the Ctrl Key. The loop will consist of a slew of input functions that represent a form. the form will use the data to look up entries in PyMongo, return the results, and reload the input right after the results are posted. Here's an example..
Input Object ID: (You input 5555)
*Program locates Object ID 5555 and posts the data then asks you again to Input Object ID and will do so indefinitely until you kill it with the Ctrl key.*
That and ALSO if you were leave the field blank, for it to ask you another input such as Input Name: -- ect...
I already know how to retrieve the MongoDB query (object ID 5555) so dont need much help there, and I also know how to retrieve the items queried, just need it to bring the form back when its done.
Any help would be appreciated.
Here is a basic gist of what I need but I dont know the best way to pursue it. I need Python to create an indefinite loop only escapable by pressing the Ctrl Key. The loop will consist of a slew of input functions that represent a form. the form will use the data to look up entries in PyMongo, return the results, and reload the input right after the results are posted. Here's an example..
Input Object ID: (You input 5555)
*Program locates Object ID 5555 and posts the data then asks you again to Input Object ID and will do so indefinitely until you kill it with the Ctrl key.*
That and ALSO if you were leave the field blank, for it to ask you another input such as Input Name: -- ect...
I already know how to retrieve the MongoDB query (object ID 5555) so dont need much help there, and I also know how to retrieve the items queried, just need it to bring the form back when its done.
Any help would be appreciated.