Пример #1
0
    def _prompt_date(self):
        """
        Prompt the user to enter a date
        """

        default_date = date.today().strftime("%B %d, %Y")
        user_date = console.input('Date (deafults to "' + default_date + '"): ')
        if len(user_date.strip()) == 0:
            user_date = default_date
        return user_date
Пример #2
0
 def _prompt_date(self, resources):
     """
     Prompt the user to enter a date
     """
     
     if resources['metadata']['modified_date']:
         default_date = resources['metadata']['modified_date']
     else:
         default_date = date.today().strftime("%B %-d, %Y")
         
     user_date = console.input("Date (deafults to \"" + default_date + "\"): ")
     if len(user_date.strip()) == 0:
         user_date = default_date
     return user_date
Пример #3
0
 def _prompt_date(self, resources):
     """
     Prompt the user to enter a date
     """
     
     if resources['metadata']['modified_date']:
         default_date = resources['metadata']['modified_date']
     else:
         default_date = date.today().strftime("%B %-d, %Y")
         
     user_date = console.input("Date (deafults to \"" + default_date + "\"): ")
     if len(user_date.strip()) == 0:
         user_date = default_date
     return user_date
Пример #4
0
 def _prompt_release(self):
     """
     Prompt the user to input a release name
     """
     
     return  console.input("Release Name (ie ""Rough draft""): ")
Пример #5
0
 def _prompt_version(self):
     """
     prompt the user to enter a version number
     """
     return  console.input("Version (ie ""1.0.0""): ")
Пример #6
0
 def _prompt_author(self):
     """
     Prompt the user to input an Author name
     """
     return  console.input("Author name: ")
Пример #7
0
    def _prompt_release(self):
        """
        Prompt the user to input a release name
        """

        return console.input("Release Name (ie " "Rough draft" "): ")
Пример #8
0
 def _prompt_version(self):
     """
     prompt the user to enter a version number
     """
     return console.input("Version (ie " "1.0.0" "): ")
Пример #9
0
 def _prompt_author(self):
     """
     Prompt the user to input an Author name
     """
     return console.input("Author name: ")