Package s3
[frames] | no frames]

Source Code for Package s3

  1  # -*- coding: utf-8 -*- 
  2   
  3  """ S3 Framework Extensions for web2py 
  4   
  5      This package is loaded in models/000_1st_run.py as "s3base", 
  6      this namespace can be used to access all S3 classes, e.g.:: 
  7   
  8          s3base.S3Resource() 
  9   
 10      @see: U{B{I{S3 Developer Guidelines}} <http://eden.sahanafoundation.org/wiki/DeveloperGuidelinesS3>} 
 11   
 12      @requires: U{B{I{gluon}} <http://web2py.com>} 
 13   
 14      @copyright: 2009-2019 (c) Sahana Software Foundation 
 15      @license: MIT 
 16   
 17      Permission is hereby granted, free of charge, to any person 
 18      obtaining a copy of this software and associated documentation 
 19      files (the "Software"), to deal in the Software without 
 20      restriction, including without limitation the rights to use, 
 21      copy, modify, merge, publish, distribute, sublicense, and/or sell 
 22      copies of the Software, and to permit persons to whom the 
 23      Software is furnished to do so, subject to the following 
 24      conditions: 
 25   
 26      The above copyright notice and this permission notice shall be 
 27      included in all copies or substantial portions of the Software. 
 28   
 29      THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 
 30      EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 
 31      OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 
 32      NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 
 33      HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 
 34      WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 
 35      FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 
 36      OTHER DEALINGS IN THE SOFTWARE. 
 37   
 38  """ 
 39  # Import all names from the S3 modules that shall be accessible 
 40  # under the s3base namespace: 
 41   
 42  # Utilities, Validators and Widgets =========================================== 
 43  # 
 44  # These names are also imported into the global namespace in 
 45  # 00_db.py in order to access them without the s3base prefix: 
 46  from s3validators import * 
 47  from s3utils import * 
 48  from s3widgets import * 
 49  from s3data import * 
 50  from s3datetime import * 
 51   
 52  # Basic Toolkits ============================================================== 
 53  # 
 54  # Codecs for data export/import 
 55  from s3codec import * 
 56  from s3xml import * 
 57   
 58  # Common field definitions 
 59  from s3fields import * 
 60   
 61  # Exception classes 
 62  from s3error import * 
 63   
 64  # Asynchronous Tasks 
 65  from s3task import * 
 66   
 67  # Hierarchy Handling 
 68  from s3hierarchy import * 
 69   
 70  # Core Framework ============================================================== 
 71   
 72  # Model Extensions 
 73  from s3model import DYNAMIC_PREFIX, S3Model 
 74   
 75  # Resource Framework 
 76  from s3query import * 
 77  from s3resource import * 
 78   
 79  # Authentication, Authorization, Accounting 
 80  from s3aaa import * 
 81  from s3roles import * 
 82   
 83  # RESTful API ================================================================= 
 84   
 85  # Core 
 86  from s3rest import * 
 87   
 88  # CRUD 
 89  from s3crud import * 
 90  from s3forms import * 
 91  from s3organizer import * 
 92   
 93  # Filtering 
 94  from s3filter import * 
 95   
 96  # Reporting 
 97  from s3grouped import * 
 98  from s3report import * 
 99  from s3timeplot import * 
100   
101  # Profiles 
102  from s3profile import * 
103   
104  # Summary 
105  from s3summary import * 
106   
107  # Dashboards 
108  from s3dashboard import * 
109   
110  # Synchronization 
111  from s3sync import * 
112   
113  # Import 
114  from s3import import * 
115   
116  # De-duplication 
117  from s3merge import S3Merge 
118   
119  # Don't load S3PDF unless needed (very slow import with reportlab) 
120  #from s3pdf import S3PDF 
121   
122  # Advanced Framework ========================================================== 
123  # 
124  # Tracking System 
125  from s3track import * 
126   
127  # GIS Mapping 
128  from s3gis import * 
129   
130  # Messaging 
131  from s3msg import * 
132   
133  # Notifications 
134  from s3notify import * 
135   
136  # GUI Navigation Framework 
137  from s3navigation import * 
138   
139  # Mobile APIs 
140  from s3xforms import * 
141  from s3mobile import * 
142   
143  # Anonymize 
144  from s3anonymize import * 
145   
146  # END ========================================================================= 
147