Changeset 7094 for main/waeup.sirp/trunk
- Timestamp:
- 12 Nov 2011, 21:14:46 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py
r7089 r7094 57 57 IWAeUPObject, ILocalRolesAssignable, IExtFileStore, IFileStoreNameChooser) 58 58 from waeup.sirp.permissions import get_users_with_local_roles 59 from waeup.sirp.browser import DEFAULT_PASSPORT_IMAGE_PATH 59 60 from waeup.sirp.university.interfaces import ICertificate 60 61 from waeup.sirp.utils.helpers import string_from_bytes, file_size … … 68 69 IApplicant, IApplicantPrincipal,IApplicantEdit, IApplicantsRoot, 69 70 IApplicantsContainer, IApplicantsContainerAdd, application_types_vocab, 70 DEFAULT_PASSPORT_IMAGE_PATH,MAX_UPLOAD_SIZE,71 MAX_UPLOAD_SIZE, 71 72 ) 72 73 from waeup.sirp.applicants.workflow import INITIALIZED, STARTED … … 770 771 if self.passport_changed: 771 772 fields_string += ' + passport' 772 self.context._p_changed = True773 #self.context._p_changed = True 773 774 form = self.request.form 774 775 trans_id = form.get('transition', None) … … 819 820 return # error during image upload. Ignore other values 820 821 self.applyData(self.context, **data) 821 self.context._p_changed = True822 #self.context._p_changed = True 822 823 self.flash('Form has been saved.') 823 824 return -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/interfaces.py
r7089 r7094 24 24 import os 25 25 import re 26 import waeup.sirp.browser27 26 28 27 from grokcore.content.interfaces import IContainer … … 44 43 ) 45 44 46 IMAGE_PATH = os.path.join(47 os.path.dirname(waeup.sirp.browser.__file__),48 'static'49 )50 51 #: Filesystem path to default passport image52 DEFAULT_PASSPORT_IMAGE_PATH = os.path.join(IMAGE_PATH, 'placeholder_m.jpg')53 54 45 #: Maximum upload size for applicant passport photographs (in bytes) 55 46 MAX_UPLOAD_SIZE = 1024 * 20 -
main/waeup.sirp/trunk/src/waeup/sirp/browser/__init__.py
r4920 r7094 1 import os 2 1 3 from waeup.sirp.browser.layout import ( 2 4 WAeUPPage, WAeUPLayout, WAeUPDisplayFormPage, WAeUPEditFormPage, 3 5 WAeUPAddFormPage, NullValidator) 6 7 IMAGE_PATH = os.path.join( 8 os.path.dirname(__file__), 9 'static' 10 ) 11 12 #: Filesystem paths to default images 13 DEFAULT_IMAGE_PATH = os.path.join(IMAGE_PATH, 'placeholder_m.jpg') 14 DEFAULT_PASSPORT_IMAGE_PATH = os.path.join(IMAGE_PATH, 'placeholder_m.jpg')
Note: See TracChangeset for help on using the changeset viewer.