Changeset 7257
- Timestamp:
- 3 Dec 2011, 05:56:47 (13 years ago)
- 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 20 20 import grok 21 21 import sys 22 from time import time23 from datetime import date, datetime24 from zope.component import createObject25 22 from waeup.sirp.browser import ( 26 23 WAeUPEditFormPage, WAeUPAddFormPage, WAeUPDisplayFormPage, 27 24 NullValidator) 28 25 from waeup.sirp.browser.breadcrumbs import Breadcrumb 29 from waeup.sirp.browser.resources import datepicker, datatable, tabs , toggleall26 from waeup.sirp.browser.resources import datepicker, datatable, tabs 30 27 from waeup.sirp.browser.layout import default_primary_nav_template 31 28 from waeup.sirp.browser.pages import delSubobjects 32 29 from 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) 31 from waeup.sirp.interfaces import IWAeUPObject 40 32 from waeup.sirp.hostels.vocabularies import NOT_OCCUPIED 41 33 from waeup.sirp.hostels.hostel import Hostel … … 50 42 # Save function used for save methods in manager pages 51 43 def msave(view, **data): 52 form = view.request.form53 44 changed_fields = view.applyData(view.context, **data) 54 45 # Turn list of lists into single list -
main/waeup.sirp/trunk/src/waeup/sirp/hostels/catalog.py
r7195 r7257 20 20 import grok 21 21 from 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 22 from waeup.sirp.interfaces import IUniversity 27 23 from waeup.sirp.hostels.interfaces import IBed 28 24 -
main/waeup.sirp/trunk/src/waeup/sirp/hostels/container.py
r7195 r7257 20 20 """ 21 21 import grok 22 from grok import index23 22 from waeup.sirp.hostels.interfaces import IHostelsContainer, IHostel 24 from waeup.sirp.utils.helpers import attrs_to_fields,get_current_principal23 from waeup.sirp.utils.helpers import get_current_principal 25 24 from waeup.sirp.utils.logger import Logger 26 25 -
main/waeup.sirp/trunk/src/waeup/sirp/hostels/hostel.py
r7195 r7257 22 22 from zope.event import notify 23 23 from datetime import datetime 24 from grok import index25 24 from waeup.sirp.utils.helpers import attrs_to_fields 26 25 from waeup.sirp.hostels.vocabularies import NOT_OCCUPIED -
main/waeup.sirp/trunk/src/waeup/sirp/hostels/interfaces.py
r7195 r7257 16 16 ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 17 ## 18 from zope.interface import Attribute,invariant, Invalid18 from zope.interface import invariant, Invalid 19 19 from zope import schema 20 20 from waeup.sirp.interfaces import IWAeUPObject -
main/waeup.sirp/trunk/src/waeup/sirp/hostels/vocabularies.py
r7195 r7257 22 22 from zope.catalog.interfaces import ICatalog 23 23 from zc.sourcefactory.contextual import BasicContextualSourceFactory 24 from zc.sourcefactory.basic import BasicSourceFactory25 24 from waeup.sirp.interfaces import SimpleWAeUPVocabulary 26 25 -
main/waeup.sirp/trunk/src/waeup/sirp/students/tests/test_dynamicroles.py
r7159 r7257 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.