Changeset 7257


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

pyflakes

Location:
main/waeup.sirp/trunk/src/waeup/sirp
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/hostels/browser.py

    r7243 r7257  
    2020import grok
    2121import sys
    22 from time import time
    23 from datetime import date, datetime
    24 from zope.component import createObject
    2522from waeup.sirp.browser import (
    2623    WAeUPEditFormPage, WAeUPAddFormPage, WAeUPDisplayFormPage,
    2724    NullValidator)
    2825from waeup.sirp.browser.breadcrumbs import Breadcrumb
    29 from waeup.sirp.browser.resources import datepicker, datatable, tabs, toggleall
     26from waeup.sirp.browser.resources import datepicker, datatable, tabs
    3027from waeup.sirp.browser.layout import default_primary_nav_template
    3128from waeup.sirp.browser.pages import delSubobjects
    3229from waeup.sirp.browser.viewlets import (
    33     ManageActionButton, PrimaryNavTab, AddActionButton)
    34 from waeup.sirp.interfaces import IWAeUPObject, IUserAccount
    35 from waeup.sirp.widgets.datewidget import (
    36     FriendlyDateWidget, FriendlyDateDisplayWidget,
    37     FriendlyDatetimeDisplayWidget)
    38 from waeup.sirp.authentication import get_principal_role_manager
    39 from waeup.sirp.hostels.container import HostelsContainer
     30    ManageActionButton, PrimaryNavTab)
     31from waeup.sirp.interfaces import IWAeUPObject
    4032from waeup.sirp.hostels.vocabularies import NOT_OCCUPIED
    4133from waeup.sirp.hostels.hostel import Hostel
     
    5042# Save function used for save methods in manager pages
    5143def msave(view, **data):
    52     form = view.request.form
    5344    changed_fields = view.applyData(view.context, **data)
    5445    # Turn list of lists into single list
  • main/waeup.sirp/trunk/src/waeup/sirp/hostels/catalog.py

    r7195 r7257  
    2020import grok
    2121from grok import index
    22 from hurry.query import Eq, Text
    23 from hurry.query.query import Query
    24 from zope.catalog.interfaces import ICatalog
    25 from zope.component import queryUtility
    26 from waeup.sirp.interfaces import IUniversity, IQueryResultItem
     22from waeup.sirp.interfaces import IUniversity
    2723from waeup.sirp.hostels.interfaces import IBed
    2824
  • main/waeup.sirp/trunk/src/waeup/sirp/hostels/container.py

    r7195 r7257  
    2020"""
    2121import grok
    22 from grok import index
    2322from waeup.sirp.hostels.interfaces import IHostelsContainer, IHostel
    24 from waeup.sirp.utils.helpers import attrs_to_fields, get_current_principal
     23from waeup.sirp.utils.helpers import get_current_principal
    2524from waeup.sirp.utils.logger import Logger
    2625
  • main/waeup.sirp/trunk/src/waeup/sirp/hostels/hostel.py

    r7195 r7257  
    2222from zope.event import notify
    2323from datetime import datetime
    24 from grok import index
    2524from waeup.sirp.utils.helpers import attrs_to_fields
    2625from waeup.sirp.hostels.vocabularies import NOT_OCCUPIED
  • main/waeup.sirp/trunk/src/waeup/sirp/hostels/interfaces.py

    r7195 r7257  
    1616## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
    1717##
    18 from zope.interface import Attribute, invariant, Invalid
     18from zope.interface import invariant, Invalid
    1919from zope import schema
    2020from waeup.sirp.interfaces import IWAeUPObject
  • main/waeup.sirp/trunk/src/waeup/sirp/hostels/vocabularies.py

    r7195 r7257  
    2222from zope.catalog.interfaces import ICatalog
    2323from zc.sourcefactory.contextual import BasicContextualSourceFactory
    24 from zc.sourcefactory.basic import BasicSourceFactory
    2524from waeup.sirp.interfaces import SimpleWAeUPVocabulary
    2625
  • main/waeup.sirp/trunk/src/waeup/sirp/students/tests/test_dynamicroles.py

    r7159 r7257  
    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.