Changeset 2267 for WAeUP_SRP


Ignore:
Timestamp:
21 Sep 2007, 19:36:08 (17 years ago)
Author:
Henrik Bettermann
Message:

review_state and other fields removed from import schemas and layouts

Location:
WAeUP_SRP
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/WAeUPTool.py

    r2265 r2267  
    919919        if getattr(academics_folder,fid,None) is not None:
    920920            return '', "Faculty with ID: %s exists" % fid
    921         logger.info('Creating Faculty %(code)s = %(title)s' % mapping)
     921        logger.info('Creating Faculty %(code)s, %(title)s' % mapping)
    922922        academics_folder.invokeFactory('Faculty', fid)
    923923        f = getattr(academics_folder,fid,None)
     
    935935        if f is None:
    936936            return '', "Faculty with ID: %s does not exist" % fid
    937         logger.info('Editing Faculty %(code)s = %(title)s' % mapping)
     937        logger.info('Editing Faculty %(code)s, %(title)s' % mapping)
    938938        f.getContent().edit(mapping=mapping)
    939939        return fid,''
     
    957957            d = getattr(f,did,None)
    958958            if d is None or d.portal_type == "Faculty":
    959                 logger.info('Creating Department %(code)s = %(title)s' % mapping)
     959                logger.info('Creating Department %(code)s, %(title)s' % mapping)
    960960                f.invokeFactory('Department', did)
    961961                d = getattr(f,did)
     
    985985        else:
    986986            if d is None or d.portal_type == "Faculty":
    987                 logger.info('Editing Department %(code)s = %(title)s' % mapping)
     987                logger.info('Editing Department %(code)s, %(title)s' % mapping)
    988988            d.getContent().edit(mapping=mapping)
    989989        return did,''
     
    13091309                format_error = format + ',"%(Error)s"'
    13101310                format = '"%(id)s",'+ format
    1311                            
     1311
    13121312            dm = DataModel(item, adapters,context=self)
    13131313            ds = DataStructure(data=item,datamodel=dm)
  • WAeUP_SRP/uniben/profiles/default/layouts/import_department.xml

    r2193 r2267  
    99 <property name="validate_values_expr"></property>
    1010 <widget name="code" meta_type="WAeUPId Widget">
    11   <property name="title">Department Id</property>
     11  <property name="title">Department Code</property>
    1212  <property name="fields">
    1313   <element value="code"/>
    1414  </property>
    1515  <property name="is_required">True</property>
    16   <property name="label">Department Id</property>
    17   <property name="label_edit">Department Id</property>
     16  <property name="label">Department Code</property>
     17  <property name="label_edit">Department Code</property>
    1818  <property name="readonly_layout_modes"/>
    1919  <property name="hidden_layout_modes">
     
    3030  <property name="label">Faculty Code</property>
    3131  <property name="label_edit">Faculty Code</property>
    32   <property name="readonly_layout_modes"/>
    33   <property name="hidden_layout_modes"/>
    34   <property name="hidden_readonly_layout_modes"/>
    35  </widget>
    36  <widget name="review_state" meta_type="String Widget">
    37   <property name="title">Review State</property>
    38   <property name="fields">
    39    <element value="review_state"/>
    40   </property>
    41   <property name="label">Review State</property>
    42   <property name="label_edit">Review State</property>
    4332  <property name="readonly_layout_modes"/>
    4433  <property name="hidden_layout_modes"/>
  • WAeUP_SRP/uniben/profiles/default/layouts/import_faculty.xml

    r2264 r2267  
    1818  <property name="size_max">200</property>
    1919 </widget>
    20  <widget name="bank_code" meta_type="String Widget">
    21   <property name="title">Bank Code</property>
    22   <property name="fields">
    23    <element value="bank_code"/>
    24   </property>
    25   <property name="label">Bank Code</property>
    26   <property name="label_edit">Bank Code</property>
    27   <property name="readonly_layout_modes"/>
    28   <property name="hidden_layout_modes"/>
    29   <property name="hidden_readonly_layout_modes"/>
    30  </widget>
    3120 <widget name="code" meta_type="WAeUPId Widget">
    32   <property name="title">Faculty Id</property>
     21  <property name="title">Faculty Code</property>
    3322  <property name="fields">
    3423   <element value="code"/>
    3524  </property>
    3625  <property name="is_required">True</property>
    37   <property name="label">Faculty Id</property>
    38   <property name="label_edit">Faculty Id</property>
     26  <property name="label">Faculty Code</property>
     27  <property name="label_edit">Faculty Code</property>
    3928  <property name="readonly_layout_modes">
    4029   <element value="edit"/>
     
    5847  <property name="vocabulary">institution_types_voc</property>
    5948 </widget>
    60  <widget name="review_state" meta_type="String Widget">
    61   <property name="title">Review State</property>
    62   <property name="fields">
    63    <element value="review_state"/>
    64   </property>
    65   <property name="label">Review State</property>
    66   <property name="label_edit">Review State</property>
    67   <property name="readonly_layout_modes"/>
    68   <property name="hidden_layout_modes"/>
    69   <property name="hidden_readonly_layout_modes"/>
    70  </widget>
    7149 <table>
    7250  <row>
     
    7957   <cell name="title_prefix"/>
    8058  </row>
    81   <row>
    82    <cell name="bank_code"/>
    83   </row>
    8459 </table>
    8560</object>
  • WAeUP_SRP/uniben/profiles/default/schemas/import_department.xml

    r2193 r2267  
    44 <field name="code" meta_type="CPS String Field"/>
    55 <field name="faculty_code" meta_type="CPS String Field"/>
    6  <field name="review_state" meta_type="CPS String Field"/>
    76 <field name="title" meta_type="CPS String Field"/>
    87 <field name="title_prefix" meta_type="CPS String Field"/>
  • WAeUP_SRP/uniben/profiles/default/schemas/import_faculty.xml

    r2264 r2267  
    22<?xml-stylesheet type="text/xsl" href="schema.xsl"?>
    33<object name="import_faculty" meta_type="CPS Schema">
    4  <field name="bank_code" meta_type="CPS String Field"/>
    54 <field name="code" meta_type="CPS String Field"/>
    6  <field name="review_state" meta_type="CPS String Field"/>
    75 <field name="title" meta_type="CPS String Field"/>
    86 <field name="title_prefix" meta_type="CPS String Field"/>
Note: See TracChangeset for help on using the changeset viewer.