Changeset 13


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

mzcms/configure.zcml configure.zcml-20100730084238-fjjwldiefr0w07zv-3
mzcms/models.py models.py-20100730084238-fjjwldiefr0w07zv-4
mzcms/run.py run.py-20100730084238-fjjwldiefr0w07zv-5
mzcms/templates/experiment.pt mytemplate.pt-20100730084238-fjjwldiefr0w07zv-9
mzcms/views.py views.py-20100730084238-fjjwldiefr0w07zv-8
setup.py setup.py-20100730084258-tv9dopp9po6qcu5c-2
bzr:mapping-version:
v4
bzr:repository-uuid:
724254b2-fbe6-419d-9466-c04ef4c9d29d
bzr:revision-id:
j@dannynavarro.net-20100805123615-9d6ec4hhnvqpv6dx
bzr:revno:
13
bzr:revprop:branch-nick:
trunk
bzr:root:
trunk
bzr:timestamp:
2010-08-05 14:36:15.408999920 +0200
bzr:user-agent:
bzr2.1.2+bzr-svn1.0.3
svn:original-date:
2010-08-05T12:36:15.409000Z
Message:

Renamed root model, views and templates to Experiment. Skeleton for models. Added repoze.folder dependency

Location:
trunk
Files:
5 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/mzcms/configure.zcml

    r1 r13  
    55
    66  <view
    7      context=".models.MyModel"
    8      view=".views.my_view"
    9      renderer="templates/mytemplate.pt"
     7     context=".models.Experiment"
     8     view=".views.experiment_view"
     9     renderer="templates/experiment.pt"
    1010     />
    1111
  • trunk/mzcms/models.py

    r1 r13  
    1 from persistent.mapping import PersistentMapping
     1from persistent import Persistent
     2from repoze.folder import Folder
    23
    3 class MyModel(PersistentMapping):
     4class Experiment(Folder):
    45    __parent__ = __name__ = None
     6
     7class Proteins(Folder):
     8    pass
     9
     10class Protein(Persistent):
     11    pass
     12
     13class Peptides(Folder):
     14    pass
     15
     16class Peptide(Persistent):
     17    pass
     18
     19class Psms(Folder):
     20    pass
     21
     22class Psm(Persistent):
     23    pass
     24
     25class Spectra(Folder):
     26    pass
     27
     28class Spectrum(Persistent):
     29    pass
     30
     31class ClassName(object):
     32    """docstring for ClassName"""
     33    def __init__(self, arg):
     34        super(ClassName, self).__init__()
     35        self.arg = arg
    536
    637def appmaker(zodb_root):
    738    if not 'app_root' in zodb_root:
    8         app_root = MyModel()
     39        app_root = Experiment()
    940        zodb_root['app_root'] = app_root
    1041        import transaction
  • trunk/mzcms/run.py

    r1 r13  
    55def app(global_config, **settings):
    66    """ This function returns a WSGI application.
    7    
    8     It is usually called by the PasteDeploy framework during 
     7
     8    It is usually called by the PasteDeploy framework during
    99    ``paster serve``.
    1010    """
  • trunk/mzcms/views.py

    r1 r13  
    1 def my_view(request):
     1def experiment_view(request):
    22    return {'project':'mzcms'}
  • trunk/setup.py

    r12 r13  
    1212    'repoze.tm',
    1313    'ZODB3',
     14    'repoze.folder',
    1415    ]
    1516
Note: See TracChangeset for help on using the changeset viewer.