Changeset 3840 for WAeUP_SRP


Ignore:
Timestamp:
7 Jan 2009, 07:09:15 (16 years ago)
Author:
Henrik Bettermann
Message:

some security checks

Location:
WAeUP_SRP/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPTool.py

    r3838 r3840  
    640640    ###)
    641641
    642     def old____loadStudentFoto(self,student,filename,folder): ###(
    643         "return a student passport picture"
    644         app = student.application
    645         app_doc = app.getContent()
    646         #clear = student.clearance
    647         #clear_doc = clear.getContent()
    648         #matric_no = clear_doc.matric_no.upper()
    649         picture1 ="%s/import/%s/%s.jpg" % (i_home,folder,filename)
    650         picture2 ="%s/import/%s/%s.JPG" % (i_home,folder,filename)
    651         #import pdb;pdb.set_trace()
    652         if os.path.exists(picture1):
    653             file = open(picture1)
    654         elif os.path.exists(picture2):
    655             file = open(picture2)
    656         else:
    657             return "passport picture not found %s" % picture1
    658         reopened = False
    659         if self.portal_workflow.getInfoFor(app,'review_state',None) !='opened':
    660             self.portal_workflow.doActionFor(app,'open')
    661             reopened = True
    662         outfile = file.read()
    663         app_doc.manage_addFile('passport',
    664                                file=outfile,
    665                                title="%s.jpg" % filename)
    666         if reopened:
    667             self.portal_workflow.doActionFor(app,'close')
    668         return "successfully loaded passport picture"
    669     ###)
    670642
    671643    security.declareProtected(ModifyPortalContent,'createOne') ###(
     
    691663    ###)
    692664
     665    # Functions without docstring cannot be called from outside (via the URL),
     666    # thus we can declare addStudent public.
    693667    security.declarePublic('addStudent') ###(
    694668    def addStudent(self,dict):
  • WAeUP_SRP/trunk/profiles/futminna/layouts/members.xml

    r3780 r3840  
    116116  <property name="display_width">20</property>
    117117  <property name="size_max">0</property>
    118   <property name="check_words">minna</property>
     118  <property name="check_words">futmx</property>
    119119 </widget>
    120120<widget name="roles" meta_type="Generic MultiSelect Widget">
Note: See TracChangeset for help on using the changeset viewer.