~pecha-pub-devs/pecha-pub/trunk

« back to all changes in this revision

Viewing changes to pechapub/project.py

  • Committer: Duncan McGreggor
  • Date: 2010-09-12 00:39:50 UTC
  • Revision ID: duncan@canonical.com-20100912003950-otdsrao5u1ql19em
* Fixed timestamp day/month ordering.
* Added additional check to test_multiple_directories.
* Reorganized TODO file.
* Moved duplicate test code into BaseTestCase.
* Fixed a bug in the create_zip implementation for single files.
* Added checks for reading the content of zipped files.
* Lots more fixes in the unit tests.
* Commented out Google Code commit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
321
321
 
322
322
    def convert(self, project_object=None):
323
323
        """
324
 
        This method is intended to convert a file system projct to a compressed
325
 
        project.
 
324
        This method is intended to convert a file system project to a
 
325
        compressed project.
326
326
        """
327
327
        if not project_object:
328
328
            project_object = self.project
329
 
        # backup current project
 
329
        # Backup current project.
330
330
        project_object.backup()
331
 
        # compress moved project to the original project dir location, using
332
 
        # the original project's dir name as the compressed file name
 
331
        # Compress moved project to the original project dir location, using
 
332
        # the original project's dir name as the compressed file name.
333
333
        util.create_zip(
334
334
            zipped_project=self.project_path,
335
335
            source=self.extracted_project)
336
 
        print "\nproject_path:", self.project_path
337
 
        print "extracted_project:", self.extracted_project
338
 
        import pdb;pdb.set_trace()
 
336
        #print "\nproject_path:\n", self.project_path
 
337
        #print "extracted_project:\n", self.extracted_project
 
338
        #import pdb;pdb.set_trace()
339
339
        self.zip = ZipFile(self.project_path, "r")
340
340
 
341
341
    def backup(self, source):