Changeset 22


Ignore:
Timestamp:
Aug 11, 2010, 4:03:37 PM (10 years ago)
Author:
j@…
bzr:base-revision:
j@dannynavarro.net-20100805153553-bbo0yp7iqreb5ilb
bzr:committer:
Danny Navarro <j@dannynavarro.net>
bzr:file-ids:

mzcms/models.py models.py-20100730084238-fjjwldiefr0w07zv-4
bzr:mapping-version:
v4
bzr:repository-uuid:
724254b2-fbe6-419d-9466-c04ef4c9d29d
bzr:revision-id:
j@dannynavarro.net-20100806085731-45ijibdj8w02ovi1
bzr:revno:
22
bzr:revprop:branch-nick:
trunk
bzr:root:
trunk
bzr:timestamp:
2010-08-06 10:57:31.980000019 +0200
bzr:user-agent:
bzr2.1.2+bzr-svn1.0.3
svn:original-date:
2010-08-06T08:57:31.980000Z
Message:

initialize Experiment parent

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mzcms/models.py

    r21 r22  
    44class Experiment(Folder):
    55    __parent__ = __name__ = None
     6    super(Experiment, self).__init__()
    67
    78class Proteins(Folder):
     
    6465    if not 'app_root' in zodb_root:
    6566        app_root = Experiment()
     67        import transaction
     68        transaction.commit()
    6669#        folders = parse_results(files)
    6770#        for folder in folders:
    6871#            app_root[folder.name] = folder
    6972#        zodb_root['app_root'] = app_root
    70         import transaction
    71         transaction.commit()
    7273
    7374    return zodb_root['app_root']
Note: See TracChangeset for help on using the changeset viewer.