Ignore:
Timestamp:
19 Dec 2008, 15:44:45 (16 years ago)
Author:
Henrik Bettermann
Message:

implement configuration object (step 1)

Configuration file must be created with create_configuration_file.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/University.py

    r2691 r3824  
    2828    ob = University(id, **kw)
    2929    return CPSBase_adder(container, ob, REQUEST=REQUEST)
     30   
     31       
     32class WAeUPConfiguration(CPSDocument): ###(
     33    """
     34    WAeUP Configuration
     35    """
     36    meta_type = 'WAeUP Configuration'
     37    portal_type = meta_type
     38    security = ClassSecurityInfo()
    3039
     40    def __init__(self, id, **kw):
     41        CPSDocument.__init__(self, id, **kw)
     42
     43InitializeClass(WAeUPConfiguration)
     44
     45def addWAeUPConfiguration(container, id, REQUEST=None, **kw):
     46    """Add a WAeUP Configuration."""
     47    ob = WAeUPConfiguration(id, **kw)
     48    return CPSBase_adder(container, ob, REQUEST=REQUEST)       
     49
Note: See TracChangeset for help on using the changeset viewer.