예제 #1
0
파일: forms.py 프로젝트: dbaty/Yait
 def process_formdata(self, value_list):
     if value_list:
         try:
             self.data = str_to_time(value_list[0])
         except ValueError:
             self.data = value_list[0]
             raise ValueError(u'Wrong syntax.')
예제 #2
0
파일: test_utils.py 프로젝트: dbaty/Yait
 def _call_fut(self, s):
     from yait.utils import str_to_time
     return str_to_time(s)