Changeset 12993
- Timestamp:
- 22 May 2015, 10:39:19 (10 years ago)
- Location:
- main/waeup.ikoba/trunk/src/waeup/ikoba/doctests
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/doctests/app.txt
r12988 r12993 1 :mod:`waeup.ikoba.app` -- central components for Ikoba 2 ****************** ************************************1 Central Components 2 ****************** 3 3 4 4 .. :doctest: … … 6 6 7 7 .. module:: waeup.ikoba.app 8 9 .. class:: Company10 11 The main Ikoba application object is given with12 :class:`Company`. It provides the main containers as faculties,13 hostels, etc.14 15 .. attribute:: name16 17 A string. The name of a company.18 19 .. attribute:: faculties20 21 An arbitrary object containing "faculties". In the case of22 `Company` it is a container of type23 `waeup.ikoba.interfaces.IFacultiesContainer`.24 8 25 9 -
main/waeup.ikoba/trunk/src/waeup/ikoba/doctests/authentication.txt
r12988 r12993 1 Ikoba authentication2 ************** *****1 Authentication 2 ************** 3 3 4 4 We need to protect most pieces of our portals from unauthenticated … … 24 24 >>> browser.handleErrors = False 25 25 26 Creating users (principals)27 ================= ==========26 Creating officers 27 ================= 28 28 29 29 Before we can login, we have to provide a user (``principal`` in Zope … … 42 42 See ``userscontainer.txt`` for details about the UsersContainer we use here. 43 43 44 Users and local roles45 ===================== 44 Officers and local roles 45 ======================== 46 46 47 47 Accounts also hold infos about local roles assigned to a user. In the -
main/waeup.ikoba/trunk/src/waeup/ikoba/doctests/batchprocessing.txt
r12991 r12993 1 :mod:`waeup.ikoba.utils.batching` -- Batch processing2 **************** ************************************1 Batch Processing 2 **************** 3 3 4 4 Batch processing is much more than pure data import. -
main/waeup.ikoba/trunk/src/waeup/ikoba/doctests/batchprocessing_browser.txt
r12991 r12993 1 Batch processing via browser1 Batch Processing via Browser 2 2 **************************** 3 3 -
main/waeup.ikoba/trunk/src/waeup/ikoba/doctests/catalog.txt
r12988 r12993 1 :mod:`waeup.ikoba.catalog` -- Cataloging support Ikoba 2 ****************** **********************************1 Cataloging Support 2 ****************** 3 3 4 4 .. module:: waeup.ikoba.catalog … … 18 18 ------------------ 19 19 20 .. class:: IkobaQuery()21 22 .. attribute:: grok.implements(hurry.query.interfaces.IQuery)23 24 A `hurry.query.query.Query` compatible query that also supports25 retrival of plain ``Bree`` result sets as used inside a catalog.26 27 Like `hurry.query.query.Query` objects, `IkobaQuery` is some kind28 of a meta query or 'compound query' that can give the cataloged29 objects (or their int ids) matching one or more 'subqueries'.30 31 This way you can search for objects (or their int ids) that match32 several criteria at the same time. See ``examples`` section below.33 34 A singleton instance of this class is also available as global35 utility.36 37 .. method:: searchResults(query)38 39 Get the cataloged objects determined by ``query``.40 41 .. method:: apply(query)42 43 Get the list of int ids (a `BTree` result set) for objects44 determined by ``query``.45 46 The list of int ids is less expensive to compute than the47 complete search results and sufficient, for instance, when you48 only need the number of objects that match a query and not the49 objects themselves.50 51 Examples52 ========53 54 20 Getting a general query object 55 ------------------------------ 21 ============================== 56 22 57 23 We can get a IkobaQuery object by asking for an unnamed global utility … … 69 35 70 36 Setting up a catalog and feeding it 71 ----------------------------------- 37 =================================== 72 38 73 39 >>> from zope.catalog.interfaces import ICatalog … … 148 114 149 115 Searching for result sets 150 ------------------------- 116 ========================= 151 117 152 118 Finally we can perform queries: … … 198 164 199 165 Searching for objects 200 --------------------- 166 ===================== 201 167 202 168 Very often we don't want to know the catalog-internal 'ids' of -
main/waeup.ikoba/trunk/src/waeup/ikoba/doctests/datacenter.txt
r12988 r12993 1 IkobaData Center2 *********** *****1 Data Center 2 *********** 3 3 4 4 The Ikoba data center cares for managing CSV files and importing then. -
main/waeup.ikoba/trunk/src/waeup/ikoba/doctests/helpers.txt
r12990 r12993 1 :mod:`waeup.ikoba.utils.helpers` --Helpers for Ikoba2 ***************** **********************************1 Helpers for Ikoba 2 ***************** 3 3 4 4 .. module:: waeup.ikoba.utils.helpers -
main/waeup.ikoba/trunk/src/waeup/ikoba/doctests/pages.txt
r12991 r12993 5 5 6 6 Company 7 ======= ===7 ======= 8 8 9 9 We can watch universities in the browser. -
main/waeup.ikoba/trunk/src/waeup/ikoba/doctests/permissions.txt
r12988 r12993 1 Ikoba permissions and roles2 ********************* *****1 Permissions and Roles 2 ********************* 3 3 4 4 Permissions and roles used in a Ikoba portal. … … 7 7 .. :layer: waeup.ikoba.testing.IkobaUnitTestLayer 8 8 9 Convenience functions9 Convenience Functions 10 10 ===================== 11 11 -
main/waeup.ikoba/trunk/src/waeup/ikoba/doctests/userscontainer.txt
r12988 r12993 1 User container for the Ikoba2 *************** *************1 Users Container 2 *************** 3 3 4 4 .. :doctest:
Note: See TracChangeset for help on using the changeset viewer.