comparison pylons_app/lib/utils.py @ 489:460ad816820d celery

fixed bug when new repo had no last commiter, fixed bug when my_account updating information failed, by not uniq email address.
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 20 Sep 2010 22:47:20 +0200
parents 6b934c9607e7
children fefffd6fd5f4
comparison
equal deleted inserted replaced
488:853b9425742a 489:460ad816820d
219 219
220 class EmptyChangeset(BaseChangeset): 220 class EmptyChangeset(BaseChangeset):
221 221
222 revision = -1 222 revision = -1
223 message = '' 223 message = ''
224 author = ''
224 225
225 @LazyProperty 226 @LazyProperty
226 def raw_id(self): 227 def raw_id(self):
227 """ 228 """
228 Returns raw string identifing this changeset, useful for web 229 Returns raw string identifing this changeset, useful for web
412 \nl9sRo+rBEAyR+x8/ADg4OI4gyPyf3/8cHEcTJf+fpwB/ODg4jgSaoBfQ/QB+/s/BcSRR3f+H6Bng\n 413 \nl9sRo+rBEAyR+x8/ADg4OI4gyPyf3/8cHEcTJf+fpwB/ODg4jgSaoBfQ/QB+/s/BcSRR3f+H6Bng\n
413 e/8cHEcHpf1/CI+jHwEP3AToLtx8e9/9e//w8Hun6bHGDz+tvE+3uwfOxsW69+nYYw2WfjPHGtX9\n5A 414 e/8cHEcHpf1/CI+jHwEP3AToLtx8e9/9e//w8Hun6bHGDz+tvE+3uwfOxsW69+nYYw2WfjPHGtX9\n5A
414 MdfNQo9P+eS7youNdyVuJq4ot2zRsdnLgLCYYip/b7w5jKqUX51IREv4F/FJ7YBy96ja963sJS\n34yd 415 MdfNQo9P+eS7youNdyVuJq4ot2zRsdnLgLCYYip/b7w5jKqUX51IREv4F/FJ7YBy96ja963sJS\n34yd
415 OXDGKEud/R8efZUt\n 416 OXDGKEud/R8efZUt\n
416 """ 417 """
417 newdb = open('test.db','wb') 418 newdb = open('test.db', 'wb')
418 newdb.write(new_db_dump.decode('base64').decode('zlib')) 419 newdb.write(new_db_dump.decode('base64').decode('zlib'))
419 newdb.close() 420 newdb.close()
420 421
421 422
422 #PART TWO make test repo 423 #PART TWO make test repo
423 if os.path.isdir('/tmp/vcs_test'): 424 if os.path.isdir('/tmp/vcs_test'):
424 shutil.rmtree('/tmp/vcs_test') 425 shutil.rmtree('/tmp/vcs_test')
425 426
426 cur_dir = dn(dn(os.path.abspath(__file__))) 427 cur_dir = dn(dn(os.path.abspath(__file__)))
427 tar = tarfile.open(jn(cur_dir,'tests',"vcs_test.tar.gz")) 428 tar = tarfile.open(jn(cur_dir, 'tests', "vcs_test.tar.gz"))
428 tar.extractall('/tmp') 429 tar.extractall('/tmp')
429 tar.close() 430 tar.close()
430 431
431 432
432 433