Example #1
0
 def __init__(self,source,photos_path,set_photo_path,set_photo_pos,pos):
     super(Picture, self).__init__()
     self.source = source
     self.photos_path = photos_path
     self.set_photo_path = set_photo_path        
     self.set_photo_pos = set_photo_pos
     self.pos = strtotuple(pos)
Example #2
0
 def test_strtotuple(self):
     self.assertRaises(Exception, strtotuple, 'adis!_m%*+-=|')
     self.assertRaises(Exception, strtotuple, '((12, 8, 473)')
     self.assertRaises(Exception, strtotuple, '[12, 8, 473]]')
     self.assertRaises(Exception, strtotuple, '128473')
     actual = strtotuple('(12, 8, 473)')
     expected = (12, 8, 473)
     self.assertEqual(actual, expected)
 def test_strtotuple(self):
     self.assertRaises(Exception, strtotuple, 'adis!_m%*+-=|')
     self.assertRaises(Exception, strtotuple, '((12, 8, 473)')
     self.assertRaises(Exception, strtotuple, '[12, 8, 473]]')
     self.assertRaises(Exception, strtotuple, '128473')
     actual = strtotuple('(12, 8, 473)')
     expected = (12, 8, 473)
     self.assertEqual(actual, expected)
Example #4
0
 def __init__(self, source, photos_path, set_photo_path, set_photo_pos,
              pos):
     super(Picture, self).__init__()
     self.source = source
     self.photos_path = photos_path
     self.set_photo_path = set_photo_path
     self.set_photo_pos = set_photo_pos
     self.pos = strtotuple(pos)
 def __init__(self):
     self.ignore_list = strtotuple(Config.get('postproc', 'ignore'))
Example #6
0
 def __init__(self):
     self.ignore_list = strtotuple(Config.get("postproc", "ignore"))
Example #7
0
 def __init__(self):
     self.ignore_list = strtotuple(Config.get('postproc', 'ignore'))