Changeset 7255 for main/waeup.sirp/trunk
- Timestamp:
- 3 Dec 2011, 05:25:51 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/applicants
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/applicant.py
r7250 r7255 33 33 IApplicant, IApplicantEdit, 34 34 ) 35 from waeup.sirp.applicants.workflow import INITIALIZED36 35 37 36 def generate_applicant_id(container=None): -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/authentication.py
r7240 r7255 20 20 """ 21 21 import grok 22 from zope.component import getUtility 23 from zope.password.interfaces import IPasswordManager 24 from zope.pluggableauth.interfaces import ( 25 IAuthenticatorPlugin, ICredentialsPlugin) 26 from zope.pluggableauth.plugins.session import ( 27 SessionCredentialsPlugin, SessionCredentials) 28 from zope.publisher.interfaces.http import IHTTPRequest 29 from zope.session.interfaces import ISession 30 from waeup.sirp.authentication import SIRPPrincipalInfo, get_principal_role_manager 31 from waeup.sirp.interfaces import ( 32 IAuthPluginUtility, IUserAccount, IPasswordValidator) 22 from zope.pluggableauth.interfaces import IAuthenticatorPlugin 23 from waeup.sirp.interfaces import IAuthPluginUtility, IUserAccount 33 24 from waeup.sirp.applicants.interfaces import IApplicant 34 25 from waeup.sirp.students.authentication import ( -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py
r7254 r7255 22 22 import grok 23 23 from time import time 24 from datetime import datetime, date 25 from zope.authentication.interfaces import ILogout, IAuthentication 24 from datetime import datetime 26 25 from zope.component import getUtility, createObject 27 from zope.formlib.widget import CustomWidgetFactory28 26 from zope.formlib.form import setUpEditWidgets 29 from zope.securitypolicy.interfaces import IPrincipalRoleManager30 from zope.traversing.browser import absoluteURL31 32 27 from hurry.workflow.interfaces import IWorkflowInfo, IWorkflowState 33 28 from reportlab.pdfgen import canvas … … 38 33 Table, Spacer) 39 34 from reportlab.platypus.tables import TableStyle 40 41 from waeup.sirp.accesscodes import invalidate_accesscode, get_access_code42 from waeup.sirp.accesscodes.workflow import USED43 35 from waeup.sirp.browser import ( 44 36 WAeUPPage, WAeUPEditFormPage, WAeUPAddFormPage, WAeUPDisplayFormPage) … … 47 39 from waeup.sirp.browser.pages import add_local_role, del_local_roles 48 40 from waeup.sirp.browser.resources import datepicker, tabs, datatable 49 from waeup.sirp.browser.viewlets import ( 50 ManageActionButton, PrimaryNavTab, LeftSidebarLink 51 ) 41 from waeup.sirp.browser.viewlets import ManageActionButton, PrimaryNavTab 52 42 from waeup.sirp.interfaces import ( 53 43 IWAeUPObject, ILocalRolesAssignable, IExtFileStore, … … 61 51 FriendlyDatetimeDisplayWidget) 62 52 from waeup.sirp.widgets.restwidget import ReSTDisplayWidget 63 from waeup.sirp.widgets.objectwidget import (64 WAeUPObjectWidget, WAeUPObjectDisplayWidget)65 from waeup.sirp.applicants import Applicant, get_applicant_data66 53 from waeup.sirp.applicants.interfaces import ( 67 54 IApplicant, IApplicantEdit, IApplicantsRoot, -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/dynamicroles.py
r7220 r7255 23 23 """ 24 24 import grok 25 from zope.securitypolicy.interfaces import ( 26 IPrincipalRoleManager, IPrincipalPermissionManager,) 27 from zope.securitypolicy.principalrole import AnnotationPrincipalRoleManager 28 from zope.securitypolicy.principalpermission import ( 29 AnnotationPrincipalPermissionManager,) 30 from zope.securitypolicy.settings import Allow, Deny, Unset 25 from zope.securitypolicy.interfaces import IPrincipalRoleManager 31 26 from waeup.sirp.applicants.interfaces import IApplicant 32 27 from waeup.sirp.students.dynamicroles import StudentPrincipalRoleManager -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/interfaces.py
r7250 r7255 18 18 """Interfaces of the university application package. 19 19 """ 20 import os21 import re22 20 23 21 from grokcore.content.interfaces import IContainer … … 26 24 from zope.interface import Interface, Attribute 27 25 from zope.component import getUtilitiesFor 28 from zope.pluggableauth.interfaces import IPrincipalInfo29 from zope.security.interfaces import IGroupClosureAwarePrincipal as IPrincipal30 26 from zc.sourcefactory.basic import BasicSourceFactory 31 27 from waeup.sirp.interfaces import ( -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/payment.py
r7250 r7255 34 34 def __init__(self): 35 35 super(ApplicantOnlinePayment, self).__init__() 36 p_id = None37 36 return 38 37 -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_applicant.py
r7241 r7255 19 19 """ 20 20 import grok 21 import os22 21 import shutil 23 22 import tempfile 24 import unittest25 23 from StringIO import StringIO 26 24 from zope.component import adapts, queryUtility … … 32 30 from waeup.sirp.interfaces import IFileStoreHandler, IFileStoreNameChooser 33 31 from waeup.sirp.applicants import ( 34 Applicant, ApplicantFactory, ApplicantsContainer,32 Applicant, ApplicantFactory, 35 33 ApplicantImageStoreHandler, ApplicantImageNameChooser, 36 34 ) -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_authentication.py
r7240 r7255 23 23 from zope.password.interfaces import IPasswordManager 24 24 from zope.pluggableauth import PluggableAuthentication 25 from zope.security.interfaces import Unauthorized26 25 from zope.securitypolicy.role import Role 27 26 from zope.securitypolicy.interfaces import IRole, Allow -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_dynamicroles.py
r7193 r7255 21 21 from zope.interface import verify 22 22 from zope.securitypolicy.interfaces import IPrincipalRoleManager 23 from zope.securitypolicy.settings import Allow, Deny, Unset 24 from zope.securitypolicy.tests.test_securitymap import TestSecurityMap 23 from zope.securitypolicy.settings import Allow 25 24 from zope.securitypolicy.tests.test_annotationprincipalrolemanager import ( 26 25 Test as APRMTest, Manageable)
Note: See TracChangeset for help on using the changeset viewer.