Commits

Ashley Felton  committed 0258189

Updated requirements and hgignore files.

  • Participants
  • Parent commits 0418ec7

Comments (0)

Files changed (3)

 #regex syntax
 \.pyc$
 \.swp$
-\.wsgi$
+\.orig$
 ^sqlitedb$
 ^authentication.py$
+import_script.py$
 ^virtualenv/
 ^media/static/
+^media/docs/
+^media/uploads/
+^static/docs/
+.svn
+.git
+\.db$
+\.log$
+\.obr$
+\.csv$
+\.backup$
+_build/
+^_data_export/
+^_logs/
+^fixtures/

File requirements.txt

 django-reversion
 django-permissions
 django-tinymce
-http://pypi.enfoldsystems.com/tablib/tablib-0.9.5.tar.gz#md5=77be34bfc8d42df649c0e2c4dc330253
 django-tablib
-django-olwidget
 docutils
 djkombu
 sqlparse

File static/docs/__init__.py

+'''
+Standard functions used by apps to get service endpoints::
+
+    Copyright (C) 2011 Department of Environment & Conservation           
+
+    Authors:
+     * Adon Metcalfe
+                                                                            
+    This program is free software: you can redistribute it and/or modify    
+    it under the terms of the GNU Affero General Public License as          
+    published by the Free Software Foundation, either version 3 of the      
+    License, or (at your option) any later version.                         
+                                                                            
+    This program is distributed in the hope that it will be useful,         
+    but WITHOUT ANY WARRANTY; without even the implied warranty of          
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           
+    GNU Affero General Public License for more details.                     
+                                                                            
+    You should have received a copy of the GNU Affero General Public License
+    along with this program.  If not, see <http://www.gnu.org/licenses/>. 
+'''
+
+from django.conf import settings
+
+from restless.models import ApplicationLink, Token, User
+
+def get_service_details(server_id, user, url="/"):
+    '''
+    returns a base url for a service, a token and a token expiry.
+    The url should be web accessible for e.g. a javascript application
+    or desktop application to use
+    '''
+    applink = ApplicationLink.objects.get(server_id=server_id, client_id=settings.SITE_NAME)
+    return "notdoneyet"