Changeset 200 for waeup_product


Ignore:
Timestamp:
10 May 2006, 06:58:10 (18 years ago)
Author:
joachim
Message:

=removed files not necessary

Location:
waeup_product/trunk
Files:
36 deleted
21 edited

Legend:

Unmodified
Added
Removed
  • waeup_product/trunk/Accommodation.py

    r152 r200  
    1010from Products.CPSDocument.CPSDocument import CPSDocument
    1111from Products.CPSCore.CPSBase import CPSBaseBTreeFolder as BaseBTreeFolder
    12 
    13 accofolder_fti = { ###(
    14     'title': 'WAeUP AccoFolder',
    15     'description': '',
    16     'content_icon': '',
    17     'content_meta_type': 'AccoFolder',
    18     'factory': 'addAccoFolder',
    19     'immediate_view': 'cpsdocument_view',
    20     'global_allow': True,
    21     'filter_content_types': True,
    22     'allowed_content_types': ('Accommodation',),
    23     'allow_discussion': False,
    24 }
    25 ###)
    2612
    2713class AccoFolder(CPSDocument): ###(
     
    4228###)
    4329
    44 accommodation_fti = { ###(
    45     'title': 'WAeUP Accommodation',
    46     'description': '',
    47     'content_icon': '',
    48     'content_meta_type': 'Accommodation',
    49     'factory': 'addAccommodation',
    50     'immediate_view': 'cpsdocument_view',
    51     'global_allow': True,
    52     'filter_content_types': True,
    53     'allowed_content_types': (),
    54     'allow_discussion': False,
    55 }
    56 ###)
    5730
    5831class Accommodation(CPSDocument): ###(
  • waeup_product/trunk/Faculty.py

    r176 r200  
    99#from Products.CPSCore.CPSBase import CPSBaseDocument as BaseDocument
    1010from Products.CPSDocument.CPSDocument import CPSDocument
    11 from Products.CPSCore.CPSBase import CPSBaseBTreeFolder as BaseBTreeFolder
     11#from Products.CPSCore.CPSBase import CPSBaseBTreeFolder as BaseBTreeFolder
     12#from Products.CPSCore.CPSBase import CPSBaseBTreeDocument as BaseBTreeDocument
     13#from Products.CMFCore.DirectoryView import registerDirectory
    1214
    13 ##class FacultyFolder(BaseBTreeFolder): ###(
    14 ##    """
    15 ##    WAeUP container for the various WAeUP containers data
    16 ##    """
    17 ##    meta_type = 'Faculty Folder'
    18 ##    portal_type = meta_type
    19 ##    security = ClassSecurityInfo()
    20 ##   
    21 ##       
    22 ##InitializeClass(FacultyFolder)
    23 ##
    24 ##def addFacultyFolder(container, id, REQUEST=None, **kw):
    25 ##    """Add a Student."""
    26 ##    ob = StudentsFolder(id, **kw)
    27 ##    return CPSBase_adder(container, ob, REQUEST=REQUEST)
    28 #####
    29 #####)
    30 
    31 faculty_fti = { ###(
    32     'title': 'WAeUP Faculty',
    33     'description': '',
    34     'content_icon': '',
    35     'content_meta_type': 'Faculty',
    36     'factory': 'addFaculty',
    37     'immediate_view': 'cpsdocument_view',
    38     'global_allow': True,
    39     'filter_content_types': True,
    40     'allowed_content_types': ('Department',),
    41     'allow_discussion': False,
    42 ##    'actions': (
    43 ##         {'id': 'view',
    44 ##          'name': 'action_view',
    45 ##          'action': 'string:${object_url}/faculty_index_html',
    46 ##          #'action': 'string:${object_url}/cpsdocument_view',
    47 ##          'condition': '',
    48 ##          'permission': ('View',),
    49 ##          'category': 'object',
    50 ##          'visible': True,},
    51 ##         {'id': 'new_content',
    52 ##          'name': 'Add Data',
    53 ##          'action': 'string:${object_url}/folder_factories',
    54 ##          'condition': "python:1 or len(object.contentItems()) == 0 ",
    55 ##          'permission': ('Modify portal content',),
    56 ##          'category': 'object',
    57 ##          'visible': True,},
    58 ##         {'id': 'contents',
    59 ##          'name': 'action_folder_contents',
    60 ##          'action': 'string:${object_url}/folder_contents',
    61 ##          'condition': "python:1 or object.getTypeInfo().cps_proxy_type != 'document'",
    62 ##          'permission': ('Modify portal content',),
    63 ##          'category': 'object',
    64 ##          'visible': True,},
    65 ##         {'id': 'edit',
    66 ##          'name': 'action_edit',
    67 ##          'action': 'string:${object_url}/cpsdocument_edit_form',
    68 ##          'condition': '',
    69 ##          'permission': ('Modify portal content',),
    70 ##          'category': 'object',
    71 ##          'visible': True,},
    72 ##    )
    73 }
    74 ###)
     15#registerDirectory('skins', globals())
     16#registerDirectory('skins/waeup_default', globals())
     17#registerDirectory('skins/waeup_faculty', globals())
    7518
    7619class Faculty(CPSDocument): ###(
     
    8225    security = ClassSecurityInfo()
    8326   
    84 ##    security.declareProtected(View,"Title")
    85 ##    def Title(self):
    86 ##        """compose title"""
    87 ##        reg_nr = self.getId()[1:]
    88 ##        return "Faculty of %s" % (self.title)
     27    def __init__(self, id, **kw):
     28        CPSDocument.__init__(self, id, **kw)
     29
     30    security.declareProtected(View,"Title")
     31    def Title(self):
     32        """compose title"""
     33        return "Faculty of %s" % (self.title)
    8934
    9035InitializeClass(Faculty)
     
    9439    ob = Faculty(id, **kw)
    9540    return CPSBase_adder(container, ob, REQUEST=REQUEST)
     41
    9642###)
    9743
    98 department_fti = { ###(
    99     'title': 'WAeUP Department',
    100     'description': '',
    101     'content_icon': '',
    102     'content_meta_type': 'Department',
    103     'factory': 'addDepartment',
    104     'immediate_view': 'cpsdocument_view',
    105     'global_allow': True,
    106     'filter_content_types': True,
    107     'allowed_content_types': ('Course',),
    108     'allow_discussion': False,
    109 }
    110 ###)
    11144
    11245class Department(CPSDocument): ###(
     
    13265###)
    13366
    134 course_fti = { ###(
    135     'title': 'WAeUP Course',
    136     'description': '',
    137     'content_icon': '',
    138     'content_meta_type': 'Course',
    139     'factory': 'addCourse',
    140     'immediate_view': 'cpsdocument_view',
    141     'global_allow': True,
    142     'filter_content_types': True,
    143     'allowed_content_types': (),
    144     'allow_discussion': False,
    145 }
    146 ###)
     67##course_fti = { ###(
     68##    'title': 'WAeUP Course',
     69##    'description': '',
     70##    'content_icon': '',
     71##    'content_meta_type': 'Course',
     72##    'factory': 'addCourse',
     73##    'immediate_view': 'cpsdocument_view',
     74##    'global_allow': True,
     75##    'filter_content_types': True,
     76##    'allowed_content_types': (),
     77##    'allow_discussion': False,
     78##}
     79#####)
    14780
    14881class Course(CPSDocument): ###(
     
    171104###)
    172105
    173 course_ticket_fti = { ###(
    174     'title': 'WAeUP CourseTicket',
    175     'description': '',
    176     'content_icon': '',
    177     'content_meta_type': 'CourseTicket',
    178     'factory': 'addCourseTicket',
    179     'immediate_view': 'cpsdocument_view',
    180     'global_allow': True,
    181     'filter_content_types': True,
    182     'allowed_content_types': (),
    183     'allow_discussion': False,
    184 }
    185 ###)
    186 
    187106class CourseTicket(CPSDocument): ###(
    188107    """
  • waeup_product/trunk/Students.py

    r191 r200  
    11#-*- mode: python; mode: fold -*-
     2# $Id$
    23from Globals import InitializeClass
    34from AccessControl import ClassSecurityInfo
     
    1213from Products.CPSCore.CPSBase import CPSBaseBTreeFolder as BaseBTreeFolder
    1314from Products.CPSCore.CPSMembershipTool import CPSUnrestrictedUser
    14 class StudentsFolder(BaseBTreeFolder): ###(
    15     """
    16     WAeUP container for the various WAeUP containers data
    17     """
    18     meta_type = 'Students Folder'
    19     portal_type = meta_type
    20     security = ClassSecurityInfo()
    21 
    22 
    23 InitializeClass(StudentsFolder)
    24 
    25 def addStudentsFolder(container, id, REQUEST=None, **kw):
    26     """Add a Student."""
    27     ob = StudentsFolder(id, **kw)
    28     return CPSBase_adder(container, ob, REQUEST=REQUEST)
    29 ###)
    30 
    31 student_fti = { ###(
    32     'title': 'WAeUP Student',
    33     'description': '',
    34     'content_icon': 'student.gif',
    35     'content_meta_type': 'Student',
    36     'factory': 'addStudent',
    37     'immediate_view': 'cpsdocument_view',
    38     'global_allow': True,
    39     'filter_content_types': True,
    40     'allowed_content_types': ('Jamb','StudentPersonal'),
    41     'allow_discussion': False,
    42 }
    43 
    44 ###)
     15##class StudentsFolder(BaseBTreeFolder): ###(
     16##    """
     17##    WAeUP container for the various WAeUP containers data
     18##    """
     19##    meta_type = 'Students Folder'
     20##    portal_type = meta_type
     21##    security = ClassSecurityInfo()
     22##
     23##
     24##InitializeClass(StudentsFolder)
     25
     26##def addStudentsFolder(container, id, REQUEST=None, **kw):
     27##    """Add a Student."""
     28##    ob = StudentsFolder(id, **kw)
     29##    return CPSBase_adder(container, ob, REQUEST=REQUEST)
     30#####)
    4531
    4632class Student(CPSDocument): ###(
     
    133119###)
    134120
    135 studentpersonal_fti = { ###(
    136     'title': 'WAeUP StudentPersonal',
    137     'description': '',
    138     'content_icon': 'student.gif',
    139     'content_meta_type': 'StudentPersonal',
    140     'factory': 'addStudent',
    141     'immediate_view': 'student_personal_index_html',
    142     'global_allow': True,
    143     'filter_content_types': True,
    144     'allowed_content_types': (),
    145     'allow_discussion': False,
    146 }
    147 
    148 ###)
    149 
    150121class StudentPersonal(CPSDocument): ###(
    151122    """
     
    172143###)
    173144
    174 studenteligibility_fti = { ###(
    175     'title': 'WAeUP StudentEligibility',
    176     'description': '',
    177     'content_icon': 'student.gif',
    178     'content_meta_type': 'StudentEligibility',
    179     'factory': 'addStudent',
    180     'immediate_view': 'student_eligibility_index_html',
    181     'global_allow': True,
    182     'filter_content_types': True,
    183     'allowed_content_types': (),
    184     'allow_discussion': False,
    185 }
    186 
    187 ###)
    188 
    189145class StudentEligibility(CPSDocument): ###(
    190146    """
     
    210166###)
    211167
    212 studentdocuments_fti = { ###(
    213     'title': 'WAeUP StudentDocuments',
    214     'description': '',
    215     'content_icon': 'student.gif',
    216     'content_meta_type': 'StudentDocuments',
    217     'factory': 'addStudent',
    218     'immediate_view': 'temporary_view_all',
    219     'global_allow': True,
    220     'filter_content_types': True,
    221     'allowed_content_types': (),
    222     'allow_discussion': False,
    223 }
    224 
    225 ###)
    226 
    227168class StudentDocuments(CPSDocument): ###(
    228169    """
     
    247188    return CPSBase_adder(container, ob, REQUEST=REQUEST)
    248189
    249 ###)
    250 
    251 jamb_fti = { ###(
    252     'title': 'WAeUP Jamb',
    253     'description': '',
    254     'content_icon': '',
    255     'content_meta_type': 'Jamb',
    256     'factory': 'addJamb',
    257     'immediate_view': 'cpsdocument_view',
    258     'global_allow': True,
    259     'filter_content_types': True,
    260     'allowed_content_types': ('Course',),
    261     'allow_discussion': False,
    262 }
    263190###)
    264191
     
    290217    ob = Jamb(id, **kw)
    291218    return CPSBase_adder(container, ob, REQUEST=REQUEST)
    292 ###)
    293 
    294 study_level_fti = { ###(
    295     'title': 'WAeUP StudyLevel',
    296     'description': '',
    297     'content_icon': '',
    298     'content_meta_type': 'StudyLevel',
    299     'factory': 'addStudyLevel',
    300     'immediate_view': 'cpsdocument_view',
    301     'global_allow': True,
    302     'filter_content_types': True,
    303     'allowed_content_types': ('Course',),
    304     'allow_discussion': False,
    305 }
     219
    306220###)
    307221
     
    320234    ob = StudyLevel(id, **kw)
    321235    return CPSBase_adder(container, ob, REQUEST=REQUEST)
    322 ###)
    323 
    324 semester_fti = { ###(
    325     'title': 'WAeUP Semester',
    326     'description': '',
    327     'content_icon': '',
    328     'content_meta_type': 'Semester',
    329     'factory': 'addSemester',
    330     'immediate_view': 'cpsdocument_view',
    331     'global_allow': True,
    332     'filter_content_types': True,
    333     'allowed_content_types': ('Course',),
    334     'allow_discussion': False,
    335 }
     236
    336237###)
    337238
     
    350251    ob = Semester(id, **kw)
    351252    return CPSBase_adder(container, ob, REQUEST=REQUEST)
    352 ###)
    353 
     253
     254###)
     255
  • waeup_product/trunk/__init__.py

    r199 r200  
    1010from Products.CPSCore.interfaces import ICPSSite
    1111
     12from Products.WAeUP.University import University, addUniversity
     13from Products.WAeUP.Accommodation import AccoFolder, addAccoFolder
     14from Products.WAeUP.Accommodation import Accommodation, addAccommodation
     15from Products.WAeUP.Faculty import Faculty, addFaculty
     16from Products.WAeUP.Faculty import Department, addDepartment
     17from Products.WAeUP.Faculty import Course, addCourse
     18from Products.WAeUP.Faculty import CourseTicket, addCourseTicket
     19from Products.WAeUP.Students import Student, addStudent
     20from Products.WAeUP.Students import StudentPersonal, addStudentPersonal
     21from Products.WAeUP.Students import StudentEligibility, addStudentEligibility
     22from Products.WAeUP.Students import StudentDocuments, addStudentDocuments
     23from Products.WAeUP.Students import Jamb, addJamb
     24from Products.WAeUP.Students import StudyLevel, addStudyLevel
     25from Products.WAeUP.Students import Semester, addSemester
     26
     27
     28
    1229import Widgets
     30
     31#registerDirectory('skins/waeup_default', globals())
     32
     33contentClasses = (
     34    University,
     35    Faculty,
     36    Department,
     37    Course,
     38    CourseTicket,
     39    AccoFolder,
     40    Accommodation,
     41    Student,
     42    StudentPersonal,
     43    StudentEligibility,
     44    StudentDocuments,
     45    Jamb,
     46    StudyLevel,
     47    Semester,
     48    )
     49
     50contentConstructors = (
     51    addUniversity,
     52    addFaculty,
     53    addDepartment,
     54    addCourse,
     55    addCourseTicket,
     56    addAccoFolder,
     57    addAccommodation,
     58    addStudent,
     59    addStudentPersonal,
     60    addStudentEligibility,
     61    addStudentDocuments,
     62    addJamb,
     63    addStudyLevel,
     64    addSemester,
     65    )
     66
     67fti = (
     68    {}, # University
     69    {}, # Faculty
     70    {}, # Department
     71    {}, # Course
     72    {}, # CourseTicket
     73    {}, # AccoFolder
     74    {}, # Accommodation
     75    {}, # Student,
     76    {}, # StudentPersonal,
     77    {}, # StudentEligibility,
     78    {}, # StudentDocuments,
     79    {}, # Jamb,
     80    {}, # StudyLevel,
     81    {}, # Semester,
     82    )
    1383
    1484registerDirectory('skins', globals())
    1585
    1686def initialize(registrar):
     87    ContentInit('WAeUP Types',
     88                content_types = contentClasses,
     89                permission = AddPortalContent,
     90                extra_constructors = contentConstructors,
     91                fti = fti,
     92                ).initialize(registrar)
     93
    1794    # Extension profile registration
    1895    profile_registry.registerProfile(
  • waeup_product/trunk/exportimport.py

    r199 r200  
    1 # (C) Copyright 2006 Nuxeo SAS <http://nuxeo.com>
    2 # Author: Olivier Grisel <ogrisel@nuxeo.com>
    3 #
    4 # This program is free software; you can redistribute it and/or modify
    5 # it under the terms of the GNU General Public License version 2 as published
    6 # by the Free Software Foundation.
    7 #
    8 # This program is distributed in the hope that it will be useful,
    9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    11 # GNU General Public License for more details.
    12 #
    13 # You should have received a copy of the GNU General Public License
    14 # along with this program; if not, write to the Free Software
    15 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    16 # 02111-1307, USA.
    17 #
     1#-*- mode: python; mode: fold -*-
    182# $Id: exportimport.py 31640 2006-01-15 19:22:29Z ogrisel $
    193"""WAeUP Tool XML Adapter.
     
    5438# WAeUP/profiles/default/ directory.
    5539
     40
     41def setupStructure(context): ###(
     42    sections = getattr(context,'sections')
     43    portal = getattr(sections,'uniportal',None)
     44    if portal is None:
     45        sections.invokeFactory('University','uniportal')
     46        portal = getattr(context,'uniportal',None)
     47        portal.getContent().edit(mapping={'Title':SRPP_TITLE})
     48    students =  getattr(portal,'students',None)
     49    if students is None:
     50        portal.invokeFactory('StudentsFolder','students')
     51        students = getattr(portal,'students').getContent()
     52        students.edit(mapping={'Title':'Students'})
     53    academics = getattr(portal,'academics',None)
     54    if academics is None:
     55        portal.invokeFactory('AcademicsFolder','academics')
     56        academics = getattr(portal,'academics')
     57        academics.getContent().edit(mapping={'Title':'Academics'})
     58    installFaculties(academics)
     59    if not hasattr(portal,'accommodation'):
     60        portal.invokeFactory('AccoFolder','accommodation')
     61        accommodation = getattr(portal,'accommodation').getContent()
     62        accommodation.edit(mapping={'Title':'Accommodation'})
     63###)
     64
     65
     66def installFaculties( academics): ###(
     67    """install Universityspecific Faculies with Departments"""
     68    faculties = [
     69##                     {'id': 'agri', ###(
     70##                      'Title': 'Agriculture',
     71##                      'departments': [
     72##                                     { 'id': 'dep1', ###(
     73##                                       'Title': 'One',
     74##                                     },
     75##                                     ],
     76##                      },###)
     77                  { 'id': 'science',
     78                  'Title': 'Science',
     79                  'departments': [
     80                                 { 'id': 'bio', ###(
     81                                   'Title': 'Biochemistry',
     82                                 },
     83                                 { 'id': 'bot',
     84                                   'Title': 'Botany',
     85                                 },
     86                                 { 'id': 'che',
     87                                   'Title': 'Chemistry',
     88                                 },
     89                                 { 'id': 'com',
     90                                   'Title': 'Computer Science',
     91                                 },
     92                                 { 'id': 'geo',
     93                                   'Title': 'Geologie',
     94                                 },
     95                                 { 'id': 'mat',
     96                                   'Title': 'Mathematics',
     97                                 },
     98                                 { 'id': 'mic',
     99                                   'Title': 'Microbiology',
     100                                 },
     101                                 { 'id': 'opt',
     102                                   'Title': 'Optometry',
     103                                 },
     104                                 { 'id': 'phy',
     105                                   'Title': 'Physics',
     106                                 },
     107                                 { 'id': 'zoo',
     108                                   'Title': 'Zoology',
     109                                 },
     110                                 ],
     111                  },###)
     112                 ]###)
     113    for faculty in faculties:
     114        fid = faculty['id']
     115        f = getattr(academics,fid,None)
     116        if f is None:
     117            #self.log('Creating Faculty %(id)s = %(Title)s' % faculty)
     118            academics.invokeFactory('Faculty', fid)
     119            f = getattr(academics,fid)
     120            f.getContent().edit(mapping=faculty)
     121        for department in faculty['departments']:
     122            #self.log('Checking Department %(id)s = %(Title)s' % department)
     123            did = department['id']
     124            d = getattr(f,did,None)
     125            if d is None:
     126                #self.log('Creating Department %(id)s = %(Title)s' % department)
     127                f.invokeFactory('Department', did)
     128                d = getattr(f,did)
     129                d.getContent().edit(mapping=department)
     130###)
     131
     132
    56133def exportWAeUP(context):
    57134    """Export our WAeUP tool configuration
     
    69146    """
    70147    site = context.getSite()
    71     tool = getToolByName(site, TOOL)
    72     importObjects(tool, '', context)
     148    setupStructure(site)
     149    pass
     150    #site = context.getSite()
     151    #tool = getToolByName(site, TOOL)
     152    #importObjects(tool, '', context)
    73153
    74154
     
    79159class WAeUPXMLAdapter(XMLAdapterBase, PropertyManagerHelpers):
    80160    """XML importer and exporter for the WAeUP tool.
    81 
    82     The vogon tool has very little persistent configuration to im- / export:
    83     only two properties that can be handled by the standard
    84     PropertyManagerHelpers methods.
    85161
    86162    Hence this XMLAdapter is really simple. To get more complete examples of
  • waeup_product/trunk/profiles/default/import_steps.xml

    r199 r200  
    44              handler="Products.WAeUP.exportimport.importWAeUP"
    55              title="WAeUP">
    6   <dependency step="toolset"/>
     6  <dependency step="toolset" />
    77  Import WAeUP and its configuration.
    88 </import-step>
  • waeup_product/trunk/profiles/default/skins.xml

    r199 r200  
    99 <object name="waeup_student" meta_type="Filesystem Directory View"
    1010    directory="WAeUP/skins/waeup_student"/>
    11  <skin-path name="Basic">
    12   <layer name="custom"/>
    13   <layer name="waeup_default"/>
    14   <layer name="waeup_student"/>
    15   <layer name="waeup_faculty"/>
    16   <layer name="cpswfht_scripts"/>
    17   <layer name="cpswfht_templates"/>
    18   <layer name="cpsportlets_types"/>
    19   <layer name="cpsportlets_default"/>
    20   <layer name="cpsportlets_widgets"/>
    21   <layer name="cpsportlets_layouts"/>
    22   <layer name="cpsportlets_schemas"/>
    23   <layer name="cpsportlets_vocabularies"/>
    24   <layer name="cpsooo"/>
    25   <layer name="cps_wiki"/>
    26   <layer name="cps_newsletters"/>
    27   <layer name="cps_subscriptions_installer"/>
    28   <layer name="cps_subscriptions"/>
    29   <layer name="cpsnavigation_images"/>
    30   <layer name="cpsnavigation_default"/>
    31   <layer name="cpsnavigation_devel"/>
    32   <layer name="cps_directory"/>
    33   <layer name="cps_chat"/>
    34   <layer name="cps_forum"/>
    35   <layer name="cps_rss"/>
    36   <layer name="epoz"/>
    37   <layer name="mimetypes_icons"/>
    38   <layer name="cps_jscalendar"/>
    39   <layer name="cps_schemas"/>
    40   <layer name="cps_document"/>
    41   <layer name="cps_document_images"/>
    42   <layer name="cps_collector"/>
    43   <layer name="cps_javascript"/>
    44   <layer name="cps_default"/>
    45   <layer name="cps_default_installer"/>
    46   <layer name="cps_images"/>
    47   <layer name="cmf_calendar"/>
    48   <layer name="cps_boxes"/>
    49   <layer name="cps_nuxeo_style"/>
    50   <layer name="cmf_zpt_calendar"/>
    51   <layer name="cps_styles"/>
    52   <layer name="cps_devel"/>
    53   <layer name="zpt_topic"/>
    54   <layer name="zpt_calendar"/>
    55   <layer name="zpt_content"/>
    56   <layer name="zpt_generic"/>
    57   <layer name="zpt_control"/>
    58   <layer name="Images"/>
    59  </skin-path>
    6011 <skin-path name="CPSSkins">
    61   <layer name="custom"/>
    62   <layer name="waeup_default"/>
    63   <layer name="waeup_student"/>
    64   <layer name="waeup_faculty"/>
    65   <layer name="cpswfht_scripts"/>
    66   <layer name="cpswfht_templates"/>
    67   <layer name="CPSSkins"/>
    68   <layer name="cpsskins_icons"/>
    69   <layer name="cpsskins_cps3"/>
    70   <layer name="cpsskins_cmf"/>
    71   <layer name="cpsportlets_types"/>
    72   <layer name="cpsportlets_default"/>
    73   <layer name="cpsportlets_widgets"/>
    74   <layer name="cpsportlets_layouts"/>
    75   <layer name="cpsportlets_schemas"/>
    76   <layer name="cpsportlets_vocabularies"/>
    77   <layer name="cpsooo"/>
    78   <layer name="cps_wiki"/>
    79   <layer name="cps_newsletters"/>
    80   <layer name="cps_subscriptions_installer"/>
    81   <layer name="cps_subscriptions"/>
    82   <layer name="cpsnavigation_images"/>
    83   <layer name="cpsnavigation_default"/>
    84   <layer name="cpsnavigation_devel"/>
    85   <layer name="cps_directory"/>
    86   <layer name="cps_chat"/>
    87   <layer name="cps_forum"/>
    88   <layer name="cps_rss"/>
    89   <layer name="epoz"/>
    90   <layer name="mimetypes_icons"/>
    91   <layer name="cps_jscalendar"/>
    92   <layer name="cps_schemas"/>
    93   <layer name="cps_document"/>
    94   <layer name="cps_document_images"/>
    95   <layer name="cps_collector"/>
    96   <layer name="cps_javascript"/>
    97   <layer name="cps_default"/>
    98   <layer name="cps_default_installer"/>
    99   <layer name="cps_images"/>
    100   <layer name="cmf_calendar"/>
    101   <layer name="cps_boxes"/>
    102   <layer name="cps_nuxeo_style"/>
    103   <layer name="cmf_zpt_calendar"/>
    104   <layer name="cps_styles"/>
    105   <layer name="cps_devel"/>
    106   <layer name="zpt_topic"/>
    107   <layer name="zpt_calendar"/>
    108   <layer name="zpt_content"/>
    109   <layer name="zpt_generic"/>
    110   <layer name="zpt_control"/>
    111   <layer name="Images"/>
     12  <layer name="waeup_default" insert-after="cps_default"/>
     13  <layer name="waeup_student" insert-after="cps_default"/>
     14  <layer name="waeup_faculty" insert-after="cps_default"/>
    11215 </skin-path>
    11316 <skin-path name="CPSSkins-macroless">
    114   <layer name="custom"/>
    115   <layer name="CPSSkins"/>
    116   <layer name="cpsskins_icons"/>
    117   <layer name="cpsskins_cps3_macroless"/>
    118   <layer name="cpsskins_cps3"/>
    119   <layer name="cpsskins_cmf"/>
    120   <layer name="cpsportlets_types"/>
    121   <layer name="cpsportlets_default"/>
    122   <layer name="cpsportlets_widgets"/>
    123   <layer name="cpsportlets_layouts"/>
    124   <layer name="cpsportlets_schemas"/>
    125   <layer name="cpsportlets_vocabularies"/>
    126   <layer name="cpsooo"/>
    127   <layer name="cps_wiki"/>
    128   <layer name="cps_newsletters"/>
    129   <layer name="cps_subscriptions_installer"/>
    130   <layer name="cps_subscriptions"/>
    131   <layer name="cpsnavigation_images"/>
    132   <layer name="cpsnavigation_default"/>
    133   <layer name="cpsnavigation_devel"/>
    134   <layer name="cps_directory"/>
    135   <layer name="cps_chat"/>
    136   <layer name="cps_forum"/>
    137   <layer name="cps_rss"/>
    138   <layer name="epoz"/>
    139   <layer name="mimetypes_icons"/>
    140   <layer name="cps_jscalendar"/>
    141   <layer name="cps_schemas"/>
    142   <layer name="cps_document"/>
    143   <layer name="cps_document_images"/>
    144   <layer name="cps_collector"/>
    145   <layer name="cps_javascript"/>
    146   <layer name="cps_default"/>
    147   <layer name="cps_default_installer"/>
    148   <layer name="cps_images"/>
    149   <layer name="cmf_calendar"/>
    150   <layer name="cps_boxes"/>
    151   <layer name="cps_nuxeo_style"/>
    152   <layer name="cmf_zpt_calendar"/>
    153   <layer name="cps_styles"/>
    154   <layer name="cps_devel"/>
    155   <layer name="zpt_topic"/>
    156   <layer name="zpt_calendar"/>
    157   <layer name="zpt_content"/>
    158   <layer name="zpt_generic"/>
    159   <layer name="zpt_control"/>
    160   <layer name="Images"/>
    161  </skin-path>
    162  <skin-path name="No CSS">
    163   <layer name="no_css"/>
    164   <layer name="custom"/>
    165   <layer name="epoz"/>
    166   <layer name="mimetypes_icons"/>
    167   <layer name="topic"/>
    168   <layer name="calendar"/>
    169   <layer name="content"/>
    170   <layer name="generic"/>
    171   <layer name="control"/>
    172   <layer name="Images"/>
    173  </skin-path>
    174  <skin-path name="Nouvelle">
    175   <layer name="nouvelle"/>
    176   <layer name="custom"/>
    177   <layer name="epoz"/>
    178   <layer name="mimetypes_icons"/>
    179   <layer name="topic"/>
    180   <layer name="calendar"/>
    181   <layer name="content"/>
    182   <layer name="generic"/>
    183   <layer name="control"/>
    184   <layer name="Images"/>
     17  <layer name="waeup_default" insert-after="cps_default"/>
     18  <layer name="waeup_student" insert-after="cps_default"/>
     19  <layer name="waeup_faculty" insert-after="cps_default"/>
    18520 </skin-path>
    18621</object>
  • waeup_product/trunk/profiles/default/types.xml

    r199 r200  
    55 <object name="AccoFolder" meta_type="CPS Flexible Type Information"/>
    66 <object name="Accommodation" meta_type="CPS Flexible Type Information"/>
    7  <object name="Action Box" meta_type="Factory-based Type Information"/>
    8  <object name="Action Box Templet"
    9     meta_type="Factory-based Type Information"/>
    10  <object name="Actions Portlet" meta_type="CPS Flexible Type Information"/>
    11  <object name="Add Item Portlet" meta_type="CPS Flexible Type Information"/>
    12  <object name="Area Color" meta_type="Factory-based Type Information"/>
    13  <object name="Area Shape" meta_type="Factory-based Type Information"/>
    14  <object name="Base Box" meta_type="Factory-based Type Information"/>
    15  <object name="Book" meta_type="CPS Flexible Type Information"/>
    16  <object name="Box Corners" meta_type="Factory-based Type Information"/>
    17  <object name="Breadcrumbs Portlet"
    18     meta_type="CPS Flexible Type Information"/>
    19  <object name="Breadcrumbs Templet"
    20     meta_type="Factory-based Type Information"/>
    21  <object name="CPS Calendar" meta_type="Factory-based Type Information"/>
    22  <object name="CPS Proxy BTree Folder"
    23     meta_type="Factory-based Type Information"/>
    24  <object name="CPS Proxy BTree Folderish Document"
    25     meta_type="Factory-based Type Information"/>
    26  <object name="CPS Proxy Document"
    27     meta_type="Factory-based Type Information"/>
    28  <object name="CPS Proxy Folder" meta_type="Factory-based Type Information"/>
    29  <object name="CPS Proxy Folderish Document"
    30     meta_type="Factory-based Type Information"/>
    31  <object name="CPSForum" meta_type="CPS Flexible Type Information"/>
    32  <object name="Calendar Style" meta_type="Factory-based Type Information"/>
    33  <object name="Calendar Templet" meta_type="Factory-based Type Information"/>
    34  <object name="Cell Block" meta_type="Factory-based Type Information"/>
    35  <object name="Cell Hider" meta_type="Factory-based Type Information"/>
    36  <object name="Cell Sizer" meta_type="Factory-based Type Information"/>
    37  <object name="Cell Styler" meta_type="Factory-based Type Information"/>
    38  <object name="Chapter" meta_type="CPS Flexible Type Information"/>
    39  <object name="Chat" meta_type="Factory-based Type Information"/>
    40  <object name="ChatItem" meta_type="Factory-based Type Information"/>
    41  <object name="Collapsible Menu Style"
    42     meta_type="Factory-based Type Information"/>
    43  <object name="Collapsible Menu Templet"
    44     meta_type="Factory-based Type Information"/>
    45  <object name="Collector Document" meta_type="CPS Flexible Type Information"/>
    46  <object name="Content Box" meta_type="Factory-based Type Information"/>
    47  <object name="Content Portlet" meta_type="CPS Flexible Type Information"/>
    487 <object name="Course" meta_type="CPS Flexible Type Information"/>
    498 <object name="CourseTicket" meta_type="CPS Flexible Type Information"/>
    50  <object name="Custom Portlet" meta_type="CPS Flexible Type Information"/>
    519 <object name="Department" meta_type="CPS Flexible Type Information"/>
    52  <object name="Discussion Item" meta_type="Factory-based Type Information"/>
    53  <object name="Doc Render Box" meta_type="Factory-based Type Information"/>
    54  <object name="Document" meta_type="CPS Flexible Type Information"/>
    55  <object name="Document Info Templet"
    56     meta_type="Factory-based Type Information"/>
    57  <object name="Document Portlet" meta_type="CPS Flexible Type Information"/>
    58  <object name="Dummy Portlet" meta_type="CPS Flexible Type Information"/>
    59  <object name="Event" meta_type="Factory-based Type Information"/>
    60  <object name="Event Calendar Box"
    61     meta_type="Factory-based Type Information"/>
    62  <object name="EventDoc" meta_type="CPS Flexible Type Information"/>
    63  <object name="FAQ" meta_type="CPS Flexible Type Information"/>
    64  <object name="FAQitem" meta_type="CPS Flexible Type Information"/>
    6510 <object name="Faculty" meta_type="CPS Flexible Type Information"/>
    66  <object name="Favorite" meta_type="Factory-based Type Information"/>
    67  <object name="File" meta_type="CPS Flexible Type Information"/>
    68  <object name="Flash Animation" meta_type="CPS Flexible Type Information"/>
    69  <object name="Flash Box" meta_type="Factory-based Type Information"/>
    70  <object name="Flash Box Templet" meta_type="Factory-based Type Information"/>
    71  <object name="Flexible" meta_type="CPS Flexible Type Information"/>
    72  <object name="Folder" meta_type="Factory-based Type Information"/>
    73  <object name="Font Color" meta_type="Factory-based Type Information"/>
    74  <object name="Font Shape" meta_type="Factory-based Type Information"/>
    75  <object name="Form Style" meta_type="Factory-based Type Information"/>
    76  <object name="ForumPost" meta_type="CPS Flexible Type Information"/>
    77  <object name="Glossary" meta_type="CPS Flexible Type Information"/>
    78  <object name="GlossaryItem" meta_type="CPS Flexible Type Information"/>
    79  <object name="Image" meta_type="CPS Flexible Type Information"/>
    80  <object name="Image Box" meta_type="Factory-based Type Information"/>
    81  <object name="Image Box Templet" meta_type="Factory-based Type Information"/>
    82  <object name="Image Portlet" meta_type="CPS Flexible Type Information"/>
    83  <object name="ImageGallery" meta_type="CPS Flexible Type Information"/>
    84  <object name="Internal Links Portlet"
    85     meta_type="CPS Flexible Type Information"/>
    86  <object name="InternalLinks Box" meta_type="Factory-based Type Information"/>
    8711 <object name="Jamb" meta_type="CPS Flexible Type Information"/>
    88  <object name="Language Portlet" meta_type="CPS Flexible Type Information"/>
    89  <object name="Language Templet" meta_type="Factory-based Type Information"/>
    90  <object name="Link" meta_type="CPS Flexible Type Information"/>
    91  <object name="Main Content Templet"
    92     meta_type="Factory-based Type Information"/>
    93  <object name="Navigation Portlet" meta_type="CPS Flexible Type Information"/>
    94  <object name="News Item" meta_type="CPS Flexible Type Information"/>
    95  <object name="NewsLetter" meta_type="CPS Flexible Type Information"/>
    96  <object name="OOoDocbookDocument" meta_type="CPS Flexible Type Information"/>
    97  <object name="Page" meta_type="CPS Flexible Type Information"/>
    98  <object name="Page Block" meta_type="Factory-based Type Information"/>
    99  <object name="Palette Border" meta_type="Factory-based Type Information"/>
    100  <object name="Palette Color" meta_type="Factory-based Type Information"/>
    101  <object name="Portal Box Color" meta_type="Factory-based Type Information"/>
    102  <object name="Portal Box Group Templet"
    103     meta_type="Factory-based Type Information"/>
    104  <object name="Portal Box Shape" meta_type="Factory-based Type Information"/>
    105  <object name="Portal Box Templet"
    106     meta_type="Factory-based Type Information"/>
    107  <object name="Portal Tab Style" meta_type="Factory-based Type Information"/>
    108  <object name="Portal Tab Templet"
    109     meta_type="Factory-based Type Information"/>
    110  <object name="Portal Theme" meta_type="Factory-based Type Information"/>
    111  <object name="Portlet Box Templet"
    112     meta_type="Factory-based Type Information"/>
    113  <object name="Press Release" meta_type="CPS Flexible Type Information"/>
    114  <object name="Quiz Document" meta_type="CPS Flexible Type Information"/>
    115  <object name="RSS Box" meta_type="Factory-based Type Information"/>
    116  <object name="RSS Portlet" meta_type="CPS Flexible Type Information"/>
    117  <object name="Rotating Image Portlet"
    118     meta_type="CPS Flexible Type Information"/>
    119  <object name="Schedule" meta_type="CPS Flexible Type Information"/>
    12012 <object name="ScratchCard" meta_type="CPS Flexible Type Information"/>
    121  <object name="Search Box Templet"
    122     meta_type="Factory-based Type Information"/>
    123  <object name="Search Portlet" meta_type="CPS Flexible Type Information"/>
    124  <object name="Section" meta_type="CPS Flexible Type Information"/>
    12513 <object name="Semester" meta_type="CPS Flexible Type Information"/>
    12614 <object name="Student" meta_type="CPS Flexible Type Information"/>
     
    13018 <object name="StudentsFolder" meta_type="CPS Flexible Type Information"/>
    13119 <object name="StudyLevel" meta_type="CPS Flexible Type Information"/>
    132  <object name="Text Box" meta_type="Factory-based Type Information"/>
    133  <object name="Text Box Templet" meta_type="Factory-based Type Information"/>
    134  <object name="Text Portlet" meta_type="CPS Flexible Type Information"/>
    135  <object name="Theme Chooser Templet"
    136     meta_type="Factory-based Type Information"/>
    137  <object name="Theme Folder" meta_type="Factory-based Type Information"/>
    138  <object name="Theme Page" meta_type="Factory-based Type Information"/>
    139  <object name="Topic" meta_type="Factory-based Type Information"/>
    140  <object name="Tree Box" meta_type="Factory-based Type Information"/>
    14120 <object name="University" meta_type="CPS Flexible Type Information"/>
    142  <object name="Wiki" meta_type="Factory-based Type Information"/>
    143  <object name="Wiki Page" meta_type="Factory-based Type Information"/>
    144  <object name="Workspace" meta_type="CPS Flexible Type Information"/>
    145  <object name="ZippedHtml" meta_type="CPS Flexible Type Information"/>
    14621</object>
  • waeup_product/trunk/profiles/default/types/AcademicsFolder.xml

    r199 r200  
    2424 </property>
    2525 <property name="layouts">
    26   <element value="waeup_common"/>
     26  <element value="common"/>
    2727  <element value="folder"/>
    2828 </property>
     
    3333 <property name="storage_methods"/>
    3434 <property name="cps_is_portlet">False</property>
     35 <alias from="(Default)" to="temporary_view_all"/>
    3536 <alias from="view" to="temporary_view_all"/>
    3637 <action title="Standard View" action_id="view" category="object"
     
    4041 </action>
    4142 <action title="Add Faculty" action_id="add_faculty" category="object"
    42     condition_expr="python:member and 'UniversityManager'in member.getRoles()"
     43    condition_expr="python:True or member and 'UniversityManager'in member.getRoles()"
    4344    url_expr="string:${object/absolute_url}/create_common?type_name=Faculty"
    4445    visible="True">
  • waeup_product/trunk/profiles/default/types/AccoFolder.xml

    r199 r200  
    2323 </property>
    2424 <property name="layouts">
    25   <element value="waeup_common"/>
     25  <element value="common"/>
    2626 </property>
    2727 <property name="layout_clusters">
  • waeup_product/trunk/profiles/default/types/Accommodation.xml

    r199 r200  
    1414 <property name="allow_discussion">False</property>
    1515 <property name="cps_is_searchable">True</property>
    16  <property name="cps_proxy_type">cpsdocument</property>
     16 <property name="cps_proxy_type">folder</property>
    1717 <property name="cps_display_as_document_in_listing">True</property>
    1818 <property name="schemas">
  • waeup_product/trunk/profiles/default/types/Department.xml

    r199 r200  
    3333 <property name="storage_methods"/>
    3434 <property name="cps_is_portlet">False</property>
     35 <alias from="(Default)" to="temporary_view_all"/>
    3536 <alias from="view" to="temporary_view_all"/>
    3637 <action title="Standard View" action_id="view" category="object"
     
    4041 </action>
    4142 <action title="action_edit" action_id="edit" category="object"
    42     condition_expr="" url_expr="string:${object_url}/waeup_edit_form"
    43     visible="True">
    44   <permission value="University Manage"/>
     43    condition_expr="python:member and 'Manager' in member.getRoles()"
     44    url_expr="string:${object_url}/cpsdocument_edit_form" visible="True">
     45  <permission value="Modify portal content"/>
    4546 </action>
    4647 <action title="Add Course" action_id="create_course" category="object"
     
    5253    condition_expr="python:member and 'Manager' in member.getRoles()"
    5354    url_expr="string:${object_url}/folder_contents" visible="True">
    54   <permission value="Modify portal content"/>
    55  </action>
    56  <action title="action_edit" action_id="edit" category="object"
    57     condition_expr="python:member and 'Manager' in member.getRoles()"
    58     url_expr="string:${object_url}/cpsdocument_edit_form" visible="True">
    5955  <permission value="Modify portal content"/>
    6056 </action>
  • waeup_product/trunk/profiles/default/types/Faculty.xml

    r199 r200  
    1111 <property name="global_allow">True</property>
    1212 <property name="filter_content_types">True</property>
    13  <property name="allowed_content_types">Department</property>
     13 <property name="allowed_content_types">
     14  <element value="Department"/>
     15 </property>
    1416 <property name="allow_discussion">False</property>
    1517 <property name="cps_is_searchable">True</property>
    16  <property name="cps_proxy_type">folder</property>
     18 <property name="cps_proxy_type">btreefolderishdocument</property>
    1719 <property name="cps_display_as_document_in_listing">True</property>
    1820 <property name="schemas">
     
    3032 <property name="storage_methods"/>
    3133 <property name="cps_is_portlet">False</property>
     34 <alias from="(Default)" to="temporary_view_all"/>
    3235 <alias from="view" to="temporary_view_all"/>
    3336 <action title="Standard View" action_id="view" category="object"
     
    3740 </action>
    3841 <action title="action_edit" action_id="edit" category="object"
    39     condition_expr="" url_expr="string:${object_url}/waeup_edit_form"
    40     visible="True">
    41   <permission value="University Manage"/>
     42    condition_expr="python:member and 'Manager' in member.getRoles()"
     43    url_expr="string:${object_url}/cpsdocument_edit_form" visible="True">
     44  <permission value="Modify portal content"/>
    4245 </action>
    4346 <action title="Add Department" action_id="add_department" category="object"
     
    5255  <permission value="University Manage"/>
    5356 </action>
    54  <action title="action_edit" action_id="edit" category="object"
    55     condition_expr="python:member and 'Manager' in member.getRoles()"
    56     url_expr="string:${object_url}/cpsdocument_edit_form" visible="True">
    57   <permission value="Modify portal content"/>
    58  </action>
    5957 <action title="action_metadata" action_id="metadata" category="object"
    6058    condition_expr="python:member and 'Manager' in member.getRoles()"
     
    6765  <permission value="Modify portal content"/>
    6866 </action>
     67 <action title="Add Faculty" action_id="add_faculty" category="object"
     68    condition_expr="python:member and 'UniversityManager'in member.getRoles()"
     69    url_expr="string:${object/absolute_url}/create_common?type_name=Faculty"
     70    visible="True">
     71  <permission value="University Manage"/>
     72 </action>
    6973</object>
  • waeup_product/trunk/profiles/default/types/Jamb.xml

    r199 r200  
    2828 </property>
    2929 <property name="cps_is_portlet">False</property>
     30 <alias from="(Default)" to="temporary_view_all"/>
    3031 <alias from="view" to="temporary_view_all"/>
    3132 <action title="Standard View" action_id="view" category="object"
     
    3637 <action title="action_edit" action_id="edit" category="object"
    3738    condition_expr="" url_expr="string:${object_url}/waeup_edit_form"
    38     visible="True">
    39   <permission value="Student Manage"/>
    40  </action>
     39    visible="True"/>
    4140 <action title="delegate" action_id="localroles" category="object"
    4241    condition_expr="" url_expr="string:${object_url}/folder_localrole_form"
     
    4645 <action title="Add Content" action_id="add_content" category="object"
    4746    condition_expr="python:member and 'Manager' in member.getRoles()"
    48     url_expr="string:${object/absolute_url}/folder_factories" visible="True">
    49   <permission value="Student Manage"/>
    50  </action>
     47    url_expr="string:${object/absolute_url}/folder_factories"
     48    visible="False"/>
    5149 <action title="action_metadata" action_id="metadata" category="object"
    5250    condition_expr="python:'Manager' in member.getRoles()"
    53     url_expr="string:${object_url}/cpsdocument_metadata" visible="True">
    54   <permission value="University Manage"/>
    55  </action>
     51    url_expr="string:${object_url}/cpsdocument_metadata" visible="False"/>
    5652</object>
  • waeup_product/trunk/profiles/default/types/Student.xml

    r199 r200  
    3636 <property name="storage_methods"/>
    3737 <property name="cps_is_portlet">False</property>
     38 <alias from="(Default)" to="temporary_view_all"/>
    3839 <alias from="view" to="temporary_view_all"/>
    3940 <action title="Standard View" action_id="view" category="object"
     
    4445 <action title="action_metadata" action_id="metadata" category="object"
    4546    condition_expr="python:member and 'Manager' in member.getRoles()"
    46     url_expr="string:${object_url}/cpsdocument_metadata" visible="True">
     47    url_expr="string:${object_url}/cpsdocument_metadata" visible="False">
    4748  <permission value="University Manage"/>
    4849 </action>
    4950 <action title="delegate" action_id="localroles" category="object"
    5051    condition_expr="" url_expr="string:${object_url}/folder_localrole_form"
    51     visible="True">
     52    visible="False">
    5253  <permission value="Modify portal content"/>
    5354 </action>
  • waeup_product/trunk/profiles/default/types/StudentsFolder.xml

    r199 r200  
    1111 <property name="global_allow">True</property>
    1212 <property name="filter_content_types">True</property>
    13  <property name="allowed_content_types">Student</property>
     13 <property name="allowed_content_types">
     14  <element value="Student"/>
     15 </property>
    1416 <property name="allow_discussion">False</property>
    1517 <property name="cps_is_searchable">True</property>
    16  <property name="cps_proxy_type">folder</property>
     18 <property name="cps_proxy_type">btreefolder</property>
    1719 <property name="cps_display_as_document_in_listing">True</property>
    1820 <property name="schemas">
     
    2224 </property>
    2325 <property name="layouts">
    24   <element value="waeup_common"/>
     26  <element value="common"/>
    2527 </property>
    2628 <property name="layout_clusters">
     
    3032 <property name="storage_methods"/>
    3133 <property name="cps_is_portlet">False</property>
     34 <alias from="(Default)" to="temporary_view_all"/>
    3235 <alias from="view" to="temporary_view_all"/>
    3336 <action title="Standard View" action_id="view" category="object"
  • waeup_product/trunk/profiles/default/types/University.xml

    r199 r200  
    88 <property name="product">WAeUP</property>
    99 <property name="factory">addUniversity</property>
    10  <property name="immediate_view">university_view</property>
     10 <property name="immediate_view">university_view_all</property>
    1111 <property name="global_allow">True</property>
    1212 <property name="filter_content_types">True</property>
    1313 <property name="allowed_content_types">
     14  <element value="AcademicsFolder"/>
     15  <element value="AccoFolder"/>
    1416  <element value="Chat"/>
    1517  <element value="FAQ"/>
    16   <element value="CPSCalendar"/>
    17   <element value="Forum"/>
     18  <element value="Section"/>
    1819  <element value="StudentsFolder"/>
    19   <element value="Faculty"/>
    20   <element value="AccoFolder"/>
    21   <element value="Section"/>
    22   <element value="CPSProxyDocument"/>
    2320 </property>
    2421 <property name="allow_discussion">False</property>
     
    3229 </property>
    3330 <property name="layouts">
    34   <element value="waeup_common"/>
     31  <element value="common"/>
    3532 </property>
    3633 <property name="layout_clusters">
     
    5451 <action title="action_folder_contents" action_id="contents" category="object"
    5552    condition_expr="python:member and  'Manager' in member.getRoles()"
    56     url_expr="string:${object_url}/folder_contents" visible="True">
     53    url_expr="string:${object_url}/folder_contents" visible="False">
    5754  <permission value="Modify portal content"/>
    5855 </action>
    5956 <action title="action_edit" action_id="edit" category="object"
    6057    condition_expr="python:member and 'Manager' in member.getRoles()"
    61     url_expr="string:${object_url}/cpsdocument_edit_form" visible="True">
     58    url_expr="string:${object_url}/cpsdocument_edit_form" visible="False">
    6259  <permission value="Modify portal content"/>
    6360 </action>
    6461 <action title="action_metadata" action_id="metadata" category="object"
    6562    condition_expr="python:member and 'Manager' in member.getRoles()"
    66     url_expr="string:${object_url}/cpsdocument_metadata" visible="True">
     63    url_expr="string:${object_url}/cpsdocument_metadata" visible="False">
    6764  <permission value="Modify portal content"/>
    6865 </action>
  • waeup_product/trunk/profiles/default/workflows.xml

    r199 r200  
    22<object name="portal_workflow" meta_type="CPS Workflow Tool">
    33 <property name="title"></property>
    4  <object name="waeup_section_wf" meta_type="CPS Workflow"/>
     4 <object name="waeup_faculty_wf" meta_type="CPS Workflow"/>
     5 <object name="waeup_department_wf" meta_type="CPS Workflow"/>
     6 <object name="waeup_course_wf" meta_type="CPS Workflow"/>
     7 <object name="waeup_accommodation_wf" meta_type="CPS Workflow"/>
    58 <object name="waeup_student_wf" meta_type="CPS Workflow"/>
    6  <object name="waeup_workspace_wf" meta_type="CPS Workflow"/>
     9 <bindings>
     10  <default/>
     11  <type type_id="University">
     12   <bound-workflow workflow_id="section_folder_wf"/>
     13  </type>
     14  <type type_id="AccoFolder">
     15   <bound-workflow workflow_id="section_folder_wf"/>
     16  </type>
     17  <type type_id="Accommodation">
     18   <bound-workflow workflow_id="waeup_accommodation_wf"/>
     19  </type>
     20  <type type_id="AcademicsFolder">
     21   <bound-workflow workflow_id="section_folder_wf"/>
     22  </type>
     23  <type type_id="Faculty">
     24   <bound-workflow workflow_id="waeup_faculty_wf"/>
     25  </type>
     26  <type type_id="Department">
     27   <bound-workflow workflow_id="waeup_department_wf"/>
     28  </type>
     29  <type type_id="Course">
     30   <bound-workflow workflow_id="waeup_course_wf"/>
     31  </type>
     32  <type type_id="StudentsFolder">
     33   <bound-workflow workflow_id="section_folder_wf"/>
     34  </type>
     35  <type type_id="Student">
     36   <bound-workflow workflow_id="waeup_student_wf"/>
     37  </type>
     38  <type type_id="Jamb">
     39   <bound-workflow workflow_id="waeup_base_wf"/>
     40  </type>
     41 </bindings>
    742</object>
  • waeup_product/trunk/profiles/default/workflows/waeup_section_wf/definition.xml

    r199 r200  
    1212  <permission-map name="Modify portal content"
    1313                  acquired="True">
    14    <permission-role>StudentManager</permission-role>
    15    <permission-role>UniversityManager</permission-role>
     14   <permission-role>Manager</permission-role>
    1615  </permission-map>
    1716  <permission-map name="View" acquired="True">
     
    2625  <guard>
    2726   <guard-role>Manager</guard-role>
    28    <guard-role>StudentManager</guard-role>
    29    <guard-role>UniversityManager</guard-role>
     27   <guard-role>SectionManager</guard-role>
    3028  </guard>
    3129  <transition-behavior behavior_id="initial-create"/>
     
    3836  <guard>
    3937   <guard-role>Manager</guard-role>
    40    <guard-role>StudentManager</guard-role>
    41    <guard-role>UniversityManager</guard-role>
     38   <guard-role>SectionManager</guard-role>
    4239  </guard>
    4340  <transition-behavior behavior_id="allow-sub-create"/>
     
    5047  <guard>
    5148   <guard-role>Manager</guard-role>
    52    <guard-role>StudentManager</guard-role>
    53    <guard-role>UniversityManager</guard-role>
     49   <guard-role>SectionManager</guard-role>
    5450  </guard>
    5551  <transition-behavior behavior_id="allow-sub-delete"/>
  • waeup_product/trunk/profiles/default/workflows/waeup_student_wf/definition.xml

    r199 r200  
    33              title="CPS Workflow Definition"
    44              state_variable="review_state"
    5               initial_state="work" meta_type="CPS Workflow">
    6  <permission>Modify portal content</permission>
     5              meta_type="CPS Workflow">
    76 <permission>View</permission>
    87 <state state_id="work" title="Work">
    98  <exit-transition transition_id="create_content"/>
    109  <exit-transition transition_id="cut_copy_paste"/>
    11   <exit-transition transition_id="close"/>
    12   <permission-map name="Modify portal content"
    13                   acquired="True">
    14    <permission-role>StudentManager</permission-role>
    15    <permission-role>UniversityManager</permission-role>
    16    <permission-role>Student</permission-role>
    17   </permission-map>
    18   <permission-map name="View" acquired="True">
    19    <permission-role>Student</permission-role>
     10  <permission-map name="View" acquired="False">
     11   <permission-role>Manager</permission-role>
     12   <permission-role>SectionManager</permission-role>
     13   <permission-role>SectionReviewer</permission-role>
     14   <permission-role>SectionReader</permission-role>
    2015  </permission-map>
    2116 </state>
     
    2318             new_state="work" trigger="USER"
    2419             before_script="" after_script="">
    25   <description>Intial transition like</description>
    2620 
    2721  <guard>
    2822   <guard-role>Manager</guard-role>
    29    <guard-role>StudentManager</guard-role>
    30    <guard-role>UniversityManager</guard-role>
    31    <guard-role>Student</guard-role>
     23   <guard-role>SectionManager</guard-role>
    3224  </guard>
    3325  <transition-behavior behavior_id="initial-create"/>
     
    3628             title="Create content" new_state="work"
    3729             trigger="USER" before_script="" after_script="">
    38   <description>Allow sub Object Create</description>
    39   <action url="" category="">New</action>
     30 
    4031  <guard>
    4132   <guard-role>Manager</guard-role>
    42    <guard-role>StudentManager</guard-role>
    43    <guard-role>UniversityManager</guard-role>
    44    <guard-role>Student</guard-role>
     33   <guard-role>SectionManager</guard-role>
     34   <guard-role>SectionReviewer</guard-role>
     35   <guard-role>SectionReader</guard-role>
    4536  </guard>
    4637  <transition-behavior behavior_id="allow-sub-create"/>
    47   <transition-behavior behavior_id="allow-sub-checkout"/>
     38  <transition-behavior behavior_id="allow-sub-publishing"/>
    4839 </transition>
    4940 <transition transition_id="cut_copy_paste"
    50              title="Cut/Copy/Paste" new_state="work"
     41             title="Cut/Copy/Paste" new_state=""
    5142             trigger="USER" before_script="" after_script="">
    52   <action url="" category="">New</action>
     43 
    5344  <guard>
    5445   <guard-role>Manager</guard-role>
    55    <guard-role>StudentManager</guard-role>
    56    <guard-role>UniversityManager</guard-role>
     46   <guard-role>SectionManager</guard-role>
     47   <guard-role>SectionReviewer</guard-role>
     48   <guard-role>SectionReader</guard-role>
    5749  </guard>
     50  <transition-behavior behavior_id="allow-sub-move"/>
    5851  <transition-behavior behavior_id="allow-sub-delete"/>
    59   <transition-behavior behavior_id="allow-sub-move"/>
    6052  <transition-behavior behavior_id="allow-sub-copy"/>
    6153 </transition>
    62  <variable variable_id="action" for_catalog="False"
    63            for_status="True" update_always="True">
    64   <description>The last transition</description>
    65   <default>
    66    
    67    <expression>transition/getId|nothing</expression>
    68   </default>
    69   <guard>
    70   </guard>
    71  </variable>
    72  <variable variable_id="actor" for_catalog="False"
    73            for_status="True" update_always="True">
    74   <description>The ID of the user who performed the last transition</description>
    75   <default>
    76    
    77    <expression>user/getId</expression>
    78   </default>
    79   <guard>
    80   </guard>
    81  </variable>
    82  <variable variable_id="comments" for_catalog="False"
    83            for_status="True" update_always="True">
    84   <description>Comments about the last transition</description>
    85   <default>
    86    
    87    <expression>python:state_change.kwargs.get('comment', '')</expression>
    88   </default>
    89   <guard>
    90   </guard>
    91  </variable>
    92  <variable variable_id="dest_container" for_catalog="False"
    93            for_status="True" update_always="True">
    94   <description>Destination container for the last paste/publish</description>
    95   <default>
    96    
    97    <expression>python:state_change.kwargs.get('dest_container', '')</expression>
    98   </default>
    99   <guard>
    100   </guard>
    101  </variable>
    102  <variable variable_id="review_history" for_catalog="False"
    103            for_status="False" update_always="False">
    104   <description>Provides access to workflow history</description>
    105   <default>
    106    
    107    <expression>state_change/getHistory</expression>
    108   </default>
    109   <guard>
    110    <guard-role>Manager</guard-role>
    111    <guard-role>WorkspaceManager</guard-role>
    112    <guard-role>WorkspaceMember</guard-role>
    113    <guard-role>WorkspaceReader</guard-role>
    114    <guard-role>Member</guard-role>
    115   </guard>
    116  </variable>
    117  <variable variable_id="time" for_catalog="False"
    118            for_status="True" update_always="True">
    119   <description>Time of the last transition</description>
    120   <default>
    121    
    122    <expression>state_change/getDateTime</expression>
    123   </default>
    124   <guard>
    125   </guard>
    126  </variable>
    12754</cps-workflow>
  • waeup_product/trunk/skins/waeup_default/temporary_view_all_form.pt

    r169 r200  
    2626    <span  tal:condition="python:context.portal_type != 'University'"  tal:omit-tag="">
    2727      <p>Exemplary view of the <strong>object's data fields</strong>: </p>
    28       <tal:block  tal:content="structure rendered_main|python:doc.render(proxy=here)" />
     28      <tal:block  tal:content="structure rendered_main|python:doc.render()" />
    2929    </span>
    3030    <br />     
Note: See TracChangeset for help on using the changeset viewer.