Ignore:
Timestamp:
3 Dec 2011, 05:25:51 (13 years ago)
Author:
Henrik Bettermann
Message:

Remove unused imports.

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  
    3333    IApplicant, IApplicantEdit,
    3434    )
    35 from waeup.sirp.applicants.workflow import INITIALIZED
    3635
    3736def generate_applicant_id(container=None):
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/authentication.py

    r7240 r7255  
    2020"""
    2121import 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)
     22from zope.pluggableauth.interfaces import IAuthenticatorPlugin
     23from waeup.sirp.interfaces import IAuthPluginUtility, IUserAccount
    3324from waeup.sirp.applicants.interfaces import IApplicant
    3425from waeup.sirp.students.authentication import (
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py

    r7254 r7255  
    2222import grok
    2323from time import time
    24 from datetime import datetime, date
    25 from zope.authentication.interfaces import ILogout, IAuthentication
     24from datetime import datetime
    2625from zope.component import getUtility, createObject
    27 from zope.formlib.widget import CustomWidgetFactory
    2826from zope.formlib.form import setUpEditWidgets
    29 from zope.securitypolicy.interfaces import IPrincipalRoleManager
    30 from zope.traversing.browser import absoluteURL
    31 
    3227from hurry.workflow.interfaces import IWorkflowInfo, IWorkflowState
    3328from reportlab.pdfgen import canvas
     
    3833    Table, Spacer)
    3934from reportlab.platypus.tables import TableStyle
    40 
    41 from waeup.sirp.accesscodes import invalidate_accesscode, get_access_code
    42 from waeup.sirp.accesscodes.workflow import USED
    4335from waeup.sirp.browser import (
    4436    WAeUPPage, WAeUPEditFormPage, WAeUPAddFormPage, WAeUPDisplayFormPage)
     
    4739from waeup.sirp.browser.pages import add_local_role, del_local_roles
    4840from waeup.sirp.browser.resources import datepicker, tabs, datatable
    49 from waeup.sirp.browser.viewlets import (
    50     ManageActionButton, PrimaryNavTab, LeftSidebarLink
    51     )
     41from waeup.sirp.browser.viewlets import ManageActionButton, PrimaryNavTab
    5242from waeup.sirp.interfaces import (
    5343    IWAeUPObject, ILocalRolesAssignable, IExtFileStore,
     
    6151    FriendlyDatetimeDisplayWidget)
    6252from 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_data
    6653from waeup.sirp.applicants.interfaces import (
    6754    IApplicant, IApplicantEdit, IApplicantsRoot,
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/dynamicroles.py

    r7220 r7255  
    2323"""
    2424import 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
     25from zope.securitypolicy.interfaces import IPrincipalRoleManager
    3126from waeup.sirp.applicants.interfaces import IApplicant
    3227from waeup.sirp.students.dynamicroles import StudentPrincipalRoleManager
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/interfaces.py

    r7250 r7255  
    1818"""Interfaces of the university application package.
    1919"""
    20 import os
    21 import re
    2220
    2321from grokcore.content.interfaces import IContainer
     
    2624from zope.interface import Interface, Attribute
    2725from zope.component import getUtilitiesFor
    28 from zope.pluggableauth.interfaces import IPrincipalInfo
    29 from zope.security.interfaces import IGroupClosureAwarePrincipal as IPrincipal
    3026from zc.sourcefactory.basic import BasicSourceFactory
    3127from waeup.sirp.interfaces import (
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/payment.py

    r7250 r7255  
    3434    def __init__(self):
    3535        super(ApplicantOnlinePayment, self).__init__()
    36         p_id = None
    3736        return
    3837
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_applicant.py

    r7241 r7255  
    1919"""
    2020import grok
    21 import os
    2221import shutil
    2322import tempfile
    24 import unittest
    2523from StringIO import StringIO
    2624from zope.component import adapts, queryUtility
     
    3230from waeup.sirp.interfaces import IFileStoreHandler, IFileStoreNameChooser
    3331from waeup.sirp.applicants import (
    34     Applicant, ApplicantFactory, ApplicantsContainer,
     32    Applicant, ApplicantFactory,
    3533    ApplicantImageStoreHandler, ApplicantImageNameChooser,
    3634    )
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_authentication.py

    r7240 r7255  
    2323from zope.password.interfaces import IPasswordManager
    2424from zope.pluggableauth import PluggableAuthentication
    25 from zope.security.interfaces import Unauthorized
    2625from zope.securitypolicy.role import Role
    2726from zope.securitypolicy.interfaces import IRole, Allow
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_dynamicroles.py

    r7193 r7255  
    2121from zope.interface import verify
    2222from zope.securitypolicy.interfaces import IPrincipalRoleManager
    23 from zope.securitypolicy.settings import Allow, Deny, Unset
    24 from zope.securitypolicy.tests.test_securitymap import TestSecurityMap
     23from zope.securitypolicy.settings import Allow
    2524from zope.securitypolicy.tests.test_annotationprincipalrolemanager import (
    2625    Test as APRMTest, Manageable)
Note: See TracChangeset for help on using the changeset viewer.