olsonk / pyRosita

0 stars 0 forks source link

Programatically set time and description of sequence file #10

Open olsonk opened 6 years ago

olsonk commented 6 years ago

Pass description into Sequencer constructor. Use datetime to encode virtualrobot_created= and virtualrobot_modified= lines

olsonk commented 6 years ago

Incorporated datetime module to automatically timestamp sequence creation/modifications. See commit.

olsonk commented 6 years ago

Sequencer constructor now looks for user, id, and description on construction. Edit the relevant lines in example.py to supply this information. See this commit.

olsonk commented 6 years ago

Leaving this issue open for now. Datetime pulls in current information, but need to verify that it is recognized correctly in RoboThespian (will confirm this once upload process is incorporated). Also, currently "created" and "modified" are the same, since I haven't figured out yet how to determine if a sequence file is actually being created or simply modified, to tell whether we should be updating both of these values.